pub struct WindowManagerState {
pub windows: Vec<FloatingWindow>,
pub active: Option<u64>,
/* private fields */
}Fields§
§windows: Vec<FloatingWindow>§active: Option<u64>Implementations§
Source§impl WindowManagerState
impl WindowManagerState
pub fn new() -> Self
pub fn alloc_id(&mut self) -> u64
pub fn open(&mut self, window: FloatingWindow)
pub fn close(&mut self, id: u64) -> bool
pub fn bring_to_front(&mut self, id: u64) -> bool
pub fn set_position(&mut self, id: u64, position: DpOffset) -> bool
pub fn set_size(&mut self, id: u64, size: DpSize) -> bool
Trait Implementations§
Source§impl Clone for WindowManagerState
impl Clone for WindowManagerState
Auto Trait Implementations§
impl !RefUnwindSafe for WindowManagerState
impl !Send for WindowManagerState
impl !Sync for WindowManagerState
impl !UnwindSafe for WindowManagerState
impl Freeze for WindowManagerState
impl Unpin for WindowManagerState
impl UnsafeUnpin for WindowManagerState
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