GUIFramework 1.1.0
Framework for desktop GUI applications in C++.
Loading...
Searching...
No Matches
BaseEditControl.h
Go to the documentation of this file.
1#pragma once
2
6
7namespace gui_framework
8{
12 public BaseComponent,
14 {
15 public:
16 inline static constexpr uint16_t editControlWidth = 200;
17 inline static constexpr uint16_t editControlHeight = 20;
18
19 protected:
20 std::wstring placeholder;
21
22 protected:
23 virtual void updateLocalization(std::wstring_view localizedText) override;
24
25 public:
26 BaseEditControl(const std::wstring& editControlName, const utility::ComponentSettings& settings, BaseComposite* parent, bool isMultiLine = false);
27
30 virtual bool setPlaceholder(std::wstring_view placeholder) final;
31
32 virtual const std::wstring& getPlaceholder() const final;
33
36 virtual size_t getHash() const override = 0;
37
38 virtual json::JSONBuilder getStructure() const override;
39
40 virtual void setText(std::string_view localizationKey) final override;
41
42 virtual ~BaseEditControl() = default;
43
44 using interfaces::ITextOperations::setText;
45 };
46}
#define GUI_FRAMEWORK_API
Base class for all windows, controls, etc.
Base class for all windows that has children windows.
Base class for all edit controls.
Change localization of buttons, edit controls, etc.
Provides setText and getText methods.