ObjectivelyMVC 0.1.0
Object oriented MVC framework for OpenGL, SDL2 and GNU C
|
Stylesheets are comprised of Selectors and Styles. More...
#include <Stylesheet.h>
Public Member Functions | |
Class * | _Stylesheet (void) |
The Stylesheet archetype. More... | |
Stylesheet * | defaultStylesheet (void) |
Stylesheet * | initWithCharacters (Stylesheet *self, const char *chars) |
Initializes this Stylesheet with the given CSS definitions. More... | |
Stylesheet * | initWithData (Stylesheet *self, const Data *data) |
Initializes this Stylesheet with the CSS definitions in data . More... | |
Stylesheet * | initWithResource (Stylsheet *self, const Resource *resource) |
Initializes this Stylsheet with the CSS definitions in resource . More... | |
Stylesheet * | initWithResourceName (Stylsheet *self, const char *name) |
Initializes this Stylsheet with the Resource by the specified name . More... | |
Stylesheet * | initWithString (Stylesheet *self, const String *string) |
Initializes this Stylesheet with the CSS definitions in string . More... | |
Stylesheet * | stylesheetWithCharacters (const char *chars) |
Instantiates a new Stylesheet with the given CSS definitions. More... | |
Stylesheet * | stylesheetWithCharacters (const Data *data) |
Instantiates a new Stylesheet with the given CSS Data. More... | |
Stylesheet * | stylesheetWithResource (const Resource *resource) |
Instantiates a new Stylesheet with the given CSS Resource. More... | |
Stylesheet * | stylesheetWithResourceName (const char *name) |
Instantiates a new Stylesheet with the CSS Resource by the specified name . More... | |
Stylesheet * | stylesheetWithString (const String *string) |
Instantiates a new Stylesheet with the given CSS String. More... | |
Static Public Member Functions | |
Stylesheet * | stylesheetWithCharacters (const char *chars) |
Instantiates a new Stylesheet with the given CSS definitions. More... | |
Stylesheet * | stylesheetWithCharacters (const Data *data) |
Instantiates a new Stylesheet with the given CSS Data. More... | |
Data Fields | |
Object | object |
The superclass. More... | |
Array * | selectors |
The Selectors, ordered by specificity. More... | |
Array * | styles |
The Styles, keyed by Selector. More... | |
Protected Attributes | |
StylesheetInterface * | interface |
The interface. More... | |
Stylesheets are comprised of Selectors and Styles.
Definition at line 44 of file Stylesheet.h.
Class * _Stylesheet | ( | void | ) |
The Stylesheet archetype.
Definition at line 277 of file Stylesheet.c.
Stylesheet * defaultStylesheet | ( | void | ) |
Definition at line 95 of file Stylesheet.c.
Stylesheet * initWithCharacters | ( | Stylesheet * | self, |
const char * | chars | ||
) |
Initializes this Stylesheet with the given CSS definitions.
self | The Stylesheet. |
chars | The null-terminated C string of CSS definitions. |
NULL
on error. Definition at line 124 of file Stylesheet.c.
Stylesheet * initWithData | ( | Stylesheet * | self, |
const Data * | data | ||
) |
Initializes this Stylesheet with the CSS definitions in data
.
self | The Stylesheet. |
data | The Data containing CSS definitions. |
NULL
on error. Definition at line 150 of file Stylesheet.c.
Stylesheet * initWithResource | ( | Stylsheet * | self, |
const Resource * | resource | ||
) |
Initializes this Stylsheet with the CSS definitions in resource
.
self | The Stylesheet. |
resource | The Resource containing CSS definitions. |
NULL
on error. Stylesheet * initWithResourceName | ( | Stylsheet * | self, |
const char * | name | ||
) |
Initializes this Stylsheet with the Resource by the specified name
.
self | The Stylesheet. |
name | The name of a Resource containing CSS definitions. |
NULL
on error. Stylesheet * initWithString | ( | Stylesheet * | self, |
const String * | string | ||
) |
Initializes this Stylesheet with the CSS definitions in string
.
self | The Stylesheet. |
string | The String containing CSS definitions. |
NULL
on error. Definition at line 195 of file Stylesheet.c.
Stylesheet * stylesheetWithCharacters | ( | const char * | chars | ) |
Instantiates a new Stylesheet with the given CSS definitions.
chars | The null-terminated C string of CSS definitions. |
NULL
on error. Definition at line 206 of file Stylesheet.c.
|
static |
Instantiates a new Stylesheet with the given CSS definitions.
chars | The null-terminated C string of CSS definitions. |
NULL
on error. Definition at line 206 of file Stylesheet.c.
Stylesheet * stylesheetWithCharacters | ( | const Data * | data | ) |
Instantiates a new Stylesheet with the given CSS Data.
data | The Data containing CSS definitions. |
NULL
on error.
|
static |
Instantiates a new Stylesheet with the given CSS Data.
data | The Data containing CSS definitions. |
NULL
on error. Stylesheet * stylesheetWithResource | ( | const Resource * | resource | ) |
Instantiates a new Stylesheet with the given CSS Resource.
resource | The Resource containing CSS definitions. |
NULL
on error. Definition at line 222 of file Stylesheet.c.
Stylesheet * stylesheetWithResourceName | ( | const char * | name | ) |
Instantiates a new Stylesheet with the CSS Resource by the specified name
.
name | The name of a Resource containing CSS definitions. |
NULL
on error. Definition at line 230 of file Stylesheet.c.
Stylesheet * stylesheetWithString | ( | const String * | string | ) |
Instantiates a new Stylesheet with the given CSS String.
string | The String of containing CSS definitions. |
NULL
on error. Definition at line 238 of file Stylesheet.c.
|
protected |
The interface.
Definition at line 55 of file Stylesheet.h.
Object Stylesheet::object |
The superclass.
Definition at line 49 of file Stylesheet.h.
Array* Stylesheet::selectors |
The Selectors, ordered by specificity.
Definition at line 60 of file Stylesheet.h.
Array* Stylesheet::styles |
The Styles, keyed by Selector.
Definition at line 65 of file Stylesheet.h.