Oxygen Engine
Modern C++ 3D Engine using OpenGL
Loading...
Searching...
No Matches
checkbox.h
1
#ifndef OE_GUI_COMPONENT_CHECKBOX_H
2
#define OE_GUI_COMPONENT_CHECKBOX_H
3
4
#include "../component.h"
5
6
namespace
oe::gui::component
7
{
8
class
Checkbox
:
public
Component
9
{
10
public
:
11
Checkbox
(
const
std::string& label,
bool
* checked);
12
13
Checkbox
* setLabel(
const
std::string& label) { _label = label;
return
this
; }
14
15
// setOnClick(std::function<void(const bool&)>),
16
17
void
generate();
18
private
:
19
bool
*_checked;
20
std::string _label;
21
std::function<void()> _on_click;
22
};
23
}
24
#endif
oe::gui::Component
Definition
component.h:22
oe::gui::component::Checkbox
Definition
checkbox.h:9
oe::gui::component
UI components.
Definition
component.h:15
OxygenEngine
gui
component
checkbox.h
Generated by
1.9.8