1.76 <GtkFlowBoxChild>

Class: <GtkFlowBoxChild>

It derives from <GtkWidget>.

The kind of widget that can be added to a <GtkFlowBox>.

<GtkFlowBox> will automatically wrap its children in a <GtkFlowBoxChild> when necessary.

Properties

Property: flow-box-child:child self

The child widget.

Its value is a <GtkWidget>, or #f.

Set it with (set! (flow-box-child:child self) value).

Procedures

Method: flow-box-child:changed self
Method: changed self

Marks self as changed, causing any state that depends on this to be updated.

This affects sorting and filtering.

Note that calls to this method must be in sync with the data used for the sorting and filtering functions. For instance, if the list is mirroring some external data set, and two children changed in the external data set when you call flow-box-child:changed on the first child, the sort function must only read the new data for the first of the two changed children, otherwise the resorting of the children will be wrong.

This generally means that if you don’t fully control the data model, you have to duplicate the data that affects the sorting and filtering functions into the widgets themselves.

Another alternative is to call flow-box:invalidate-sort on any model change, but that is more expensive.

self

Passed: a <GtkFlowBoxChild>.

a <GtkFlowBoxChild>

Method: flow-box-child:get-child self ⇒ %return
Method: get-child self ⇒ %return

Gets the child widget of self.

self

Passed: a <GtkFlowBoxChild>.

a <GtkFlowBoxChild>

%return

Returned: a <GtkWidget>, or #f.

the child widget of self

Method: flow-box-child:get-index self ⇒ %return
Method: get-index self ⇒ %return

Gets the current index of the self in its <GtkFlowBox> container.

self

Passed: a <GtkFlowBoxChild>.

a <GtkFlowBoxChild>

%return

Returned: a 32-bit integer.

the index of the self, or -1 if the self is not in a flow box

Method: flow-box-child:is-selected? self ⇒ %return
Method: is-selected? self ⇒ %return

Returns whether the self is currently selected in its <GtkFlowBox> container.

self

Passed: a <GtkFlowBoxChild>.

a <GtkFlowBoxChild>

%return

Returned: a boolean.

#t if self is selected

Procedure: flow-box-child:new ⇒ %return

Creates a new <GtkFlowBoxChild>.

This should only be used as a child of a <GtkFlowBox>.

%return

Returned: a <GtkWidget>.

a new <GtkFlowBoxChild>

Method: flow-box-child:set-child self [child]
Method: set-child self [child]

Sets the child widget of self.

self

Passed: a <GtkFlowBoxChild>.

a <GtkFlowBoxChild>

child

Passed, or left out: a <GtkWidget>, or #f.

the child widget

Signals

Signal: flow-box-child:activate

Connect a handler with (connect object flow-box-child:activate handler). It is called as (handler self).

Emitted when the user activates a child widget in a <GtkFlowBox>.

This can happen either by clicking or double-clicking, or via a keybinding.

This is a keybinding signal, but it can be used by applications for their own purposes.

The default bindings are Space and Enter.

self

Passed: a <GtkFlowBoxChild>.

Virtual methods

Virtual method: flow-box-child:do-activate implementor self

To override it in a new class, give register-type #:vfuncs `((activate . ,procedure)). The procedure is called as (procedure self).

implementor

Passed: the class whose implementation to call: <GtkFlowBoxChild>, or a class that derives from it, or its GType number.

self

Passed: a <GtkFlowBoxChild>.