pub struct WindowVisuals { /* private fields */ }Expand description
Window appearance and client sizing requested by a component publication.
Implementations§
Source§impl WindowVisuals
impl WindowVisuals
pub fn new() -> Self
pub fn backdrop(self, backdrop: WindowBackdrop) -> Self
Sourcepub fn client_size(self, width: f64, height: f64) -> Self
pub fn client_size(self, width: f64, height: f64) -> Self
Sets the initial client size in DIPs.
§Panics
Panics unless both dimensions are finite and positive.
Sourcepub fn constraints(self, constraints: WindowConstraints) -> Self
pub fn constraints(self, constraints: WindowConstraints) -> Self
Sets client-size constraints in DIPs.
§Panics
Panics if a bound is non-positive or non-finite, or a minimum exceeds its maximum.
pub fn theme(self, theme: WindowTheme) -> Self
Trait Implementations§
Source§impl Clone for WindowVisuals
impl Clone for WindowVisuals
Source§fn clone(&self) -> WindowVisuals
fn clone(&self) -> WindowVisuals
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 moreimpl Copy for WindowVisuals
Source§impl Debug for WindowVisuals
impl Debug for WindowVisuals
Source§impl Default for WindowVisuals
impl Default for WindowVisuals
Source§fn default() -> WindowVisuals
fn default() -> WindowVisuals
Returns the “default value” for a type. Read more
Source§impl PartialEq for WindowVisuals
impl PartialEq for WindowVisuals
impl StructuralPartialEq for WindowVisuals
Auto Trait Implementations§
impl Freeze for WindowVisuals
impl RefUnwindSafe for WindowVisuals
impl Send for WindowVisuals
impl Sync for WindowVisuals
impl Unpin for WindowVisuals
impl UnsafeUnpin for WindowVisuals
impl UnwindSafe for WindowVisuals
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