[][src]Struct libhandy4::Clamp

pub struct Clamp(_);

Implementations

impl Clamp[src]

pub fn new() -> Clamp[src]

Creates a new Clamp.

Returns

a new Clamp

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

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

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

Trait Implementations

impl Clone for Clamp[src]

impl Debug for Clamp[src]

impl Default for Clamp[src]

impl Display for Clamp[src]

impl Eq for Clamp[src]

impl Hash for Clamp[src]

impl IsA<Accessible> for Clamp[src]

impl IsA<Buildable> for Clamp[src]

impl IsA<ConstraintTarget> for Clamp[src]

impl IsA<Orientable> for Clamp[src]

impl IsA<Widget> for Clamp[src]

impl Ord for Clamp[src]

impl ParentClassIs for Clamp[src]

type Parent = Widget

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

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

impl StaticType for Clamp[src]

impl StructuralEq for Clamp[src]

Auto Trait Implementations

impl RefUnwindSafe for Clamp[src]

impl !Send for Clamp[src]

impl !Sync for Clamp[src]

impl Unpin for Clamp[src]

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