Trait gtk4::prelude::ShortcutTriggerExt
source · pub trait ShortcutTriggerExt: 'static {
// Required methods
fn to_label(&self, display: &impl IsA<Display>) -> GString;
fn to_str(&self) -> GString;
}
Expand description
Trait containing all ShortcutTrigger
methods.
Implementors
AlternativeTrigger
, KeyvalTrigger
, MnemonicTrigger
, NeverTrigger
, ShortcutTrigger
Required Methods§
sourcefn to_label(&self, display: &impl IsA<Display>) -> GString
fn to_label(&self, display: &impl IsA<Display>) -> GString
Gets textual representation for the given trigger.
This function is returning a translated string for presentation to end users for example in menu items or in help texts.
The @display in use may influence the resulting string in various forms, such as resolving hardware keycodes or by causing display-specific modifier names.
The form of the representation may change at any time and is not guaranteed to stay identical.
display
gdk::Display
to print for
Returns
a new string