Enum cacao::button::BezelStyle
source · [−]pub enum BezelStyle {
Show 14 variants
Circular,
Disclosure,
HelpButton,
Inline,
Recessed,
RegularSquare,
RoundRect,
Rounded,
RoundedDisclosure,
ShadowlessSquare,
SmallSquare,
TexturedRounded,
TexturedSquare,
Unknown(NSUInteger),
}
Expand description
Represents a bezel style for a button. This is a macOS-specific control, and has no effect under iOS or tvOS.
Variants
Circular
A standard circular button.
Disclosure
A standard disclosure style button.
HelpButton
The standard looking “Help” (?) button.
Inline
An inline style, varies across OS’s.
Recessed
A recessed style, varies slightly across OS’s.
RegularSquare
A regular square style, with no special styling.
RoundRect
A standard rounded rectangle.
Rounded
A standard rounded button.
RoundedDisclosure
A standard rounded disclosure button.
ShadowlessSquare
A shadowless square styl.e
SmallSquare
A small square style.
TexturedRounded
A textured rounded style.
TexturedSquare
A textured square style.
Unknown(NSUInteger)
Any style that’s not known by this framework (e.g, if Apple introduces something new).
Trait Implementations
sourceimpl Debug for BezelStyle
impl Debug for BezelStyle
sourceimpl From<BezelStyle> for NSUInteger
impl From<BezelStyle> for NSUInteger
sourcefn from(style: BezelStyle) -> Self
fn from(style: BezelStyle) -> Self
Converts to this type from the input type.
sourceimpl From<u64> for BezelStyle
impl From<u64> for BezelStyle
sourcefn from(i: NSUInteger) -> Self
fn from(i: NSUInteger) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for BezelStyle
impl Send for BezelStyle
impl Sync for BezelStyle
impl Unpin for BezelStyle
impl UnwindSafe for BezelStyle
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more