mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-12 11:12:29 +00:00
chore: initial commit
This commit is contained in:
commit
70b00c5c38
965 changed files with 264882 additions and 0 deletions
42
src/ui/CSimpleRegion.hpp
Normal file
42
src/ui/CSimpleRegion.hpp
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
#ifndef UI_C_SIMPLE_REGION_HPP
|
||||
#define UI_C_SIMPLE_REGION_HPP
|
||||
|
||||
#include "ui/CScriptRegion.hpp"
|
||||
#include <storm/List.hpp>
|
||||
#include <tempest/Vector.hpp>
|
||||
|
||||
class CRenderBatch;
|
||||
|
||||
class CSimpleRegion : public CScriptRegion {
|
||||
public:
|
||||
// Member variables
|
||||
uint32_t m_alphaCount = 4;
|
||||
uint8_t m_alpha[4];
|
||||
uint32_t m_colorCount = 4;
|
||||
CImVector m_color[4];
|
||||
TSLink<CSimpleRegion> m_regionLink;
|
||||
TSLink<CSimpleRegion> m_layerLink;
|
||||
int32_t m_drawlayer = 0;
|
||||
int32_t m_shown = 0;
|
||||
int32_t m_visible = 0;
|
||||
|
||||
// Virtual member functions
|
||||
virtual ~CSimpleRegion();
|
||||
virtual void OnColorChanged(bool);
|
||||
virtual void OnScreenSizeChanged() {};
|
||||
virtual void Draw(CRenderBatch*) = 0;
|
||||
|
||||
// Member functions
|
||||
CSimpleRegion(CSimpleFrame*, uint32_t, int32_t);
|
||||
void GetVertexColor(CImVector& color) const;
|
||||
void Hide(void);
|
||||
void HideThis(void);
|
||||
bool IsShown();
|
||||
void OnRegionChanged(void);
|
||||
void SetVertexColor(const CImVector&);
|
||||
void SetFrame(CSimpleFrame*, uint32_t, int32_t);
|
||||
void Show(void);
|
||||
void ShowThis(void);
|
||||
};
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue