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