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); }

Trait containing all PaintNode methods.

Implementors

ClipNode, PaintNode, PipelineNode, TextNode

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]

Adds a rectangle region to the self, as described by the passed rect.

rect

a ActorBox

fn add_texture_rectangle(
    &self,
    rect: &ActorBox,
    x_1: f32,
    y_1: f32,
    x_2: f32,
    y_2: f32
)
[src]

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

Loading content...

Implementors

impl<O: IsA<PaintNode>> PaintNodeExt for O[src]

Loading content...