summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJi-Youn Park <jy0703.park@samsung.com>2016-03-17 17:38:52 +0830
committerJi-Youn Park <jy0703.park@samsung.com>2016-03-17 17:38:55 +0830
commit95245da5a2df237d8ff5890e9f5d30aecda0dbe9 (patch)
tree138834cb716b430c0150fc08f3e74e32c471ebfd
parentd919bf08338e0705c2d7b8b5ea9708408f6e5152 (diff)
downloadelementary-95245da5a2df237d8ff5890e9f5d30aecda0dbe9.tar.gz
Elm_Glveiw: add legacy API to .h file
-rw-r--r--src/lib/elm_glview_legacy.h62
1 files changed, 61 insertions, 1 deletions
diff --git a/src/lib/elm_glview_legacy.h b/src/lib/elm_glview_legacy.h
index fe2d57b99..586b77cc5 100644
--- a/src/lib/elm_glview_legacy.h
+++ b/src/lib/elm_glview_legacy.h
@@ -25,8 +25,68 @@ EAPI Evas_Object *elm_glview_version_add(Evas_Object *parent, Evas_GL_Context_Ve
*
* @param obj The GLView object
*
- * @ingroup GLView
+ * @ingroup Elm_GLView
*/
EAPI void elm_glview_changed_set(Evas_Object *obj);
+/**
+ * Gets the size of the GLView.
+ *
+ * @param obj The GLView object
+ * @param w pointer of int width
+ * @param h pointer of int height
+ *
+ * @ingroup Elm_GLView
+ */
+EAPI void elm_glview_size_get(const Elm_Glview *obj, int *w, int *h);
+
+/**
+ * Sets the size of the GLView.
+ *
+ * @param obj The GLView object
+ * @param w width of GLView
+ * @param h height of GLView
+ *
+ * @ingroup Elm_GLView
+ */
+EAPI void elm_glview_size_set(Elm_Glview *obj, int w, int h);
+
+/**
+ * Set the init function that runs once in the main loop.
+ * @param obj The GLView object
+ * @param func The callback function
+ *
+ * @ingroup GLView
+ */
+EAPI void elm_glview_init_func_set(Elm_Glview *obj, Elm_GLView_Func_Cb func);
+
+/**
+ * Set the delete function that runs in the main loop.
+ *
+ * @param obj The GLView object
+ * @param func The callback function
+ *
+ * @ingroup Elm_GLView
+ */
+EAPI void elm_glview_del_func_set(Elm_Glview *obj, Elm_GLView_Func_Cb func);
+
+/**
+ * Set the resize function that gets called when resize happens.
+ *
+ * @param obj The GLView object
+ * @param func The callback function
+ *
+ * @ingroup Elm_GLView
+ */
+EAPI void elm_glview_resize_func_set(Elm_Glview *obj, Elm_GLView_Func_Cb func);
+
+/**
+ * Set the render function that runs in the main loop.
+ *
+ * @param obj The GLView object
+ * @param func The callback function
+ *
+ * @ingroup Elm_GLView
+ */
+EAPI void elm_glview_render_func_set(Elm_Glview *obj, Elm_GLView_Func_Cb func);
#include "elm_glview.eo.legacy.h"