[][src]Struct libhandy4::Squeezer

pub struct Squeezer(_);

Implementations

impl Squeezer[src]

pub fn new() -> Squeezer[src]

Creates a new Squeezer container.

Returns

a new Squeezer

pub fn add<P: IsA<Widget>>(&self, child: &P) -> Option<SqueezerPage>[src]

Adds a child to self.

child

the widget to add

Returns

the SqueezerPage for child

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

Gets whether self is homogeneous.

See Squeezer::set_homogeneous.

Returns

true if self is homogeneous, false is not

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

Gets whether self should interpolate its size on visible child change.

See Squeezer::set_interpolate_size.

Returns

true if self interpolates its size on visible child change, false if not

pub fn get_page<P: IsA<Widget>>(&self, child: &P) -> Option<SqueezerPage>[src]

Returns the SqueezerPage object for child.

child

a child of self

Returns

the SqueezerPage for child

pub fn get_pages(&self) -> Option<SelectionModel>[src]

Returns a gio::ListModel that contains the pages of the squeezer, and can be used to keep an up-to-date view. The model also implements gtk::SelectionModel and can be used to track the visible page.

Returns

a gtk::SelectionModel for the squeezer's children

pub fn get_transition_duration(&self) -> u32[src]

Gets the amount of time (in milliseconds) that transitions between children in self will take.

Returns

the transition duration

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

Gets whether self is currently in a transition from one child to another.

Returns

true if the transition is currently running, false otherwise.

pub fn get_transition_type(&self) -> SqueezerTransitionType[src]

Gets the type of animation that will be used for transitions between children in self.

Returns

the current transition type of self

pub fn get_visible_child(&self) -> Option<Widget>[src]

Gets the currently visible child of self, or None if there are no visible children.

Returns

the visible child of the Squeezer

pub fn get_xalign(&self) -> f32[src]

Gets the Squeezer:xalign property for self.

Returns

the xalign property

pub fn get_yalign(&self) -> f32[src]

Gets the Squeezer:yalign property for self.

Returns

the yalign property

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

Removes a child widget from self.

child

the child to remove

pub fn set_homogeneous(&self, homogeneous: bool)[src]

Sets self to be homogeneous or not. If it is homogeneous, self will request the same size for all its children for its opposite orientation, e.g. if self is oriented horizontally and is homogeneous, it will request the same height for all its children. If it isn't, self may change size when a different child becomes visible.

homogeneous

true to make self homogeneous

pub fn set_interpolate_size(&self, interpolate_size: bool)[src]

Sets whether or not self will interpolate the size of its opposing orientation when changing the visible child. If true, self will interpolate its size between the one of the previous visible child and the one of the new visible child, according to the set transition duration and the orientation, e.g. if self is horizontal, it will interpolate the its height.

interpolate_size

true to interpolate the size

pub fn set_transition_duration(&self, duration: u32)[src]

Sets the duration that transitions between children in self will take.

duration

the new duration, in milliseconds

pub fn set_transition_type(&self, transition: SqueezerTransitionType)[src]

Sets the type of animation that will be used for transitions between children in self. Available types include various kinds of fades and slides.

The transition type can be changed without problems at runtime, so it is possible to change the animation based on the child that is about to become current.

transition

the new transition type

pub fn set_xalign(&self, xalign: f32)[src]

Sets the Squeezer:xalign property for self.

xalign

the new xalign value, between 0 and 1

pub fn set_yalign(&self, yalign: f32)[src]

Sets the Squeezer:yalign property for self.

yalign

the new yalign value, between 0 and 1

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

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

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

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

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

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

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

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

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

Trait Implementations

impl Clone for Squeezer[src]

impl Debug for Squeezer[src]

impl Default for Squeezer[src]

impl Display for Squeezer[src]

impl Eq for Squeezer[src]

impl Hash for Squeezer[src]

impl IsA<Accessible> for Squeezer[src]

impl IsA<Buildable> for Squeezer[src]

impl IsA<ConstraintTarget> for Squeezer[src]

impl IsA<Orientable> for Squeezer[src]

impl IsA<Widget> for Squeezer[src]

impl Ord for Squeezer[src]

impl ParentClassIs for Squeezer[src]

type Parent = Widget

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

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

impl StaticType for Squeezer[src]

impl StructuralEq for Squeezer[src]

Auto Trait Implementations

impl RefUnwindSafe for Squeezer[src]

impl !Send for Squeezer[src]

impl !Sync for Squeezer[src]

impl Unpin for Squeezer[src]

impl UnwindSafe for Squeezer[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<O> OrientableExt for O where
    O: IsA<Orientable>, 

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