The Theme type.  
 More...
#include <Theme.h>
The Theme type. 
Definition at line 51 of file Theme.h.
◆ _Theme()
The Theme archetype. 
- Returns
- The Theme Class. 
Definition at line 175 of file Theme.c.
  175                    {
  176    static Class *clazz;
  177    static Once once;
  178 
  179    do_once(&once, {
  180        clazz = _initialize(&(const ClassDef) {
  181            .name = "Theme",
  182            .superclass = _Object(),
  183            .instanceSize = 
sizeof(
Theme),
 
  185            .interfaceSize = sizeof(ThemeInterface),
  187        });
  188    });
  189 
  190    return clazz;
  191}
static void initialize(Class *clazz)
ThemeInterface * interface
The interface.
 
 
◆ addStylesheet()
Adds the specified Stylesheet to this Theme. 
- Parameters
- 
  
  
Definition at line 55 of file Theme.c.
   55                                                               {
   56    $((MutableArray *) self->
stylesheets, addObject, stylesheet);
 
   57}
MutableArray * stylesheets
The Stylesheets, in order of priority.
 
 
◆ apply()
      
        
          | void apply | ( | const Theme * | self, | 
        
          |  |  | const View * | view | 
        
          |  | ) |  |  | 
      
 
Applies this Theme to the given View. 
- Parameters
- 
  
  
 
 
◆ computeStyle()
◆ init()
Initializes this Theme. 
- Parameters
- 
  
  
- Returns
- The initialized Theme, or NULLon error.
Definition at line 117 of file Theme.c.
  117                                {
  118 
  119    self = (
Theme *) super(Object, self, 
init);
 
  120    if (self) {
  121 
  122        self->
stylesheets = $$(MutableArray, arrayWithCapacity, 8);
 
  124 
  126    }
  127 
  128    return self;
  129}
static Stylesheet * defaultStylesheet(void)
Stylesheets are comprised of Selectors and Styles.
Theme * init(Theme *self)
Initializes this Theme.
void addStylesheet(Theme *self, Stylesheet *stylesheet)
Adds the specified Stylesheet to this Theme.
 
 
◆ removeStylesheet()
◆ theme()
      
        
          | Theme * theme | ( | SDL_Window * | window | ) |  | 
      
 
- Parameters
- 
  
  
- Returns
- The Theme for the given window. 
Definition at line 143 of file Theme.c.
  143                                        {
  144 
  145    assert(window);
  146 
  150    }
  151 
  152    return NULL;
  153}
static WindowController * windowController(SDL_Window *window)
A WindowController manages a ViewController and its descendants within an SDL_Window.
 
 
◆ interface
  
  | 
        
          | ThemeInterface* Theme::interface |  | protected | 
 
The interface. 
Definition at line 62 of file Theme.h.
 
 
◆ object
The superclass. 
Definition at line 56 of file Theme.h.
 
 
◆ stylesheets
      
        
          | MutableArray* Theme::stylesheets | 
      
 
The Stylesheets, in order of priority. 
Definition at line 67 of file Theme.h.
 
 
The documentation for this struct was generated from the following files: