Enum masonry::render_root::WindowSizePolicy
source · pub enum WindowSizePolicy {
Content,
User,
}
Expand description
Defines how a windows size should be determined
Variants§
Content
Use the content of the window to determine the size.
If you use this option, your root widget will be passed infinite constraints; you are responsible for ensuring that your content picks an appropriate size.
User
Use the provided window size.
Trait Implementations§
source§impl Clone for WindowSizePolicy
impl Clone for WindowSizePolicy
source§fn clone(&self) -> WindowSizePolicy
fn clone(&self) -> WindowSizePolicy
Returns a copy 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 Debug for WindowSizePolicy
impl Debug for WindowSizePolicy
source§impl Default for WindowSizePolicy
impl Default for WindowSizePolicy
source§fn default() -> WindowSizePolicy
fn default() -> WindowSizePolicy
Returns the “default value” for a type. Read more
source§impl PartialEq for WindowSizePolicy
impl PartialEq for WindowSizePolicy
source§fn eq(&self, other: &WindowSizePolicy) -> bool
fn eq(&self, other: &WindowSizePolicy) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for WindowSizePolicy
impl StructuralPartialEq for WindowSizePolicy
Auto Trait Implementations§
impl Freeze for WindowSizePolicy
impl RefUnwindSafe for WindowSizePolicy
impl Send for WindowSizePolicy
impl Sync for WindowSizePolicy
impl Unpin for WindowSizePolicy
impl UnwindSafe for WindowSizePolicy
Blanket Implementations§
source§impl<T> AsAny for Twhere
T: Any,
impl<T> AsAny for Twhere
T: Any,
source§fn as_dyn_any(&self) -> &(dyn Any + 'static)
fn as_dyn_any(&self) -> &(dyn Any + 'static)
Return self.
source§fn as_mut_dyn_any(&mut self) -> &mut (dyn Any + 'static)
fn as_mut_dyn_any(&mut self) -> &mut (dyn Any + 'static)
Return self.
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