DDraceNetwork Docs
layer_quads.h
Go to the documentation of this file.
1#ifndef GAME_EDITOR_MAPITEMS_LAYER_QUADS_H
2#define GAME_EDITOR_MAPITEMS_LAYER_QUADS_H
3
4#include "layer.h"
5
6class CLayerQuads : public CLayer
7{
8public:
9 explicit CLayerQuads(CEditor *pEditor);
10 CLayerQuads(const CLayerQuads &Other);
12
13 void Render(bool QuadPicker = false) override;
14 CQuad *NewQuad(int x, int y, int Width, int Height);
15 int SwapQuads(int Index0, int Index1);
16
17 void BrushSelecting(CUIRect Rect) override;
18 int BrushGrab(std::shared_ptr<CLayerGroup> pBrush, CUIRect Rect) override;
19 void BrushPlace(std::shared_ptr<CLayer> pBrush, vec2 WorldPos) override;
20 void BrushFlipX() override;
21 void BrushFlipY() override;
22 void BrushRotate(float Amount) override;
23
25
26 void ModifyImageIndex(FIndexModifyFunction pfnFunc) override;
27 void ModifyEnvelopeIndex(FIndexModifyFunction pfnFunc) override;
28
29 void GetSize(float *pWidth, float *pHeight) override;
30 std::shared_ptr<CLayer> Duplicate() const override;
31 const char *TypeName() const override;
32
34 std::vector<CQuad> m_vQuads;
35};
36
37#endif
Definition: editor.h:276
Definition: layer_quads.h:7
void BrushSelecting(CUIRect Rect) override
Definition: layer_quads.cpp:97
void BrushRotate(float Amount) override
Definition: layer_quads.cpp:190
void Render(bool QuadPicker=false) override
Definition: layer_quads.cpp:27
int SwapQuads(int Index0, int Index1)
Definition: layer_quads.cpp:274
int BrushGrab(std::shared_ptr< CLayerGroup > pBrush, CUIRect Rect) override
Definition: layer_quads.cpp:111
CQuad * NewQuad(int x, int y, int Width, int Height)
Definition: layer_quads.cpp:39
const char * TypeName() const override
Definition: layer_quads.cpp:287
void GetSize(float *pWidth, float *pHeight) override
Definition: layer_quads.cpp:209
void BrushFlipX() override
Definition: layer_quads.cpp:162
CLayerQuads(CEditor *pEditor)
Definition: layer_quads.cpp:10
void BrushFlipY() override
Definition: layer_quads.cpp:172
void ModifyImageIndex(FIndexModifyFunction pfnFunc) override
Definition: layer_quads.cpp:255
std::vector< CQuad > m_vQuads
Definition: layer_quads.h:34
std::shared_ptr< CLayer > Duplicate() const override
Definition: layer_quads.cpp:269
int m_Image
Definition: layer_quads.h:33
CUi::EPopupMenuFunctionResult RenderProperties(CUIRect *pToolbox) override
Definition: layer_quads.cpp:224
void ModifyEnvelopeIndex(FIndexModifyFunction pfnFunc) override
Definition: layer_quads.cpp:260
void BrushPlace(std::shared_ptr< CLayer > pBrush, vec2 WorldPos) override
Definition: layer_quads.cpp:141
Definition: layer.h:16
Definition: ui_rect.h:11
EPopupMenuFunctionResult
Definition: ui.h:289
std::function< void(int *pIndex)> FIndexModifyFunction
Definition: editor.h:52
Definition: mapitems.h:223