GUIFramework 1.1.0
Framework for desktop GUI applications in C++.
Loading...
Searching...
No Matches
ITextListView.h
Go to the documentation of this file.
1#pragma once
2
4
5namespace gui_framework
6{
7 namespace interfaces
8 {
11 {
12 private:
13 virtual void onRemove(size_t index) final override;
14
15 LVITEMW makeItem(std::wstring_view text, size_t index);
16
17 private:
18 std::unordered_map<size_t, size_t> textData; // index - size
19
20 public:
21 ITextListView(HWND handle);
22
23 virtual LRESULT addTextItem(const std::wstring& text);
24
25 virtual LRESULT addTextItem(std::string_view localizationKey);
26
27 virtual LRESULT insertTextItem(std::wstring_view text, size_t index);
28
29 virtual LRESULT insertTextItem(std::string_view localizationKey, size_t index);
30
31 virtual LRESULT changeTextItem(std::wstring_view text, size_t index);
32
33 virtual LRESULT changeTextItem(std::string_view localizationKey, size_t index);
34
35 virtual std::wstring getItemText(size_t index) const;
36
37 virtual ~ITextListView() = default;
38 };
39 }
40}
#define GUI_FRAMEWORK_API
Provides adding, deleting, setting, getting items for other list view interfaces.
Provides adding text items for list views.
virtual LRESULT insertTextItem(std::wstring_view text, size_t index)
virtual LRESULT changeTextItem(std::string_view localizationKey, size_t index)
virtual LRESULT addTextItem(std::string_view localizationKey)
virtual LRESULT addTextItem(const std::wstring &text)
virtual LRESULT insertTextItem(std::string_view localizationKey, size_t index)
virtual LRESULT changeTextItem(std::wstring_view text, size_t index)