pub struct MacHelpButton<'a> { /* private fields */ }Expand description
Authentic macOS AppKit Circular Help Button (NSBezelStyleHelpButton).
§Example
use egui_macview::{MacAppearance, MacHelpButton, MacTheme};
let theme = MacTheme::new(MacAppearance::Aqua);
if MacHelpButton::new().theme(&theme).show(ui).clicked() {}Implementations§
Source§impl<'a> MacHelpButton<'a>
impl<'a> MacHelpButton<'a>
Sourcepub fn control_size(self, size: MacControlSize) -> Self
pub fn control_size(self, size: MacControlSize) -> Self
Sets the AppKit control size (Regular 20pt, Small 16pt, Mini 13pt).
Sourcepub fn fixed_rect(self, rect: Rect) -> Self
pub fn fixed_rect(self, rect: Rect) -> Self
Pins the help button to an exact NIB rectangle.
Sourcepub fn diameter(&self) -> f32
pub fn diameter(&self) -> f32
Returns the visual circular diameter in points (20.0pt, 16.0pt, or 13.0pt).
Trait Implementations§
Source§impl<'a> Default for MacHelpButton<'a>
impl<'a> Default for MacHelpButton<'a>
Auto Trait Implementations§
impl<'a> Forget for MacHelpButton<'a>
impl<'a> Freeze for MacHelpButton<'a>
impl<'a> Move for MacHelpButton<'a>
impl<'a> RefUnwindSafe for MacHelpButton<'a>
impl<'a> Send for MacHelpButton<'a>
impl<'a> Sync for MacHelpButton<'a>
impl<'a> Unpin for MacHelpButton<'a>
impl<'a> UnsafeUnpin for MacHelpButton<'a>
impl<'a> UnwindSafe for MacHelpButton<'a>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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