[][src]Struct libhandy4::ViewSwitcherTitle

pub struct ViewSwitcherTitle(_);

Implementations

impl ViewSwitcherTitle[src]

pub fn new() -> ViewSwitcherTitle[src]

Creates a new ViewSwitcherTitle widget.

Returns

a new ViewSwitcherTitle

pub fn get_policy(&self) -> ViewSwitcherPolicy[src]

Gets the policy of self.

Returns

the policy of self

pub fn get_stack(&self) -> Option<Stack>[src]

Get the gtk::Stack being controlled by the ViewSwitcher.

Returns

the gtk::Stack, or None if none has been set

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

Gets the subtitle of self. See ViewSwitcherTitle::set_subtitle.

Returns

the subtitle of self, or None.

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

Gets the title of self. See ViewSwitcherTitle::set_title.

Returns

the title of self, or None.

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

Get whether the title label of self is visible.

Returns

true if the title label of self is visible, false if not.

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

Gets whether self's view switcher is enabled.

See ViewSwitcherTitle::set_view_switcher_enabled.

Returns

true if the view switcher is enabled, false otherwise.

pub fn set_policy(&self, policy: ViewSwitcherPolicy)[src]

Sets the policy of self.

policy

the new policy

pub fn set_stack(&self, stack: Option<&Stack>)[src]

Sets the gtk::Stack to control.

stack

a gtk::Stack

pub fn set_subtitle(&self, subtitle: Option<&str>)[src]

Sets the subtitle of self. The subtitle should give a user additional details.

subtitle

a subtitle, or None

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

Sets the title of self. The title should give a user additional details. A good title should not include the application name.

title

a title, or None

pub fn set_view_switcher_enabled(&self, enabled: bool)[src]

Make self enable or disable its view switcher. If it is disabled, the title will be displayed instead. This allows to programmatically and prematurely hide the view switcher of self even if it fits in the available space.

This can be used e.g. to ensure the view switcher is hidden below a certain window width, or any other constraint you find suitable.

enabled

true to enable the view switcher, false to disable it

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

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

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

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

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

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

Trait Implementations

impl Clone for ViewSwitcherTitle[src]

impl Debug for ViewSwitcherTitle[src]

impl Default for ViewSwitcherTitle[src]

impl Display for ViewSwitcherTitle[src]

impl Eq for ViewSwitcherTitle[src]

impl Hash for ViewSwitcherTitle[src]

impl IsA<Accessible> for ViewSwitcherTitle[src]

impl IsA<Buildable> for ViewSwitcherTitle[src]

impl IsA<ConstraintTarget> for ViewSwitcherTitle[src]

impl IsA<Widget> for ViewSwitcherTitle[src]

impl Ord for ViewSwitcherTitle[src]

impl ParentClassIs for ViewSwitcherTitle[src]

type Parent = Widget

impl<T: ObjectType> PartialEq<T> for ViewSwitcherTitle[src]

impl<T: ObjectType> PartialOrd<T> for ViewSwitcherTitle[src]

impl StaticType for ViewSwitcherTitle[src]

impl StructuralEq for ViewSwitcherTitle[src]

Auto Trait Implementations

impl RefUnwindSafe for ViewSwitcherTitle[src]

impl !Send for ViewSwitcherTitle[src]

impl !Sync for ViewSwitcherTitle[src]

impl Unpin for ViewSwitcherTitle[src]

impl UnwindSafe for ViewSwitcherTitle[src]

Blanket Implementations

impl<O> AccessibleExt for O where
    O: IsA<Accessible>, 

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<O> BuildableExt for O where
    O: IsA<Buildable>, 

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

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

impl<O> ConstraintTargetExt for O where
    O: IsA<ConstraintTarget>, 

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

impl<O> WidgetExt for O where
    O: IsA<Widget>, 

impl<O> WidgetExtManual for O where
    O: IsA<Widget>,