GUIFramework 1.1.0
Framework for desktop GUI applications in C++.
Loading...
Searching...
No Matches
BaseStaticControl.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 staticControlWidth = 200;
17 inline static constexpr uint16_t staticControlHeight = 40;
18
19 protected:
20 virtual void updateLocalization(std::wstring_view localizedText) override;
21
22 public:
23 BaseStaticControl(const std::wstring& staticControlName, const std::wstring& staticControlText, const utility::ComponentSettings& settings, BaseComposite* parent);
24
26 void addBorder();
27
29 void removeBorder();
30
31 virtual void setText(std::string_view localizationKey) final override;
32
35 virtual size_t getHash() const override = 0;
36
37 virtual ~BaseStaticControl() = default;
38
39 using interfaces::ITextOperations::setText;
40 };
41}
#define GUI_FRAMEWORK_API
Base class for all windows, controls, etc.
Base class for all windows that has children windows.
Base class for all static controls.
virtual size_t getHash() const override=0
Used as key in creators.
virtual ~BaseStaticControl()=default
Change localization of buttons, edit controls, etc.
Provides setText and getText methods.