plushie/widget/window

Window widget builder.

Types

pub opaque type Window
pub type WindowLevel {
  Normal
  AlwaysOnTop
  AlwaysOnBottom
}

Constructors

  • Normal
  • AlwaysOnTop
  • AlwaysOnBottom

Values

pub fn a11y(w: Window, a: a11y.A11y) -> Window

Set accessibility properties for this widget.

pub fn blur(w: Window, b: Bool) -> Window

Set whether background blur is enabled.

pub fn build(w: Window) -> node.Node

Build the window into a renderable Node.

pub fn closeable(w: Window, c: Bool) -> Window

Set whether the window has a close button.

pub fn decorations(w: Window, d: Bool) -> Window

Set whether window decorations are shown.

pub fn exit_on_close_request(w: Window, e: Bool) -> Window

Set whether to exit when close is requested.

pub fn extend(w: Window, children: List(node.Node)) -> Window

Add multiple child nodes.

pub fn fullscreen(w: Window, f: Bool) -> Window

Set whether the window is fullscreen.

pub fn height(w: Window, height: Float) -> Window

Set the height.

pub fn level(w: Window, l: WindowLevel) -> Window

Set the window stacking level.

pub fn max_size(w: Window, width: Float, height: Float) -> Window

Set the maximum window size.

pub fn maximized(w: Window, m: Bool) -> Window

Set whether the window is maximized.

pub fn min_size(w: Window, width: Float, height: Float) -> Window

Set the minimum window size.

pub fn minimizable(w: Window, m: Bool) -> Window

Set whether the window can be minimized.

pub fn new(id: String) -> Window

Create a new window builder.

pub fn position(w: Window, x: Float, y: Float) -> Window

Set the window position in screen coordinates.

pub fn push(w: Window, child: node.Node) -> Window

Add a child node.

pub fn resizable(w: Window, r: Bool) -> Window

Set whether the window is resizable.

pub fn size(w: Window, width: Float, height: Float) -> Window

Set both width and height at once.

pub fn title(w: Window, t: String) -> Window

Set the window title.

pub fn transparent(w: Window, t: Bool) -> Window

Set whether the window background is transparent.

pub fn visible(w: Window, v: Bool) -> Window

Set whether the window is visible.

pub fn width(w: Window, width: Float) -> Window

Set the width.

Search Document