[][src]Struct libhandy4::ViewSwitcher

pub struct ViewSwitcher(_);

Implementations

impl ViewSwitcher[src]

pub fn new() -> ViewSwitcher[src]

Creates a new ViewSwitcher widget.

Returns

a new ViewSwitcher

pub fn get_narrow_ellipsize(&self) -> EllipsizeMode[src]

Get the ellipsizing position of the narrow mode label. See ViewSwitcher::set_narrow_ellipsize.

Returns

pango::EllipsizeMode

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.

See: ViewSwitcher::set_stack

Returns

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

pub fn set_narrow_ellipsize(&self, mode: EllipsizeMode)[src]

Set the mode used to ellipsize the text in narrow mode if there is not enough space to render the entire string.

mode

a pango::EllipsizeMode

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 connect_property_narrow_ellipsize_notify<F: Fn(&ViewSwitcher) + 'static>(
    &self,
    f: F
) -> SignalHandlerId
[src]

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

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

Trait Implementations

impl Clone for ViewSwitcher[src]

impl Debug for ViewSwitcher[src]

impl Default for ViewSwitcher[src]

impl Display for ViewSwitcher[src]

impl Eq for ViewSwitcher[src]

impl Hash for ViewSwitcher[src]

impl IsA<Accessible> for ViewSwitcher[src]

impl IsA<Buildable> for ViewSwitcher[src]

impl IsA<ConstraintTarget> for ViewSwitcher[src]

impl IsA<Widget> for ViewSwitcher[src]

impl Ord for ViewSwitcher[src]

impl ParentClassIs for ViewSwitcher[src]

type Parent = Widget

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

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

impl StaticType for ViewSwitcher[src]

impl StructuralEq for ViewSwitcher[src]

Auto Trait Implementations

impl RefUnwindSafe for ViewSwitcher[src]

impl !Send for ViewSwitcher[src]

impl !Sync for ViewSwitcher[src]

impl Unpin for ViewSwitcher[src]

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