Enum tiled::ObjectShape
[−]
[src]
pub enum ObjectShape { Rect { width: f32, height: f32, }, Ellipse { width: f32, height: f32, }, Polyline { points: Vec<(f32, f32)>, }, Polygon { points: Vec<(f32, f32)>, }, }
Variants
Rect
Fields of Rect
width: f32 | |
height: f32 |
Ellipse
Fields of Ellipse
width: f32 | |
height: f32 |
Polyline
Fields of Polyline
points: Vec<(f32, f32)> |
Polygon
Fields of Polygon
points: Vec<(f32, f32)> |
Trait Implementations
impl Debug for ObjectShape
[src]
impl PartialEq for ObjectShape
[src]
fn eq(&self, __arg_0: &ObjectShape) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ObjectShape) -> bool
[src]
This method tests for !=
.
impl Clone for ObjectShape
[src]
fn clone(&self) -> ObjectShape
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more