Struct limn_core::ui::Ui
[−]
[src]
pub struct Ui { pub window: Rc<RefCell<Window>>, // some fields omitted }
The core of a limn application, holds the root of the widget tree and other application global state.
Ui
is accessible to every event handler, so features helper methods that can be accessed at any time.
Fields
window: Rc<RefCell<Window>>
Methods
impl Ui
[src]
pub fn get_widget(&self, widget_id: WidgetId) -> Option<Widget>
[src]
pub fn get_root(&self) -> Widget
[src]
pub fn event<T: 'static>(&self, data: T)
[src]
pub fn close(&mut self)
[src]
pub fn check_layout_changes(&mut self)
[src]
pub fn redraw(&mut self)
[src]
pub fn needs_redraw(&self) -> bool
[src]
ⓘImportant traits for WidgetsBfspub fn widgets_bfs(&self) -> WidgetsBfs
[src]
ⓘImportant traits for WidgetsBfs
ⓘImportant traits for WidgetsUnderCursorpub fn widgets_under_cursor(&mut self, point: Point) -> WidgetsUnderCursor
[src]
ⓘImportant traits for WidgetsUnderCursor
pub fn widget_under_cursor(&mut self, point: Point) -> Option<Widget>
[src]
Find the first widget under the cursor, ie. the last to be drawn that is under the cursor