summaryrefslogtreecommitdiff
path: root/lib/lvgl/src/widgets/lv_objx_templ.h
diff options
context:
space:
mode:
authorjacqueline <me@jacqueline.id.au>2023-06-01 15:41:47 +1000
committerjacqueline <me@jacqueline.id.au>2023-06-01 15:41:47 +1000
commitdd27c3530432ea0b09f01e604bf577f31d8ef841 (patch)
treebbf86cf81a78f0ff0b07f31f1c390db473f26fd3 /lib/lvgl/src/widgets/lv_objx_templ.h
parent6fd588e970470b15936187980829916d0dbe77bb (diff)
downloadtangara-fw-dd27c3530432ea0b09f01e604bf577f31d8ef841.tar.gz
convert lvgl from submodule to a plain old directory
Diffstat (limited to 'lib/lvgl/src/widgets/lv_objx_templ.h')
m---------lib/lvgl0
-rw-r--r--lib/lvgl/src/widgets/lv_objx_templ.h81
2 files changed, 81 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_objx_templ.h b/lib/lvgl/src/widgets/lv_objx_templ.h
new file mode 100644
index 00000000..9de5285b
--- /dev/null
+++ b/lib/lvgl/src/widgets/lv_objx_templ.h
@@ -0,0 +1,81 @@
+/**
+ * @file lv_templ.h
+ *
+ */
+
+/**
+ * TODO Remove these instructions
+ * Search and replace: templ -> object short name with lower case(e.g. btn, label etc)
+ * TEMPL -> object short name with upper case (e.g. BTN, LABEL etc.)
+ *
+ */
+
+#ifndef LV_TEMPL_H
+#define LV_TEMPL_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/*********************
+ * INCLUDES
+ *********************/
+#include "../lv_conf_internal.h"
+
+#if LV_USE_TEMPL != 0
+
+#include "../core/lv_obj.h"
+
+/*********************
+ * DEFINES
+ *********************/
+
+/**********************
+ * TYPEDEFS
+ **********************/
+/*Data of template*/
+typedef struct {
+ lv_ANCESTOR_t ancestor; /*The ancestor widget, e.g. lv_slider_t slider*/
+ /*New data for this type*/
+} lv_templ_t;
+
+extern const lv_obj_class_t lv_templ_class;
+
+/**********************
+ * GLOBAL PROTOTYPES
+ **********************/
+
+/**
+ * Create a templ object
+ * @param parent pointer to an object, it will be the parent of the new templ
+ * @return pointer to the created bar
+ */
+lv_obj_t * lv_templ_create(lv_obj_t * parent);
+
+/*======================
+ * Add/remove functions
+ *=====================*/
+
+/*=====================
+ * Setter functions
+ *====================*/
+
+/*=====================
+ * Getter functions
+ *====================*/
+
+/*=====================
+ * Other functions
+ *====================*/
+
+/**********************
+ * MACROS
+ **********************/
+
+#endif /*LV_USE_TEMPL*/
+
+#ifdef __cplusplus
+} /*extern "C"*/
+#endif
+
+#endif /*LV_TEMPL_H*/