Struct components::PathConstraint[][src]

pub struct PathConstraint(_, _);

Implementations

impl PathConstraint[src]

pub fn new<P>(path: Option<&P>, offset: f32) -> PathConstraint where
    P: IsA<Path>, 
[src]

Creates a new PathConstraint with the given path and offset

path

a Path, or None

offset

the offset along the Path

Returns

the newly created PathConstraint

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

Retrieves the offset along the Path used by self.

Returns

the offset

pub fn get_path(&self) -> Option<Path>[src]

Retrieves a pointer to the Path used by self.

Returns

the Path used by the PathConstraint, or None. The returned Path is owned by the constraint and it should not be unreferenced

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

Sets the offset along the Path used by self.

offset

the offset along the path

pub fn set_path<P>(&self, path: Option<&P>) where
    P: IsA<Path>, 
[src]

Sets the path to be followed by the PathConstraint.

The self will take ownership of the Path passed to this function.

path

a Path

pub fn connect_node_reached<F>(&self, f: F) -> SignalHandlerId where
    F: 'static + Fn(&PathConstraint, &Actor, u32), 
[src]

The ::node-reached signal is emitted each time a PathConstraint:offset value results in the actor passing a PathNode

actor

the Actor using the constraint

index

the index of the node that has been reached

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

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

Trait Implementations

impl Clone for PathConstraint[src]

impl Debug for PathConstraint[src]

impl Display for PathConstraint[src]

impl Eq for PathConstraint[src]

impl Hash for PathConstraint[src]

impl IsA<ActorMeta> for PathConstraint[src]

impl IsA<Constraint> for PathConstraint[src]

impl IsA<InitiallyUnowned> for PathConstraint[src]

impl Ord for PathConstraint[src]

impl<T> PartialEq<T> for PathConstraint where
    T: ObjectType
[src]

impl<T> PartialOrd<T> for PathConstraint where
    T: ObjectType
[src]

impl StaticType for PathConstraint[src]

Auto Trait Implementations

Blanket Implementations

impl<O> ActorMetaExt for O where
    O: IsA<ActorMeta>, 
[src]

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<Fr, To> IntoColor<To> for Fr where
    To: FromColor<Fr>, 

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,