#[repr(u64)]pub enum NSWindowButton {
CloseButton = 0,
MiniaturizeButton = 1,
ZoomButton = 2,
ToolbarButton = 3,
DocumentIconButton = 4,
DocumentVersionsButton = 6,
FullScreenButton = 7,
}
Expand description
Constants that provide a way to access standard title bar buttons.
Variants§
CloseButton = 0
The close button.
MiniaturizeButton = 1
The minimize button.
ZoomButton = 2
The zoom button.
ToolbarButton = 3
The toolbar button.
DocumentIconButton = 4
The document icon button.
DocumentVersionsButton = 6
The document versions button.
FullScreenButton = 7
👎Deprecated: The standard window button for FullScreenButton is always null; use ZoomButton instead.
The fullscreen icon button.
Trait Implementations§
Source§impl Clone for NSWindowButton
impl Clone for NSWindowButton
Source§fn clone(&self) -> NSWindowButton
fn clone(&self) -> NSWindowButton
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for NSWindowButton
impl Debug for NSWindowButton
Source§impl PartialEq for NSWindowButton
impl PartialEq for NSWindowButton
impl Copy for NSWindowButton
impl Eq for NSWindowButton
impl StructuralPartialEq for NSWindowButton
Auto Trait Implementations§
impl Freeze for NSWindowButton
impl RefUnwindSafe for NSWindowButton
impl Send for NSWindowButton
impl Sync for NSWindowButton
impl Unpin for NSWindowButton
impl UnwindSafe for NSWindowButton
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