pub enum Category {
Editing,
Browser,
Media,
Mouse,
Dpi,
Scroll,
Navigation,
System,
}Expand description
Grouping for popover section headers.
Used by Action::category and rendered
as a small muted label above each group in the action picker.
Variants§
Editing
Cut, copy, paste, undo, redo, select-all, find, save.
Browser
Browser navigation: tabs, page reload, back/forward.
Media
Playback and volume controls.
Mouse
Physical mouse clicks.
Dpi
DPI cycle and SmartShift.
Scroll
Scroll direction shortcuts.
Window/app navigation: Mission Control, Launchpad, etc.
System
Lock screen, show desktop, system-level actions.
Implementations§
Source§impl Category
impl Category
Sourcepub fn label(self) -> &'static str
pub fn label(self) -> &'static str
Short label for popover section headers, and the i18n key it is looked
up by. Sentence case: a UI layer cannot uppercase a translated label
safely — casing rules are per-language, and GPUI has no text-transform
to defer the decision to — so the catalog carries the cased text it
wants. DPI is an acronym, not a shout.
Trait Implementations§
impl Copy for Category
impl Eq for Category
impl StructuralPartialEq for Category
Auto Trait Implementations§
impl Freeze for Category
impl RefUnwindSafe for Category
impl Send for Category
impl Sync for Category
impl Unpin for Category
impl UnsafeUnpin for Category
impl UnwindSafe for Category
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
Source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
Source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
Source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.