HeadlessDisplay

@safe final
class HeadlessDisplay : Display {}

Members

Functions

reloadResources
void reloadResources()
Undocumented in source. Be warned that the author may not have intended to support it.

Inherited Members

From Display

cellSize
int cellSize;

Base cell size in the display, if supported by the renderer.

camera
Camera camera;

Active camera.

packs
PackList packs;

Used pack list

cellMap
Cell[UniquePosition] cellMap;

Registered cells

anchorMap
Anchor[size_t] anchorMap;

Registered anchors

modelMap
Model[size_t] modelMap;

Registered models

~this
~this()
Undocumented in source.
make
Display make()

Create a display with the current renderer.

reloadResources
void reloadResources()

Reload all resources in the display. Make sure to call PackList.clearCache.

cells
auto cells()

Iterate on all cells

models
auto models()

Iterate on all models

anchors
auto anchors()

Iterate on all anchors

cellCount
size_t cellCount()

Get the number of cells in the display.

modelCount
size_t modelCount()

Get the number of models in the display.

anchorCount
size_t anchorCount()

Get the number of anchors in the display.

clear
void clear()

Clear all objects within the display. Leaves packs and cache in place.

clearDestroy
void clearDestroy()

Destroy the contents of the display.

addCell
Cell addCell(Position position, string type)

Add a new cell to the display. Replaces the cell if one already exists.

getCell
Cell getCell(UniquePosition position)

Get a cell at given position.

removeCell
bool removeCell(UniquePosition position)
bool removeCell(Position position)

Remove the cell at given position.

addModel
Model addModel(string type)
Model addModel(Position position, string type)

Add a new model to the display.

removeModel
bool removeModel(Model model)

Remove the given model from the map.

addAnchor
Anchor addAnchor(Position position)

Add a new anchor to the display.

removeAnchor
bool removeAnchor(Anchor anchor)

Remove the given anchor from the map.

Meta