GUIFramework 1.1.0
Framework for desktop GUI applications in C++.
Loading...
Searching...
No Matches
ITextOperations.h
Go to the documentation of this file.
1#pragma once
2
3#include "Core.h"
4
5namespace gui_framework
6{
7 namespace interfaces
8 {
11 {
12 protected:
14
15 public:
16 ITextOperations(HWND handle, const std::wstring& text = L"");
17
18 ITextOperations(HWND handle, const std::string& localizationKey);
19
20 void setText(std::wstring_view text);
21
22 virtual void setText(std::string_view localizationKey);
23
27 virtual std::wstring getText() const final;
28
29 virtual ~ITextOperations() = default;
30 };
31 }
32}
#define GUI_FRAMEWORK_API
Provides setText and getText methods.
ITextOperations(HWND handle, const std::string &localizationKey)
void setText(std::wstring_view text)
virtual void setText(std::string_view localizationKey)
ITextOperations(HWND handle, const std::wstring &text=L"")