#[repr(C)]pub enum WindowDecorations {
Normal = 0,
NoTitle = 1,
NoTitleAutoInject = 2,
NoControls = 3,
None = 4,
}Expand description
Window decoration style
Variants§
Normal = 0
Full decorations: title bar with controls
NoTitle = 1
No title text but controls visible (extended frame). The application must draw its own title text.
NoTitleAutoInject = 2
Like NoTitle, but the framework auto-injects a Titlebar
at the top of the user’s DOM after calling the layout callback.
The injected titlebar reads TitlebarMetrics from SystemStyle for
correct padding around the OS-drawn window control buttons, uses the
system title font, and carries the __azul-native-titlebar class for
automatic window-drag activation.
NoControls = 3
No controls visible but title bar area present
None = 4
No decorations at all (borderless)
Trait Implementations§
Source§impl Clone for WindowDecorations
impl Clone for WindowDecorations
Source§fn clone(&self) -> WindowDecorations
fn clone(&self) -> WindowDecorations
Returns a duplicate 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 WindowDecorations
impl Debug for WindowDecorations
Source§impl Default for WindowDecorations
impl Default for WindowDecorations
Source§impl Hash for WindowDecorations
impl Hash for WindowDecorations
Source§impl Ord for WindowDecorations
impl Ord for WindowDecorations
Source§fn cmp(&self, other: &WindowDecorations) -> Ordering
fn cmp(&self, other: &WindowDecorations) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for WindowDecorations
impl PartialEq for WindowDecorations
Source§impl PartialOrd for WindowDecorations
impl PartialOrd for WindowDecorations
impl Copy for WindowDecorations
impl Eq for WindowDecorations
impl StructuralPartialEq for WindowDecorations
Auto Trait Implementations§
impl Freeze for WindowDecorations
impl RefUnwindSafe for WindowDecorations
impl Send for WindowDecorations
impl Sync for WindowDecorations
impl Unpin for WindowDecorations
impl UnsafeUnpin for WindowDecorations
impl UnwindSafe for WindowDecorations
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more