Struct clutter::BindConstraint[][src]

pub struct BindConstraint(_, _);

Implementations

impl BindConstraint[src]

pub fn new<P: IsA<Actor>>(
    source: Option<&P>,
    coordinate: BindCoordinate,
    offset: f32
) -> BindConstraint
[src]

Creates a new constraint, binding a Actor’s position to the given coordinate of the position of source

source

the Actor to use as the source of the binding, or None

coordinate

the coordinate to bind

offset

the offset to apply to the binding, in pixels

Returns

the newly created BindConstraint

pub fn get_coordinate(&self) -> BindCoordinate[src]

Retrieves the bound coordinate of the constraint

Returns

the bound coordinate

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

Retrieves the offset set using BindConstraint::set_offset

Returns

the offset, in pixels

pub fn get_source(&self) -> Option<Actor>[src]

Retrieves the Actor set using BindConstraint::set_source

Returns

a pointer to the source actor

pub fn set_coordinate(&self, coordinate: BindCoordinate)[src]

Sets the coordinate to bind in the constraint

coordinate

the coordinate to bind

pub fn set_offset(&self, offset: f32)[src]

Sets the offset to be applied to the constraint

offset

the offset to apply, in pixels

pub fn set_source<P: IsA<Actor>>(&self, source: Option<&P>)[src]

Sets the source Actor for the constraint

source

a Actor, or None to unset the source

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

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

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

Trait Implementations

impl Clone for BindConstraint[src]

impl Debug for BindConstraint[src]

impl Display for BindConstraint[src]

impl Eq for BindConstraint[src]

impl Hash for BindConstraint[src]

impl IsA<ActorMeta> for BindConstraint[src]

impl IsA<Constraint> for BindConstraint[src]

impl IsA<InitiallyUnowned> for BindConstraint[src]

impl Ord for BindConstraint[src]

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

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

impl StaticType for BindConstraint[src]

Auto Trait Implementations

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>, 
[src]

impl<T> Cast for T where
    T: ObjectType
[src]

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
[src]

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: SetValue + Send + ToValue + ?Sized
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> ToValue for T where
    T: SetValue + ?Sized
[src]

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.