Class FlowBoxChild

All Implemented Interfaces:
PointerInterface

public class FlowBoxChild extends Widget
`GtkFlowBoxChild` is the kind of widget that can be added to a `GtkFlowBox`.

https://docs.gtk.org/gtk4/class.FlowBoxChild.html

  • Field Details

  • Constructor Details

    • FlowBoxChild

      public FlowBoxChild(PointerContainer pointer)
    • FlowBoxChild

      public FlowBoxChild()
      Creates a new `GtkFlowBoxChild`.

      This should only be used as a child of a `GtkFlowBox`.
  • Method Details

    • getClassHandler

      public static ClassHandler getClassHandler()
    • changed

      public void changed()
      Marks @child 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
      gtk_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 [method@Gtk.FlowBox.invalidate_sort]
      on any model change, but that is more expensive.
    • getChild

      public Widget getChild()
      Gets the child widget of @self.
      Returns:
      the child widget of @self
    • getIndex

      public int getIndex()
      Gets the current index of the @child in its `GtkFlowBox` container.
      Returns:
      the index of the @child, or -1 if the @child is not in a flow box
    • isSelected

      public boolean isSelected()
      Returns whether the @child is currently selected in its
      `GtkFlowBox` container.
      Returns:
      %TRUE if @child is selected
    • setChild

      public void setChild(@Nullable Widget child)
      Sets the child widget of @self.
      Parameters:
      child - the child widget
    • onActivate

      public SignalHandler onActivate(FlowBoxChild.OnActivate signal)
      Connect to signal "activate".
      See FlowBoxChild.OnActivate.onActivate() for signal description.
      Field SIGNAL_ON_ACTIVATE contains original signal name and can be used as resource reference.
      Parameters:
      signal - callback function (lambda).
      Returns:
      SignalHandler. Can be used to disconnect signal and to release callback function.
    • asAccessible

      public Accessible asAccessible()
      Implements interface Accessible. Call this to get access to interface functions.
      Overrides:
      asAccessible in class Widget
      Returns:
      Accessible
    • asBuildable

      public Buildable asBuildable()
      Implements interface Buildable. Call this to get access to interface functions.
      Overrides:
      asBuildable in class Widget
      Returns:
      Buildable
    • asConstraintTarget

      public ConstraintTarget asConstraintTarget()
      Implements interface ConstraintTarget. Call this to get access to interface functions.
      Overrides:
      asConstraintTarget in class Widget
      Returns:
      ConstraintTarget
    • getTypeID

      public static long getTypeID()
    • getParentTypeID

      public static long getParentTypeID()
    • getTypeSize

      public static TypeSystem.TypeSize getTypeSize()
    • getParentTypeSize

      public static TypeSystem.TypeSize getParentTypeSize()
    • getInstanceSize

      public static int getInstanceSize()