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

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

#include <ObjectivelyMVC/Control.h>
#include <ObjectivelyMVC/ImageView.h>

Go to the source code of this file.

Data Structures

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

Functions

OBJECTIVELYMVC_EXPORT Class * _Button (void)
 

Detailed Description

Buttons are Controls that respond to click events.

Definition in file Button.h.

Function Documentation

◆ _Button()

OBJECTIVELYMVC_EXPORT Class * _Button ( void  )

Definition at line 167 of file Button.c.

167 {
168 static Class *clazz;
169 static Once once;
170
171 do_once(&once, {
172 clazz = _initialize(&(const ClassDef) {
173 .name = "Button",
174 .superclass = _Control(),
175 .instanceSize = sizeof(Button),
176 .interfaceOffset = offsetof(Button, interface),
177 .interfaceSize = sizeof(ButtonInterface),
179 });
180 });
181
182 return clazz;
183}
static void initialize(Class *clazz)
Definition: Button.c:149
Buttons are Controls that respond to click events.
Definition: Button.h:42
Class * _Control(void)
The Control archetype.
Definition: Control.c:379