53#pragma mark - Class lifecycle
72 clazz = _initialize(&(
const ClassDef) {
74 .superclass = _Object(),
75 .instanceSize =
sizeof(
Action),
76 .interfaceOffset = offsetof(
Action, interface),
77 .interfaceSize =
sizeof(ActionInterface),
static void initialize(Class *clazz)
Actions bind event-driven behavior to Controls.
void(* ActionFunction)(Control *control, const SDL_Event *event, ident sender, ident data)
The ActionFunction callback.
Actions bind event-driven behavior to Controls.
Class * _Action(void)
The Action archetype.
SDL_EventType eventType
The event type.
Action * initWithEventType(Action *self, SDL_EventType eventType, ActionFunction function, ident sender, ident data)
Initializes this Action with the given function and data.
ActionFunction function
The function.
CollectionView * init(CollectionView *self, const SDL_Rect *frame)
Initializes this CollectionView with the specified frame and style.