mirror of
https://github.com/PrimeDecomp/prime.git
synced 2026-07-12 18:18:56 -07:00
34 lines
796 B
C++
34 lines
796 B
C++
#ifndef _CGUIFRAME
|
|
#define _CGUIFRAME
|
|
|
|
#include "GuiSys/CGuiWidgetIdDB.hpp"
|
|
#include "rstl/string.hpp"
|
|
|
|
class CGuiWidget;
|
|
class CGuiCamera;
|
|
class CGuiLight;
|
|
class CGuiHeadWidget;
|
|
class CGuiWidgetDrawParms;
|
|
class CGuiFrame {
|
|
public:
|
|
void Update(float dt);
|
|
void Draw(const CGuiWidgetDrawParms& parms) const;
|
|
CGuiWidget* FindWidget(const char* name) const;
|
|
CGuiWidget* FindWidget(const rstl::string& name) const;
|
|
|
|
CGuiCamera* GetFrameCamera() const { return x14_camera; }
|
|
void SetFrameCamera(CGuiCamera* camera);
|
|
void AddLight(CGuiLight* light);
|
|
void RemoveLight(CGuiLight* light);
|
|
void SetHeadWidget(CGuiHeadWidget* widget);
|
|
|
|
CGuiWidgetIdDB& WidgetIdDB() { return x18_db; }
|
|
|
|
private:
|
|
char x0_[0x14];
|
|
CGuiCamera* x14_camera;
|
|
CGuiWidgetIdDB x18_db;
|
|
};
|
|
|
|
#endif // _CGUIFRAME
|