TmxObject

format.tmx.TmxObject (Class)

Instance Members

id: Int

Id of the object. Each object that is placed on map gets unique id. And even if object was deleted no one gets it's id again. Can not be changed in Tiled Qt.


name: String

The name of the object. An arbitrary string.


type: String

The type of the object. An arbitrary string.


The x coordinate of the object in pixels.


The y coordinate of the object in pixels.


width: Float

The width of the object in pixels (defaults to 0).


height: Float

The height of the object in pixels (defaults to 0).


rotation: Float

The rotation of the object in degrees clockwise (defaults to 0). (Since 0.10)


visible: Bool

Whether the object is shown (1) or hidden (0). Defaults to 1. (since 0.9.0)


objectType: Anonymous

Helper type to easily detect what exactly is that object.


properties: TmxProperties

Object properties.


flippedHorizontally: Bool

Is tile flipped horizontally? Default: false


flippedVertically: Bool

Is tile flipped vertically? Default: false


template: String

A reference to a template file (optional).


new(id: Int, name: Null<String>, type: Null<String>, x: Float, y: Float, width: Null<Float>, height: Null<Float>, rotation: Null<Float>, visible: Null<Bool>, objectType: Anonymous, properties: Null<TmxProperties>, flippedHorizontally: Null<Bool>, flippedVertically: Null<Bool>, template: Null<String>): Void
Name Type Description
id Int Id of the object. Each object that is placed on map gets unique id. And even if object was deleted no one gets it's id again. Can not be changed in Tiled Qt.
name Null<String> The name of the object. An arbitrary string.
type Null<String> The type of the object. An arbitrary string.
x Float The x coordinate of the object in pixels.
y Float The y coordinate of the object in pixels.
width Null<Float> The width of the object in pixels (defaults to 0).
height Null<Float> The height of the object in pixels (defaults to 0).
rotation Null<Float> The rotation of the object in degrees clockwise (defaults to 0). (Since 0.10)
visible Null<Bool> Whether the object is shown (1) or hidden (0). Defaults to 1. (since 0.9.0)
objectType Anonymous Helper type to easily detect what exactly is that object.
properties Null<TmxProperties> Object properties.
flippedHorizontally Null<Bool> Is tile flipped horizontally? Default: false
flippedVertically Null<Bool> Is tile flipped vertically? Default: false
template Null<String> A reference to a template file (optional).

Metadata

Name Parameters
:hxGen -
:structInit -