504 {
505
506 ((ObjectInterface *) clazz->interface)->dealloc =
dealloc;
507 ((ObjectInterface *) clazz->interface)->description =
description;
508 ((ObjectInterface *) clazz->interface)->hash =
hash;
509 ((ObjectInterface *) clazz->interface)->isEqual =
isEqual;
510
511 ((StyleInterface *) clazz->interface)->addAttribute =
addAttribute;
512 ((StyleInterface *) clazz->interface)->addAttributes =
addAttributes;
522 ((StyleInterface *) clazz->interface)->addSelector =
addSelector;
524 ((StyleInterface *) clazz->interface)->attributeValue =
attributeValue;
528 ((StyleInterface *) clazz->interface)->parse =
parse;
530 ((StyleInterface *) clazz->interface)->removeAttribute =
removeAttribute;
531}
static String * description(const Object *self)
static _Bool isEqual(const Object *self, const Object *other)
Array * parse(const char *rules)
Parses the null-terminated C string of Selector rules into an Array of Selectors.
void addSelector(Style *self, Selector *selector)
Adds the given Selector to this Style.
Style * initWithAttributes(Style *self, const Dictionary *attributes)
Initializes this Style with the given attributes.
_Bool isComputedEqual(const Style *self, const Style *other)
Performs a fast, rule-based comparison of this Style to the given Style.
void addIntegerAttribute(Style *self, const char *attr, int value)
Adds or replaces the given attribute with value.
void addSizeAttribute(Style *self, const char *attr, const SDL_Size *value)
Adds or replaces the given attribute with value.
void removeAttribute(Style *self, const char *attr)
Removes the attribute with the given name.
void addEnumAttribute(Style *self, const char *attr, const EnumName *names, int value)
Adds or replaces the given attribute with value.
void addPointAttribute(Style *self, const char *attr, const SDL_Point *value)
Adds or replaces the given attribute with value.
void addRectangleAttribute(Style *self, const char *attr, const SDL_Rect *value)
Adds or replaces the given attribute with value.
Style * initWithRules(Style *self, const char *rules)
Initializes this Style with the given CSS selector rules.
void removeAllAttributes(Style *self)
Removes all attributes from this Style.
void addFloatAttribute(Style *self, const char *attr, float value)
Adds or replaces the given attribute with value.
void addCharactersAttribute(Style *self, const char *attr, const char *value)
Adds or replaces the given attribute with value.
void addAttributes(Style *self, const Dictionary *attributes)
Adds or replaces the attribtues in attributes to this Style.
void addBoolAttribute(Style *self, const char *attr, _Bool value)
Adds or replaces the given attribute with value.
ident attributeValue(const Style *self, const char *attr)
void addColorAttribute(Style *self, const char *attr, const SDL_Color *value)
Adds or replaces the given attribute with value.