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: Vec2) -> bool
pub fn set_size(&mut self, id: u64, size: Size) -> bool
Trait Implementations§
Source§impl Clone for WindowManagerState
impl Clone for WindowManagerState
Source§fn clone(&self) -> WindowManagerState
fn clone(&self) -> WindowManagerState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for WindowManagerState
impl Default for WindowManagerState
Source§fn default() -> WindowManagerState
fn default() -> WindowManagerState
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for WindowManagerState
impl !RefUnwindSafe for WindowManagerState
impl !Send for WindowManagerState
impl !Sync for WindowManagerState
impl Unpin for WindowManagerState
impl !UnwindSafe 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