Enum druid::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 PartialEq<WindowSizePolicy> for WindowSizePolicy
impl PartialEq<WindowSizePolicy> 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 Eq for WindowSizePolicy
impl StructuralEq for WindowSizePolicy
impl StructuralPartialEq for WindowSizePolicy
Auto Trait Implementations§
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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> RoundFrom<T> for T
impl<T> RoundFrom<T> for T
§fn round_from(x: T) -> T
fn round_from(x: T) -> T
Performs the conversion.
§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere U: RoundFrom<T>,
§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.