pub struct RibbonPage { /* private fields */ }Expand description
A tab of the ribbon.
Implementations§
Source§impl RibbonPage
impl RibbonPage
Sourcepub fn new(title: impl Into<String>) -> RibbonPage
pub fn new(title: impl Into<String>) -> RibbonPage
An empty page with this tab title.
Sourcepub fn group(self, group: RibbonGroup) -> RibbonPage
pub fn group(self, group: RibbonGroup) -> RibbonPage
Appends a group.
Sourcepub fn contextual(
self,
category: impl Into<String>,
tone: Tone,
visible: bool,
) -> RibbonPage
pub fn contextual( self, category: impl Into<String>, tone: Tone, visible: bool, ) -> RibbonPage
Makes this a contextual page (e.g. “Table Tools”) shown only while visible.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for RibbonPage
impl !Send for RibbonPage
impl !Sync for RibbonPage
impl !UnwindSafe for RibbonPage
impl Freeze for RibbonPage
impl Unpin for RibbonPage
impl UnsafeUnpin for RibbonPage
Blanket Implementations§
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
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