pub struct WindowStateInit {
pub id: TeksiloWindowId,
pub string_id: Option<String>,
pub placement: WindowPlacement,
pub title: String,
pub size: (u32, u32),
pub position: (i32, i32),
pub focused: bool,
pub resizable: bool,
pub always_on_top: bool,
}Expand description
Initial values for a WindowState at creation time.
Built from the equivalent fields on WindowConfig by the app-level
window manager, then passed to WindowState::new.
Fields§
§id: TeksiloWindowId§string_id: Option<String>§placement: WindowPlacement§title: String§size: (u32, u32)§position: (i32, i32)§focused: bool§resizable: bool§always_on_top: boolTrait Implementations§
Source§impl Clone for WindowStateInit
impl Clone for WindowStateInit
Source§fn clone(&self) -> WindowStateInit
fn clone(&self) -> WindowStateInit
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for WindowStateInit
impl RefUnwindSafe for WindowStateInit
impl Send for WindowStateInit
impl Sync for WindowStateInit
impl Unpin for WindowStateInit
impl UnsafeUnpin for WindowStateInit
impl UnwindSafe for WindowStateInit
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