GUIFramework 1.1.0
Framework for desktop GUI applications in C++.
Loading...
Searching...
No Matches
BaseSeparateWindow.h
Go to the documentation of this file.
1#pragma once
2
3#include "BaseWindow.h"
6
7namespace gui_framework
8{
11 public BaseWindow,
14 {
15 protected:
16 HICON largeIcon;
17 HICON smallIcon;
18 std::filesystem::path pathToSmallIcon;
19 std::filesystem::path pathToLargeIcon;
20
21 public:
26 BaseSeparateWindow(const std::wstring& className, const std::wstring& titleName, const utility::ComponentSettings& settings, const std::string& windowFunctionName, bool maximize = false, bool minimize = false, const std::string& moduleName = "", uint16_t smallIconResource = NULL, uint16_t largeIconResource = NULL);
27
29 void enableResize();
30
32 void disableResize();
33
37 void setLargeIcon(const std::filesystem::path& pathToLargeIcon);
38
42 void setSmallIcon(const std::filesystem::path& pathToSmallIcon);
43
46 virtual size_t getHash() const override = 0;
47
48 virtual json::JSONBuilder getStructure() const override;
49
50 virtual ~BaseSeparateWindow();
51 };
52}
#define GUI_FRAMEWORK_API
Base class for separate windows.
virtual size_t getHash() const override=0
Used as key in creators.
Base class for composite windows.
Definition BaseWindow.h:13
Provides resize, setBlockResize, getBlockResize methods.