Trait ux::PaintNodeExt [−][src]
pub trait PaintNodeExt: 'static { pub fn add_child<P>(&self, child: &P)
where
P: IsA<PaintNode>; pub fn add_rectangle(&self, rect: &ActorBox); pub fn add_texture_rectangle(
&self,
rect: &ActorBox,
x_1: f32,
y_1: f32,
x_2: f32,
y_2: f32
); pub fn set_name(&self, name: &str); }
Required methods
pub fn add_child<P>(&self, child: &P) where
P: IsA<PaintNode>,
[src]
P: IsA<PaintNode>,
Adds child
to the list of children of self
.
This function will acquire a reference on child
.
child
the child PaintNode
to add
pub fn add_rectangle(&self, rect: &ActorBox)
[src]
pub fn add_texture_rectangle(
&self,
rect: &ActorBox,
x_1: f32,
y_1: f32,
x_2: f32,
y_2: f32
)
[src]
&self,
rect: &ActorBox,
x_1: f32,
y_1: f32,
x_2: f32,
y_2: f32
)
Adds a rectangle region to the self
, with texture coordinates.
rect
a ActorBox
x_1
the left X coordinate of the texture
y_1
the top Y coordinate of the texture
x_2
the right X coordinate of the texture
y_2
the bottom Y coordinate of the texture
pub fn set_name(&self, name: &str)
[src]
Sets a user-readable name
for self
.
The name
will be used for debugging purposes.
The self
will copy the passed string.
name
a string annotating the self
Implementors
impl<O> PaintNodeExt for O where
O: IsA<PaintNode>,
[src]
impl<O> PaintNodeExt for O where
O: IsA<PaintNode>,
[src]