logo
pub struct WindowProperties {
Show 27 fields pub title: String, pub text_size: f32, pub moveable: bool, pub closable: bool, pub resizable: bool, pub focusable: bool, pub collapsible: bool, pub title_margin_left: f32, pub title_margin_top: f32, pub title_margin_right: f32, pub title_height: f32, pub key: Key, pub x: f32, pub y: f32, pub w: f32, pub h: f32, pub w_min: f32, pub h_min: f32, pub w_max: f32, pub h_max: f32, pub parent: Option<Id>, pub depth: f32, pub visible: bool, pub mouse_input: bool, pub key_input: bool, pub renderable: bool, pub internal_visible: bool,
}
Expand description

Options for constructing a window

Fields

title: String

The title of the window to display as a label

text_size: f32

The text size for the title text

moveable: bool

Whether or not the window can be moved by it“s title bar

closable: bool

Whether or not the window can be closed by the top right corner

resizable: bool

Whether or not the window can be resized by it“s bottom right corner

focusable: bool

Whether or not the window is focusable (bring to front on click)

collapsible: bool

Whether or not the window is collapsible

title_margin_left: f32

The x offset of the title bar (draggable label area)

title_margin_top: f32

The y offset of the title bar (draggable label area)

title_margin_right: f32

The offset of the title bar from the right edge (draggable label area)

title_height: f32

The height of the title bar (draggable label area)

key: Key

The key to identify widget

x: f32

The control x position, relative to its container

y: f32

The control y position, relative to its container

w: f32

The control width

h: f32

The control height

w_min: f32

The control minimum width

h_min: f32

The control minimum height

w_max: f32

The control maximum width

h_max: f32

The control maximum height

parent: Option<Id>

The control parent, if any

depth: f32

The control depth. Usually set internally

visible: bool

Whether or not the control is visible at creation

mouse_input: bool

Whether or not the control responds to mouse input

key_input: bool

Whether or not the control responds to key input

renderable: bool

Whether or not the control emits render signals from the canvas render call

internal_visible: bool

Internal. Internal parent visibility for creating sub controls.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

The widdget key

The control x position, relative to its container

The control y position, relative to its container

The control width

The control height

The control minimum width

The control minimum height

The control maximum width

The control maximum height

The control parent, if any

The control depth. Usually set internally

Whether or not the control is visible at creation

Whether or not the control responds to mouse input

Whether or not the control responds to key input

Whether or not the control emits render signals from the canvas render call

Internal. Internal parent visibility for creating sub controls.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Typed getter

Inspect the context.

Inspect the context.

Inspect the context.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Convert into color

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Sets value as a parameter of self.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.