2020-10-14 22:05:24 +08:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include<hgl/gui/ThemeEngine.h>
|
2020-10-21 11:43:18 +08:00
|
|
|
#include<hgl/graph/VKMaterialInstance.h>
|
2020-10-19 22:26:42 +08:00
|
|
|
#include<hgl/type/Map.h>
|
2020-10-21 11:43:18 +08:00
|
|
|
#include"DTForm.h"
|
2020-10-14 22:05:24 +08:00
|
|
|
|
|
|
|
namespace hgl
|
|
|
|
{
|
|
|
|
namespace gui
|
|
|
|
{
|
2020-10-15 22:13:15 +08:00
|
|
|
using namespace hgl::graph;
|
|
|
|
|
2020-10-19 22:26:42 +08:00
|
|
|
class Form; ///<窗体
|
|
|
|
|
2020-10-21 11:43:18 +08:00
|
|
|
namespace default_theme
|
2020-10-14 22:05:24 +08:00
|
|
|
{
|
2020-10-21 11:43:18 +08:00
|
|
|
/**
|
|
|
|
* 缺省GUI主题引擎
|
|
|
|
*/
|
|
|
|
class DefaultThemeEngine:public ThemeEngine
|
2020-10-19 22:26:42 +08:00
|
|
|
{
|
|
|
|
|
2020-10-21 11:43:18 +08:00
|
|
|
//struct
|
|
|
|
//{
|
2020-10-21 12:47:06 +08:00
|
|
|
// Material * m;
|
|
|
|
// MaterialInstance * mi;
|
2020-10-21 11:43:18 +08:00
|
|
|
//}panel;
|
2020-10-15 22:13:15 +08:00
|
|
|
|
2020-10-21 11:43:18 +08:00
|
|
|
public:
|
2020-10-15 22:13:15 +08:00
|
|
|
|
2020-10-21 12:47:06 +08:00
|
|
|
DefaultThemeEngine(GPUDevice *dev):ThemeEngine(dev){}
|
2020-10-21 11:43:18 +08:00
|
|
|
virtual ~DefaultThemeEngine() override;
|
2020-10-14 22:05:24 +08:00
|
|
|
|
2020-10-21 11:43:18 +08:00
|
|
|
bool Init() override;
|
|
|
|
void Clear() override;
|
2020-10-14 22:05:24 +08:00
|
|
|
|
2020-10-21 11:43:18 +08:00
|
|
|
bool Registry(Form *) override;
|
|
|
|
void Unregistry(Form *) override;
|
|
|
|
void Render(Form *) override;
|
|
|
|
bool Resize(Form *,const uint32_t,const uint32_t) override;
|
|
|
|
};//class DefaultThemeEngine:public ThemeEngine
|
|
|
|
}//namespace default_theme
|
2020-10-14 22:05:24 +08:00
|
|
|
}//namespace gui
|
|
|
|
}//namespace hgl
|