pub struct WindowInfo<A: App> {
pub title: String,
pub rect: Rect<i32>,
pub style: WindowStyleFlags,
pub parent_handle: Option<A::NativeHandle>,
}Expand description
Filled out to specify various window parameters when a window is created by App::create_window
Fields§
§title: StringTitle appears in the title bar of the window
rect: Rect<i32>Specify the position and size of the window
style: WindowStyleFlagsSpecify window styles
parent_handle: Option<A::NativeHandle>Specify a parent handle for child windows (optional)
Trait Implementations§
Source§impl<A: Clone + App> Clone for WindowInfo<A>where
A::NativeHandle: Clone,
impl<A: Clone + App> Clone for WindowInfo<A>where
A::NativeHandle: Clone,
Source§fn clone(&self) -> WindowInfo<A>
fn clone(&self) -> WindowInfo<A>
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<A> Freeze for WindowInfo<A>
impl<A> RefUnwindSafe for WindowInfo<A>
impl<A> Send for WindowInfo<A>
impl<A> Sync for WindowInfo<A>
impl<A> Unpin for WindowInfo<A>
impl<A> UnsafeUnpin for WindowInfo<A>
impl<A> UnwindSafe for WindowInfo<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