refactor: add GUI instance reference to UI nodes
This commit is contained in:
@@ -9,13 +9,19 @@ namespace gui {
|
||||
protected:
|
||||
std::shared_ptr<Label> label;
|
||||
public:
|
||||
Button(const std::shared_ptr<UINode>& content,
|
||||
glm::vec4 padding=glm::vec4(2.0f));
|
||||
|
||||
Button(const std::wstring& text,
|
||||
glm::vec4 padding,
|
||||
const onaction& action,
|
||||
glm::vec2 size=glm::vec2(-1));
|
||||
Button(
|
||||
GUI& gui,
|
||||
const std::shared_ptr<UINode>& content,
|
||||
glm::vec4 padding = glm::vec4(2.0f)
|
||||
);
|
||||
|
||||
Button(
|
||||
GUI& gui,
|
||||
const std::wstring& text,
|
||||
glm::vec4 padding,
|
||||
const onaction& action,
|
||||
glm::vec2 size = glm::vec2(-1)
|
||||
);
|
||||
|
||||
virtual void drawBackground(
|
||||
const DrawContext& pctx, const Assets& assets
|
||||
|
||||
Reference in New Issue
Block a user