[][src]Struct libhandy4::ClampLayout

pub struct ClampLayout(_);

Implementations

impl ClampLayout[src]

pub fn new() -> ClampLayout[src]

Creates a new ClampLayout.

Returns

a new ClampLayout

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

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

Trait Implementations

impl Clone for ClampLayout[src]

impl Debug for ClampLayout[src]

impl Default for ClampLayout[src]

impl Display for ClampLayout[src]

impl Eq for ClampLayout[src]

impl Hash for ClampLayout[src]

impl IsA<LayoutManager> for ClampLayout[src]

impl IsA<Orientable> for ClampLayout[src]

impl Ord for ClampLayout[src]

impl ParentClassIs for ClampLayout[src]

type Parent = LayoutManager

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

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

impl StaticType for ClampLayout[src]

impl StructuralEq for ClampLayout[src]

Auto Trait Implementations

impl RefUnwindSafe for ClampLayout[src]

impl !Send for ClampLayout[src]

impl !Sync for ClampLayout[src]

impl Unpin for ClampLayout[src]

impl UnwindSafe for ClampLayout[src]

Blanket Implementations

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<Super, Sub> CanDowncast<Sub> for Super where
    Sub: IsA<Super>,
    Super: IsA<Super>, 

impl<T> Cast for T where
    T: ObjectType, 

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<O> LayoutManagerExt for O where
    O: IsA<LayoutManager>, 

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.