Oxygen Engine
Modern C++ 3D Engine using OpenGL
Loading...
Searching...
No Matches
progress.h
1#ifndef OE_GUI_COMPONENT_PROGRESS_H
2#define OE_GUI_COMPONENT_PROGRESS_H
3
4#include "../component.h"
5#include <functional>
6
7namespace oe::gui::component
8{
9 class Progress : public Component
10 {
11 public:
12 Progress(size_t* value, const size_t& max = 100, const bool& editable = false, std::function<void(const size_t)> on_change = [](size_t x){ (void)x; });
13
14 void generate();
15 private:
16 size_t* _value;
17 size_t _max;
18 bool _editable;
19
20 std::function<void(const size_t)> _on_change;
21 };
22}
23#endif
Definition component.h:22
T * createChild(Args &&... args)
Definition component.h:64
Definition progress.h:10
UI components.
Definition component.h:15