Gama C Library
Gama C API Documentation
Loading...
Searching...
No Matches
widgets.h File Reference
#include "widgets/button.h"
#include "widgets/frame.h"
#include "widgets/joystick.h"
#include "widgets/scale.h"
#include "widgets/switch.h"

Go to the source code of this file.

Data Structures

struct  gmwThemeCache
 Structure containing all widget themes for caching purposes. More...

Macros

#define GAMA_MAX_THEME_CACHE_SIZE   10

Functions

gmwThemeCachegmw_save ()
 Saves the current widget themes to the theme cache.
void gmw_restore ()
 Restores the previous widget themes from the theme cache.

Variables

gmwThemeCache _theme_cache [GAMA_MAX_THEME_CACHE_SIZE]
 Internal cache array for widget themes.
short gm_theme_cache_index = -1
 Current index in the theme cache array.

Macro Definition Documentation

◆ GAMA_MAX_THEME_CACHE_SIZE

#define GAMA_MAX_THEME_CACHE_SIZE   10

Function Documentation

◆ gmw_restore()

void gmw_restore ( )

Restores the previous widget themes from the theme cache.

◆ gmw_save()

gmwThemeCache * gmw_save ( )

Saves the current widget themes to the theme cache.

Returns
A pointer to the saved theme cache entry, or NULL if the cache is full.

Variable Documentation

◆ _theme_cache

Internal cache array for widget themes.

◆ gm_theme_cache_index

short gm_theme_cache_index = -1

Current index in the theme cache array.