Oxygen Engine
Modern C++ 3D Engine using OpenGL
Loading...
Searching...
No Matches
combobox.h
1
#ifndef OE_GUI_COMPONENT_COMBOBOX_H
2
#define OE_GUI_COMPONENT_COMBOBOX_H
3
4
#include "../component.h"
5
6
namespace
oe::gui::component
7
{
8
class
Combobox
:
public
Component
9
{
10
public
:
11
Combobox
(
int32_t
*
selected
,
const
std::vector<std::string>&
choices
);
12
13
void
setChoices(
const
std::vector<std::string>&
choices
);
14
15
void
generate();
16
private
:
17
int32_t
* _selected;
// Selected value
18
std::vector<std::string> _string_choices;
// Local copy of choices strings
19
std::vector<const char*> _choices;
20
};
21
}
22
#endif
oe::gui::Component
Definition
component.h:22
oe::gui::Component::createChild
T * createChild(Args &&... args)
Definition
component.h:64
oe::gui::component::Combobox
Definition
combobox.h:9
oe::gui::component
UI components.
Definition
component.h:15
OxygenEngine
gui
component
combobox.h
Generated by
1.9.8