pub struct Node(/* private fields */);Expand description
Untyped node handle with the properties every node has.
Implementations§
Source§impl Node
impl Node
Sourcepub fn rotation(self) -> Signal<f64>
pub fn rotation(self) -> Signal<f64>
Degrees, clockwise.
The rotation property as an animatable signal.
Sourcepub fn line_width(self) -> Signal<f64>
pub fn line_width(self) -> Signal<f64>
The line_width property as an animatable signal.
Sourcepub fn start(self) -> Signal<f64>
pub fn start(self) -> Signal<f64>
Start of the drawn part of the outline (fraction of its length).
The start property as an animatable signal.
Sourcepub fn end(self) -> Signal<f64>
pub fn end(self) -> Signal<f64>
End of the drawn part of the outline.
The end property as an animatable signal.
Sourcepub fn fill_gradient(self) -> Signal<Option<Gradient>>
pub fn fill_gradient(self) -> Signal<Option<Gradient>>
The fill_gradient property as an animatable signal.
Sourcepub fn stroke_gradient(self) -> Signal<Option<Gradient>>
pub fn stroke_gradient(self) -> Signal<Option<Gradient>>
The stroke_gradient property as an animatable signal.
Sourcepub fn dash_offset(self) -> Signal<f64>
pub fn dash_offset(self) -> Signal<f64>
The dash_offset property as an animatable signal.
Sourcepub fn shadow_color(self) -> Signal<Color>
pub fn shadow_color(self) -> Signal<Color>
The shadow_color property as an animatable signal.
Sourcepub fn shadow_blur(self) -> Signal<f64>
pub fn shadow_blur(self) -> Signal<f64>
The shadow_blur property as an animatable signal.
Sourcepub fn shadow_offset(self) -> Signal<Vec2>
pub fn shadow_offset(self) -> Signal<Vec2>
The shadow_offset property as an animatable signal.
Sourcepub fn align_self(self) -> Signal<Option<LayoutAlign>>
pub fn align_self(self) -> Signal<Option<LayoutAlign>>
The align_self property as an animatable signal.
Sourcepub fn add<B>(self, child: B) -> <B as NodeBuilder>::Handlewhere
B: NodeBuilder,
pub fn add<B>(self, child: B) -> <B as NodeBuilder>::Handlewhere
B: NodeBuilder,
Adds a child node; children are positioned relative to the parent.
Sourcepub fn absolute_position(self) -> Vec2
pub fn absolute_position(self) -> Vec2
Position of the node’s origin in scene coordinates.
Trait Implementations§
impl Copy for Node
impl Eq for Node
impl StructuralPartialEq for Node
Auto Trait Implementations§
impl Freeze for Node
impl RefUnwindSafe for Node
impl Send for Node
impl Sync for Node
impl Unpin for Node
impl UnsafeUnpin for Node
impl UnwindSafe for Node
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.