pub trait PaintNodeExt: 'static {
// Required methods
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);
}
Expand description
Required Methods§
Sourcefn add_child<P: IsA<PaintNode>>(&self, child: &P)
fn add_child<P: IsA<PaintNode>>(&self, child: &P)
Adds child
to the list of children of self
.
This function will acquire a reference on child
.
§child
the child PaintNode
to add
Sourcefn add_rectangle(&self, rect: &ActorBox)
fn add_rectangle(&self, rect: &ActorBox)
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.