26#include <Objectively/MutableArray.h>
46typedef struct ViewControllerInterface ViewControllerInterface;
84struct ViewControllerInterface {
89 ObjectInterface parentInterface;
static void respondToEvent(View *self, const SDL_Event *event)
static void loadView(ViewController *self)
static void addChildViewController(ViewController *self, ViewController *childViewController)
static void removeChildViewController(ViewController *self, ViewController *childViewController)
#define OBJECTIVELYMVC_EXPORT
Views are the fundamental building blocks of ObjectivelyMVC user interfaces.
static void viewWillAppear(ViewController *self)
static void viewWillDisappear(ViewController *self)
static void loadViewIfNeeded(ViewController *self)
static void moveToParentViewController(ViewController *self, ViewController *parentViewController)
static void viewDidAppear(ViewController *self)
static void removeFromParentViewController(ViewController *self)
static void setView(ViewController *self, View *view)
static void handleNotification(ViewController *self, const Notification *notification)
static void viewDidDisappear(ViewController *self)
A ViewController manages a View and its descendants.
View * view
The main view.
Object object
The superclass.
Class * _ViewController(void)
The ViewController archetype.
ViewControllerInterface * interface
The interface.
ViewController * parentViewController
The parent view controller.
MutableArray * childViewControllers
The child view controllers.
Views are the fundamental building blocks of ObjectivelyMVC user interfaces.