ObjectivelyMVC
Object oriented MVC framework for SDL3 and GNU C
Loading...
Searching...
No Matches
Button.h File Reference

Buttons are Controls that respond to click events. More...

Go to the source code of this file.

Data Structures

struct  Button
 Buttons are Controls that respond to click events. More...
 
struct  ButtonDelegate
 The Button delegate protocol. More...
 

Typedefs

typedef void(* ButtonDelegateFunction) (Button *button)
 

Functions

OBJECTIVELYMVC_EXPORT Class * _Button (void)
 

Detailed Description

Buttons are Controls that respond to click events.

Definition in file Button.h.

Typedef Documentation

◆ ButtonDelegateFunction

typedef void(* ButtonDelegateFunction) (Button *button)

Definition at line 39 of file Button.h.

Function Documentation

◆ _Button()

OBJECTIVELYMVC_EXPORT Class * _Button ( void  )

Definition at line 206 of file Button.c.

206 {
207 static Class *clazz;
208 static Once once;
209
210 do_once(&once, {
211 clazz = _initialize(&(const ClassDef) {
212 .name = "Button",
213 .superclass = _Control(),
214 .instanceSize = sizeof(Button),
215 .interfaceOffset = offsetof(Button, interface),
216 .interfaceSize = sizeof(ButtonInterface),
218 });
219 });
220
221 return clazz;
222}
static void initialize(Class *clazz)
Definition Button.c:188
Class * _Control(void)
Definition Control.c:391
Buttons are Controls that respond to click events.
Definition Button.h:68