logo
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

The widdget key

The control x position, relative to its container

The control y position, relative to its container

The control width

The control height

The control minimum width

The control minimum height

The control maximum width

The control maximum height

The control parent, if any

The control depth. Usually set internally

Whether or not the control is visible at creation

Whether or not the control responds to mouse input

Whether or not the control responds to key input

Whether or not the control emits render signals from the canvas render call

Internal. Internal parent visibility for creating sub controls.

Implementors