GUIFramework 1.1.0
Framework for desktop GUI applications in C++.
Loading...
Searching...
No Matches
ITextIconListView.h
Go to the documentation of this file.
1#pragma once
2
5
6namespace gui_framework
7{
8 namespace interfaces
9 {
12 {
13 private:
14 void onRemove(size_t index) final override;
15
16 LVITEMW makeItem(std::wstring_view text, const std::filesystem::path& pathToIcon, size_t index);
17
18 private:
20 std::unordered_map<size_t, size_t> textData;
21
22 public:
23 ITextIconListView(HWND handle, utility::IconsHolder& icons);
24
25 virtual LRESULT addTextIconItem(std::wstring_view text, const std::filesystem::path& pathToIcon);
26
27 virtual LRESULT addTextIconItem(std::string_view localizationKey, const std::filesystem::path& pathToIcon);
28
29 virtual LRESULT insertTextIconItem(std::wstring_view text, const std::filesystem::path& pathToIcon, size_t index);
30
31 virtual LRESULT insertTextIconItem(std::string_view localizationKey, const std::filesystem::path& pathToIcon, size_t index);
32
33 virtual LRESULT changeTextIconItem(std::wstring_view text, const std::filesystem::path& pathToIcon, size_t index);
34
35 virtual LRESULT changeTextIconItem(std::string_view localizationKey, const std::filesystem::path& pathToIcon, size_t index);
36
40 virtual std::tuple<std::wstring, uint16_t, std::filesystem::path> getTextIconItem(size_t index) const;
41
42 virtual ~ITextIconListView() = default;
43 };
44 }
45}
#define GUI_FRAMEWORK_API
Provides adding, deleting, setting, getting items for other list view interfaces.
Provides adding text and icon items for list views.
virtual LRESULT addTextIconItem(std::wstring_view text, const std::filesystem::path &pathToIcon)
virtual LRESULT changeTextIconItem(std::wstring_view text, const std::filesystem::path &pathToIcon, size_t index)
virtual LRESULT insertTextIconItem(std::string_view localizationKey, const std::filesystem::path &pathToIcon, size_t index)
virtual LRESULT addTextIconItem(std::string_view localizationKey, const std::filesystem::path &pathToIcon)
virtual LRESULT insertTextIconItem(std::wstring_view text, const std::filesystem::path &pathToIcon, size_t index)
virtual LRESULT changeTextIconItem(std::string_view localizationKey, const std::filesystem::path &pathToIcon, size_t index)