ObjectivelyMVC base types.
More...
#include <SDL_assert.h>
#include <SDL_events.h>
#include <SDL_pixels.h>
#include <Objectively/Types.h>
Go to the source code of this file.
|
#define | MakePoint(x, y) (SDL_Point) { (x), (y) } |
| Creates an SDL_Point with the given coordinates. More...
|
|
#define | MakeRect(x, y, w, h) (SDL_Rect) { (x), (y), (w), (h) } |
| Creates an SDL_Rect with the given origin and size. More...
|
|
#define | MakeSize(w, h) (SDL_Size) { (w), (h) } |
| Creates an SDL_Size with the given dimensions. More...
|
|
#define | OBJECTIVELYMVC_EXPORT extern |
|
ObjectivelyMVC base types.
Definition in file Types.h.
◆ MakePoint
#define MakePoint |
( |
|
x, |
|
|
|
y |
|
) |
| (SDL_Point) { (x), (y) } |
Creates an SDL_Point with the given coordinates.
Definition at line 69 of file Types.h.
◆ MakeRect
#define MakeRect |
( |
|
x, |
|
|
|
y, |
|
|
|
w, |
|
|
|
h |
|
) |
| (SDL_Rect) { (x), (y), (w), (h) } |
Creates an SDL_Rect with the given origin and size.
Definition at line 74 of file Types.h.
◆ MakeSize
#define MakeSize |
( |
|
w, |
|
|
|
h |
|
) |
| (SDL_Size) { (w), (h) } |
Creates an SDL_Size with the given dimensions.
Definition at line 79 of file Types.h.
◆ OBJECTIVELYMVC_EXPORT
#define OBJECTIVELYMVC_EXPORT extern |
◆ ViewEnumerator
typedef void(* ViewEnumerator) (View *view, ident data) |
A function type for View enumeration.
- Parameters
-
view | The View. |
data | User data. |
Definition at line 55 of file Types.h.