Struct tuifw::WindowManager
source · pub struct WindowManager<State: ?Sized, Error: Debug> { /* private fields */ }
Implementations§
source§impl<State: ?Sized, Error: Debug> WindowManager<State, Error>
impl<State: ?Sized, Error: Debug> WindowManager<State, Error>
pub fn new() -> Self
pub fn update( &mut self, tree: &mut WindowTree<State>, event: Event ) -> Result<(), Error>
pub fn add_window_owner( &mut self, tree: &mut WindowTree<State>, window_owner: Box<dyn WindowOwner<State, Error = Error>>, bounds: fn(_: Vector) -> Rect ) -> Result<(), Error>
pub fn add_window( &mut self, tree: &mut WindowTree<State>, window: Window, bounds: fn(_: Vector) -> Rect )where Error: 'static,
pub fn new_window( &mut self, tree: &mut WindowTree<State>, parent: Option<Window>, prev: Option<Window>, bounds: fn(_: Vector) -> Rect ) -> Result<Window, Error>where Error: 'static,
Trait Implementations§
Auto Trait Implementations§
impl<State, Error> !RefUnwindSafe for WindowManager<State, Error>
impl<State, Error> !Send for WindowManager<State, Error>
impl<State, Error> !Sync for WindowManager<State, Error>
impl<State: ?Sized, Error> Unpin for WindowManager<State, Error>
impl<State, Error> !UnwindSafe for WindowManager<State, Error>
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