-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
18 tabData(
const std::wstring& text,
const std::filesystem::path& pathToImage,
const std::function<
void()>& callback);
-
-
-
-
-
-
-
-
-
-
-
-
-
-
32 utility::ImagesHolder images;
-
33 std::vector<std::function<
void()>> callbacks;
-
-
-
-
37 virtual LRESULT windowMessagesHandle(HWND handle, UINT message, WPARAM wparam, LPARAM lparam,
bool& isUsed) override;
-
-
-
40 BaseTabControl(const std::wstring& tabControlName, const utility::ComponentSettings& settings, uint16_t imagesWidth, uint16_t imagesHeight,
BaseComponent* parent);
-
-
42 virtual LRESULT appendText(const std::wstring& text, const std::function<
void()>& onClick) final;
-
-
44 virtual LRESULT insertText(
size_t index, const std::wstring& text, const std::function<
void()>& onClick) final;
-
-
50 virtual LRESULT appendImage(const std::filesystem::path& pathToImage, const std::function<
void()>& onClick) final;
-
-
57 virtual LRESULT insertImage(
size_t index, const std::filesystem::path& pathToImage, const std::function<
void()>& onClick) final;
-
-
64 virtual LRESULT appendTextAndImage(const std::wstring& text, const std::filesystem::path& pathToImage, const std::function<
void()>& onClick) final;
-
-
72 virtual LRESULT insertTextAndImage(
size_t index, const std::wstring& text, const std::filesystem::path& pathToImage, const std::function<
void()>& onClick) final;
-
-
74 virtual
bool removeTab(
size_t index) final;
-
-
76 virtual
bool clear() final;
-
-
78 virtual
size_t size() const final;
-
-
86 virtual
bool setItem(
size_t index, const std::function<
void()>& callback, const std::wstring& text = L"", const std::filesystem::path& pathToImage = L"") final;
-
-
90 virtual LRESULT setSelection(
size_t index) final;
-
-
96 virtual const
tabData& getItem(
size_t index) const final;
-
-
98 virtual LRESULT getSelectedTab() const final;
-
-
100 virtual uint16_t getImagesWidth() const final;
-
-
102 virtual uint16_t getImagesHeight() const final;
-
-
109 virtual
void setBackgroundColor(uint8_t red, uint8_t green, uint8_t blue) final override;
-
-
116 virtual
void setTextColor(uint8_t red, uint8_t green, uint8_t blue) final override;
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
19 tabData(
const std::wstring& text,
const std::filesystem::path& pathToImage,
const std::function<
void()>& callback);
+
+
+
+
+
+
+
+
+
+
+
+
+
+
33 utility::ImagesHolder images;
+
34 std::vector<std::function<
void()>> callbacks;
+
+
+
+
38 virtual LRESULT windowMessagesHandle(HWND handle, UINT message, WPARAM wparam, LPARAM lparam,
bool& isUsed) override;
+
+
+
41 BaseTabControl(const std::wstring& tabControlName, const utility::ComponentSettings& settings, uint16_t imagesWidth, uint16_t imagesHeight,
BaseComponent* parent);
+
+
43 virtual LRESULT appendText(const std::wstring& text, const std::function<
void()>& onClick) final;
+
+
45 virtual LRESULT insertText(
size_t index, const std::wstring& text, const std::function<
void()>& onClick) final;
+
+
51 virtual LRESULT appendImage(const std::filesystem::path& pathToImage, const std::function<
void()>& onClick) final;
+
+
58 virtual LRESULT insertImage(
size_t index, const std::filesystem::path& pathToImage, const std::function<
void()>& onClick) final;
+
+
65 virtual LRESULT appendTextAndImage(const std::wstring& text, const std::filesystem::path& pathToImage, const std::function<
void()>& onClick) final;
+
+
73 virtual LRESULT insertTextAndImage(
size_t index, const std::wstring& text, const std::filesystem::path& pathToImage, const std::function<
void()>& onClick) final;
+
+
75 virtual
bool removeTab(
size_t index) final;
+
+
77 virtual
bool clear() final;
+
+
79 virtual
size_t size() const final;
+
+
87 virtual
bool setItem(
size_t index, const std::function<
void()>& callback, const std::wstring& text = L"", const std::filesystem::path& pathToImage = L"") final;
+
+
91 virtual LRESULT setSelection(
size_t index) final;
+
+
97 virtual const
tabData& getItem(
size_t index) const final;
+
+
99 virtual LRESULT getSelectedTab() const final;
+
+
101 virtual uint16_t getImagesWidth() const final;
+
+
103 virtual uint16_t getImagesHeight() const final;
+
+
110 virtual
void setBackgroundColor(uint8_t red, uint8_t green, uint8_t blue) final override;
+
+
117 virtual
void setTextColor(uint8_t red, uint8_t green, uint8_t blue) final override;
+
+
+
+
-
#define GUI_FRAMEWORK_API
+
#define GUI_FRAMEWORK_API
Base class for all windows, controls, etc.
-
Base class for all tab controls.
+
Base class for all tab controls.
-
+
+
tabData(tabData &&) noexcept=default
tabData(const tabData &)=default
-
std::filesystem::path pathToImage
+
std::filesystem::path pathToImage
tabData(const std::wstring &text, const std::filesystem::path &pathToImage, const std::function< void()> &callback)
-
-
std::function< void()> callback
+
+
std::function< void()> callback