Struct tuix::Builder [−]
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: Entity
state: &'a mut State
Implementations
impl<'a, T> Builder<'a, T>
impl<'a, T> Builder<'a, T>
Sets the general callback for pressing a widget
pub fn set_element(self, element: &str) -> Builder<'a, T>
pub fn set_element(self, element: &str) -> Builder<'a, T>
Sets the element name of the entity
pub fn set_disabled(self, value: bool) -> Builder<'a, T>
pub fn set_hoverable(self, value: bool) -> Builder<'a, T>
pub fn set_hoverable(self, value: bool) -> Builder<'a, T>
Sets whether the entity can be hovered
pub fn set_focusable(self, value: bool) -> Builder<'a, T>
pub fn set_focusable(self, value: bool) -> Builder<'a, T>
Sets whether the entity can be focused
pub fn set_opacity(self, value: f32) -> Builder<'a, T>
pub fn set_opacity(self, value: f32) -> Builder<'a, T>
Sets the opacity of the entity
pub fn set_checked(self, value: bool) -> Builder<'a, T>
pub fn set_checked(self, value: bool) -> Builder<'a, T>
Sets the checked state of the entity
pub fn set_z_order(self, value: i32) -> Builder<'a, T>
pub fn set_z_order(self, value: i32) -> Builder<'a, T>
Sets the z-order of the entity
pub fn set_clip_widget(self, value: Entity) -> Builder<'a, T>
pub fn set_clip_widget(self, value: Entity) -> Builder<'a, T>
Sets the clip widget of the entity. The clip bounds of the entity are set to the bounds of the clip widget
pub fn set_tooltip(self, value: &str) -> Builder<'a, T>
pub fn set_display(self, value: Display) -> Builder<'a, T>
pub fn set_display(self, value: Display) -> Builder<'a, T>
Sets the display type of the entity