|
ObjectivelyMVC
Object oriented MVC framework for SDL3 and GNU C
|
TabViewControllers arrange and manage their child ViewControllers in a tab view interface. More...
#include <TabViewController.h>
Public Member Functions | |
| Class * | _TabViewController (void) |
| The TabViewController archetype. | |
| TabViewController * | init (TabViewController *) |
| Initializes this TabViewController. | |
| TabViewItem * | tabForViewController (const TabViewController *, const ViewController *) |
Returns the TabViewItem for the specified child ViewController, or NULL. | |
| ViewController * | viewControllerForTab (const TabViewController *, const TabViewItem *) |
Returns the child ViewController for the specified child TabViewItem, or NULL. | |
Public Member Functions inherited from ViewController | |
| 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 | |
| TabView * | tabView |
| The TabView. | |
| ViewController | viewController |
| The superclass. | |
Data Fields inherited from ViewController | |
| 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. | |
Protected Attributes | |
| TabViewControllerInterface * | interface |
| The interface. | |
TabViewControllers arrange and manage their child ViewControllers in a tab view interface.
Tabs are added to the tab view interface by adding child ViewControllers to a TabViewController.
Definition at line 45 of file TabViewController.h.
| Class * _TabViewController | ( | void | ) |
The TabViewController archetype.
Definition at line 169 of file TabViewController.c.
| TabViewController * init | ( | TabViewController * | self | ) |
Initializes this TabViewController.
| self | The TabViewController. |
NULL on error. Definition at line 99 of file TabViewController.c.
| TabViewItem * tabForViewController | ( | const TabViewController * | self, |
| const ViewController * | viewController | ||
| ) |
Returns the TabViewItem for the specified child ViewController, or NULL.
| self | The TabViewController. |
| viewController | The child ViewController. |
Definition at line 114 of file TabViewController.c.
| ViewController * viewControllerForTab | ( | const TabViewController * | self, |
| const TabViewItem * | tab | ||
| ) |
Returns the child ViewController for the specified child TabViewItem, or NULL.
| self | The TabViewController. |
| tab | The TabViewItem. |
Definition at line 136 of file TabViewController.c.
|
protected |
The interface.
Definition at line 56 of file TabViewController.h.
| TabView* TabViewController::tabView |
The TabView.
Definition at line 61 of file TabViewController.h.
| ViewController TabViewController::viewController |
The superclass.
Definition at line 50 of file TabViewController.h.