1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-17 10:10:23 +00:00
OpenMW/apps/openmw/mwgui/settings.hpp
elsid 62362fc0ef
Use typed settings storage for windows
Group window settings into structs. Include rect sizes in regular and maximized
state and maximized flag. Use them instead of manipulations with string names.
2023-04-12 00:54:00 +02:00

41 lines
1.4 KiB
C++

#ifndef OPENMW_APPS_OPENMW_MWGUI_SETTINGS_H
#define OPENMW_APPS_OPENMW_MWGUI_SETTINGS_H
#include "components/settings/settingvalue.hpp"
namespace MWGui
{
struct WindowRectSettingValues
{
Settings::SettingValue<float>& mX;
Settings::SettingValue<float>& mY;
Settings::SettingValue<float>& mW;
Settings::SettingValue<float>& mH;
};
struct WindowSettingValues
{
WindowRectSettingValues mRegular;
WindowRectSettingValues mMaximized;
Settings::SettingValue<bool>& mIsMaximized;
};
WindowSettingValues makeAlchemyWindowSettingValues();
WindowSettingValues makeBarterWindowSettingValues();
WindowSettingValues makeCompanionWindowSettingValues();
WindowSettingValues makeConsoleWindowSettingValues();
WindowSettingValues makeContainerWindowSettingValues();
WindowSettingValues makeDialogueWindowSettingValues();
WindowSettingValues makeInventoryWindowSettingValues();
WindowSettingValues makeInventoryBarterWindowSettingValues();
WindowSettingValues makeInventoryCompanionWindowSettingValues();
WindowSettingValues makeInventoryContainerWindowSettingValues();
WindowSettingValues makeMapWindowSettingValues();
WindowSettingValues makePostprocessorWindowSettingValues();
WindowSettingValues makeSettingsWindowSettingValues();
WindowSettingValues makeSpellsWindowSettingValues();
WindowSettingValues makeStatsWindowSettingValues();
}
#endif