Struct tego::Object[][src]

pub struct Object {
    pub id: usize,
    pub name: String,
    pub type_: String,
    pub pos: fvec2,
    pub size: fvec2,
    pub rotation: f32,
    pub tile_id: Option<GID>,
    pub visible: bool,
    pub kind: ObjectKind,
}
Expand description

An element of an ObjectLayer. Objects do not need to be aligned to the normal tile grid. Objects can have different kinds, (e.g. rect, ellipse, text). See ObjectKind for more info.

Fields

id: usizename: Stringtype_: Stringpos: fvec2size: fvec2rotation: f32tile_id: Option<GID>visible: boolkind: ObjectKind

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.