ObjectivelyMVC 0.1.0
Object oriented MVC framework for OpenGL, SDL2 and GNU C
Data Structures | Macros | Typedefs
Types.h File Reference

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.

Data Structures

struct  SDL_Size
 The SDL_Size type. More...
 

Macros

#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
 

Typedefs

typedef void(* ViewEnumerator) (View *view, ident data)
 A function type for View enumeration. More...
 

Detailed Description

ObjectivelyMVC base types.

Definition in file Types.h.

Macro Definition Documentation

◆ MakePoint

#define MakePoint (   x,
 
)    (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,
 
)    (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,
 
)    (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

Definition at line 39 of file Types.h.

Typedef Documentation

◆ ViewEnumerator

typedef void(* ViewEnumerator) (View *view, ident data)

A function type for View enumeration.

Parameters
viewThe View.
dataUser data.

Definition at line 55 of file Types.h.