Class FlowBox
- All Implemented Interfaces:
Proxy
,Accessible
,Buildable
,ConstraintTarget
,Orientable
GtkFlowBox
puts child widgets in reflowing grid.
For instance, with the horizontal orientation, the widgets will be arranged from left to right, starting a new row under the previous row when necessary. Reducing the width in this case will require more rows, so a larger height will be requested.
Likewise, with the vertical orientation, the widgets will be arranged from top to bottom, starting a new column to the right when necessary. Reducing the height will require more columns, so a larger width will be requested.
The size request of a GtkFlowBox
alone may not be what you expect;
if you need to be able to shrink it along both axes and dynamically
reflow its children, you may have to wrap it in a GtkScrolledWindow
to enable that.
The children of a GtkFlowBox
can be dynamically sorted and filtered.
Although a GtkFlowBox
must have only GtkFlowBoxChild
children, you
can add any kind of widget to it via insert(org.gnome.gtk.Widget, int)
, and a
GtkFlowBoxChild
widget will automatically be inserted between the box
and the widget.
Also see ListBox
.
Shortcuts and Gestures
The following signals have default keybindings:
Gtk.FlowBox::move-cursor
Gtk.FlowBox::select-all
Gtk.FlowBox::toggle-cursor-child
Gtk.FlowBox::unselect-all
CSS nodes
flowbox
├── flowboxchild
│ ╰── <child>
├── flowboxchild
│ ╰── <child>
┊
╰── [rubberband]
GtkFlowBox
uses a single CSS node with name flowbox. GtkFlowBoxChild
uses a single CSS node with name flowboxchild. For rubberband selection,
a subnode with name rubberband is used.
Accessibility
GtkFlowBox
uses the AccessibleRole.GRID
role, and GtkFlowBoxChild
uses the AccessibleRole.GRID_CELL
role.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Functional interface declaration of theActivateCursorChildCallback
callback.static class
FlowBox.Builder<B extends FlowBox.Builder<B>>
Inner class implementing a builder pattern to construct a GObject with properties.static interface
Functional interface declaration of theChildActivatedCallback
callback.static interface
Functional interface declaration of theMoveCursorCallback
callback.static interface
Functional interface declaration of theSelectAllCallback
callback.static interface
Functional interface declaration of theSelectedChildrenChangedCallback
callback.static interface
Functional interface declaration of theToggleCursorChildCallback
callback.static interface
Functional interface declaration of theUnselectAllCallback
callback.Nested classes/interfaces inherited from class org.gnome.gtk.Widget
Widget.DestroyCallback, Widget.DirectionChangedCallback, Widget.HideCallback, Widget.KeynavFailedCallback, Widget.MapCallback, Widget.MnemonicActivateCallback, Widget.MoveFocusCallback, Widget.QueryTooltipCallback, Widget.RealizeCallback, Widget.ShowCallback, Widget.StateFlagsChangedCallback, Widget.UnmapCallback, Widget.UnrealizeCallback, Widget.WidgetClass, Widget.WidgetImpl
Nested classes/interfaces inherited from class org.gnome.gobject.InitiallyUnowned
InitiallyUnowned.InitiallyUnownedClass
Nested classes/interfaces inherited from class org.gnome.gobject.GObject
GObject.NotifyCallback, GObject.ObjectClass
Nested classes/interfaces inherited from interface org.gnome.gtk.Accessible
Accessible.AccessibleImpl, Accessible.AccessibleInterface
Nested classes/interfaces inherited from interface org.gnome.gtk.Buildable
Buildable.BuildableIface, Buildable.BuildableImpl
Nested classes/interfaces inherited from interface org.gnome.gtk.ConstraintTarget
ConstraintTarget.ConstraintTargetImpl, ConstraintTarget.ConstraintTargetInterface
Nested classes/interfaces inherited from interface org.gnome.gtk.Orientable
Orientable.OrientableIface, Orientable.OrientableImpl
-
Constructor Summary
ConstructorDescriptionFlowBox()
Creates aGtkFlowBox
.FlowBox
(MemorySegment address) Create a FlowBox proxy instance for the provided memory address. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Addschild
to the end of this FlowBox.protected FlowBox
asParent()
Returns this instance as if it were its parent type.void
bindModel
(@Nullable ListModel model, FlowBoxCreateWidgetFunc createWidgetFunc) Bindsmodel
to this FlowBox.static FlowBox.Builder
<? extends FlowBox.Builder> builder()
AFlowBox.Builder
object constructs aFlowBox
with the specified properties.void
Emits the "activate-cursor-child" signal.void
emitChildActivated
(FlowBoxChild child) Emits the "child-activated" signal.boolean
emitMoveCursor
(MovementStep step, int count, boolean extend, boolean modify) Emits the "move-cursor" signal.void
Emits the "select-all" signal.void
Emits the "selected-children-changed" signal.void
Emits the "toggle-cursor-child" signal.void
Emits the "unselect-all" signal.boolean
Returns whether children activate on single clicks.getChildAtIndex
(int idx) Gets the nth child in the this FlowBox.getChildAtPos
(int x, int y) Gets the child in the (x
,y
) position.int
Gets the horizontal spacing.boolean
Returns whether the box is homogeneous.int
Gets the maximum number of children per line.int
Gets the minimum number of children per line.int
Gets the vertical spacing.Creates a list of all selected children.Gets the selection mode of this FlowBox.static Type
getType()
Get the GType of the FlowBox classvoid
Inserts thewidget
into this FlowBox atposition
.void
Updates the filtering for all children.void
Updates the sorting for all children.Emitted when the user activates thebox
.Emitted when a child has been activated by the user.onMoveCursor
(FlowBox.MoveCursorCallback handler) Emitted when the user initiates a cursor movement.onSelectAll
(FlowBox.SelectAllCallback handler) Emitted to select all children of the box, if the selection mode permits it.Emitted when the set of selected children changes.Emitted to toggle the selection of the child that has the focus.onUnselectAll
(FlowBox.UnselectAllCallback handler) Emitted to unselect all children of the box, if the selection mode permits it.void
Addschild
to the start of this FlowBox.void
Removes a child from this FlowBox.void
Removes all children from this FlowBox.void
Select all children of this FlowBox, if the selection mode allows it.void
selectChild
(FlowBoxChild child) Selects a single child of this FlowBox, if the selection mode allows it.void
Calls a function for each selected child.void
setActivateOnSingleClick
(boolean single) Ifsingle
istrue
, children will be activated when you click on them, otherwise you need to double-click.void
setColumnSpacing
(int spacing) Sets the horizontal space to add between children.void
setFilterFunc
(@Nullable FlowBoxFilterFunc filterFunc) By setting a filter function on the this FlowBox one can decide dynamically which of the children to show.void
setHadjustment
(Adjustment adjustment) Hooks up an adjustment to focus handling in this FlowBox.void
setHomogeneous
(boolean homogeneous) Sets whether or not all children of this FlowBox are given equal space in the box.void
setMaxChildrenPerLine
(int nChildren) Sets the maximum number of children to request and allocate space for in this FlowBox’s orientation.void
setMinChildrenPerLine
(int nChildren) Sets the minimum number of children to line up in this FlowBox’s orientation before flowing.void
setRowSpacing
(int spacing) Sets the vertical space to add between children.void
Sets how selection works in this FlowBox.void
setSortFunc
(@Nullable FlowBoxSortFunc sortFunc) By setting a sort function on the this FlowBox, one can dynamically reorder the children of the box, based on the contents of the children.void
setVadjustment
(Adjustment adjustment) Hooks up an adjustment to focus handling in this FlowBox.void
Unselect all children of this FlowBox, if the selection mode allows it.void
unselectChild
(FlowBoxChild child) Unselects a single child of this FlowBox, if the selection mode allows it.Methods inherited from class org.gnome.gtk.Widget
actionSetEnabled, activateActionIfExists, activateDefault, activateWidget, addController, addCssClass, addMnemonicLabel, addTickCallback, allocate, childFocus, computeBounds, computeExpand, computeExpand, computePoint, computeTransform, contains, createPangoContext, createPangoLayout, cssChanged, directionChanged, disposeTemplate, dragCheckThreshold, emitDestroy, emitDirectionChanged, emitHide, emitKeynavFailed, emitMap, emitMnemonicActivate, emitMoveFocus, emitQueryTooltip, emitRealize, emitShow, emitStateFlagsChanged, emitUnmap, emitUnrealize, errorBell, focus, getAllocatedBaseline, getAllocatedHeight, getAllocatedWidth, getAllocation, getAncestor, getBaseline, getCanFocus, getCanTarget, getChildVisible, getClipboard, getColor, getCssClasses, getCssName, getCursor, getDefaultDirection, getDirection, getDisplay, getFirstChild, getFocusable, getFocusChild, getFocusOnClick, getFontMap, getFontOptions, getFrameClock, getHalign, getHasTooltip, getHeight, getHexpand, getHexpandSet, getLastChild, getLayoutManager, getMapped, getMarginBottom, getMarginEnd, getMarginStart, getMarginTop, getMemoryLayout, getName, getNative, getNextSibling, getOpacity, getOverflow, getPangoContext, getParent, getPreferredSize, getPrevSibling, getPrimaryClipboard, getRealized, getReceivesDefault, getRequestMode, getRoot, getScaleFactor, getSensitive, getSettings, getSize, getSizeRequest, getStateFlags, getStyleContext, getTemplateChild, getTooltipMarkup, getTooltipText, getValign, getVexpand, getVexpandSet, getVisible, getWidth, grabFocus, hasCssClass, hasDefault, hasFocus, hasVisibleFocus, hide, inDestruction, initTemplate, insertActionGroup, insertAfter, insertBefore, isAncestor, isDrawable, isFocus, isSensitive, isVisible, keynavFailed, listMnemonicLabels, map, measure, mnemonicActivate, moveFocus, observeChildren, observeControllers, onDestroy, onDirectionChanged, onHide, onKeynavFailed, onMap, onMnemonicActivate, onMoveFocus, onQueryTooltip, onRealize, onShow, onStateFlagsChanged, onUnmap, onUnrealize, pick, pick, queryTooltip, queueAllocate, queueDraw, queueResize, realize, removeController, removeCssClass, removeMnemonicLabel, removeTickCallback, root, setCanFocus, setCanTarget, setChildVisible, setCssClasses, setCursor, setCursorFromName, setDefaultDirection, setDirection, setFocusable, setFocusChild, setFocusOnClick, setFontMap, setFontOptions, setHalign, setHasTooltip, setHexpand, setHexpandSet, setLayoutManager, setMarginBottom, setMarginEnd, setMarginStart, setMarginTop, setName, setOpacity, setOverflow, setParent, setReceivesDefault, setSensitive, setSizeRequest, setStateFlags, setStateFlags, setTooltipMarkup, setTooltipText, setValign, setVexpand, setVexpandSet, setVisible, shouldLayout, show, sizeAllocate, sizeAllocate, snapshot, snapshotChild, stateFlagsChanged, systemSettingChanged, translateCoordinates, triggerTooltipQuery, unmap, unparent, unrealize, unroot, unsetStateFlags, unsetStateFlags
Methods inherited from class org.gnome.gobject.GObject
addToggleRef, addWeakPointer, bindProperty, bindProperty, bindProperty, bindPropertyFull, bindPropertyFull, bindPropertyWithClosures, bindPropertyWithClosures, compatControl, connect, connect, connect, constructed, disconnect, dispatchPropertiesChanged, dispose, dupData, dupQdata, emit, emitNotify, finalize_, forceFloating, freezeNotify, get, getData, getProperty, getProperty, getProperty, getQdata, getv, interfaceFindProperty, interfaceInstallProperty, interfaceListProperties, isFloating, newInstance, newInstance, newInstance, newInstance, newv, notify_, notify_, notifyByPspec, onNotify, ref, refSink, removeToggleRef, removeWeakPointer, replaceData, replaceQdata, runDispose, set, setData, setDataFull, setProperty, setProperty, setProperty, setQdata, setQdataFull, setv, stealData, stealQdata, takeRef, thawNotify, unref, watchClosure, weakRef, weakUnref, withProperties
Methods inherited from class org.gnome.gobject.TypeInstance
callParent, callParent, getPrivate, readGClass, writeGClass
Methods inherited from class io.github.jwharm.javagi.base.ProxyInstance
equals, handle, hashCode
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.gnome.gtk.Accessible
announce, getAccessibleParent, getAccessibleRole, getAtContext, getBounds, getFirstAccessibleChild, getNextAccessibleSibling, getPlatformState, resetProperty, resetRelation, resetState, setAccessibleParent, updateNextAccessibleSibling, updateProperty, updateRelation, updateState
Methods inherited from interface org.gnome.gtk.Buildable
getBuildableId
Methods inherited from interface org.gnome.gtk.Orientable
getOrientation, setOrientation
-
Constructor Details
-
FlowBox
Create a FlowBox proxy instance for the provided memory address.- Parameters:
address
- the memory address of the native object
-
FlowBox
public FlowBox()Creates aGtkFlowBox
.
-
-
Method Details
-
getType
-
asParent
Returns this instance as if it were its parent type. This is mostly synonymous to the Javasuper
keyword, but will set the native typeclass function pointers to the parent type. When overriding a native virtual method in Java, "chaining up" withsuper.methodName()
doesn't work, because it invokes the overridden function pointer again. To chain up, callasParent().methodName()
. This will call the native function pointer of this virtual method in the typeclass of the parent type. -
append
Addschild
to the end of this FlowBox.If a sort function is set, the widget will actually be inserted at the calculated position.
See also:
insert(org.gnome.gtk.Widget, int)
.- Parameters:
child
- theGtkWidget
to add
-
bindModel
public void bindModel(@Nullable @Nullable ListModel model, FlowBoxCreateWidgetFunc createWidgetFunc) Bindsmodel
to this FlowBox.If this FlowBox was already bound to a model, that previous binding is destroyed.
The contents of this FlowBox are cleared and then filled with widgets that represent items from
model
. this FlowBox is updated whenevermodel
changes. Ifmodel
isnull
, this FlowBox is left empty.It is undefined to add or remove widgets directly (for example, with
insert(org.gnome.gtk.Widget, int)
) while this FlowBox is bound to a model.Note that using a model is incompatible with the filtering and sorting functionality in
GtkFlowBox
. When using a model, filtering and sorting should be implemented by the model.- Parameters:
model
- theGListModel
to be bound to this FlowBoxcreateWidgetFunc
- a function that creates widgets for items
-
getActivateOnSingleClick
public boolean getActivateOnSingleClick()Returns whether children activate on single clicks.- Returns:
true
if children are activated on single click,false
otherwise
-
getChildAtIndex
Gets the nth child in the this FlowBox.- Parameters:
idx
- the position of the child- Returns:
- the child widget, which will
always be a
GtkFlowBoxChild
ornull
in case no child widget with the given index exists.
-
getChildAtPos
Gets the child in the (x
,y
) position.Both
x
andy
are assumed to be relative to the origin of this FlowBox.- Parameters:
x
- the x coordinate of the childy
- the y coordinate of the child- Returns:
- the child widget, which will
always be a
GtkFlowBoxChild
ornull
in case no child widget exists for the given x and y coordinates.
-
getColumnSpacing
public int getColumnSpacing()Gets the horizontal spacing.- Returns:
- the horizontal spacing
-
getHomogeneous
public boolean getHomogeneous()Returns whether the box is homogeneous.- Returns:
true
if the box is homogeneous.
-
getMaxChildrenPerLine
public int getMaxChildrenPerLine()Gets the maximum number of children per line.- Returns:
- the maximum number of children per line
-
getMinChildrenPerLine
public int getMinChildrenPerLine()Gets the minimum number of children per line.- Returns:
- the minimum number of children per line
-
getRowSpacing
public int getRowSpacing()Gets the vertical spacing.- Returns:
- the vertical spacing
-
getSelectedChildren
Creates a list of all selected children.- Returns:
- A
GList
containing theGtkWidget
for each selected child. Free with g_list_free() when done.
-
getSelectionMode
Gets the selection mode of this FlowBox.- Returns:
- the
GtkSelectionMode
-
insert
Inserts thewidget
into this FlowBox atposition
.If a sort function is set, the widget will actually be inserted at the calculated position.
If
position
is -1, or larger than the total number of children in the this FlowBox, then thewidget
will be appended to the end.- Parameters:
widget
- theGtkWidget
to addposition
- the position to insertchild
in
-
invalidateFilter
public void invalidateFilter()Updates the filtering for all children.Call this function when the result of the filter function on the this FlowBox is changed due to an external factor. For instance, this would be used if the filter function just looked for a specific search term, and the entry with the string has changed.
-
invalidateSort
public void invalidateSort()Updates the sorting for all children.Call this when the result of the sort function on this FlowBox is changed due to an external factor.
-
prepend
Addschild
to the start of this FlowBox.If a sort function is set, the widget will actually be inserted at the calculated position.
See also:
insert(org.gnome.gtk.Widget, int)
.- Parameters:
child
- theGtkWidget
to add
-
remove
Removes a child from this FlowBox.- Parameters:
widget
- the child widget to remove
-
removeAll
public void removeAll()Removes all children from this FlowBox.This function does nothing if this FlowBox is backed by a model.
-
selectAll
public void selectAll()Select all children of this FlowBox, if the selection mode allows it. -
selectChild
Selects a single child of this FlowBox, if the selection mode allows it.- Parameters:
child
- a child of this FlowBox
-
selectedForeach
Calls a function for each selected child.Note that the selection cannot be modified from within this function.
- Parameters:
func
- the function to call for each selected child
-
setActivateOnSingleClick
public void setActivateOnSingleClick(boolean single) Ifsingle
istrue
, children will be activated when you click on them, otherwise you need to double-click.- Parameters:
single
-true
to emit child-activated on a single click
-
setColumnSpacing
public void setColumnSpacing(int spacing) Sets the horizontal space to add between children.- Parameters:
spacing
- the spacing to use
-
setFilterFunc
By setting a filter function on the this FlowBox one can decide dynamically which of the children to show.For instance, to implement a search function that only shows the children matching the search terms.
The
filterFunc
will be called for each child after the call, and it will continue to be called each time a child changes (viaFlowBoxChild.changed()
) or wheninvalidateFilter()
is called.Note that using a filter function is incompatible with using a model (see
bindModel(org.gnome.gio.ListModel, org.gnome.gtk.FlowBoxCreateWidgetFunc)
).- Parameters:
filterFunc
- callback that lets you filter which children to show
-
setHadjustment
Hooks up an adjustment to focus handling in this FlowBox.The adjustment is also used for autoscrolling during rubberband selection. See
ScrolledWindow.getHadjustment()
for a typical way of obtaining the adjustment, andsetVadjustment(org.gnome.gtk.Adjustment)
for setting the vertical adjustment.The adjustments have to be in pixel units and in the same coordinate system as the allocation for immediate children of the box.
- Parameters:
adjustment
- an adjustment which should be adjusted when the focus is moved among the descendents ofcontainer
-
setHomogeneous
public void setHomogeneous(boolean homogeneous) Sets whether or not all children of this FlowBox are given equal space in the box.- Parameters:
homogeneous
-true
to create equal allotments,false
for variable allotments
-
setMaxChildrenPerLine
public void setMaxChildrenPerLine(int nChildren) Sets the maximum number of children to request and allocate space for in this FlowBox’s orientation.Setting the maximum number of children per line limits the overall natural size request to be no more than
nChildren
children long in the given orientation.- Parameters:
nChildren
- the maximum number of children per line
-
setMinChildrenPerLine
public void setMinChildrenPerLine(int nChildren) Sets the minimum number of children to line up in this FlowBox’s orientation before flowing.- Parameters:
nChildren
- the minimum number of children per line
-
setRowSpacing
public void setRowSpacing(int spacing) Sets the vertical space to add between children.- Parameters:
spacing
- the spacing to use
-
setSelectionMode
Sets how selection works in this FlowBox.- Parameters:
mode
- the new selection mode
-
setSortFunc
By setting a sort function on the this FlowBox, one can dynamically reorder the children of the box, based on the contents of the children.The
sortFunc
will be called for each child after the call, and will continue to be called each time a child changes (viaFlowBoxChild.changed()
) and wheninvalidateSort()
is called.Note that using a sort function is incompatible with using a model (see
bindModel(org.gnome.gio.ListModel, org.gnome.gtk.FlowBoxCreateWidgetFunc)
).- Parameters:
sortFunc
- the sort function
-
setVadjustment
Hooks up an adjustment to focus handling in this FlowBox.The adjustment is also used for autoscrolling during rubberband selection. See
ScrolledWindow.getVadjustment()
for a typical way of obtaining the adjustment, andsetHadjustment(org.gnome.gtk.Adjustment)
for setting the horizontal adjustment.The adjustments have to be in pixel units and in the same coordinate system as the allocation for immediate children of the box.
- Parameters:
adjustment
- an adjustment which should be adjusted when the focus is moved among the descendents ofcontainer
-
unselectAll
public void unselectAll()Unselect all children of this FlowBox, if the selection mode allows it. -
unselectChild
Unselects a single child of this FlowBox, if the selection mode allows it.- Parameters:
child
- a child of this FlowBox
-
onActivateCursorChild
public SignalConnection<FlowBox.ActivateCursorChildCallback> onActivateCursorChild(FlowBox.ActivateCursorChildCallback handler) Emitted when the user activates thebox
.This is a keybinding signal.
- Parameters:
handler
- the signal handler- Returns:
- a signal handler ID to keep track of the signal connection
- See Also:
-
emitActivateCursorChild
public void emitActivateCursorChild()Emits the "activate-cursor-child" signal. SeeonActivateCursorChild(org.gnome.gtk.FlowBox.ActivateCursorChildCallback)
. -
onChildActivated
public SignalConnection<FlowBox.ChildActivatedCallback> onChildActivated(FlowBox.ChildActivatedCallback handler) Emitted when a child has been activated by the user.- Parameters:
handler
- the signal handler- Returns:
- a signal handler ID to keep track of the signal connection
- See Also:
-
emitChildActivated
Emits the "child-activated" signal. SeeonChildActivated(org.gnome.gtk.FlowBox.ChildActivatedCallback)
. -
onMoveCursor
public SignalConnection<FlowBox.MoveCursorCallback> onMoveCursor(FlowBox.MoveCursorCallback handler) Emitted when the user initiates a cursor movement.This is a keybinding signal. Applications should not connect to it, but may emit it with g_signal_emit_by_name() if they need to control the cursor programmatically.
The default bindings for this signal come in two variants, the variant with the Shift modifier extends the selection, the variant without the Shift modifier does not. There are too many key combinations to list them all here.
←
,→
,↑
,↓
move by individual childrenHome
,End
move to the ends of the boxPgUp
,PgDn
move vertically by pages
- Parameters:
handler
- the signal handler- Returns:
- a signal handler ID to keep track of the signal connection
- See Also:
-
emitMoveCursor
Emits the "move-cursor" signal. SeeonMoveCursor(org.gnome.gtk.FlowBox.MoveCursorCallback)
. -
onSelectAll
Emitted to select all children of the box, if the selection mode permits it.This is a keybinding signal.
The default bindings for this signal is
Ctrl
-a
.- Parameters:
handler
- the signal handler- Returns:
- a signal handler ID to keep track of the signal connection
- See Also:
-
emitSelectAll
public void emitSelectAll()Emits the "select-all" signal. SeeonSelectAll(org.gnome.gtk.FlowBox.SelectAllCallback)
. -
onSelectedChildrenChanged
public SignalConnection<FlowBox.SelectedChildrenChangedCallback> onSelectedChildrenChanged(FlowBox.SelectedChildrenChangedCallback handler) Emitted when the set of selected children changes.Use
selectedForeach(org.gnome.gtk.FlowBoxForeachFunc)
orgetSelectedChildren()
to obtain the selected children.- Parameters:
handler
- the signal handler- Returns:
- a signal handler ID to keep track of the signal connection
- See Also:
-
emitSelectedChildrenChanged
public void emitSelectedChildrenChanged()Emits the "selected-children-changed" signal. SeeonSelectedChildrenChanged(org.gnome.gtk.FlowBox.SelectedChildrenChangedCallback)
. -
onToggleCursorChild
public SignalConnection<FlowBox.ToggleCursorChildCallback> onToggleCursorChild(FlowBox.ToggleCursorChildCallback handler) Emitted to toggle the selection of the child that has the focus.This is a keybinding signal.
The default binding for this signal is
Ctrl
-Space
.- Parameters:
handler
- the signal handler- Returns:
- a signal handler ID to keep track of the signal connection
- See Also:
-
emitToggleCursorChild
public void emitToggleCursorChild()Emits the "toggle-cursor-child" signal. SeeonToggleCursorChild(org.gnome.gtk.FlowBox.ToggleCursorChildCallback)
. -
onUnselectAll
public SignalConnection<FlowBox.UnselectAllCallback> onUnselectAll(FlowBox.UnselectAllCallback handler) Emitted to unselect all children of the box, if the selection mode permits it.This is a keybinding signal.
The default bindings for this signal is
Ctrl
-Shift
-a
.- Parameters:
handler
- the signal handler- Returns:
- a signal handler ID to keep track of the signal connection
- See Also:
-
emitUnselectAll
public void emitUnselectAll()Emits the "unselect-all" signal. SeeonUnselectAll(org.gnome.gtk.FlowBox.UnselectAllCallback)
. -
builder
AFlowBox.Builder
object constructs aFlowBox
with the specified properties. Use the variousset...()
methods to set properties, and finish construction withFlowBox.Builder.build()
.
-