summaryrefslogtreecommitdiffstats
path: root/src/eulogium_item_list.h
diff options
context:
space:
mode:
authorOlliver Schinagl <o.schinagl@ultimaker.com>2015-06-10 07:12:19 (GMT)
committerOlliver Schinagl <o.schinagl@ultimaker.com>2015-06-12 05:30:15 (GMT)
commitbd7fa86fb019b76c92df3be62fc90eb8e79456af (patch)
tree569bfa02cb9ecf872edf2961295bae0b024cc718 /src/eulogium_item_list.h
parent61edebbad95a94e068cb3a936326c389ecfdc7f1 (diff)
downloadeulogium-bd7fa86fb019b76c92df3be62fc90eb8e79456af.zip
eulogium-bd7fa86fb019b76c92df3be62fc90eb8e79456af.tar.gz
eulogium-bd7fa86fb019b76c92df3be62fc90eb8e79456af.tar.bz2
[griffin.hmi] refactor eulogium_button_list
eulogium_button_list has been changed to item_list where we take parameters for either a button OR a checklist, since a check button is very similar to a button. Worst case, if all fails, we can always use the parameters to put all items in a horizontal box. Signed-off-by: Olliver Schinagl <o.schinagl@ultimaker.com>
Diffstat (limited to 'src/eulogium_item_list.h')
-rw-r--r--src/eulogium_item_list.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/eulogium_item_list.h b/src/eulogium_item_list.h
new file mode 100644
index 0000000..182b053
--- /dev/null
+++ b/src/eulogium_item_list.h
@@ -0,0 +1,28 @@
+/*
+ * eulogium_item_list, inspired elm_list.
+ *
+ * Copyright (c) 2015 Ultimaker B.V.
+ * Author: Olliver Schinagl <o.schinagl@ultimaker.com>
+ *
+ * SPDX-License-Identifier: AGPL-3.0+
+ */
+
+#ifndef _EULOGIUM_ITEM_LIST_H
+#define _EULOGIUM_ITEM_LIST_H
+
+#include <Elementary.h>
+
+Evas_Object *eulogium_item_list_add(Evas_Object *parent);
+Evas_Object *eulogium_item_list_prepend(Evas_Object *list, Evas_Object *icon,
+ char const *label, Eina_Bool *check,
+ Evas_Smart_Cb func, const void *data);
+Evas_Object *eulogium_item_list_append(Evas_Object *list, Evas_Object *icon,
+ char const *label, Eina_Bool *check,
+ Evas_Smart_Cb func, const void *data);
+Evas_Object *eulogium_item_list_sorted_insert(Evas_Object *list, Evas_Object *icon,
+ char const *label, Eina_Bool *check,
+ Evas_Smart_Cb func, const void *data,
+ Eina_Compare_Cb cmp_func);
+void eulogium_item_list_go(Evas_Object *list);
+
+#endif /* _EULOGIUM_ITEM_LIST_H */