Enum tiled::Object [] [src]

pub enum Object {
    Rect {
        x: f32,
        y: f32,
        width: f32,
        height: f32,
        visible: bool,
    },
    Ellipse {
        x: f32,
        y: f32,
        width: f32,
        height: f32,
        visible: bool,
    },
    Polyline {
        x: f32,
        y: f32,
        points: Vec<(f32, f32)>,
        visible: bool,
    },
    Polygon {
        x: f32,
        y: f32,
        points: Vec<(f32, f32)>,
        visible: bool,
    },
}

Variants

Rect

Fields

x: f32
y: f32
width: f32
height: f32
visible: bool
Ellipse

Fields

x: f32
y: f32
width: f32
height: f32
visible: bool
Polyline

Fields

x: f32
y: f32
points: Vec<(f32, f32)>
visible: bool
Polygon

Fields

x: f32
y: f32
points: Vec<(f32, f32)>
visible: bool

Trait Implementations

impl PartialEq for Object
[src]

fn eq(&self, __arg_0: &Object) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &Object) -> bool

This method tests for !=.

impl Debug for Object
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.