igor::iLayer Class Reference

#include <iLayer.h>

Inherited by igor::iLayerProfiler, and igor::iLayerWidgets.

Public Member Functions

 iLayer (iWindowPtr window, const iaString &name="Layer", int32 zIndex=0)
 
virtual ~iLayer ()=default
 
virtual void onInit ()
 
virtual void onDeinit ()
 
virtual void onUpdate ()
 
virtual void onEvent (iEvent &event)
 
const iaStringgetName () const
 
void setName (const iaString &name)
 
int32 getZIndex () const
 
iWindowPtr getWindow () const
 

Detailed Description

layer base class

Constructor & Destructor Documentation

◆ iLayer()

igor::iLayer::iLayer ( iWindowPtr  window,
const iaString name = "Layer",
int32  zIndex = 0 
)

init members

◆ ~iLayer()

virtual igor::iLayer::~iLayer ( )
virtualdefault

does nothing

Member Function Documentation

◆ getName()

const iaString & igor::iLayer::getName ( ) const
Returns
layer name

◆ getWindow()

iWindowPtr igor::iLayer::getWindow ( ) const
Returns
window

◆ getZIndex()

int32 igor::iLayer::getZIndex ( ) const
Returns
z index

◆ onDeinit()

virtual void igor::iLayer::onDeinit ( )
inlinevirtual

called when removed from layer stack

Reimplemented in igor::iLayerWidgets.

◆ onEvent()

virtual void igor::iLayer::onEvent ( iEvent event)
inlinevirtual

called on any other event

Reimplemented in igor::iLayerWidgets.

◆ onInit()

virtual void igor::iLayer::onInit ( )
inlinevirtual

called when added to layer stack

Reimplemented in igor::iLayerWidgets.

◆ onUpdate()

virtual void igor::iLayer::onUpdate ( )
inlinevirtual

called on application pre draw event

Reimplemented in igor::iLayerWidgets.

◆ setName()

void igor::iLayer::setName ( const iaString name)

sets layer name

Parameters
namethe name to set

The documentation for this class was generated from the following files: