summaryrefslogtreecommitdiff
path: root/lib/lvgl/src/widgets/lv_btn.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/lvgl/src/widgets/lv_btn.h')
m---------lib/lvgl0
-rw-r--r--lib/lvgl/src/widgets/lv_btn.h56
2 files changed, 56 insertions, 0 deletions
diff --git a/lib/lvgl b/lib/lvgl
deleted file mode 160000
-Subproject 0732400e7b564dd0e7dc4a924619d8e19c5b23a
diff --git a/lib/lvgl/src/widgets/lv_btn.h b/lib/lvgl/src/widgets/lv_btn.h
new file mode 100644
index 00000000..1d471f97
--- /dev/null
+++ b/lib/lvgl/src/widgets/lv_btn.h
@@ -0,0 +1,56 @@
+/**
+ * @file lv_btn.h
+ *
+ */
+
+#ifndef LV_BTN_H
+#define LV_BTN_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/*********************
+ * INCLUDES
+ *********************/
+#include "../lv_conf_internal.h"
+
+#if LV_USE_BTN != 0
+#include "../core/lv_obj.h"
+
+/*********************
+ * DEFINES
+ *********************/
+
+/**********************
+ * TYPEDEFS
+ **********************/
+
+typedef struct {
+ lv_obj_t obj;
+} lv_btn_t;
+
+extern const lv_obj_class_t lv_btn_class;
+
+/**********************
+ * GLOBAL PROTOTYPES
+ **********************/
+
+/**
+ * Create a button object
+ * @param parent pointer to an object, it will be the parent of the new button
+ * @return pointer to the created button
+ */
+lv_obj_t * lv_btn_create(lv_obj_t * parent);
+
+/**********************
+ * MACROS
+ **********************/
+
+#endif /*LV_USE_BTN*/
+
+#ifdef __cplusplus
+} /*extern "C"*/
+#endif
+
+#endif /*LV_BTN_H*/