package bogue

  1. Overview
  2. Docs

Adjust various spacings and sizes of layouts

These functions do not take effect immediately! They will be executed, in the order of their invocation, at the next graphics frame (or at startup if they are invoked before the start of the mainloop).

Dependency graph
val hfill : ?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.

val vfill : ?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.

val full_width : ?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_hfill : ?margin:int -> Layout.t -> unit

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

val make_vfill : ?margin:int -> Layout.t -> unit
val vcenter : Layout.t -> unit

Will vertically center the layout in its house.