#[repr(C)]pub struct TitlebarButtons {
pub has_close: bool,
pub has_minimize: bool,
pub has_maximize: bool,
pub has_fullscreen: bool,
}Expand description
Which window control buttons are available in the titlebar.
Fields§
§has_close: boolClose button is available
has_minimize: boolMinimize button is available
has_maximize: boolMaximize/zoom button is available
has_fullscreen: boolFullscreen button is available (macOS green button behavior)
Trait Implementations§
Source§impl Clone for TitlebarButtons
impl Clone for TitlebarButtons
Source§fn clone(&self) -> TitlebarButtons
fn clone(&self) -> TitlebarButtons
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 TitlebarButtons
impl Debug for TitlebarButtons
Source§impl Default for TitlebarButtons
impl Default for TitlebarButtons
Source§impl Hash for TitlebarButtons
impl Hash for TitlebarButtons
Source§impl Ord for TitlebarButtons
impl Ord for TitlebarButtons
Source§fn cmp(&self, other: &TitlebarButtons) -> Ordering
fn cmp(&self, other: &TitlebarButtons) -> 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 TitlebarButtons
impl PartialEq for TitlebarButtons
Source§impl PartialOrd for TitlebarButtons
impl PartialOrd for TitlebarButtons
impl Copy for TitlebarButtons
impl Eq for TitlebarButtons
impl StructuralPartialEq for TitlebarButtons
Auto Trait Implementations§
impl Freeze for TitlebarButtons
impl RefUnwindSafe for TitlebarButtons
impl Send for TitlebarButtons
impl Sync for TitlebarButtons
impl Unpin for TitlebarButtons
impl UnsafeUnpin for TitlebarButtons
impl UnwindSafe for TitlebarButtons
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