Object TLayer

Unit

Declaration

type TLayer = object(TObject)

Description

Layer definition. Internally we treat "object group" as normal layer.

Hierarchy

  • TObject
  • TLayer

Overview

Fields

Public Name: string;
Public Opacity: Single;
Public Visible: Boolean;
Public OffsetX: Integer;
Public OffsetY: Integer;
Public Properties: TProperties;
Public Data: TData;
Public IsLayerAnObjectGroup: Boolean;
Public Color: TCastleColorRGB;
Public X: Integer;
Public Y: Integer;
Public Width: Integer;
Public Height: Integer;
Public DrawOrder: TObjectsDrawOrder;
Public Objects: TTiledObjects;
Public LayerType: TLayerType;
Public Image: TImage;

Methods

Public procedure Free;

Description

Fields

Public Name: string;

The name of the layer.

Public Opacity: Single;

The opacity of the layer as a value from 0 to 1. Defaults to 1.

Public Visible: Boolean;

Whether the layer is shown (1) or hidden (0). Defaults to 1.

Public OffsetX: Integer;

Rendering offset for this layer in pixels. Defaults to 0. (since 0.14).

Public OffsetY: Integer;

Rendering offset for this layer in pixels. Defaults to 0. (since 0.14).

Public Properties: TProperties;
 
Public Data: TData;
 
Public IsLayerAnObjectGroup: Boolean;

If True then the layer will be treated as object group instead of normal layer.

Public Color: TCastleColorRGB;

The color used to display the objects in this group.

Public X: Integer;

The x coordinate of the object group in tiles. Defaults to 0 and can no longer be changed in Tiled Qt.

Public Y: Integer;

The y coordinate of the object group in tiles. Defaults to 0 and can no longer be changed in Tiled Qt.

Public Width: Integer;

The width of the object group in tiles. Meaningless.

Public Height: Integer;

The height of the object group in tiles. Meaningless.

Public DrawOrder: TObjectsDrawOrder;

Whether the objects are drawn according to the order of appearance ("index") or sorted by their y-coordinate ("topdown"). Defaults to "topdown".

Public Objects: TTiledObjects;
 
Public LayerType: TLayerType;
 
Public Image: TImage;

Used by ImageLayer.

Methods

Public procedure Free;
 

Generated by PasDoc 0.15.0.