Struct tuix_internal::events::Builder[][src]

pub struct Builder<'a, T> {
    pub entity: Entity,
    pub state: &'a mut State,
    // some fields omitted
}
Expand description

Contains an entity id and a mutable reference to state and can be used to set properties of a widget at build time

Fields

entity: Entitystate: &'a mut State

Implementations

Returns a mutable reference to the State

Returns the entity id contained within the builder

Sets the general callback for pressing a widget

Adds a class name to the entity

Sets the element name of the entity

Sets the id of the entity

Sets whether the entity can be hovered

Sets whether the entity can be focused

Sets the opacity of the entity

Sets the checked state of the entity

Sets the z-order of the entity

Sets the clip widget of the entity. The clip bounds of the entity are set to the bounds of the clip widget

Sets the display type of the entity

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

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.