|
ObjectivelyMVC 0.1.0
Object oriented MVC framework for OpenGL, SDL2 and GNU C
|
A WindowController manages a ViewController and its descendants within an SDL_Window. More...
#include <WindowController.h>
Data Fields | |
| DebugViewController * | debugViewController |
| The DebugViewController. More... | |
| Object | object |
| The superclass. More... | |
| Renderer * | renderer |
| The Renderer. More... | |
| SoundStage * | soundStage |
| The SoundStage. More... | |
| Theme * | theme |
| The Theme. More... | |
| ViewController * | viewController |
| The ViewController. More... | |
| SDL_Window * | window |
| The window. More... | |
Protected Attributes | |
| WindowControllerInterface * | interface |
| The interface. More... | |
A WindowController manages a ViewController and its descendants within an SDL_Window.
Definition at line 46 of file WindowController.h.
| Class * _WindowController | ( | void | ) |
The WindowController archetype.
Definition at line 380 of file WindowController.c.
| void debug | ( | WindowController * | self | ) |
Debugs the current frame.
| self | The WindowController. |
Definition at line 55 of file WindowController.c.
| View * eventTarget | ( | const WindowController * | self, |
| const SDL_Event * | event | ||
| ) |
| self | The WindowController. |
| event | The event. |
Definition at line 79 of file WindowController.c.
| View * firstResponder | ( | const WindowController * | self, |
| const SDL_Event * | event | ||
| ) |
| self | The WindowController. |
| event | The event. |
Definition at line 100 of file WindowController.c.
| WindowController * initWithWindow | ( | WindowController * | self, |
| SDL_Window * | window | ||
| ) |
Initializes this WindowController with the given window.
| self | The WindowController. |
| window | The window. |
NULL on error. Definition at line 108 of file WindowController.c.
| void render | ( | WindowController * | self | ) |
Renders the ViewController's View.
| self | The WindowController. |
Definition at line 126 of file WindowController.c.
| void respondToEvent | ( | WindowController * | self, |
| const SDL_Event * | event | ||
| ) |
Responds to the given event.
| self | The WindowController. |
| event | The event. |
Definition at line 146 of file WindowController.c.
| void setRenderer | ( | WindowController * | self, |
| Renderer * | renderer | ||
| ) |
Sets this WindowController's Renderer.
| self | The WindowController. |
| renderer | The Renderer. |
Definition at line 203 of file WindowController.c.
| void setSoundStage | ( | WindowController * | self, |
| SoundStage * | soundStage | ||
| ) |
Sets this WindowController's SoundStage.
| self | The WindowController. |
| soundStage | The SoundStage. |
Definition at line 223 of file WindowController.c.
| void setTheme | ( | WindowController * | self, |
| Theme * | theme | ||
| ) |
Sets this WindowController's Theme.
| self | The WindowController. |
| theme | The Theme. |
Definition at line 241 of file WindowController.c.
| void setViewController | ( | WindowController * | self, |
| ViewController * | viewController | ||
| ) |
Sets this WindowController's ViewController.
| self | The WindowController. |
| viewController | The ViewController. |
Definition at line 261 of file WindowController.c.
| void setWindow | ( | WindowController * | self, |
| SDL_Window * | window | ||
| ) |
Sets this WindowController's window.
| self | The WindowController. |
| window | The window. |
Definition at line 291 of file WindowController.c.
| void toggleDebugger | ( | WindowController * | self | ) |
Toggles the debugger tools.
| self | The WindowViewController. |
Definition at line 315 of file WindowController.c.
| WindowController * windowController | ( | SDL_Window * | window | ) |
| window | The window. |
Definition at line 345 of file WindowController.c.
| DebugViewController* WindowController::debugViewController |
The DebugViewController.
Definition at line 62 of file WindowController.h.
|
protected |
The interface.
Definition at line 57 of file WindowController.h.
| Object WindowController::object |
The superclass.
Definition at line 51 of file WindowController.h.
| Renderer* WindowController::renderer |
The Renderer.
Definition at line 67 of file WindowController.h.
| SoundStage* WindowController::soundStage |
The SoundStage.
Definition at line 72 of file WindowController.h.
| Theme* WindowController::theme |
The Theme.
Definition at line 77 of file WindowController.h.
| ViewController* WindowController::viewController |
The ViewController.
Definition at line 82 of file WindowController.h.
| SDL_Window* WindowController::window |
The window.
Definition at line 87 of file WindowController.h.