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
6namespace 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
Definition component.h:22
T * createChild(Args &&... args)
Definition component.h:64
Definition combobox.h:9
UI components.
Definition component.h:15