[][src]Struct libhandy4::ClampScrollable

pub struct ClampScrollable(_);

Implementations

impl ClampScrollable[src]

pub fn new() -> ClampScrollable[src]

Creates a new ClampScrollable.

Returns

a new ClampScrollable

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

Gets the child widget of self.

Returns

the child widget of self

pub fn get_maximum_size(&self) -> i32[src]

Gets the maximum size to allocate to the contained child. It is the width if self is horizontal, or the height if it is vertical.

Returns

the maximum width to allocate to the contained child.

pub fn get_tightening_threshold(&self) -> i32[src]

Gets the size starting from which the clamp will tighten its grip on the child.

Returns

the size starting from which the clamp will tighten its grip on the child.

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

Sets the child widget of self.

child

the child widget

pub fn set_maximum_size(&self, maximum_size: i32)[src]

Sets the maximum size to allocate to the contained child. It is the width if self is horizontal, or the height if it is vertical.

maximum_size

the maximum size

pub fn set_tightening_threshold(&self, tightening_threshold: i32)[src]

Sets the size starting from which the clamp will tighten its grip on the child.

tightening_threshold

the tightening threshold

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

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

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

Trait Implementations

impl Clone for ClampScrollable[src]

impl Debug for ClampScrollable[src]

impl Default for ClampScrollable[src]

impl Display for ClampScrollable[src]

impl Eq for ClampScrollable[src]

impl Hash for ClampScrollable[src]

impl IsA<Accessible> for ClampScrollable[src]

impl IsA<Buildable> for ClampScrollable[src]

impl IsA<ConstraintTarget> for ClampScrollable[src]

impl IsA<Orientable> for ClampScrollable[src]

impl IsA<Scrollable> for ClampScrollable[src]

impl IsA<Widget> for ClampScrollable[src]

impl Ord for ClampScrollable[src]

impl ParentClassIs for ClampScrollable[src]

type Parent = Widget

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

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

impl StaticType for ClampScrollable[src]

impl StructuralEq for ClampScrollable[src]

Auto Trait Implementations

impl RefUnwindSafe for ClampScrollable[src]

impl !Send for ClampScrollable[src]

impl !Sync for ClampScrollable[src]

impl Unpin for ClampScrollable[src]

impl UnwindSafe for ClampScrollable[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<O> ScrollableExt for O where
    O: IsA<Scrollable>, 

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