[]Struct gtk::ShortcutsSection

pub struct ShortcutsSection(_, _);

A ShortcutsSection collects all the keyboard shortcuts and gestures for a major application mode. If your application needs multiple sections, you should give each section a unique ShortcutsSection:section-name and a ShortcutsSection:title that can be shown in the section selector of the ShortcutsWindow.

The ShortcutsSection:max-height property can be used to influence how the groups in the section are distributed over pages and columns.

This widget is only meant to be used with ShortcutsWindow.

Feature: v3_20

Implements

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

Implementations

impl ShortcutsSection[src]

pub fn get_property_max_height(&self) -> u32[src]

The maximum number of lines to allow per column. This property can be used to influence how the groups in this section are distributed across pages and columns. The default value of 15 should work in most cases.

pub fn set_property_max_height(&self, max_height: u32)[src]

The maximum number of lines to allow per column. This property can be used to influence how the groups in this section are distributed across pages and columns. The default value of 15 should work in most cases.

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

A unique name to identify this section among the sections added to the ShortcutsWindow. Setting the ShortcutsWindow:section-name property to this string will make this section shown in the ShortcutsWindow.

pub fn set_property_section_name(&self, section_name: Option<&str>)[src]

A unique name to identify this section among the sections added to the ShortcutsWindow. Setting the ShortcutsWindow:section-name property to this string will make this section shown in the ShortcutsWindow.

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

The string to show in the section selector of the ShortcutsWindow for this section. If there is only one section, you don't need to set a title, since the section selector will not be shown in this case.

pub fn set_property_title(&self, title: Option<&str>)[src]

The string to show in the section selector of the ShortcutsWindow for this section. If there is only one section, you don't need to set a title, since the section selector will not be shown in this case.

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

A view name to filter the groups in this section by. See ShortcutsGroup:view.

Applications are expected to use the ShortcutsWindow:view-name property for this purpose.

pub fn set_property_view_name(&self, view_name: Option<&str>)[src]

A view name to filter the groups in this section by. See ShortcutsGroup:view.

Applications are expected to use the ShortcutsWindow:view-name property for this purpose.

pub fn connect_change_current_page<F: Fn(&ShortcutsSection, i32) -> bool + 'static>(
    &self,
    f: F
) -> SignalHandlerId
[src]

pub fn emit_change_current_page(&self, object: i32) -> bool[src]

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

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

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

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

Trait Implementations

impl Clone for ShortcutsSection

impl Debug for ShortcutsSection

impl Display for ShortcutsSection[src]

impl Eq for ShortcutsSection

impl Hash for ShortcutsSection

impl IsA<Box> for ShortcutsSection

impl IsA<Buildable> for ShortcutsSection

impl IsA<Container> for ShortcutsSection

impl IsA<Orientable> for ShortcutsSection

impl IsA<Widget> for ShortcutsSection

impl Ord for ShortcutsSection

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

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

impl StaticType for ShortcutsSection

Auto Trait Implementations

impl RefUnwindSafe for ShortcutsSection

impl !Send for ShortcutsSection

impl !Sync for ShortcutsSection

impl Unpin for ShortcutsSection

impl UnwindSafe for ShortcutsSection

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.