|
ObjectivelyMVC
Object oriented MVC framework for SDL3 and GNU C
|
A ViewController manages a View and its descendants. More...
#include <ViewController.h>
Public Member Functions | |
| Class * | _ViewController (void) |
| The ViewController archetype. | |
| void | addChildViewController (ViewController *self, ViewController *childViewController) |
| Adds the specified child ViewController to this ViewController. | |
| ViewController * | init (ViewController *self) |
| Initializes this ViewController. | |
| void | loadView (ViewController *self) |
| Loads this ViewController's View. | |
| void | loadViewIfNeeded (ViewController *self) |
| Loads this ViewController's View if it is not already loaded. | |
| void | moveToParentViewController (ViewController *self, ViewController *parentViewController) |
| Moves this ViewController to the specified parent. | |
| void | removeChildViewController (ViewController *self, ViewController *childViewController) |
| Removes the specified child ViewController from this ViewController. | |
| void | removeFromParentViewController (ViewController *self) |
| Removes this ViewController from its parent. | |
| void | renderDeviceDidReset (ViewController *self) |
| Informs this ViewController that the render device has reset. | |
| void | renderDeviceWillReset (ViewController *self) |
| Informs this ViewController that the render device will reset. | |
| void | respondToEvent (ViewController *self, const SDL_Event *event) |
| Responds to the given event. | |
| void | setView (ViewController *self, View *view) |
| Sets this ViewController's View. | |
| void | viewDidAppear (ViewController *self) |
| This method is invoked after this ViewController's View is added to the View hierarchy. | |
| void | viewDidDisappear (ViewController *self) |
| This method is invoked after this ViewController's View is removed to the View hierarchy. | |
| void | viewWillAppear (ViewController *self) |
| This method is invoked before this ViewController's View is added to the View hierarchy. | |
| void | viewWillDisappear (ViewController *self) |
| This method is invoked before this ViewController's View is removed from the View hierarchy. | |
Data Fields | |
| Array * | childViewControllers |
| The child view controllers. | |
| ViewControllerInterface * | interface |
| The interface. | |
| Object | object |
| The superclass. | |
| ViewController * | parentViewController |
| The parent view controller. | |
| View * | view |
| The main view. | |
A ViewController manages a View and its descendants.
Definition at line 52 of file ViewController.h.
| Class * _ViewController | ( | void | ) |
The ViewController archetype.
Definition at line 335 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 66 of file TabViewController.c.
| ViewController * init | ( | ViewController * | self | ) |
Initializes this ViewController.
| self | The ViewController. |
NULL on error. Definition at line 83 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 113 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 127 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 82 of file TabViewController.c.
| void removeFromParentViewController | ( | ViewController * | self | ) |
Removes this ViewController from its parent.
| self | The ViewController. |
Definition at line 165 of file ViewController.c.
| void renderDeviceDidReset | ( | ViewController * | self | ) |
Informs this ViewController that the render device has reset.
| self | The ViewController. |
Definition at line 198 of file ViewController.c.
| void renderDeviceWillReset | ( | ViewController * | self | ) |
Informs this ViewController that the render device will reset.
| self | The ViewController. |
Definition at line 216 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 183 of file ViewController.c.
| void setView | ( | ViewController * | self, |
| View * | view | ||
| ) |
Sets this ViewController's View.
| self | The ViewController. |
| view | The View. |
Definition at line 227 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 256 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 271 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 286 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 301 of file ViewController.c.
| Array* ViewController::childViewControllers |
The child view controllers.
Definition at line 67 of file ViewController.h.
| ViewControllerInterface* ViewController::interface |
The interface.
Definition at line 62 of file ViewController.h.
| Object ViewController::object |
The superclass.
Definition at line 57 of file ViewController.h.
| ViewController* ViewController::parentViewController |
The parent view controller.
Definition at line 72 of file ViewController.h.
| View* ViewController::view |
The main view.
Definition at line 77 of file ViewController.h.