pub struct MacPopUpButton<'a> { /* private fields */ }Expand description
Authentic macOS AppKit Pop-Up Button (NSPopUpButton equivalent).
Features authentic dual stacked chevrons, floating menu overlay, keyboard navigation (Up/Down arrows, Space, Return, Escape), and theme-driven styling.
§Example
use egui_macview::{MacPopUpButton, MacTheme};
let theme = MacTheme::default();
let mut selected = 0;
let options = ["Option 1", "Option 2", "Option 3"];
MacPopUpButton::new(&mut selected, &options)
.theme(&theme)
.show(ui);Implementations§
Source§impl<'a> MacPopUpButton<'a>
impl<'a> MacPopUpButton<'a>
Trait Implementations§
Auto Trait Implementations§
impl<'a> !UnwindSafe for MacPopUpButton<'a>
impl<'a> Forget for MacPopUpButton<'a>
impl<'a> Freeze for MacPopUpButton<'a>
impl<'a> RefUnwindSafe for MacPopUpButton<'a>
impl<'a> Send for MacPopUpButton<'a>
impl<'a> Sync for MacPopUpButton<'a>
impl<'a> Unpin for MacPopUpButton<'a>
impl<'a> UnsafeUnpin for MacPopUpButton<'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