Trait tuix::PropSet[]

pub trait PropSet: AsEntity {
Show 85 methods fn emit(&self, state: &mut State, message: impl Message) -> Entity
    where
        Self: 'static
, { ... }
fn emit_to(
        &self,
        state: &mut State,
        target: Entity,
        message: impl Message
    ) -> Entity { ... }
fn add_listener<F, W>(&self, state: &mut State, listener: F) -> Entity
    where
        F: 'static + Fn(&mut W, &mut State, Entity, &mut Event),
        W: Widget
, { ... }
fn set_name(self, state: &mut State, name: &str) -> Entity { ... }
fn class(self, state: &mut State, class_name: &str) -> Entity { ... }
fn get_parent(self, state: &mut State) -> Option<Entity> { ... }
fn set_disabled(self, state: &mut State, value: bool) -> Entity { ... }
fn set_checked(self, state: &mut State, value: bool) -> Entity { ... }
fn set_over(self, state: &mut State, value: bool) -> Entity { ... }
fn set_active(self, state: &mut State, value: bool) -> Entity { ... }
fn set_hover(self, state: &mut State, value: bool) -> Entity { ... }
fn set_focus(self, state: &mut State, value: bool) -> Entity { ... }
fn set_element(self, state: &mut State, value: &str) -> Entity { ... }
fn set_id(self, state: &mut State, value: &str) -> Entity { ... }
fn set_visibility(self, state: &mut State, value: Visibility) -> Entity { ... }
fn set_hoverable(self, state: &mut State, value: bool) -> Entity { ... }
fn set_focusable(self, state: &mut State, value: bool) -> Entity { ... }
fn set_overflow(self, state: &mut State, value: Overflow) -> Entity { ... }
fn set_display(self, state: &mut State, value: Display) -> Entity { ... }
fn set_opacity(self, state: &mut State, value: f32) -> Entity { ... }
fn set_rotate(self, state: &mut State, value: f32) -> Entity { ... }
fn set_translate(self, state: &mut State, value: (f32, f32)) -> Entity { ... }
fn set_scale(self, state: &mut State, value: f32) -> Entity { ... }
fn set_position_type(self, state: &mut State, value: PositionType) -> Entity { ... }
fn set_space(self, state: &mut State, value: Units) -> Entity { ... }
fn set_left(self, state: &mut State, value: Units) -> Entity { ... }
fn set_right(self, state: &mut State, value: Units) -> Entity { ... }
fn set_top(self, state: &mut State, value: Units) -> Entity { ... }
fn set_bottom(self, state: &mut State, value: Units) -> Entity { ... }
fn set_min_left(self, state: &mut State, value: Units) -> Entity { ... }
fn set_max_left(self, state: &mut State, value: Units) -> Entity { ... }
fn set_min_right(self, state: &mut State, value: Units) -> Entity { ... }
fn set_max_right(self, state: &mut State, value: Units) -> Entity { ... }
fn set_min_top(self, state: &mut State, value: Units) -> Entity { ... }
fn set_max_top(self, state: &mut State, value: Units) -> Entity { ... }
fn set_min_bottom(self, state: &mut State, value: Units) -> Entity { ... }
fn set_max_bottom(self, state: &mut State, value: Units) -> Entity { ... }
fn set_width(self, state: &mut State, value: Units) -> Entity { ... }
fn set_height(self, state: &mut State, value: Units) -> Entity { ... }
fn set_min_width(self, state: &mut State, value: Units) -> Entity { ... }
fn set_max_width(self, state: &mut State, value: Units) -> Entity { ... }
fn set_min_height(self, state: &mut State, value: Units) -> Entity { ... }
fn set_max_height(self, state: &mut State, value: Units) -> Entity { ... }
fn set_text(self, state: &mut State, text: &str) -> Entity { ... }
fn set_font(self, state: &mut State, font: &str) -> Entity { ... }
fn set_font_size(self, state: &mut State, value: f32) -> Entity { ... }
fn set_color(self, state: &mut State, value: Color) -> Entity { ... }
fn set_tooltip(self, state: &mut State, text: &str) -> Entity { ... }
fn set_background_color(self, state: &mut State, value: Color) -> Entity { ... }
fn set_background_image(self, state: &mut State, value: Rc<()>) -> Entity { ... }
fn set_border_width(self, state: &mut State, value: Units) -> Entity { ... }
fn set_border_color(self, state: &mut State, value: Color) -> Entity { ... }
fn set_border_corner_shape(
        self,
        state: &mut State,
        value: BorderCornerShape
    ) -> Entity { ... }
fn set_border_top_left_shape(
        self,
        state: &mut State,
        value: BorderCornerShape
    ) -> Entity { ... }
fn set_border_top_right_shape(
        self,
        state: &mut State,
        value: BorderCornerShape
    ) -> Entity { ... }
fn set_border_bottom_left_shape(
        self,
        state: &mut State,
        value: BorderCornerShape
    ) -> Entity { ... }
fn set_border_bottom_right_shape(
        self,
        state: &mut State,
        value: BorderCornerShape
    ) -> Entity { ... }
fn set_border_radius(self, state: &mut State, value: Units) -> Entity { ... }
fn set_border_radius_top_left(
        self,
        state: &mut State,
        value: Units
    ) -> Entity { ... }
fn set_border_radius_top_right(
        self,
        state: &mut State,
        value: Units
    ) -> Entity { ... }
fn set_border_radius_bottom_left(
        self,
        state: &mut State,
        value: Units
    ) -> Entity { ... }
fn set_border_radius_bottom_right(
        self,
        state: &mut State,
        value: Units
    ) -> Entity { ... }
fn set_outer_shadow_h_offset(self, state: &mut State, value: Units) -> Self { ... }
fn set_outer_shadow_v_offset(self, state: &mut State, value: Units) -> Self { ... }
fn set_outer_shadow_color(self, state: &mut State, value: Color) -> Self { ... }
fn set_outer_shadow_blur(self, state: &mut State, value: Units) -> Self { ... }
fn set_clip_widget(self, state: &mut State, value: Entity) -> Entity { ... }
fn set_z_order(self, state: &mut State, value: i32) -> Entity { ... }
fn set_next_focus(self, state: &mut State, value: Entity) -> Entity { ... }
fn set_prev_focus(self, state: &mut State, value: Entity) -> Entity { ... }
fn set_focus_order(
        self,
        state: &mut State,
        prev: Entity,
        next: Entity
    ) -> Entity { ... }
fn set_layout_type(&self, state: &mut State, value: LayoutType) -> Entity { ... }
fn set_child_space(&self, state: &mut State, value: Units) -> Entity { ... }
fn set_child_left(&self, state: &mut State, value: Units) -> Entity { ... }
fn set_row_between(&self, state: &mut State, value: Units) -> Entity { ... }
fn set_col_between(&self, state: &mut State, value: Units) -> Entity { ... }
fn set_child_right(&self, state: &mut State, value: Units) -> Entity { ... }
fn set_child_top(&self, state: &mut State, value: Units) -> Entity { ... }
fn set_child_bottom(&self, state: &mut State, value: Units) -> Entity { ... }
fn set_grid_rows(
        &self,
        state: &mut State,
        value: Vec<Units, Global>
    ) -> Entity { ... }
fn set_grid_cols(
        &self,
        state: &mut State,
        value: Vec<Units, Global>
    ) -> Entity { ... }
fn set_row_index(&self, state: &mut State, value: usize) -> Entity { ... }
fn set_col_index(&self, state: &mut State, value: usize) -> Entity { ... }
fn set_row_span(&self, state: &mut State, value: usize) -> Entity { ... }
fn set_col_span(self, state: &mut State, value: usize) -> Self { ... }
}

Provided methods

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

Implementors