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 207 of file Button.c.

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