pub struct Engine<A: App> { /* private fields */ }Implementations§
Source§impl<A: App> Engine<A>
impl<A: App> Engine<A>
pub fn new(app: A) -> Self
pub fn app(&self) -> &A
pub fn app_mut(&mut self) -> &mut A
pub fn handle(&self) -> RuntimeHandle<A::Message>
pub fn mount(&mut self)
pub fn tree(&self) -> Option<&Node<A::Message>>
pub fn redraw_regions(&self) -> Option<&[Rect]>
pub fn is_dirty(&self) -> bool
pub fn focused(&self) -> Option<usize>
pub fn take_pending_history(&mut self) -> Vec<HistoryEntry>
pub fn required_height(&self) -> u16
pub fn set_bounds(&mut self, bounds: Rect)
pub fn render_tree(&mut self)
pub fn handle_input(&mut self, key: Key) -> bool
pub fn drain_requests(&mut self) -> bool
Auto Trait Implementations§
impl<A> Freeze for Engine<A>where
A: Freeze,
impl<A> !RefUnwindSafe for Engine<A>
impl<A> !Send for Engine<A>
impl<A> !Sync for Engine<A>
impl<A> Unpin for Engine<A>where
A: Unpin,
impl<A> UnsafeUnpin for Engine<A>where
A: UnsafeUnpin,
impl<A> !UnwindSafe for Engine<A>
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