2020-10-15 22:13:15 +08:00
|
|
|
|
#ifndef HGL_GUI_FORM_INCLUDE
|
|
|
|
|
#define HGL_GUI_FORM_INCLUDE
|
|
|
|
|
|
2020-10-21 11:43:18 +08:00
|
|
|
|
#include<hgl/graph/VKPipeline.h>
|
|
|
|
|
#include<hgl/gui/Widget.h>
|
2020-10-15 22:13:15 +08:00
|
|
|
|
namespace hgl
|
|
|
|
|
{
|
|
|
|
|
namespace gui
|
|
|
|
|
{
|
|
|
|
|
using namespace hgl::graph;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 窗体组件,窗体是承载所有GUI控件的基本装置
|
|
|
|
|
*/
|
2020-10-21 11:43:18 +08:00
|
|
|
|
class Form:public Widget
|
2020-10-15 22:13:15 +08:00
|
|
|
|
{
|
|
|
|
|
protected: //每个窗体独立一个FBO存在,所以每个窗体会有自己的RenderTarget与pipeline
|
|
|
|
|
|
|
|
|
|
public:
|
2020-10-21 11:43:18 +08:00
|
|
|
|
|
|
|
|
|
Form(ThemeEngine *te=nullptr):Widget(nullptr,te){}
|
|
|
|
|
virtual ~Form()=default;
|
2020-10-15 22:13:15 +08:00
|
|
|
|
};//class Form
|
|
|
|
|
}//namespace gui
|
|
|
|
|
}//namespace hgl
|
|
|
|
|
#endif//HGL_GUI_FORM_INCLUDE
|