26#include <Objectively/Array.h>
27#include <Objectively/Dictionary.h>
47typedef struct ThemeInterface ThemeInterface;
71 Dictionary *fontCache;
77 Dictionary *imageCache;
95struct ThemeInterface {
100 ObjectInterface objectInterface;
145 Image *(*image)(
Theme *self,
const char *
name,
float pixelDensity);
229 Theme *(*theme)(SDL_Window *window);
static String * name(const Font *self)
Packs many Images into one sheet, backed by one Texture.
static void addStylesheet(Theme *self, Stylesheet *stylesheet)
static Image * image(Theme *self, const char *name, float pixelDensity)
OBJECTIVELYMVC_EXPORT Class * _Theme(void)
#define OBJECTIVELYMVC_EXPORT
An Image packed into an ImageAtlas.
The family, size and style attributes that identify a Font, independent of the pixel density at which...
Packs many Images into one sheet, backed by one Texture.
Stylesheets are comprised of Selectors and Styles.
Object object
The superclass.
ThemeInterface * interface[0]
The interface type.
void removeStylesheet(Theme *self, Stylesheet *stylesheet)
Removes the given Stylesheet from this Theme.
Array * stylesheets
The Stylesheets, in order of priority.
void renderDeviceWillReset(Theme *self)
Releases the GPU resources of every cached Font's bitmap, and of Theme::icons if it has been created,...
void renderDeviceDidReset(Theme *self)
Notifies this Theme that the render device has been reset.
Views are the fundamental building blocks of ObjectivelyMVC user interfaces.