26#include <Objectively/Enum.h>
27#include <Objectively/Dictionary.h>
36typedef struct StyleInterface StyleInterface;
70struct StyleInterface {
75 ObjectInterface objectInterface;
225 Style *(*initWithAttributes)(
Style *self,
const Dictionary *attributes);
236 Style *(*initWithRules)(
Style *self,
const char *rules);
258 Array *(*parse)(
const char *css);
static void addAttribute(Style *self, const char *attr, ident value)
static void addDoubleAttribute(Style *self, const char *attr, double value)
static void addIntegerAttribute(Style *self, const char *attr, int value)
static void addEnumAttribute(Style *self, const char *attr, const EnumName *names, int value)
static void addCharactersAttribute(Style *self, const char *attr, const char *value)
static void removeAttribute(Style *self, const char *attr)
static void addSizeAttribute(Style *self, const char *attr, const SDL_Size *value)
static void removeAllAttributes(Style *self)
static void addColorAttribute(Style *self, const char *attr, const SDL_Color *color)
static ident attributeValue(const Style *self, const char *attr)
static void addRectangleAttribute(Style *self, const char *attr, const SDL_Rect *value)
static void addBoolAttribute(Style *self, const char *attr, _Bool value)
static void addSelector(Style *self, Selector *selector)
static void addFloatAttribute(Style *self, const char *attr, float value)
static void addPointAttribute(Style *self, const char *attr, const SDL_Point *value)
static void addAttributes(Style *self, const Dictionary *attributes)
static _Bool isComputedEqual(const Style *self, const Style *other)
#define OBJECTIVELYMVC_EXPORT
Selectors are comprised of one or more SelectorSequences.
Object object
The superclass.
Array * selectors
The Selectors.
StyleInterface * interface
The interface.
Class * _Style(void)
The Style archetype.