[][src]Trait gtk::ShortcutsWindowExt

pub trait ShortcutsWindowExt: 'static {
    fn get_property_section_name(&self) -> Option<GString>;
fn set_property_section_name(&self, section_name: Option<&str>);
fn get_property_view_name(&self) -> Option<GString>;
fn set_property_view_name(&self, view_name: Option<&str>);
fn connect_close<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn emit_close(&self);
fn connect_search<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn emit_search(&self);
fn connect_property_section_name_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_view_name_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId; }

Trait containing all ShortcutsWindow methods.

Feature: v3_20

Implementors

ShortcutsWindow

Required methods

fn get_property_section_name(&self) -> Option<GString>

The name of the section to show.

This should be the section-name of one of the ShortcutsSection objects that are in this shortcuts window.

fn set_property_section_name(&self, section_name: Option<&str>)

The name of the section to show.

This should be the section-name of one of the ShortcutsSection objects that are in this shortcuts window.

fn get_property_view_name(&self) -> Option<GString>

The view name by which to filter the contents.

This should correspond to the ShortcutsGroup:view property of some of the ShortcutsGroup objects that are inside this shortcuts window.

Set this to None to show all groups.

fn set_property_view_name(&self, view_name: Option<&str>)

The view name by which to filter the contents.

This should correspond to the ShortcutsGroup:view property of some of the ShortcutsGroup objects that are inside this shortcuts window.

Set this to None to show all groups.

fn connect_close<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId

The ::close signal is a [keybinding signal][BindingSignal] which gets emitted when the user uses a keybinding to close the window.

The default binding for this signal is the Escape key.

fn emit_close(&self)

The ::search signal is a [keybinding signal][BindingSignal] which gets emitted when the user uses a keybinding to start a search.

The default binding for this signal is Control-F.

fn connect_property_section_name_notify<F: Fn(&Self) + 'static>(
    &self,
    f: F
) -> SignalHandlerId

fn connect_property_view_name_notify<F: Fn(&Self) + 'static>(
    &self,
    f: F
) -> SignalHandlerId

Loading content...

Implementors

impl<O: IsA<ShortcutsWindow>> ShortcutsWindowExt for O[src]

Loading content...