mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-12 03:02:30 +00:00
chore: initial commit
This commit is contained in:
commit
70b00c5c38
965 changed files with 264882 additions and 0 deletions
67
src/gx/Screen.hpp
Normal file
67
src/gx/Screen.hpp
Normal file
|
|
@ -0,0 +1,67 @@
|
|||
#ifndef GX_SCREEN_HPP
|
||||
#define GX_SCREEN_HPP
|
||||
|
||||
#include <cstdint>
|
||||
#include <common/Handle.hpp>
|
||||
#include <storm/List.hpp>
|
||||
|
||||
typedef HOBJECT HLAYER;
|
||||
typedef HOBJECT HSRGN;
|
||||
|
||||
enum SCRNSTOCK {
|
||||
STOCK_SYSFONT = 0,
|
||||
STOCK_PERFFONT = 1,
|
||||
SCRNSTOCKOBJECTS = 2
|
||||
};
|
||||
|
||||
struct RECTF {
|
||||
float left;
|
||||
float bottom;
|
||||
float right;
|
||||
float top;
|
||||
};
|
||||
|
||||
class CILayer : public CHandleObject {
|
||||
public:
|
||||
RECTF rect;
|
||||
RECTF visible;
|
||||
float zorder;
|
||||
uint32_t flags;
|
||||
void* param;
|
||||
void (*paintfunc)(void*, const RECTF*, const RECTF*, float);
|
||||
TSLink<CILayer> zorderlink;
|
||||
};
|
||||
|
||||
class CSRgn {
|
||||
public:
|
||||
HSRGN m_handle;
|
||||
};
|
||||
|
||||
namespace Screen {
|
||||
extern int32_t s_captureScreen;
|
||||
extern float s_elapsedSec;
|
||||
extern int32_t s_presentDisable;
|
||||
extern HOBJECT s_stockObjects[SCRNSTOCKOBJECTS];
|
||||
extern float s_stockObjectHeights[SCRNSTOCKOBJECTS];
|
||||
extern STORM_EXPLICIT_LIST(CILayer, zorderlink) s_zorderlist;
|
||||
}
|
||||
|
||||
void ILayerInitialize(void);
|
||||
|
||||
void IStockInitialize(void);
|
||||
|
||||
void ScrnInitialize(int32_t);
|
||||
|
||||
void ScrnLayerCreate(const RECTF*, float, unsigned long, void*, void (*)(void*, const RECTF*, const RECTF*, float), HLAYER*);
|
||||
|
||||
void ScrnSetStockFont(SCRNSTOCK, const char*);
|
||||
|
||||
void SRgnCombineRectf(HSRGN*, RECTF*, void*, int32_t);
|
||||
|
||||
void SRgnCreate(HSRGN*, uint32_t);
|
||||
|
||||
void SRgnDelete(HSRGN*);
|
||||
|
||||
void SRgnGetBoundingRectf(HSRGN*, RECTF*);
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue