DDraceNetwork Docs
CLayerSounds Class Reference

#include <layer_sounds.h>

Inheritance diagram for CLayerSounds:
[legend]
Collaboration diagram for CLayerSounds:
[legend]

Public Member Functions

 CLayerSounds (CEditor *pEditor)
 
 CLayerSounds (const CLayerSounds &Other)
 
 ~CLayerSounds ()
 
void Render (bool Tileset=false) override
 
CSoundSourceNewSource (int x, int y)
 
void BrushSelecting (CUIRect Rect) override
 
int BrushGrab (std::shared_ptr< CLayerGroup > pBrush, CUIRect Rect) override
 
void BrushPlace (std::shared_ptr< CLayer > pBrush, vec2 WorldPos) override
 
CUi::EPopupMenuFunctionResult RenderProperties (CUIRect *pToolbox) override
 
void ModifyEnvelopeIndex (FIndexModifyFunction pfnFunc) override
 
void ModifySoundIndex (FIndexModifyFunction pfnFunc) override
 
std::shared_ptr< CLayerDuplicate () const override
 
const char * TypeName () const override
 
- Public Member Functions inherited from CLayer
class IGraphicsGraphics ()
 
class ITextRenderTextRender ()
 
 CLayer (CEditor *pEditor)
 
 CLayer (const CLayer &Other)
 
virtual ~CLayer ()
 
virtual void BrushSelecting (CUIRect Rect)
 
virtual int BrushGrab (std::shared_ptr< CLayerGroup > pBrush, CUIRect Rect)
 
virtual void FillSelection (bool Empty, std::shared_ptr< CLayer > pBrush, CUIRect Rect)
 
virtual void BrushDraw (std::shared_ptr< CLayer > pBrush, vec2 WorldPos)
 
virtual void BrushPlace (std::shared_ptr< CLayer > pBrush, vec2 WorldPos)
 
virtual void BrushFlipX ()
 
virtual void BrushFlipY ()
 
virtual void BrushRotate (float Amount)
 
virtual bool IsEntitiesLayer () const
 
virtual void Render (bool Tileset=false)
 
virtual CUi::EPopupMenuFunctionResult RenderProperties (CUIRect *pToolbox)
 
virtual void ModifyImageIndex (FIndexModifyFunction pfnFunc)
 
virtual void ModifyEnvelopeIndex (FIndexModifyFunction pfnFunc)
 
virtual void ModifySoundIndex (FIndexModifyFunction pfnFunc)
 
virtual std::shared_ptr< CLayerDuplicate () const =0
 
virtual const char * TypeName () const =0
 
virtual void GetSize (float *pWidth, float *pHeight)
 

Public Attributes

int m_Sound
 
std::vector< CSoundSourcem_vSources
 
- Public Attributes inherited from CLayer
class CEditorm_pEditor
 
char m_aName [12]
 
int m_Type
 
int m_Flags
 
bool m_Readonly
 
bool m_Visible
 

Constructor & Destructor Documentation

◆ CLayerSounds() [1/2]

CLayerSounds::CLayerSounds ( CEditor pEditor)
explicit

◆ CLayerSounds() [2/2]

CLayerSounds::CLayerSounds ( const CLayerSounds Other)

◆ ~CLayerSounds()

CLayerSounds::~CLayerSounds ( )
default

Member Function Documentation

◆ BrushGrab()

int CLayerSounds::BrushGrab ( std::shared_ptr< CLayerGroup pBrush,
CUIRect  Rect 
)
overridevirtual

Reimplemented from CLayer.

◆ BrushPlace()

void CLayerSounds::BrushPlace ( std::shared_ptr< CLayer pBrush,
vec2  WorldPos 
)
overridevirtual

Reimplemented from CLayer.

◆ BrushSelecting()

void CLayerSounds::BrushSelecting ( CUIRect  Rect)
overridevirtual

Reimplemented from CLayer.

◆ Duplicate()

std::shared_ptr< CLayer > CLayerSounds::Duplicate ( ) const
overridevirtual

Implements CLayer.

◆ ModifyEnvelopeIndex()

void CLayerSounds::ModifyEnvelopeIndex ( FIndexModifyFunction  pfnFunc)
overridevirtual

Reimplemented from CLayer.

◆ ModifySoundIndex()

void CLayerSounds::ModifySoundIndex ( FIndexModifyFunction  pfnFunc)
overridevirtual

Reimplemented from CLayer.

◆ NewSource()

CSoundSource * CLayerSounds::NewSource ( int  x,
int  y 
)

◆ Render()

void CLayerSounds::Render ( bool  Tileset = false)
overridevirtual

Reimplemented from CLayer.

◆ RenderProperties()

CUi::EPopupMenuFunctionResult CLayerSounds::RenderProperties ( CUIRect pToolbox)
overridevirtual

Reimplemented from CLayer.

◆ TypeName()

const char * CLayerSounds::TypeName ( ) const
overridevirtual

Implements CLayer.

Member Data Documentation

◆ m_Sound

int CLayerSounds::m_Sound

◆ m_vSources

std::vector<CSoundSource> CLayerSounds::m_vSources

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