package stk
Install
dune-project
Dependency
Authors
Maintainers
Sources
md5=beeed5752ff67b3abeb1bcf8fb6b9098
sha512=c1603ae66956a674864ad875212fdbfc8d8016983202108d492b0d8722106b1e982e9fdc04b20d1b7adf5013343252fc5173851751906271731bc81d70dc789c
doc/stk/Stk/Paned/index.html
Module Stk.PanedSource
Paned widgets.
A handle position, defined either as percentage or absolute position.
Property "handle_positions", to store the positions of the handles in a paned widget.
val css_handle_positions_prop :
?inherited:bool ->
?def:[ `Absolute of int | `Percent of float ] option list ->
[ `Absolute of int | `Percent of float ] option list Props.prop ->
[ `Absolute of int | `Percent of float ] option list Css.P.propHow to define handle position when the user moves it: as percentage or absolute value. This changes the way handle positions are updated when the paned widget is resized: with `Percent, ratios between children will be kept, but with `Absolute the handles will remain at the same position.
Property "user_handle_positionning".
val css_user_handle_positioning_prop :
?inherited:bool ->
?def:[ `Absolute | `Percent ] ->
[ `Absolute | `Percent ] Props.prop ->
[ `Absolute | `Percent ] Css.P.propProperty "paned_handle_props" to define appearance of handles in paned widget. Default set Props.width to 2 and Props.fg_color to Color.grey.
Property "paned_user_set_handle_live_update" defines whether to update paned widget on each move of a handle by user (true), or wait for the user to end moving the handle (false). Default is true. It may be useful to set it to false when computation of children sizes may take some time.
class paned : ?classes:string list option -> ?name:string option -> ?props:Props.t option -> ?wdata:
Widget.wdata
option -> unit -> object ... endPaned widget.
val paned :
Props.orientation ->
?classes:string list ->
?name:string ->
?user_set_handle_live_update:bool ->
?props:Props.t ->
?wdata:Widget.wdata ->
?pack:(Widget.widget -> unit) ->
unit ->
panedval hpaned :
?classes:string list ->
?name:string ->
?user_set_handle_live_update:bool ->
?props:Props.t ->
?wdata:Widget.wdata ->
?pack:(Widget.widget -> unit) ->
unit ->
panedval vpaned :
?classes:string list ->
?name:string ->
?user_set_handle_live_update:bool ->
?props:Props.t ->
?wdata:Widget.wdata ->
?pack:(Widget.widget -> unit) ->
unit ->
paned