pub struct Screen {
pub root: Element,
pub stylesheet: Option<String>,
}Expand description
A rendered screen — the return type of every screen function.
use bubba_core::ui::{Element, Screen};
pub fn home() -> Screen {
Screen::new(Element::h1().class("title").text("Hello"))
}Fields§
§root: ElementThe root element tree for this screen.
stylesheet: Option<String>Optional CSS stylesheet path.
Implementations§
Auto Trait Implementations§
impl Freeze for Screen
impl !RefUnwindSafe for Screen
impl Send for Screen
impl Sync for Screen
impl Unpin for Screen
impl UnsafeUnpin for Screen
impl !UnwindSafe for Screen
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more