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

Actions bind event-driven behavior to Controls. More...

#include <Objectively/Object.h>
#include <ObjectivelyMVC/Types.h>

Go to the source code of this file.

Data Structures

struct  Action
 Actions bind event-driven behavior to Controls. More...
 

Typedefs

typedef void(* ActionFunction) (Control *control, const SDL_Event *event, ident sender, ident data)
 The ActionFunction callback. More...
 

Functions

OBJECTIVELYMVC_EXPORT Class * _Action (void)
 

Detailed Description

Actions bind event-driven behavior to Controls.

Definition in file Action.h.

Typedef Documentation

◆ ActionFunction

typedef void(* ActionFunction) (Control *control, const SDL_Event *event, ident sender, ident data)

The ActionFunction callback.

Definition at line 43 of file Action.h.

Function Documentation

◆ _Action()

OBJECTIVELYMVC_EXPORT Class * _Action ( void  )

Definition at line 67 of file Action.c.

67 {
68 static Class *clazz;
69 static Once once;
70
71 do_once(&once, {
72 clazz = _initialize(&(const ClassDef) {
73 .name = "Action",
74 .superclass = _Object(),
75 .instanceSize = sizeof(Action),
76 .interfaceOffset = offsetof(Action, interface),
77 .interfaceSize = sizeof(ActionInterface),
79 });
80 });
81
82 return clazz;
83}
static void initialize(Class *clazz)
Definition: Action.c:58
Actions bind event-driven behavior to Controls.
Definition: Action.h:50