Trait clutter::PaintNodeExt [−][src]
pub trait PaintNodeExt: 'static { fn add_child<P: IsA<PaintNode>>(&self, child: &P); fn add_rectangle(&self, rect: &ActorBox); fn add_texture_rectangle(
&self,
rect: &ActorBox,
x_1: f32,
y_1: f32,
x_2: f32,
y_2: f32
); fn set_name(&self, name: &str); }
Required methods
fn add_child<P: IsA<PaintNode>>(&self, child: &P)
[src]
Adds child
to the list of children of self
.
This function will acquire a reference on child
.
child
the child PaintNode
to add
fn add_rectangle(&self, rect: &ActorBox)
[src]
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
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