Trait components::foundation::WidgetProperties
source · [−]pub trait WidgetProperties {
Show 16 methods
fn key(&self) -> &Key;
fn x(&self) -> f32;
fn y(&self) -> f32;
fn w(&self) -> f32;
fn h(&self) -> f32;
fn w_min(&self) -> f32;
fn h_min(&self) -> f32;
fn w_max(&self) -> f32;
fn h_max(&self) -> f32;
fn parent(&self) -> Option<Id>;
fn depth(&self) -> f32;
fn visible(&self) -> bool;
fn mouse_input(&self) -> bool;
fn key_input(&self) -> bool;
fn renderable(&self) -> bool;
fn internal_visible(&self) -> bool;
}
Expand description
Options for constructing a control
Required Methods
fn mouse_input(&self) -> bool
fn mouse_input(&self) -> bool
Whether or not the control responds to mouse input
fn renderable(&self) -> bool
fn renderable(&self) -> bool
Whether or not the control emits render signals from the canvas render call
fn internal_visible(&self) -> bool
fn internal_visible(&self) -> bool
Internal. Internal parent visibility for creating sub controls.