Struct tuix::Entity[]

pub struct Entity(_);

Implementations

Creates a null entity

A null entity can be used as a placeholder within a widget struct but cannot be used to get/set properties

Creates a root entity

The root entity represents the main window and is alwys valid. The root entity can be used to set properties on the window, such as background color, as well as sending events to the window such as Restyle and Redraw events.

Returns true if the entity is null

Returns the index of the entity

Returns the generation of the entity

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

Formats the value using the given formatter. Read more

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

A type representing an external store in case the position and size data is not be owned by the node itself (e.g. ECS)

Get the layout type of the node Read more

Get the position type of the node Read more

Get the desired space to the left of the node in units

Get the desired min_left of the node in units

Get the desired min_left of the node in units

Get the desired space to the right of the node in units

Get the desired min_left of the node in units

Get the desired min_left of the node in units

Get the desired space above the node in units

Get the desired min_left of the node in units

Get the desired min_left of the node in units

Get the desired space below the node in units

Get the desired min_left of the node in units

Get the desired min_left of the node in units

Get the desired width of the node in units

Get the desired min_width of the node in units

Get the desired max_width of the node in units

Get the desired height of the node in units

Get the desired min_height of the node in units

Get the desired max_height of the node in units

Get the desired space to the left of all child nodes in units Read more

Get the desired space to the right of all child nodes in units Read more

Get the desired space above all child nodes in units Read more

Get the desired space below all child nodes in units Read more

Get the desired grid columns as a vector of units

Get the desired grid rows as a vector of units

Get the desired space between children in units when stacked in a column

Get the desired space between children in units when stacked in a row

Get the desired row_index of the node in units

Get the desired col_index of the node in units

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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

Performs the conversion.

Performs the conversion.

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

Helper method for sending an event to self with default propagation

Helper method for sending an event to target with default propagation

Add a class name to an entity

The resulting type after obtaining ownership.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

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

Converts the given value to a String. 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.