package stk
Install
dune-project
Dependency
Authors
Maintainers
Sources
md5=c334ffabde8b710f1eba6699db0f601a
sha512=7978e3f10bc196ee6177ded9ae0313a5ba65e1a74e501fbecbe5ebc216ca6ee7117deaff5bc4c414083a4a55851a81e5dedaa8d0a880ad72689b3f56f3b064f5
doc/stk/Stk/Flex/class-flex/index.html
Class Flex.flexSource
inherit Stk.Container.containerProperties
method orientation : Stk.Props.orientationmethod set_orientation : Stk.Props.orientation -> unitmethod justification : justificationmethod set_justification : justification -> unitmethod items_alignment : item_alignmentmethod set_items_alignment : item_alignment -> unitmethod content_alignment : content_alignmentmethod set_content_alignment : content_alignment -> unitAccessing children
method widget_data : Stk.Widget.widget -> 'a option optionf#widget_data w returns the wdata associated the given widget w, or None if w is not a child of f.
method widget_index : Stk.Widget.widget -> int optionf#widget_index w returns the 0-based position of w in the children, or None if w is not a child of f.
method children_widgets : Stk.Widget.widget listf#children_widgets returns the list of children widgets.
method reorder_child : Stk.Widget.widget -> int -> unitf#reorder_child w pos moves w to pos in the children list. Does nothing if w is not a child of f.
Packing/unpacking widgets
method pack : ?pos:int ->
?data:'a ->
?kind:item_kind ->
Stk.Widget.widget ->
unitf#pack w adds w to the children of f if it is not yet a child of f. Optional arguments are:
posindicate the 0-based position to insertw. Default is to appendwafter all children.dataassociates the givendatatow.kindspecifies howwmust be considered when arranging elements. Default is not to specify any kind, so that this property for this widget has default value (seeFlex.item_kind).
method pack_space : ?props:Stk.Props.t -> ?pos:int -> ?data:'a -> unit -> spacef#pack_space () creates a Flex.space widget and packs it. See flex.pack for arguments. Returns the created widget.
method pack_break : ?props:Stk.Props.t -> ?pos:int -> ?data:'a -> unit -> spacef#pack_break () creates a Flex.space widget with `Break item kind and packs it. See flex.pack for arguments. Returns the created widget.
method unpack : Stk.Widget.widget -> unitf#unpack w removes w from children. Does nothing if w is not a child of f.