mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-11 18:34:58 +01:00
46 lines
722 B
C++
46 lines
722 B
C++
#ifndef __SETTINGS_H_
|
|
#define __SETTINGS_H_
|
|
|
|
#include "defines.h"
|
|
|
|
#include <string>
|
|
#include <list>
|
|
|
|
namespace Settings {
|
|
|
|
struct Window
|
|
{
|
|
std::string name;
|
|
int x,y,w,h;
|
|
bool fullscreen;
|
|
|
|
Window() : name(APP_TITLE), x(15), y(15), w(1280), h(720), fullscreen(false) { }
|
|
|
|
};
|
|
|
|
struct Application
|
|
{
|
|
std::string name;
|
|
float scale;
|
|
int color;
|
|
std::list<Window> windows;
|
|
|
|
Application() : name(APP_NAME), scale(1.f), color(0){
|
|
windows.push_back(Window());
|
|
}
|
|
|
|
};
|
|
|
|
// minimal implementation of settings
|
|
// Can be accessed r&w anywhere
|
|
extern Application application;
|
|
|
|
// Save and Load store settings in XML file
|
|
void Save();
|
|
void Load();
|
|
void Check();
|
|
|
|
}
|
|
|
|
#endif /* __SETTINGS_H_ */
|