Struct ux::PathConstraint [−][src]
pub struct PathConstraint(_, _);
Implementations
impl PathConstraint
[src][−]
pub fn new<P>(path: Option<&P>, offset: f32) -> PathConstraint where
P: IsA<Path>,
[src][−]
P: IsA<Path>,
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][−]
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][−]
pub fn set_path<P>(&self, path: Option<&P>) where
P: IsA<Path>,
[src][−]
P: IsA<Path>,
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][−]
F: 'static + Fn(&PathConstraint, &Actor, u32),
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]
F: 'static + Fn(&PathConstraint),
pub fn connect_property_path_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&PathConstraint),
[src]
F: 'static + Fn(&PathConstraint),
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][+]
T: ObjectType,
impl<T> PartialOrd<T> for PathConstraint where
T: ObjectType,
[src][+]
T: ObjectType,
impl StaticType for PathConstraint
[src][+]
Auto Trait Implementations
impl RefUnwindSafe for PathConstraint
impl !Send for PathConstraint
impl !Sync for PathConstraint
impl Unpin for PathConstraint
impl UnwindSafe for PathConstraint
Blanket Implementations
impl<O> ActorMetaExt for O where
O: IsA<ActorMeta>,
[src][+]
O: IsA<ActorMeta>,
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<Super, Sub> CanDowncast<Sub> for Super where
Sub: IsA<Super>,
Super: IsA<Super>,
[src]
Sub: IsA<Super>,
Super: IsA<Super>,
impl<T> Cast for T where
T: ObjectType,
[src][+]
T: ObjectType,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> ObjectExt for T where
T: ObjectType,
[src][+]
T: ObjectType,
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T> ToSendValue for T where
T: SetValue + Send + ToValue + ?Sized,
[src][+]
T: SetValue + Send + ToValue + ?Sized,
impl<T> ToString for T where
T: Display + ?Sized,
[src][+]
T: Display + ?Sized,
impl<T> ToValue for T where
T: SetValue + ?Sized,
[src][+]
T: SetValue + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,