Documentation

ObjectLayer extends TileLayer implements Printable, PropertyBagHolder Uses PropertyBagTrait

Represents an object group.

Tags
see
https://doc.mapeditor.org/en/stable/reference/tmx-map-format/#objectgroup

Documentation

Interfaces, Classes and Traits

Printable
Marks something as a printable layer.
PropertyBagHolder
Interface for all elements, which contains properties.

Table of Contents

$color  : string|null
The color used to display the objects in this group.
$drawObjects  : array<string|int, mixed>
All the objects in this layer.
$drawOrder  : string
With which algorithm should the objects be drawn?
$height  : int|null
The height of the layer in tiles. Always the same as the map height for fixed-size maps.
$id  : int|null
Unique ID of the layer.
$map  : Map|null
The map object, which holds this layer.
$name  : string|null
The name of the layer.
$offsetX  : float
Horizontal offset for this layer in pixels. Defaults to 0.
$offsetY  : float
Vertical offset for this layer in pixels. Defaults to 0.
$opacity  : float|null
The opacity of the layer as a value from 0 to 1.
$order  : int
Which order in the map should this tileLayer be rendered.
$propertyBag  : PropertyBag|null
$tintColor  : string|null
A color that is multiplied with any tiles drawn by this layer in #AARRGGBB or #RRGGBB format.
$visible  : bool
Whether the layer is shown (1) or hidden (0).
$width  : int|null
The width of the layer in tiles. Always the same as the map width for fixed-size maps.
$x  : int
The x coordinate of the layer in tiles.
$y  : int
The y coordinate of the layer in tiles.
addDrawObject()  : self
getColor()  : string|null
getDrawObjects()  : array<string|int, DrawObject>
getDrawOrder()  : string
getHeight()  : int|null
getId()  : int|null
getMap()  : Map|null
getName()  : string|null
getOffsetX()  : float
getOffsetY()  : float
getOpacity()  : float|null
getOrder()  : int
getPropertyBag()  : PropertyBag|null
getTintColor()  : string|null
getWidth()  : int|null
getX()  : int
getY()  : int
isVisible()  : bool
removeDrawObject()  : self
setColor()  : ObjectLayer
setDrawOrder()  : ObjectLayer
setHeight()  : ObjectLayer
setId()  : TileLayer
setMap()  : TileLayer
setName()  : TileLayer
setOffsetX()  : TileLayer
setOffsetY()  : TileLayer
setOpacity()  : TileLayer
setOrder()  : ObjectLayer
setPropertyBag()  : self
setTintColor()  : TileLayer
setVisible()  : TileLayer
setWidth()  : ObjectLayer
setX()  : ObjectLayer
setY()  : ObjectLayer

Properties

Methods

getColor()

public getColor() : string|null
Return values
string|null

getDrawOrder()

public getDrawOrder() : string
Return values
string

getHeight()

public getHeight() : int|null
Return values
int|null

getId()

public getId() : int|null
Return values
int|null

getName()

public getName() : string|null
Return values
string|null

getOffsetX()

public getOffsetX() : float
Return values
float

getOffsetY()

public getOffsetY() : float
Return values
float

getOpacity()

public getOpacity() : float|null
Return values
float|null

getOrder()

public getOrder() : int
Return values
int

getTintColor()

public getTintColor() : string|null
Return values
string|null

getWidth()

public getWidth() : int|null
Return values
int|null

isVisible()

public isVisible() : bool
Return values
bool

setTintColor()

public setTintColor(string|null $tintColor) : TileLayer
Parameters
$tintColor : string|null
Return values
TileLayer

Search results