Gtk.FlowBoxChild - Classes - Gtk 3.0 (original) (raw)
g Atk.ImplementorIface Atk.ImplementorIface Gtk.Widget Gtk.Widget Atk.ImplementorIface->Gtk.Widget GObject.GInterface GObject.GInterface GObject.GInterface->Atk.ImplementorIface Gtk.Buildable Gtk.Buildable GObject.GInterface->Gtk.Buildable GObject.InitiallyUnowned GObject.InitiallyUnowned GObject.InitiallyUnowned->Gtk.Widget GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned Gtk.Bin Gtk.Bin Gtk.FlowBoxChild Gtk.FlowBoxChild Gtk.Bin->Gtk.FlowBoxChild Gtk.Buildable->Gtk.Widget Gtk.Container Gtk.Container Gtk.Container->Gtk.Bin Gtk.Widget->Gtk.Container
Subclasses:
None
Methods¶
Inherited:
Gtk.Bin (1), Gtk.Container (35), Gtk.Widget (278), GObject.Object (37), Gtk.Buildable (10)
Structs:
Gtk.ContainerClass (5), Gtk.WidgetClass (12), GObject.ObjectClass (5)
class | new () |
---|---|
changed () | |
get_index () | |
is_selected () |
Virtual Methods¶
Inherited:
Gtk.Container (10), Gtk.Widget (82), GObject.Object (7), Gtk.Buildable (10)
do_activate () |
---|
Properties¶
Inherited:
Gtk.Container (3), Gtk.Widget (39)
Style Properties¶
Inherited:
Signals¶
Inherited:
Gtk.Container (4), Gtk.Widget (69), GObject.Object (1)
Name | Short Description |
---|---|
activate | The ::activate signal is emitted when the user activates a child widget in a Gtk.FlowBox, either by clicking or double-clicking, or by using the Space or Enter key. |
Fields¶
Inherited:
Gtk.Container (4), Gtk.Widget (69), GObject.Object (1)
Name | Type | Access | Description |
---|---|---|---|
parent_instance | Gtk.Bin | r |
Class Details¶
class Gtk.FlowBoxChild(**kwargs)¶
Bases:
Abstract:
No
Structure:
Returns:
a new Gtk.FlowBoxChild
Return type:
Creates a new Gtk.FlowBoxChild, to be used as a child of a Gtk.FlowBox.
New in version 3.12.
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 callGtk.FlowBoxChild.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 Gtk.FlowBox.invalidate_sort() on any model change, but that is more expensive.
New in version 3.12.
Returns:
the index of the self, or -1 if the self is not in a flow box.
Return type:
Gets the current index of the self in its Gtk.FlowBox container.
New in version 3.12.
Returns:
True if self is selected
Return type:
Returns whether the self is currently selected in itsGtk.FlowBox container.
New in version 3.12.
do_activate() virtual¶
Signal Details¶
Gtk.FlowBoxChild.signals.activate(flow_box_child)¶
Signal Name:
activate
Flags:
Parameters:
flow_box_child (Gtk.FlowBoxChild) – The object which received the signal
The ::activate signal is emitted when the user activates a child widget in a Gtk.FlowBox, either by clicking or double-clicking, or by using the Space or Enter key.
While this signal is used as akeybinding signal, it can be used by applications for their own purposes.