summaryrefslogtreecommitdiff
path: root/src/lib/elementary/elm_widget_grid.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/elementary/elm_widget_grid.h')
-rw-r--r--src/lib/elementary/elm_widget_grid.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/lib/elementary/elm_widget_grid.h b/src/lib/elementary/elm_widget_grid.h
new file mode 100644
index 0000000000..f6467559ea
--- /dev/null
+++ b/src/lib/elementary/elm_widget_grid.h
@@ -0,0 +1,31 @@
+#ifndef ELM_WIDGET_GRID_H
+#define ELM_WIDGET_GRID_H
+
+#include "Elementary.h"
+
+/* DO NOT USE THIS HEADER UNLESS YOU ARE PREPARED FOR BREAKING OF YOUR
+ * CODE. THIS IS ELEMENTARY'S INTERNAL WIDGET API (for now) AND IS NOT
+ * FINAL. CALL elm_widget_api_check(ELM_INTERNAL_API_VERSION) TO CHECK
+ * IT AT RUNTIME.
+ */
+
+/**
+ * @addtogroup Widget
+ * @{
+ *
+ * @section elm-grid-class The Elementary Grid Class
+ *
+ * Elementary, besides having the @ref Grid widget, exposes its
+ * foundation -- the Elementary Grid Class -- in order to create other
+ * widgets which are a grid with some more logic on top.
+ */
+
+/**
+ * @}
+ */
+
+#define ELM_GRID_CHECK(obj) \
+ if (EINA_UNLIKELY(!eo_isa((obj), ELM_GRID_CLASS))) \
+ return
+
+#endif