ocarina/include/gui/settings.h
Anna Schumaker 870a2b769b gui/window: Save width and height between sessions
Saving maximized state is too complicated, so let's just store width and
height of the window when it is not maximized.

Signed-off-by: Anna Schumaker <Anna@OcarinaProject.net>
2016-04-29 13:04:45 -04:00

32 lines
780 B
C

/*
* Copyright 2015 (c) Anna Schumaker.
*
* The settings layer is used to store values configured by the user.
*/
#ifndef OCARINA_GUI_SETTINGS_H
#define OCARINA_GUI_SETTINGS_H
#include <glib.h>
#include <stdbool.h>
/* Called to initialize GUI settings. */
void gui_settings_init();
/* Called to deinitialize GUI settings. */
void gui_settings_deinit();
/* Called to configure a specific setting by key. */
void gui_settings_set(const gchar *, unsigned int);
/* Called to access a specific setting by key. */
unsigned int gui_settings_get(const gchar *);
/* Called to check if a specific settings exists. */
bool gui_settings_has(const gchar *);
#ifdef CONFIG_TESTING
GHashTable *test_get_gui_settings();
#endif /* CONFIG_TESTING */
#endif /* OCARINA_GUI_SETTINGS_H */