ObjectivelyMVC 0.1.0
Object oriented MVC framework for OpenGL, SDL2 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. More... | |
TabViewController * | init (TabViewController *self) |
Initializes this TabViewController. More... | |
TabViewItem * | tabForViewController (const TabViewController *self, const ViewController *viewController) |
Returns the TabViewItem for the specified child ViewController, or NULL . More... | |
![]() | |
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 | |
TabView * | tabView |
The TabView. More... | |
ViewController | viewController |
The superclass. More... | |
![]() | |
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... | |
Protected Attributes | |
TabViewControllerInterface * | interface |
The interface. More... | |
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 148 of file TabViewController.c.
TabViewController * init | ( | TabViewController * | self | ) |
Initializes this TabViewController.
self | The TabViewController. |
NULL
on error. Definition at line 101 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 116 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.