Skip to main content

ShortcutsWindowExt

Trait ShortcutsWindowExt 

Source
pub trait ShortcutsWindowExt: IsA<ShortcutsWindow> + 'static {
    // Provided methods
    fn section_name(&self) -> Option<GString> { ... }
    fn set_section_name(&self, section_name: Option<&str>) { ... }
    fn view_name(&self) -> Option<GString> { ... }
    fn set_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_section_name_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F,
    ) -> SignalHandlerId { ... }
    fn connect_view_name_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F,
    ) -> SignalHandlerId { ... }
}
Expand description

Trait containing all ShortcutsWindow methods.

§Implementors

ShortcutsWindow

Provided Methods§

Source

fn 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.

Source

fn set_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.

Source

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

The view name by which to filter the contents.

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

Set this to None to show all groups.

Source

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

The view name by which to filter the contents.

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

Set this to None to show all groups.

Source

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

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

The default binding for this signal is the Escape key.

Source

fn emit_close(&self)

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

The default binding for this signal is Control-F.

Source

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

Source

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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§