78 template<
typename T,
typename... Args>
95template<
typename T,
typename... Args>
100 return std::make_unique<T>(std::forward<Args>(args)...);
104 return std::make_shared<T>(std::forward<Args>(args)...);
111 return typeid(T).hash_code();
#define GUI_FRAMEWORK_API_FUNCTION
std::unique_ptr< T > smartPointerType
Compatible smart pointer type.
bool useOnClose(any topLevelWindow)
string extendedException(const string &exceptionMessage, string_view fileName, string_view methodName, int line)
void throwNotImplementedException(string_view methodName, string_view className)
wstring to_wstring(const string &stringToConvert, uint32_t codepage)
HMODULE getCurrentModule()
Get handle to current executable.
void loadFunctionFromModule(function< void()> &onClick, const string &functionName, const string &moduleName)
int getCenterY(int height)
Get center Y coordinate.
string getStringFromRawPath(const filesystem::path &pathFromRawString)
smartPointerType< T > make_smart_pointer(Args &&... args)
Make function with current build configuration compatibility.
int getCenterX(int width)
Get center X coordinate.
void removeStyle(HWND handle, LONG_PTR styleToRemove)
Remove WinAPI style.
void unregisterClass(wstring_view className)
void loadEventCallbackFromModule(function< void(const wstring &)> &eventCallback, const string &functionName, const string &moduleName)
string getGUIFrameworkVersion()
Get current version of GUIFramework.
void appendStyle(HWND handle, LONG_PTR newStyle)
Append WinAPI style.
string to_string(wstring_view stringToConvert, uint32_t codepage)