pub struct GlassIconButtonGroupScope { /* private fields */ }Expand description
The scope a group’s actions are declared in.
Each call adds one circular action, in the order it is made, which is also the order they sit in left to right.
Implementations§
Source§impl GlassIconButtonGroupScope
impl GlassIconButtonGroupScope
Sourcepub fn action(
&self,
icon_path: &'static str,
content_description: impl Into<String>,
on_click: impl FnMut() + 'static,
)
pub fn action( &self, icon_path: &'static str, content_description: impl Into<String>, on_click: impl FnMut() + 'static, )
An action drawing icon_path, announced as content_description.
Sourcepub fn push(&self, item: GlassIconButtonGroupItem)
pub fn push(&self, item: GlassIconButtonGroupItem)
An action built out, for the material a particular action needs — see
GlassIconButtonGroupItem.
Auto Trait Implementations§
impl !RefUnwindSafe for GlassIconButtonGroupScope
impl !Send for GlassIconButtonGroupScope
impl !Sync for GlassIconButtonGroupScope
impl !UnwindSafe for GlassIconButtonGroupScope
impl Freeze for GlassIconButtonGroupScope
impl Unpin for GlassIconButtonGroupScope
impl UnsafeUnpin for GlassIconButtonGroupScope
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