26#include <SDL3/SDL_assert.h>
27#include <SDL3/SDL_events.h>
28#include <SDL3/SDL_pixels.h>
30#include <Objectively/Types.h>
31#include <ObjectivelyGPU/Types.h>
36 #include "WindowlyMVC.h"
39#ifndef OBJECTIVELYMVC_EXPORT
40 #define OBJECTIVELYMVC_EXPORT extern
ViewEvent
View event relay codes.
@ ViewEventChange
A Control's input value has changed.
@ ViewEventMouseMotion
The mouse has moved within a View's frame.
@ ViewEventMouseEnter
The mouse has entered a View's frame.
@ ViewEventMouseButtonUp
A View has received a mouse button up event.
@ ViewEventMouseButtonDown
A View has received a mouse button down event.
@ ViewEventFocus
A Control's state has focus.
@ ViewEventMouseLeave
The mouse has left a View's frame.
@ ViewEventBlur
A Control has lost focus.
@ ViewEventKeyUp
A View has received a key up event.
@ ViewEventClick
A Control received one or more click events.
@ ViewEventKeyDown
A View has received a key down event.
@ ViewEventUserDefined
User-defined ViewEvents.
void(* ViewEnumerator)(View *view, ident data)
A function type for View enumeration.
#define OBJECTIVELYMVC_EXPORT
OBJECTIVELYMVC_EXPORT Uint32 MVC_NOTIFICATION_EVENT
The custom SDL_event type for notifications.
OBJECTIVELYMVC_EXPORT Uint32 MVC_VIEW_EVENT
The custom SDL_event type for View event relaying.
A ViewController manages a View and its descendants.
View * view
The main view.
Views are the fundamental building blocks of ObjectivelyMVC user interfaces.