-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvxgui_logical.cpp
More file actions
46 lines (27 loc) · 1.03 KB
/
vxgui_logical.cpp
File metadata and controls
46 lines (27 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#include "vxgui.hpp"
GuiHandle::GuiHandle(std::unique_ptr<GuiContext> context) : ctx(std::move(context)) {}
GuiHandle::~GuiHandle() = default;
GuiContext* GuiHandle::get() const {
return ctx.get();
}
Gui::Gui(std::unique_ptr<GuiContext> context) : ctx(std::move(context)) {}
void Gui::add(std::unique_ptr<Widget> widget) {
widgets.emplace_back(std::move(widget));
}
Widget& Gui::operator[](std::size_t index) {
return *widgets[index];
}
void GuiContext::set_fill(Color color) {}
void GuiContext::draw_rect(const vec2& pos, const vec2& size) {}
void Button::paint(GuiContext& ctx) {}
void Button::update(Gui& ctx) {}
void Container::paint(GuiContext& ctx) {}
void Container::update(Gui& ctx) {}
void Container::add_widget(std::unique_ptr<Widget> widget) {
children.emplace_back(std::move(widget));
}
void Graph::paint(GuiContext& ctx) {}
void Graph::update(Gui& ctx) {}
RichText::RichText(const std::string& text) : content(text) {}
void RichText::paint(GuiContext& ctx) {}
void RichText::update(Gui& ctx) {}