GUIFramework 1.1.0
Framework for desktop GUI applications in C++.
Loading...
Searching...
No Matches
DropDownComboBox.cpp
Go to the documentation of this file.
1#include "DropDownComboBox.h"
2
4
5using namespace std;
6
7namespace gui_framework
8{
9 DropDownComboBox::DropDownComboBox(const wstring& comboBoxName, const utility::ComponentSettings& settings, BaseComposite* parent) :
11 (
12 comboBoxName,
13 settings,
14 styles::DropDownComboBoxStyles(),
15 parent
16 )
17 {
18
19 }
20
22 {
23 return typeid(DropDownComboBox).hash_code();
24 }
25
26 json::JSONBuilder DropDownComboBox::getStructure() const
27 {
28 using json::utility::jsonObject;
29
30 json::JSONBuilder builder = BaseComboBox::getStructure();
31 jsonObject& current = get<jsonObject>(builder[utility::to_string(windowName, ISerializable::getCodepage())]);
32
33 return builder;
34 }
35}
Base class for all combo boxes.
virtual json::JSONBuilder getStructure() const override
const std::wstring windowName
Base class for all windows that has children windows.
DropDownComboBox(const std::wstring &comboBoxName, const utility::ComponentSettings &settings, BaseComposite *parent)
json::JSONBuilder getStructure() const override
size_t getHash() const override
Used as key in creators.
string to_string(wstring_view stringToConvert, uint32_t codepage)
Definition Utility.cpp:41