1 /**
2  * @file lv_button.h
3  *
4  */
5 
6 #ifndef LV_BUTTON_H
7 #define LV_BUTTON_H
8 
9 #ifdef __cplusplus
10 extern "C" {
11 #endif
12 
13 /*********************
14  *      INCLUDES
15  *********************/
16 #include "../../lv_conf_internal.h"
17 
18 #if LV_USE_BUTTON != 0
19 #include "../../core/lv_obj.h"
20 
21 /*********************
22  *      DEFINES
23  *********************/
24 
25 LV_ATTRIBUTE_EXTERN_DATA extern const lv_obj_class_t lv_button_class;
26 
27 /**********************
28  * GLOBAL PROTOTYPES
29  **********************/
30 
31 /**
32  * Create a button object
33  * @param parent    pointer to an object, it will be the parent of the new button
34  * @return          pointer to the created button
35  */
36 lv_obj_t * lv_button_create(lv_obj_t * parent);
37 
38 /**********************
39  *      MACROS
40  **********************/
41 
42 #endif /*LV_USE_BUTTON*/
43 
44 #ifdef __cplusplus
45 } /*extern "C"*/
46 #endif
47 
48 #endif /*LV_BUTTON_H*/
49