pub struct ActorBox(/* private fields */);
Implementations§
Source§impl ActorBox
impl ActorBox
Sourcepub fn new(x_1: f32, y_1: f32, x_2: f32, y_2: f32) -> ActorBox
pub fn new(x_1: f32, y_1: f32, x_2: f32, y_2: f32) -> ActorBox
Allocates a new ActorBox
using the passed coordinates
for the top left and bottom right points.
This function is the logical equivalent of:
clutter_actor_box_init (clutter_actor_box_alloc (),
x_1, y_1,
x_2, y_2);
§x_1
X coordinate of the top left point
§y_1
Y coordinate of the top left point
§x_2
X coordinate of the bottom right point
§y_2
Y coordinate of the bottom right point
§Returns
the newly allocated ActorBox
.
Use ActorBox::free
to free the resources
Sourcepub fn get_height(&self) -> f32
pub fn get_height(&self) -> f32
Sourcepub fn get_origin(&self) -> (f32, f32)
pub fn get_origin(&self) -> (f32, f32)
Sourcepub fn interpolate(&self, final_: &ActorBox, progress: f64) -> ActorBox
pub fn interpolate(&self, final_: &ActorBox, progress: f64) -> ActorBox
Sourcepub fn set_origin(&mut self, x: f32, y: f32)
pub fn set_origin(&mut self, x: f32, y: f32)
Trait Implementations§
Source§impl Ord for ActorBox
impl Ord for ActorBox
Source§impl PartialOrd for ActorBox
impl PartialOrd for ActorBox
Source§impl StaticType for ActorBox
impl StaticType for ActorBox
Source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.impl Eq for ActorBox
Auto Trait Implementations§
impl Freeze for ActorBox
impl RefUnwindSafe for ActorBox
impl !Send for ActorBox
impl !Sync for ActorBox
impl Unpin for ActorBox
impl UnwindSafe for ActorBox
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more