Package: gtk
Class gtk:flow-box
Superclassesgtk:widget, gobject:initially-unowned, gtk:accessible, gtk:buildable, gtk:constraint-target, gtk:orientable, gobject:object, common-lisp:standard-object, common-lisp:t Documented Subclasses
None
Direct SlotsDetails The gtk:flow-box widget positions child widgets in sequence
according to its orientation. ![]() 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 gtk:flow-box widget 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 gtk:scrolled-window widget to enable that. The children of a gtk:flow-box widget can be dynamically sorted and filtered. Although a gtk:flow-box widget must have only gtk:flow-box-child child widgets, you can add any kind of widget to it via the gtk:flow-box-insert function, and a gtk:flow-box-child widget will automatically be inserted between the flow box and the widget. CSS nodesflowbox ├── flowboxchild │ ╰── <child> ├── flowboxchild │ ╰── <child> │ ╰── [rubberband]The gtk:flow-box implementation uses a single CSS node with name flowbox. The gtk:flow-box-child implementation uses a single CSS node with name flowboxchild. For rubberband selection, a subnode with name rubberband is used. AccessibilitySignal DetailsThe "activate-cursor-child" signallambda (flowbox) :action
The "child-activated" signallambda (flowbox child) :run-last
The "move-cursor" signallambda (flowbox step count) :action
The default bindings for this signal come in two variants, the variant with the Shift modifier extends the selection, the variant without the Shift modifer does not. There are too many key combinations to list them all here. Arrow keys move by individual children. Home/End keys move to the ends of the box. PageUp/PageDown keys move vertically by pages. The "select-all" signallambda (flowbox) :action
The "selected-children-changed" signallambda (flowbox) :run-first
The "toggle-cursor-child" signallambda (flowbox) :action
The "unselect-all" signallambda (flowbox) :action
| Returned bySlot Access FunctionsInherited Slot Access FunctionsSee also |
2024-4-14