Oxygen Engine
Modern C++ 3D Engine using OpenGL
Loading...
Searching...
No Matches
custom.h
1#ifndef OE_GUI_COMPONENT_CUSTOM_H
2#define OE_GUI_COMPONENT_CUSTOM_H
3
4#include "../component.h"
5#include <functional>
6
7namespace oe::gui::component
8{
14 class Custom : public Component
15 {
16 public:
23 Custom(std::function<void(nk_context*, Component&)> generator);
24
28 void generate();
29
30 private:
31 std::function<void(nk_context*, Component&)> _generator;
32 };
33}
34#endif
Definition component.h:22
T * createChild(Args &&... args)
Definition component.h:64
Custom Component.
Definition custom.h:15
void generate()
Generate the component.
Custom(std::function< void(nk_context *, Component &)> generator)
Constructor.
UI components.
Definition component.h:15