Struct layout2d::ui_screen::UiScreen
[−]
[src]
pub struct UiScreen<T: Clone> { pub root: NodeRef<Rect<T>>, }
UI screen
Fields
root: NodeRef<Rect<T>>
Root node of the UI tree
Methods
impl<T: Clone> UiScreen<T>
[src]
fn new(initial_width: f32, initial_height: f32, data: NodeData<T>) -> Self
[src]
Creates a new UiScreen
fn with_root_as_column(self) -> Self
[src]
Changes the default orientation for the root element from row to column
fn into_rectangles(&mut self, root_width: f32, root_height: f32) -> Vec<Rect<T>>
[src]
Converts the UI into a vertex buffer