#include <assert.h>
#include "Action.h"
Go to the source code of this file.
◆ _Class
◆ _Action()
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)
Actions bind event-driven behavior to Controls.
◆ initialize()
static void initialize |
( |
Class * |
clazz | ) |
|
|
static |
- See also
- Class::initialize(Class *)
Definition at line 58 of file Action.c.
58 {
59
61}
Action * initWithEventType(Action *self, SDL_EventType eventType, ActionFunction function, ident sender, ident data)
Initializes this Action with the given function and data.
◆ initWithEventType()
Definition at line 36 of file Action.c.
36 {
37
39 if (self) {
42
45
48 }
49
50 return self;
51}
SDL_EventType eventType
The event type.
ActionFunction function
The function.
CollectionView * init(CollectionView *self, const SDL_Rect *frame)
Initializes this CollectionView with the specified frame and style.