GUIFramework 1.1.0
Framework for desktop GUI applications in C++.
Loading...
Searching...
No Matches
Utility.h File Reference
#include "Core.h"

Go to the source code of this file.

Namespaces

namespace  gui_framework
 
namespace  gui_framework::utility
 
namespace  gui_framework::__utility
 

Functions

GUI_FRAMEWORK_API_FUNCTION void gui_framework::utility::unregisterClass (std::wstring_view className)
 Unregister class that is used in SeparateWindow, ChildWindow, DialogBox, GroupBox.
 
void gui_framework::utility::appendStyle (HWND handle, LONG_PTR newStyle)
 Append WinAPI style.
 
void gui_framework::utility::removeStyle (HWND handle, LONG_PTR styleToRemove)
 Remove WinAPI style.
 
GUI_FRAMEWORK_API_FUNCTION std::string gui_framework::utility::to_string (std::wstring_view stringToConvert, uint32_t codepage)
 Convert std::wstring to std::string.
 
GUI_FRAMEWORK_API_FUNCTION std::wstring gui_framework::utility::to_wstring (const std::string &stringToConvert, uint32_t codepage)
 Convert std::string to std::wstring.
 
HMODULE gui_framework::utility::getCurrentModule ()
 Get handle to current executable.
 
GUI_FRAMEWORK_API_FUNCTION std::string gui_framework::utility::getStringFromRawPath (const std::filesystem::path &pathFromRawString)
 Get string with \ from raw string contructed path.
 
GUI_FRAMEWORK_API_FUNCTION void gui_framework::utility::loadFunctionFromModule (std::function< void()> &onClick, const std::string &functionName, const std::string &moduleName)
 Load function from module.
 
GUI_FRAMEWORK_API_FUNCTION void gui_framework::utility::loadEventCallbackFromModule (std::function< void(const std::wstring &)> &eventCallback, const std::string &functionName, const std::string &moduleName)
 Load function from module.
 
int gui_framework::utility::getCenterX (int width)
 Get center X coordinate.
 
int gui_framework::utility::getCenterY (int height)
 Get center Y coordinate.
 
string gui_framework::utility::getGUIFrameworkVersion ()
 Get current version of GUIFramework.
 
template<typename T , typename... Args>
smartPointerType< T > gui_framework::utility::make_smart_pointer (Args &&... args)
 Make function with current build configuration compatibility.
 
template<typename T >
size_t gui_framework::utility::getTypeHash ()
 
GUI_FRAMEWORK_API_FUNCTION void gui_framework::__utility::throwNotImplementedException (std::string_view methodName, std::string_view className)
 
GUI_FRAMEWORK_API_FUNCTION std::string gui_framework::__utility::extendedException (const std::string &exceptionMessage, std::string_view fileName, std::string_view methodName, int line)
 
GUI_FRAMEWORK_API_FUNCTION bool gui_framework::__utility::useOnClose (std::any topLevelWindow)