[]Struct gtk::ShortcutLabel

pub struct ShortcutLabel(_, _);

ShortcutLabel is a widget that represents a single keyboard shortcut or gesture in the user interface.

Feature: v3_22

Implements

BoxExt, ContainerExt, WidgetExt, glib::object::ObjectExt, BuildableExt, OrientableExt, WidgetExtManual, BuildableExtManual

Implementations

impl ShortcutLabel[src]

pub fn new(accelerator: &str) -> ShortcutLabel[src]

Creates a new ShortcutLabel with accelerator set.

Feature: v3_22

accelerator

the initial accelerator

Returns

a newly-allocated ShortcutLabel

pub fn get_accelerator(&self) -> Option<GString>[src]

Retrieves the current accelerator of self.

Feature: v3_22

Returns

the current accelerator.

pub fn get_disabled_text(&self) -> Option<GString>[src]

Retrieves the text that is displayed when no accelerator is set.

Feature: v3_22

Returns

the current text displayed when no accelerator is set.

pub fn set_accelerator(&self, accelerator: &str)[src]

Sets the accelerator to be displayed by self.

Feature: v3_22

accelerator

the new accelerator

pub fn set_disabled_text(&self, disabled_text: &str)[src]

Sets the text to be displayed by self when no accelerator is set.

Feature: v3_22

disabled_text

the text to be displayed when no accelerator is set

pub fn connect_property_accelerator_notify<F: Fn(&ShortcutLabel) + 'static>(
    &self,
    f: F
) -> SignalHandlerId
[src]

pub fn connect_property_disabled_text_notify<F: Fn(&ShortcutLabel) + 'static>(
    &self,
    f: F
) -> SignalHandlerId
[src]

Trait Implementations

impl Clone for ShortcutLabel

impl Debug for ShortcutLabel

impl Display for ShortcutLabel[src]

impl Eq for ShortcutLabel

impl Hash for ShortcutLabel

impl IsA<Box> for ShortcutLabel

impl IsA<Buildable> for ShortcutLabel

impl IsA<Container> for ShortcutLabel

impl IsA<Orientable> for ShortcutLabel

impl IsA<Widget> for ShortcutLabel

impl Ord for ShortcutLabel

impl<T: ObjectType> PartialEq<T> for ShortcutLabel

impl<T: ObjectType> PartialOrd<T> for ShortcutLabel

impl StaticType for ShortcutLabel

Auto Trait Implementations

impl RefUnwindSafe for ShortcutLabel

impl !Send for ShortcutLabel

impl !Sync for ShortcutLabel

impl Unpin for ShortcutLabel

impl UnwindSafe for ShortcutLabel

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Super, Sub> CanDowncast<Sub> for Super where
    Sub: IsA<Super>,
    Super: IsA<Super>, 

impl<T> Cast for T where
    T: ObjectType, 

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ObjectExt for T where
    T: ObjectType, 

impl<'a, T> ToGlibContainerFromSlice<'a, *const GList> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 

type Storage = (Option<List>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)

impl<'a, T> ToGlibContainerFromSlice<'a, *const GPtrArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 

type Storage = (Option<PtrArray>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 

type Storage = (Option<Array>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GList> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 

type Storage = (Option<List>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GPtrArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 

type Storage = (Option<PtrArray>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToSendValue for T where
    T: ToValue + SetValue + Send + ?Sized

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> ToValue for T where
    T: SetValue + ?Sized

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.