summaryrefslogtreecommitdiff
path: root/include/gui/button.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/gui/button.h')
-rw-r--r--include/gui/button.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/include/gui/button.h b/include/gui/button.h
index 62f75a3..8537151 100644
--- a/include/gui/button.h
+++ b/include/gui/button.h
@@ -1,16 +1,37 @@
1#ifndef UPEM_MORPHING_BUTTON 1#ifndef UPEM_MORPHING_BUTTON
2#define UPEM_MORPHING_BUTTON 2#define UPEM_MORPHING_BUTTON
3 3
4#include "window.h"
4/** 5/**
5 * File: button.h 6 * File: button.h
7 * Buttons handling
6 */ 8 */
7 9
10/**
11 * Type: Button
12 * Component that can be triggered by click to execute a specific action.
13 */
8typedef struct { 14typedef struct {
9 Component component; 15 Component component;
10} Button; 16} Button;
11 17
18/**
19 * Function: button_init
20 * Initializes the button.
21 *
22 * Parameters:
23 * *button - pointer to the input button
24 * text - label for the button
25 */
12void button_init(Button *button, char *text); 26void button_init(Button *button, char *text);
13 27
28/**
29 * Function: button_free
30 * Frees the resources for the button.
31 *
32 * Parameters:
33 * *button - pointer to the input button
34 */
14void button_free(Button *button); 35void button_free(Button *button);
15 36
16#endif 37#endif