|
ObjectivelyMVC 0.1.0
Object oriented MVC framework for OpenGL, SDL2 and GNU C
|
A ViewController manages a View and its descendants. More...
#include <ViewController.h>
Public Member Functions | |
| Class * | _ViewController (void) |
| The ViewController archetype. More... | |
| void | addChildViewController (ViewController *self, ViewController *childViewController) |
| Adds the specified child ViewController to this ViewController. More... | |
| void | handleNotification (ViewController *self, const Notification *notification) |
| Handles a broadcast notification. More... | |
| ViewController * | init (ViewController *self) |
| Initializes this ViewController. More... | |
| void | loadView (ViewController *self) |
| Loads this ViewController's View. More... | |
| void | loadViewIfNeeded (ViewController *self) |
| Loads this ViewController's View if it is not already loaded. More... | |
| void | moveToParentViewController (ViewController *self, ViewController *parentViewController) |
| Moves this ViewController to the specified parent. More... | |
| void | removeChildViewController (ViewController *self, ViewController *childViewController) |
| Removes the specified child ViewController from this ViewController. More... | |
| void | removeFromParentViewController (ViewController *self) |
| Removes this ViewController from its parent. More... | |
| void | respondToEvent (ViewController *self, const SDL_Event *event) |
| Responds to the given event. More... | |
| void | setView (ViewController *self, View *view) |
| Sets this ViewController's View. More... | |
| void | viewDidAppear (ViewController *self) |
| This method is invoked after this ViewController's View is added to the View hierarchy. More... | |
| void | viewDidDisappear (ViewController *self) |
| This method is invoked after this ViewController's View is removed to the View hierarchy. More... | |
| void | viewWillAppear (ViewController *self) |
| This method is invoked before this ViewController's View is added to the View hierarchy. More... | |
| void | viewWillDisappear (ViewController *self) |
| This method is invoked before this ViewController's View is removed from the View hierarchy. More... | |
Data Fields | |
| MutableArray * | childViewControllers |
| The child view controllers. More... | |
| ViewControllerInterface * | interface |
| The interface. More... | |
| Object | object |
| The superclass. More... | |
| ViewController * | parentViewController |
| The parent view controller. More... | |
| View * | view |
| The main view. More... | |
A ViewController manages a View and its descendants.
Definition at line 53 of file ViewController.h.
| Class * _ViewController | ( | void | ) |
The ViewController archetype.
Definition at line 305 of file ViewController.c.
| void addChildViewController | ( | ViewController * | self, |
| ViewController * | childViewController | ||
| ) |
Adds the specified child ViewController to this ViewController.
| self | The ViewController. |
| childViewController | The child ViewController. |
Definition at line 68 of file TabViewController.c.
| void handleNotification | ( | ViewController * | self, |
| const Notification * | notification | ||
| ) |
Handles a broadcast notification.
| self | The ViewController. |
| notification | The Notification. |
Definition at line 90 of file ViewController.c.
| ViewController * init | ( | ViewController * | self | ) |
Initializes this ViewController.
| self | The ViewController. |
NULL on error. Definition at line 98 of file ViewController.c.
| void loadView | ( | ViewController * | self | ) |
Loads this ViewController's View.
| self | The ViewController. |
Definition at line 182 of file DebugViewController.c.
| void loadViewIfNeeded | ( | ViewController * | self | ) |
Loads this ViewController's View if it is not already loaded.
| self | The ViewController. |
Definition at line 128 of file ViewController.c.
| void moveToParentViewController | ( | ViewController * | self, |
| ViewController * | parentViewController | ||
| ) |
Moves this ViewController to the specified parent.
| self | The ViewController. |
| parentViewController | The parent ViewController, or NULL. |
Definition at line 141 of file ViewController.c.
| void removeChildViewController | ( | ViewController * | self, |
| ViewController * | childViewController | ||
| ) |
Removes the specified child ViewController from this ViewController.
| self | The ViewController. |
| childViewController | The child ViewController. |
Definition at line 84 of file TabViewController.c.
| void removeFromParentViewController | ( | ViewController * | self | ) |
Removes this ViewController from its parent.
| self | The ViewController. |
Definition at line 179 of file ViewController.c.
| void respondToEvent | ( | ViewController * | self, |
| const SDL_Event * | event | ||
| ) |
Responds to the given event.
| self | The ViewController. |
| event | The event. |
Definition at line 190 of file ViewController.c.
| void setView | ( | ViewController * | self, |
| View * | view | ||
| ) |
Sets this ViewController's View.
| self | The ViewController. |
| view | The View. |
Definition at line 198 of file ViewController.c.
| void viewDidAppear | ( | ViewController * | self | ) |
This method is invoked after this ViewController's View is added to the View hierarchy.
| self | The ViewController. |
Definition at line 227 of file ViewController.c.
| void viewDidDisappear | ( | ViewController * | self | ) |
This method is invoked after this ViewController's View is removed to the View hierarchy.
| self | The ViewController. |
Definition at line 242 of file ViewController.c.
| void viewWillAppear | ( | ViewController * | self | ) |
This method is invoked before this ViewController's View is added to the View hierarchy.
| self | The ViewController. |
Definition at line 257 of file ViewController.c.
| void viewWillDisappear | ( | ViewController * | self | ) |
This method is invoked before this ViewController's View is removed from the View hierarchy.
| self | The ViewController. |
Definition at line 272 of file ViewController.c.
| MutableArray* ViewController::childViewControllers |
The child view controllers.
Definition at line 68 of file ViewController.h.
| ViewControllerInterface* ViewController::interface |
The interface.
Definition at line 63 of file ViewController.h.
| Object ViewController::object |
The superclass.
Definition at line 58 of file ViewController.h.
| ViewController* ViewController::parentViewController |
The parent view controller.
Definition at line 78 of file ViewController.h.
| View* ViewController::view |
The main view.
Definition at line 73 of file ViewController.h.