[][src]Struct libhandy4::ViewSwitcherBar

pub struct ViewSwitcherBar(_);

Implementations

impl ViewSwitcherBar[src]

pub fn new() -> ViewSwitcherBar[src]

Creates a new ViewSwitcherBar widget.

Returns

a new ViewSwitcherBar

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

Gets the policy of self.

Returns

the policy of self

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

Gets whether self should be revealed or not.

Returns

true if self is revealed, false if not.

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 set_policy(&self, policy: ViewSwitcherPolicy)[src]

Sets the policy of self.

policy

the new policy

pub fn set_reveal(&self, reveal: bool)[src]

Sets whether self should be revealed or not.

reveal

true to reveal self

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

Sets the gtk::Stack to control.

stack

a gtk::Stack

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

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

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

Trait Implementations

impl Clone for ViewSwitcherBar[src]

impl Debug for ViewSwitcherBar[src]

impl Default for ViewSwitcherBar[src]

impl Display for ViewSwitcherBar[src]

impl Eq for ViewSwitcherBar[src]

impl Hash for ViewSwitcherBar[src]

impl IsA<Accessible> for ViewSwitcherBar[src]

impl IsA<Buildable> for ViewSwitcherBar[src]

impl IsA<ConstraintTarget> for ViewSwitcherBar[src]

impl IsA<Widget> for ViewSwitcherBar[src]

impl Ord for ViewSwitcherBar[src]

impl ParentClassIs for ViewSwitcherBar[src]

type Parent = Widget

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

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

impl StaticType for ViewSwitcherBar[src]

impl StructuralEq for ViewSwitcherBar[src]

Auto Trait Implementations

impl RefUnwindSafe for ViewSwitcherBar[src]

impl !Send for ViewSwitcherBar[src]

impl !Sync for ViewSwitcherBar[src]

impl Unpin for ViewSwitcherBar[src]

impl UnwindSafe for ViewSwitcherBar[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>,