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
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
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. 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.
The type returned in the event of a conversion error.
impl<T> Node for T where
T: 'static,