[][src]Trait libhandy4::PreferencesWindowExt

pub trait PreferencesWindowExt: 'static {
    pub fn add<P: IsA<PreferencesPage>>(&self, page: &P);
pub fn close_subpage(&self);
pub fn get_can_swipe_back(&self) -> bool;
pub fn get_search_enabled(&self) -> bool;
pub fn present_subpage<P: IsA<Widget>>(&self, subpage: &P);
pub fn remove<P: IsA<PreferencesPage>>(&self, page: &P);
pub fn set_can_swipe_back(&self, can_swipe_back: bool);
pub fn set_search_enabled(&self, search_enabled: bool);
pub fn connect_property_can_swipe_back_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
pub fn connect_property_search_enabled_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId; }

Trait containing all PreferencesWindow methods.

Implementors

PreferencesWindow

Required methods

pub fn add<P: IsA<PreferencesPage>>(&self, page: &P)[src]

pub fn close_subpage(&self)[src]

Closes the current subpage to return back to the preferences, if there is no presented subpage, this does nothing.

pub fn get_can_swipe_back(&self) -> bool[src]

Returns whether or not self allows switching from a subpage to the preferences via a swipe gesture.

Returns

true if back swipe is enabled.

pub fn get_search_enabled(&self) -> bool[src]

Gets whether search is enabled for self.

Returns

whether search is enabled for self.

pub fn present_subpage<P: IsA<Widget>>(&self, subpage: &P)[src]

Sets subpage as the window's subpage and present it. The transition can be cancelled by the user, in which case visible child will change back to the previously visible child.

subpage

the subpage

pub fn remove<P: IsA<PreferencesPage>>(&self, page: &P)[src]

pub fn set_can_swipe_back(&self, can_swipe_back: bool)[src]

Sets whether or not self allows switching from a subpage to the preferences via a swipe gesture.

can_swipe_back

the new value

pub fn set_search_enabled(&self, search_enabled: bool)[src]

Sets whether search is enabled for self.

search_enabled

true to enable search, false to disable it

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

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

Loading content...

Implementors

impl<O: IsA<PreferencesWindow>> PreferencesWindowExt for O[src]

Loading content...