bogue

GUI library for ocaml, with animations, based on SDL2
Library bogue
Module Bogue . Space
Dependency graph
val hfill : ?right_margin:int -> unit -> Layout.t

When used in a Layout.flat structure, this special empty layout will automatically expand in order to fill the available width in the parent house. The other inhabitants keep the width they had at the execution of the hfill invocation. Their height is resized as usual. Only one hfill layout should be used in a given house.

val make_hfill : ?right_margin:int -> Layout.t -> unit
val full_width : ?right_margin:int -> ?left_margin:int -> Layout.t -> unit

This will set the width of the room (layout) in order to occupy the whole width of its house.

val make_vfill : ?bottom_margin:int -> Layout.t -> unit

Like hfill, but applies to the specified layout instead of creating an empty one.

val vfill : ?bottom_margin:int -> unit -> Layout.t

When used in a Layout.tower structure, this special empty layout will automatically expand in order to fill the available height in the parent house. See hfill.

val full_height : ?top_margin:int -> ?bottom_margin:int -> Layout.t -> unit
val keep_bottom : ?reset_scaling:bool -> ?margin:int -> Layout.t -> unit
val keep_right : ?reset_scaling:bool -> ?margin:int -> Layout.t -> unit