logo
pub trait Element where
    Self: AsRef<RefCell<WidgetComponent>>, 
{
Show 77 methods fn children_at_point(
        &self,
        x: f32,
        y: f32,
        into: Option<Vec<WidgetComponent>>
    ) -> Vec<WidgetComponent>Notable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
    A: Allocator
{ ... } fn topmost_child_at_point(
        &self,
        x: f32,
        y: f32
    ) -> Option<&Box<dyn Element>> { ... } fn contains(&self, x: f32, y: f32) -> bool { ... } fn onclipchanged(&self) { ... } fn clip(&self) -> Option<Id> { ... } fn set_clip(&self, other: Option<Id>) { ... } fn set_visible_only(&self, visible: bool) { ... } fn visible(&self) -> bool { ... } fn vis_state(&self) -> bool { ... } fn set_visible(&self, visible: bool) { ... } fn find_top_parent(
        &self,
        from: Option<&WidgetComponent>
    ) -> Option<WidgetComponent> { ... } fn add(&self, child: &dyn Element) { ... } fn remove(&self, child: Id) { ... } fn children_bounds(&self) -> ChildBounds { ... } fn render(&self) { ... } fn keyup(&self, e: &mut KeyEvent) { ... } fn keydown(&self, e: &mut KeyEvent) { ... } fn textinput(&self, e: &mut TextEvent) { ... } fn mousemove(&self, e: &mut MouseEvent) { ... } fn mouseup(&self, e: &mut MouseEvent) { ... } fn mousewheel(&self, e: &mut MouseEvent) { ... } fn mousedown(&self, e: &mut MouseEvent) { ... } fn mouseenter(&self, e: &mut MouseEvent) { ... } fn mouseleave(&self, e: &mut MouseEvent) { ... } fn destroy_children(&self) { ... } fn destroy(&self) { ... } fn update(&self, dt: f32) { ... } fn focus(&self) { ... } fn unfocus(&self) { ... } fn capture(&self) { ... } fn uncapture(&self) { ... } fn mark(&self) { ... } fn unmark(&self) { ... } fn refresh_bounds(&self) { ... } fn bounds_changed(&self, dx: f32, dy: f32, dw: f32, dh: f32) { ... } fn set_pos(&self, x: f32, y: f32) { ... } fn set_size(&self, w: f32, h: f32) { ... } fn destroyed(&self) -> bool { ... } fn right(&self) -> f32 { ... } fn bottom(&self) -> f32 { ... } fn x(&self) -> f32 { ... } fn set_x(&self, x: f32) { ... } fn y(&self) -> f32 { ... } fn set_y(&self, y: f32) { ... } fn w_min(&self) -> f32 { ... } fn set_w_min(&self, w_min: f32) { ... } fn h_min(&self) -> f32 { ... } fn set_h_min(&self, h_min: f32) { ... } fn w_max(&self) -> f32 { ... } fn set_w_max(&self, w_max: f32) { ... } fn h_max(&self) -> f32 { ... } fn set_h_max(&self, _h_max: f32) { ... } fn w(&self) -> f32 { ... } fn set_w(&self, w: f32) { ... } fn h(&self) -> f32 { ... } fn set_h(&self, h: f32) { ... } fn set_x_local(&self, x: f32) { ... } fn set_y_local(&self, y: f32) { ... } fn x_local(&self) -> f32 { ... } fn y_local(&self) -> f32 { ... } fn nodes(&self) -> i32 { ... } fn is_focused(&self) -> bool { ... } fn set_focused(&self, focused: bool) { ... } fn is_captured(&self) -> bool { ... } fn set_captured(&self, captured: bool) { ... } fn is_marked(&self) -> bool { ... } fn set_marked(&self, marked: bool) { ... } fn depth_offset(&self) -> f32 { ... } fn depth(&self) -> f32 { ... } fn set_depth(&self, depth: f32) { ... } fn mouse_input(&self) -> bool { ... } fn key_input(&self) -> bool { ... } fn parent(&self) -> Option<&dyn Element> { ... } fn set_parent(&self, p: Option<Id>) { ... } fn id(&self) -> Id { ... } fn node(&self) -> Option<Node> { ... } fn relayout(&self, origin: Point2<f32>) { ... }
}
Expand description

Provided Methods

The control this one is clipped by

The control this one is clipped by

If the control is visible

If the control is visible

If the control is visible

The child must be sure that his parent reference is correct. The child must remove the parent reference by himself: child.set_parent(None);

The x position of the control bounds, world coordinate

The x position of the control bounds, world coordinate

The y position of the control bounds, world coordinate

The y position of the control bounds, world coordinate

The minimum width

The minimum width

The minimum height

The minimum height

The maximum width

The maximum width

The maximum height

The maximum height

The width of the control bounds

The width of the control bounds

The height of the control bounds

The height of the control bounds

The x position of the control bounds, relative to its container

The y position of the control bounds, relative to its container

The x position of the control bounds, relative to its container

The y position of the control bounds, relative to its container

Trait Implementations

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

This method tests for !=.

Implementors