Struct mold2d::vector::PositionChange
[−]
[src]
pub struct PositionChange { pub x: i32, pub y: i32, pub w: i32, pub h: i32, }
Represents a change of position
Fields
x: i32
y: i32
w: i32
h: i32
Methods
impl PositionChange
[src]
fn new() -> PositionChange
fn from_vector(v: &Vector2D) -> PositionChange
fn left(&self, amount: i32) -> PositionChange
fn right(&self, amount: i32) -> PositionChange
fn up(&self, amount: i32) -> PositionChange
fn down(&self, amount: i32) -> PositionChange
fn shrink_height_top(&self, amount: i32) -> PositionChange
fn grow_height_top(&self, amount: i32) -> PositionChange
fn shrink_height_bot(&self, amount: i32) -> PositionChange
fn grow_height_bot(&self, amount: i32) -> PositionChange
fn shrink_width_left(&self, amount: i32) -> PositionChange
fn grow_width_left(&self, amount: i32) -> PositionChange
fn shrink_width_right(&self, amount: i32) -> PositionChange
fn grow_width_right(&self, amount: i32) -> PositionChange
fn chain(&self, change: &PositionChange) -> PositionChange
fn to_vector(&self) -> Vector2D
Trait Implementations
impl Clone for PositionChange
[src]
fn clone(&self) -> PositionChange
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for PositionChange
[src]
impl PartialEq for PositionChange
[src]
fn eq(&self, __arg_0: &PositionChange) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &PositionChange) -> bool
This method tests for !=
.