GUIFramework 1.1.0
Framework for desktop GUI applications in C++.
Loading...
Searching...
No Matches
GUIFrameworkConstants.h File Reference
#include <string>
#include <cstdint>
#include <memory>
#include <CommCtrl.h>
#include <Richedit.h>

Go to the source code of this file.

Namespaces

namespace  gui_framework
 
namespace  gui_framework::standard_classes
 
namespace  gui_framework::standard_menu_items
 
namespace  gui_framework::standard_sizes
 
namespace  gui_framework::json_settings
 
namespace  gui_framework::libraries
 

Macros

#define IMPLEMENT_SERIALIZABLE_FUNCTION   extern "C" __declspec(dllexport)
 Insert this macro before serializable function declaration and implementation.
 
#define GUI_FRAMEWORK_API
 
#define GUI_FRAMEWORK_API_FUNCTION
 

Typedefs

using gui_framework::onClickSignature = void(*)()
 Default on click signature.
 
using gui_framework::onDestroySignature = void(*)()
 Default on destroy signature. Called before window is destroyed.
 
using gui_framework::onCloseSignature = bool(*)()
 Default on close signature. Worked only in BaseSeparateWindow subclasses. Called if user pressed close button.
 
template<typename T >
using smartPointerType = std::unique_ptr<T>
 Compatible smart pointer type.
 

Variables

const std::wstring gui_framework::standard_classes::button = WC_BUTTONW
 
const std::wstring gui_framework::standard_classes::editControl = WC_EDITW
 
const std::wstring gui_framework::standard_classes::staticControl = WC_STATICW
 
const std::wstring gui_framework::standard_classes::comboBox = WC_COMBOBOXW
 
const std::wstring gui_framework::standard_classes::listBox = WC_LISTBOXW
 
const std::wstring gui_framework::standard_classes::richEdit = MSFTEDIT_CLASS
 
const std::wstring gui_framework::standard_classes::tabControl = WC_TABCONTROLW
 
const std::wstring gui_framework::standard_classes::listView = WC_LISTVIEWW
 
const std::wstring gui_framework::standard_classes::progressBar = PROGRESS_CLASSW
 
const std::wstring gui_framework::standard_classes::trackbarControl = TRACKBAR_CLASSW
 
const std::wstring gui_framework::standard_classes::scrollBar = WC_SCROLLBARW
 
const std::string gui_framework::standard_menu_items::dropDownMenuItem = "DropDown"
 
const std::string gui_framework::standard_menu_items::menuItem = "MenuItem"
 
constexpr uint16_t gui_framework::standard_sizes::comboBoxAdditionalWidth = 10
 
constexpr uint16_t gui_framework::standard_sizes::listBoxAdditionalWidth = 20
 
constexpr uint16_t gui_framework::standard_sizes::dialogBoxBuilderMinWidth = 300
 
constexpr uint16_t gui_framework::standard_sizes::dialogBoxBuilderMinHeight = 200
 
constexpr uint16_t gui_framework::standard_sizes::defaultImagesCount = 16
 
const uint16_t gui_framework::standard_sizes::largeIconWidth = GetSystemMetrics(SM_CXICON)
 
const uint16_t gui_framework::standard_sizes::largeIconHeight = GetSystemMetrics(SM_CYICON)
 
const uint16_t gui_framework::standard_sizes::smallIconWidth = GetSystemMetrics(SM_CXSMICON)
 
const uint16_t gui_framework::standard_sizes::smallIconHeight = GetSystemMetrics(SM_CYSMICON)
 
constexpr uint16_t gui_framework::standard_sizes::additionalListViewReportColumnWidth = 10
 
constexpr std::string_view gui_framework::json_settings::settingsJSONFile = "gui_framework.json"
 
const std::string gui_framework::json_settings::settingsObject = "settings"
 
const std::string gui_framework::json_settings::usingCreatorsSetting = "usingCreators"
 
const std::string gui_framework::json_settings::usingDeserializersSetting = "usingDeserializers"
 
const std::string gui_framework::json_settings::threadsCountSetting = "threadsCount"
 
const std::string gui_framework::json_settings::usingNotImplementedExceptions = "usingNotImplementedExceptions"
 
const std::string gui_framework::json_settings::usingExtendedExceptions = "usingExtendedExceptions"
 
const std::string gui_framework::json_settings::modulesSetting = "modules"
 
const std::string gui_framework::json_settings::moduleNameSetting = "moduleName"
 
constexpr std::string_view gui_framework::json_settings::pathToModuleSettings = "pathToModule"
 
constexpr std::wstring_view gui_framework::libraries::msftEditLibrary = L"MsftEdit.dll"
 

Macro Definition Documentation

◆ GUI_FRAMEWORK_API

#define GUI_FRAMEWORK_API

Definition at line 103 of file GUIFrameworkConstants.h.

◆ GUI_FRAMEWORK_API_FUNCTION

#define GUI_FRAMEWORK_API_FUNCTION

Definition at line 104 of file GUIFrameworkConstants.h.

◆ IMPLEMENT_SERIALIZABLE_FUNCTION

#define IMPLEMENT_SERIALIZABLE_FUNCTION   extern "C" __declspec(dllexport)

Insert this macro before serializable function declaration and implementation.

Definition at line 87 of file GUIFrameworkConstants.h.

Typedef Documentation

◆ smartPointerType

template<typename T >
using smartPointerType = std::unique_ptr<T>

Compatible smart pointer type.

Definition at line 108 of file GUIFrameworkConstants.h.