Struct rust_animation::actor::Actor [−][src]
pub struct Actor<'a> {}
Fields
name: String
x: i32
y: i32
z: f32
width: u32
height: u32
anchor_x: f32
anchor_y: f32
scale_x: f32
scale_y: f32
rotation: i32
image_path: String
sub_actor_list: Vec<Actor<'a>>
animated: bool
Implementations
pub fn new(
name: String,
w: u32,
h: u32,
event_handler: Option<Box<dyn EventHandler + 'a>>
) -> Self
pub fn apply_translation_x_animation(
&mut self,
from_value: i32,
to_value: i32,
by_value: i32
)
pub fn apply_translation_y_animation(
&mut self,
from_value: i32,
to_value: i32,
by_value: i32
)
Auto Trait Implementations
impl<'a> !RefUnwindSafe for Actor<'a>
impl<'a> !UnwindSafe for Actor<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
Sets value
as a parameter of self
.