26#include <Objectively/Enum.h>
27#include <Objectively/Dictionary.h>
36typedef struct StyleInterface StyleInterface;
70struct StyleInterface {
75 ObjectInterface objectInterface;
86 void (*addAttribute)(
Style *self,
const char *attr, ident value);
95 void (*addAttributes)(
Style *self,
const Dictionary *attributes);
105 void (*addBoolAttribute)(
Style *self,
const char *attr,
bool value);
115 void (*addCharactersAttribute)(
Style *self,
const char *attr,
const char *value);
125 void (*addColorAttribute)(
Style *self,
const char *attr,
const SDL_Color *color);
135 void (*addDoubleAttribute)(
Style *self,
const char *attr,
double value);
146 void (*addEnumAttribute)(
Style *self,
const char *attr,
const EnumName *names,
int value);
156 void (*addFloatAttribute)(
Style *self,
const char *attr,
float value);
166 void (*addIntegerAttribute)(
Style *self,
const char *attr,
int value);
176 void (*addPointAttribute)(
Style *self,
const char *attr,
const SDL_Point *value);
186 void (*addRectangleAttribute)(
Style *self,
const char *attr,
const SDL_Rect *value);
205 void (*addSizeAttribute)(
Style *self,
const char *attr,
const SDL_Size *value);
214 ident (*attributeValue)(
const Style *self,
const char *attr);
225 Style *(*initWithAttributes)(
Style *self,
const Dictionary *attributes);
236 Style *(*initWithRules)(
Style *self,
const char *rules);
248 bool (*isComputedEqual)(
const Style *self,
const Style *other);
258 Array *(*parse)(
const char *css);
266 void (*removeAllAttributes)(
Style *self);
275 void (*removeAttribute)(
Style *self,
const char *attr);
OBJECTIVELYMVC_EXPORT Class * _Style(void)
#define OBJECTIVELYMVC_EXPORT
Selectors are comprised of one or more SelectorSequences.
Object object
The superclass.
Array * selectors
The Selectors.
StyleInterface * interface
The interface.