/**
* Add a new actionslider to the parent.
*
- * @param parent The parent object
+ * @param[in] parent The parent object
* @return The new actionslider object or NULL if it cannot be created
*
* @ingroup Actionslider
/**
* Set actionslider indicator position.
*
- * @param obj The actionslider object.
- * @param pos The position of the indicator.
+ * @param[in] obj The actionslider object.
+ * @param[in] pos The position of the indicator.
* (ELM_ACTIONSLIDER_INDICATOR_LEFT, ELM_ACTIONSLIDER_INDICATOR_RIGHT,
* ELM_ACTIONSLIDER_INDICATOR_CENTER)
*
/**
* Set actionslider magnet position.
*
- * @param obj The actionslider object.
- * @param pos The position of the magnet.
+ * @param[in] obj The actionslider object.
+ * @param[in] pos The position of the magnet.
* (ELM_ACTIONSLIDER_MAGNET_LEFT, ELM_ACTIONSLIDER_MAGNET_RIGHT,
* ELM_ACTIONSLIDER_MAGNET_BOTH, ELM_ACTIONSLIDER_MAGNET_CENTER)
*
/**
* Set actionslider label.
*
- * @param obj The actionslider object
- * @param pos The position of the label.
+ * @param[in] obj The actionslider object
+ * @param[in] pos The position of the label.
* (ELM_ACTIONSLIDER_LABEL_LEFT, ELM_ACTIONSLIDER_LABEL_RIGHT)
* @param label The label which is going to be set.
*
/**
* Hold actionslider object movement.
*
- * @param obj The actionslider object
- * @param flag Actionslider hold/release
+ * @param[in] obj The actionslider object
+ * @param[in] flag Actionslider hold/release
* (EINA_TURE = hold/EIN_FALSE = release)
*
* @ingroup Actionslider
/**
* Get the value of reverse mode.
*
- * @param animator Animator object
+ * @param[in] animator Animator object
* @return EINA_TRUE is reverse mode
*
* @ingroup Animator
/**
* Get the value of repeat count.
*
- * @param animator Animator object
+ * @param[in] animator Animator object
* @return Repeat count
*
* @ingroup Animator
/**
* Set auto reverse function.
*
- * @param animator Animator object
- * @param reverse Reverse or not
+ * @param[in] animator Animator object
+ * @param[in] reverse Reverse or not
*
* @ingroup Animator
*/
/**
* Set the animation acceleration style.
*
- * @param animator Animator object
- * @param cs Curve style. Default is ELM_ANIMATOR_CURVE_LINEAR
+ * @param[in] animator Animator object
+ * @param[in] cs Curve style. Default is ELM_ANIMATOR_CURVE_LINEAR
*
* @ingroup Animator
*/
/**
* Set the operation duration.
*
- * @param animator Animator object
- * @param duration Duration in second
+ * @param[in] animator Animator object
+ * @param[in] duration Duration in second
*
* @ingroup Animator
*/
* Set the callback function for animator operation.
* The range of callback function frame data is to 0 ~ 1
* User can refer this frame value for one's animation frame data.
- * @param animator Animator object
- * @param op Callback function pointer
- * @param data Callback function user argument
+ * @param[in] animator Animator object
+ * @param[in] func Callback function pointer
+ * @param[in] data Callback function user argument
*
* @ingroup Animator
*/
/**
* Add new animator.
*
- * @param parent Parent object
+ * @param[in] parent Parent object
* @return animator object
*
* @ingroup Animator
/**
* Get the status for the animator operation.
*
- * @param animator Animator object
+ * @param[in] animator Animator object
* @return EINA_TRUE is animator is operating.
*
* @ingroup Animator
/**
* Delete animator.
*
- * @param animator Animator object
+ * @param[in] animator Animator object
*
* @ingroup Animator
*/
/**
* Set the callback function for the animator end.
*
- * @param animator Animator object
- * @param op Callback function pointer
- * @param data Callback function user argument
+ * @param[in] animator Animator object
+ * @param[in] func Callback function pointer
+ * @param[in] data Callback function user argument
*
* @ingroup Animator
*/
/**
* Pause the animator.
*
- * @param animator Animator object
+ * @param[in] animator Animator object
*
* @ingroup Animator
*/
/**
* Resume the animator.
*
- * @param animator Animator object
+ * @param[in] animator Animator object
*
* @ingroup Animator
*/
/**
* Stop animator.
*
- * @param animator Animator object
+ * @param[in] animator Animator object
*
* @ingroup Animator
*/
/**
* Set the animator repeat count.
*
- * @param animator Animator object
- * @param repeat_cnt Repeat count
+ * @param[in] animator Animator object
+ * @param[in] repeat_cnt Repeat count
*
* @ingroup Animator
*/
/**
* Animate now.
*
- * @param animator Animator object
+ * @param[in] animator Animator object
*
* @ingroup Animator
*/
/**
* Get the icon object for the given item.
*
- * @param item Ctxpopup item
+ * @param[in] item Ctxpopup item
* @return Icon object or NULL if the item does not have icon
*
* @ingroup Ctxpopup
/**
* Disable or Enable the scroller for contextual popup.
*
- * @param obj Ctxpopup object
- * @param disabled disable or enable
+ * @param[in] obj Ctxpopup object
+ * @param[in] disabled disable or enable
*
* @ingroup Ctxpopup
*/
/**
* Get the label for the given item.
*
- * @param item Ctxpopup item
+ * @param[in] item Ctxpopup item
* @return Label or NULL if the item does not have label
*
* @ingroup Ctxpopup
/**
* Add a new ctxpopup object to the parent.
*
- * @param parent Parent object
+ * @param[in] parent Parent object
* @return New object or NULL if it cannot be created
*
* @ingroup Ctxpopup
/**
* Clear all items in given ctxpopup object.
*
- * @param obj Ctxpopup object
+ * @param[in] obj Ctxpopup object
*
* @ingroup Ctxpopup
*/
/**
* Change the mode to horizontal or vertical.
*
- * @param obj Ctxpopup object
+ * @param[in] obj Ctxpopup object
* @param horizontal EINA_TRUE - horizontal mode, EINA_FALSE - vertical mode
*
* @ingroup Ctxpopup
/**
* Get the value of current horizontal mode.
*
- * @param obj Ctxpopup object
+ * @param[in] obj Ctxpopup object
* @return EINA_TRUE - horizontal mode, EINA_FALSE - vertical mode.
*
* @ingroup Ctxpopup
/**
* reset the icon on the given item.
*
- * @param obj Ctxpopup item
- * @param icon Icon object to be set
+ * @param[in] item Ctxpopup item
+ * @param[in] icon Icon object to be set
*
* @ingroup Ctxpopup
*/
/**
* reset the label on the given item.
*
- * @param obj Ctxpopup item
- * @param label Label to be set
+ * @param[in] item Ctxpopup item
+ * @param[in] label Label to be set
*
* @ingroup Ctxpopup
*/
/**
* Add a new item in given ctxpopup object.
*
- * @param obj Ctxpopup object
- * @param icon Icon to be set
- * @param label Label to be set
- * @param func Callback function to call when this item click is clicked
- * @param data User data for callback function
+ * @param[in] obj Ctxpopup object
+ * @param[in] icon Icon to be set
+ * @param[in] label Label to be set
+ * @param[in] func Callback function to call when this item click is clicked
+ * @param[in] data User data for callback function
* @return Added ctxpopup item
*
* @ingroup Ctxpopup
/**
* Delete the given item in ctxpopup object.
*
- * @param item Ctxpopup item to be deleted
+ * @param item[in] Ctxpopup item to be deleted
*
* @ingroup Ctxpopup
*/
/**
* Disable or Enable the given item. Once an item is disabled, the click event will be never happend for the item.
*
- * @param item Ctxpopup item to be disabled
- * @param disabled EINA_TRUE - disable, EINA_FALSE - enable
+ * @param[in] item Ctxpopup item to be disabled
+ * @param[in] disabled EINA_TRUE - disable, EINA_FALSE - enable
*
* @ingroup Ctxpopup
*/
/**
* Disable or Enable background dimmed function
- * @param obj Ctxpopup object
- * @param dimmed EINA_TRUE - disable, EINA_FALSE - enable
+ * @param[in] obj Ctxpopup object
+ * @param[in] dimmed EINA_TRUE - disable, EINA_FALSE - enable
*
* @ingroup Ctxpopup
*/
/**
* Append additional button in ctxpoppup bottom layout.
- * @param obj Ctxpopup object
- * @param label Button label
- * @param func Button clicked event callback function
- * @param data Button clicked event callback function data
+ * @param[in] obj Ctxpopup object
+ * @param[in] label Button label
+ * @param[in] func Button clicked event callback function
+ * @param[in] data Button clicked event callback function data
*
* @ingroup Ctxpopup
*/
*
* This functions gives user to set the priority of ctxpopup box showing position.
*
- * @param obj Ctxpopup object
- * @param first 1st priority of arrow direction
- * @param second 2nd priority of arrow direction
- * @param third 3th priority of arrow direction
- * @param fourth 4th priority of arrow direction
+ * @param[in] obj Ctxpopup object
+ * @param[in] first 1st priority of arrow direction
+ * @param[in] second 2nd priority of arrow direction
+ * @param[in] third 3th priority of arrow direction
+ * @param[in] fourth 4th priority of arrow direction
*
* @ingroup Ctxpopup
*/
/**
* Swallow the user content
*
- * @param obj Ctxpopup object
- * @param content Content to be swallowed
+ * @param[in] obj Ctxpopup object
+ * @param[in] content Content to be swallowed
*
* @ingroup Ctxpopup
*/
/**
* Unswallow the user content
*
- * @param obj Ctxpopup object
+ * @param[in] obj Ctxpopup object
* @return The unswallowed content
*
* @ingroup Ctxpopup
* Basically, ctxpopup position is computed internally. When user call evas_object_move,
* Ctxpopup will be showed up with that position which is indicates the arrow point.
*
- * @param obj Ctxpopup object
- * @param forced EINA_TRUE is left-top. EINA_FALSE is indicates arrow point.
+ * @param[in] obj Ctxpopup object
+ * @param[in] forced EINA_TRUE is left-top. EINA_FALSE is indicates arrow point.
*
* @ingroup Ctxpopup
*/
/**
* Get the status of the position forced
*
- * @param obj Ctxpopup objet
+ * @param[in] obj Ctxpopup objet
* @return value of position forced
*
* @ingroup Ctxpopup
* Set the area of ctxpopup will show up. Ctxpopup will not be out of this area.
* The responsibility of the area object is to user.
*
- * @param obj Ctxpopup objet
- * @param area area object
+ * @param[in] obj Ctxpopup objet
+ * @param[in] area area object
*
* @ingroup Ctxpopup
*/
/**
* Set the state of given check object.
*
- * @param obj Dayselector
- * @param day day user want to know.
- * @param checked state of the day. Eina_True is checked.
+ * @param[in] obj Dayselector
+ * @param[in] day day user want to know.
+ * @param[in] checked state of the day. Eina_True is checked.
*
* @ingroup Dayselector
*/
/**
* Get the state of given check object.
*
- * @param obj Dayselector
- * @param day day user want to know.
+ * @param[in] obj Dayselector
+ * @param[in] day day user want to know.
*
* @ingroup Dayselector
*/
/**
* Add the dayselector.
*
- * @param item Parent object.
+ * @param[in] item Parent object.
*
* @ingroup Dayselector
*/
-/*\r
- * @defgroup SlidingDrawer SlidingDrawer\r
- * @ingroup Elementary\r
- *\r
- * This is a slidingdrawer.\r
+/*
+ * @defgroup SlidingDrawer SlidingDrawer
+ * @ingroup Elementary
+ *
+ * This is a slidingdrawer.
*/
-\r
-#include <Elementary.h>\r
-#include "elm_priv.h"\r
-\r
-typedef struct _Widget_Data Widget_Data;\r
-\r
-struct _Widget_Data\r
-{\r
- Evas_Object *parent;\r
- Evas_Object *base;\r
- Evas_Object *handler;\r
- Evas_Object *dragable_rect;\r
- Elm_SlidingDrawer_Pos pos;\r
- Evas_Coord max_drag_w;\r
- Evas_Coord max_drag_h;\r
- Elm_SlidingDrawer_Drag_Value value;\r
-};\r
-\r
-static const char *widtype = NULL;\r
-static void _del_hook(Evas_Object *obj);\r
-static void _theme_hook(Evas_Object *obj);\r
-static void _sizing_eval(Evas_Object *obj);\r
-static void _parent_resize(void *data, Evas *e, Evas_Object *obj, void *event_info);\r
-static void _drag_cb(void *data, Evas_Object *obj, const char *emission, const char *source);\r
-static void _up_cb(void *data, Evas_Object *obj, const char *emission, const char *source);\r
-static void _down_cb(void *data, Evas_Object *obj, const char *emission, const char *source);\r
-\r
-static void\r
-_del_hook(Evas_Object *obj)\r
-{\r
- Widget_Data *wd = (Widget_Data *) elm_widget_data_get(obj);\r
- free(wd);\r
-}\r
-\r
-static void\r
-_theme_hook(Evas_Object *obj)\r
-{\r
- Widget_Data *wd = (Widget_Data *) elm_widget_data_get(obj);\r
- elm_slidingdrawer_pos_set(obj, wd->pos);\r
-}\r
-\r
-static void\r
-_parent_resize(void *data, Evas *e, Evas_Object *obj, void *event_info)\r
-{\r
- _sizing_eval(data);\r
-}\r
-\r
-static void \r
-_drag_cb(void *data, Evas_Object *obj, const char *emission, const char *source)\r
-{\r
- Widget_Data *wd = elm_widget_data_get(data);\r
- edje_object_part_drag_value_get(wd->base, "elm.dragable.handler", &wd->value.x, &wd->value.y);\r
- evas_object_smart_callback_call(data, "mouse,move", (void*) &wd->value);\r
-}\r
-\r
-static void\r
-_up_cb(void *data, Evas_Object *obj, const char *emission, const char *source)\r
-{\r
- Widget_Data *wd = elm_widget_data_get(data);\r
- edje_object_part_drag_value_get(wd->base, "elm.dragable.handler", &wd->value.x, &wd->value.y);\r
- evas_object_smart_callback_call(data, "mouse,up", (void*) &wd->value);\r
-}\r
-\r
-static void\r
-_down_cb(void *data, Evas_Object *obj, const char *emission, const char *source)\r
-{\r
- Widget_Data *wd = elm_widget_data_get(data);\r
- edje_object_part_drag_value_get(wd->base, "elm.dragable.handler", &wd->value.x, &wd->value.y);\r
- evas_object_smart_callback_call(data, "mouse,down", (void*) &wd->value);\r
-}\r
-\r
+
+#include <Elementary.h>
+#include "elm_priv.h"
+
+typedef struct _Widget_Data Widget_Data;
+
+struct _Widget_Data
+{
+ Evas_Object *parent;
+ Evas_Object *base;
+ Evas_Object *handler;
+ Evas_Object *dragable_rect;
+ Elm_SlidingDrawer_Pos pos;
+ Evas_Coord max_drag_w;
+ Evas_Coord max_drag_h;
+ Elm_SlidingDrawer_Drag_Value value;
+};
+
+static const char *widtype = NULL;
+static void _del_hook(Evas_Object *obj);
+static void _theme_hook(Evas_Object *obj);
+static void _sizing_eval(Evas_Object *obj);
+static void _parent_resize(void *data, Evas *e, Evas_Object *obj, void *event_info);
+static void _drag_cb(void *data, Evas_Object *obj, const char *emission, const char *source);
+static void _up_cb(void *data, Evas_Object *obj, const char *emission, const char *source);
+static void _down_cb(void *data, Evas_Object *obj, const char *emission, const char *source);
+
+static void
+_del_hook(Evas_Object *obj)
+{
+ Widget_Data *wd = (Widget_Data *) elm_widget_data_get(obj);
+ free(wd);
+}
+
static void\r
-_sizing_eval(Evas_Object *obj)\r
-{\r
- Widget_Data *wd;\r
- Evas_Coord x, y, w, h;\r
- const Evas_Object *part;\r
-\r
- wd = elm_widget_data_get(obj);\r
-\r
- evas_object_geometry_get(wd->parent, &x, &y, &w, &h);\r
- evas_object_move(obj, x, y);\r
- evas_object_resize(obj, w, h);\r
-\r
- part = edje_object_part_object_get(wd->base, "elm.dragable.handler");\r
- \r
- if((wd->pos == ELM_SLIDINGDRAWER_TOP) || (wd->pos == ELM_SLIDINGDRAWER_BOTTOM)) {\r
- edje_object_size_min_get(part, NULL, &h);\r
- }else {\r
- edje_object_size_min_get(part, &w, NULL);\r
- }\r
-\r
- evas_object_size_hint_min_set(wd->handler, w, h);\r
-}\r
+_theme_hook(Evas_Object *obj)
+{
+ Widget_Data *wd = (Widget_Data *) elm_widget_data_get(obj);
+ elm_slidingdrawer_pos_set(obj, wd->pos);
+}
+
+static void
+_parent_resize(void *data, Evas *e, Evas_Object *obj, void *event_info)
+{
+ _sizing_eval(data);
+}
+
+static void
+_drag_cb(void *data, Evas_Object *obj, const char *emission, const char *source)
+{
+ Widget_Data *wd = elm_widget_data_get(data);
+ edje_object_part_drag_value_get(wd->base, "elm.dragable.handler", &wd->value.x, &wd->value.y);
+ evas_object_smart_callback_call(data, "mouse,move", (void*) &wd->value);
+}
+
+static void
+_up_cb(void *data, Evas_Object *obj, const char *emission, const char *source)
+{
+ Widget_Data *wd = elm_widget_data_get(data);
+ edje_object_part_drag_value_get(wd->base, "elm.dragable.handler", &wd->value.x, &wd->value.y);
+ evas_object_smart_callback_call(data, "mouse,up", (void*) &wd->value);
+}
+
+static void
+_down_cb(void *data, Evas_Object *obj, const char *emission, const char *source)
+{
+ Widget_Data *wd = elm_widget_data_get(data);
+ edje_object_part_drag_value_get(wd->base, "elm.dragable.handler", &wd->value.x, &wd->value.y);
+ evas_object_smart_callback_call(data, "mouse,down", (void*) &wd->value);
+}
+
+static void
+_sizing_eval(Evas_Object *obj)
+{
+ Widget_Data *wd;
+ Evas_Coord x, y, w, h;
+ const Evas_Object *part;
+
+ wd = elm_widget_data_get(obj);
+
+ evas_object_geometry_get(wd->parent, &x, &y, &w, &h);
+ evas_object_move(obj, x, y);
+ evas_object_resize(obj, w, h);
+
+ part = edje_object_part_object_get(wd->base, "elm.dragable.handler");
+
+ if((wd->pos == ELM_SLIDINGDRAWER_TOP) || (wd->pos == ELM_SLIDINGDRAWER_BOTTOM)) {
+ edje_object_size_min_get(part, NULL, &h);
+ }else {
+ edje_object_size_min_get(part, &w, NULL);
+ }
+
+ evas_object_size_hint_min_set(wd->handler, w, h);
+}
/**
* Unswallow the user content
*
- * @param obj SlidingDrawer object
+ * @param[in] obj SlidingDrawer object
* @return The unswallowed contents
*
* @ingroup SlidingDrawer
- */\r
-EAPI Evas_Object *\r
-elm_slidingdrawer_content_unset(Evas_Object *obj)\r
-{\r
- ELM_CHECK_WIDTYPE(obj, widtype) NULL;\r
- Widget_Data *wd;\r
- Evas_Object *content;\r
-\r
- wd = elm_widget_data_get(obj);\r
-\r
- content = edje_object_part_swallow_get(wd->base, "elm.swallow.content");\r
- if(!content) return NULL;\r
- edje_object_part_unswallow(wd->base, content);\r
- elm_widget_sub_object_del(obj, content);\r
- return content;\r
-}\r
+ */
+EAPI Evas_Object *
+elm_slidingdrawer_content_unset(Evas_Object *obj)
+{
+ ELM_CHECK_WIDTYPE(obj, widtype) NULL;
+ Widget_Data *wd;
+ Evas_Object *content;
+
+ wd = elm_widget_data_get(obj);
+
+ content = edje_object_part_swallow_get(wd->base, "elm.swallow.content");
+ if(!content) return NULL;
+ edje_object_part_unswallow(wd->base, content);
+ elm_widget_sub_object_del(obj, content);
+ return content;
+}
/**
* Swallow the user contents
*
- * @param obj SlidingDrawer object
- * @param content Content to be swallowed.
+ * @param[in] obj SlidingDrawer object
+ * @param[in] content Content to be swallowed.
*
* @ingroup SlidingDrawer
- */\r
-EAPI void\r
-elm_slidingdrawer_content_set (Evas_Object *obj, Evas_Object *content)\r
-{\r
- ELM_CHECK_WIDTYPE(obj, widtype);\r
+ */
+EAPI void
+elm_slidingdrawer_content_set (Evas_Object *obj, Evas_Object *content)
+{
+ ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
- Evas_Object *prev_content;\r
- if (!content) return;\r
-\r
- elm_widget_sub_object_add(obj, content);\r
-\r
- prev_content = edje_object_part_swallow_get(wd->base, "elm.swallow.content");\r
- if(prev_content) {\r
- edje_object_part_unswallow(wd->base, prev_content);\r
+ Evas_Object *prev_content;
+ if (!content) return;
+
+ elm_widget_sub_object_add(obj, content);
+
+ prev_content = edje_object_part_swallow_get(wd->base, "elm.swallow.content");
+ if(prev_content) {
+ edje_object_part_unswallow(wd->base, prev_content);
elm_widget_sub_object_del(obj, prev_content);
evas_object_del(prev_content);
}
- \r
+
edje_object_part_swallow (wd->base, "elm.swallow.content", content);\r
-}\r
+}
/**
* Set the position of SlidingDrawer
*
- * @param obj SlidingDrawer object
- * @param pos
+ * @param[in] obj SlidingDrawer object
+ * @param[in] pos
*
* @ingroup SlidingDrawer
- */\r
-EAPI void\r
-elm_slidingdrawer_pos_set(Evas_Object *obj, Elm_SlidingDrawer_Pos pos)\r
-{\r
- ELM_CHECK_WIDTYPE(obj, widtype);\r
-\r
- Widget_Data *wd = elm_widget_data_get(obj);\r
-\r
- switch(pos)\r
- {\r
- case ELM_SLIDINGDRAWER_BOTTOM:\r
- _elm_theme_object_set(obj, wd->base, "slidingdrawer", "bottom", elm_widget_style_get(obj));\r
- break;\r
- case ELM_SLIDINGDRAWER_LEFT:\r
- _elm_theme_object_set(obj, wd->base, "slidingdrawer", "left", elm_widget_style_get(obj));\r
- break;\r
- case ELM_SLIDINGDRAWER_RIGHT:\r
- _elm_theme_object_set(obj, wd->base, "slidingdrawer", "right", elm_widget_style_get(obj));\r
- break;\r
- case ELM_SLIDINGDRAWER_TOP:\r
- _elm_theme_object_set(obj, wd->base, "slidingdrawer", "top", elm_widget_style_get(obj));\r
- break;\r
- }\r
-\r
- edje_object_part_drag_value_set(wd->base, "elm.dragable.handler", 0, 0);\r
- wd->pos = pos;\r
- _sizing_eval(obj);\r
-}\r
+ */
+EAPI void
+elm_slidingdrawer_pos_set(Evas_Object *obj, Elm_SlidingDrawer_Pos pos)
+{
+ ELM_CHECK_WIDTYPE(obj, widtype);
+
+ Widget_Data *wd = elm_widget_data_get(obj);
+
+ switch(pos)
+ {
+ case ELM_SLIDINGDRAWER_BOTTOM:
+ _elm_theme_object_set(obj, wd->base, "slidingdrawer", "bottom", elm_widget_style_get(obj));
+ break;
+ case ELM_SLIDINGDRAWER_LEFT:
+ _elm_theme_object_set(obj, wd->base, "slidingdrawer", "left", elm_widget_style_get(obj));
+ break;
+ case ELM_SLIDINGDRAWER_RIGHT:
+ _elm_theme_object_set(obj, wd->base, "slidingdrawer", "right", elm_widget_style_get(obj));
+ break;
+ case ELM_SLIDINGDRAWER_TOP:
+ _elm_theme_object_set(obj, wd->base, "slidingdrawer", "top", elm_widget_style_get(obj));
+ break;
+ }
+
+ edje_object_part_drag_value_set(wd->base, "elm.dragable.handler", 0, 0);
+ wd->pos = pos;
+ _sizing_eval(obj);
+}
/**
* Set the current dragable value.
*
- * @param obj SlidingDrawer object
- * @param dx The x value (range: 0 ~ 1)
- * @param dy The y value (range: 0 ~ 1)
+ * @param[in] obj SlidingDrawer object
+ * @param[in] dx The x value (range: 0 ~ 1)
+ * @param[in] dy The y value (range: 0 ~ 1)
*
* @ingroup SlidingDrawer
- */\r
-EAPI void\r
-elm_slidingdrawer_drag_value_set(Evas_Object *obj, double dx, double dy)\r
-{\r
- ELM_CHECK_WIDTYPE(obj, widtype);\r
- Widget_Data *wd;\r
- wd = elm_widget_data_get(obj);\r
- edje_object_part_drag_value_set(wd->base, "elm.dragable.handler", dx, dy);\r
-}\r
+ */
+EAPI void
+elm_slidingdrawer_drag_value_set(Evas_Object *obj, double dx, double dy)
+{
+ ELM_CHECK_WIDTYPE(obj, widtype);
+ Widget_Data *wd;
+ wd = elm_widget_data_get(obj);
+ edje_object_part_drag_value_set(wd->base, "elm.dragable.handler", dx, dy);
+}
/**
* Set the dragable max value.
*
- * @param obj SlidingDrawer object
- * @param dw The maximum width value (range: 0 ~ 1)
- * @param dh The maximum height value (range: 0 ~ 1)
+ * @param[in] obj SlidingDrawer object
+ * @param[in] dw The maximum width value (range: 0 ~ 1)
+ * @param[in] dh The maximum height value (range: 0 ~ 1)
*
* @ingroup SlidingDrawer
- */\r
-EAPI void\r
-elm_slidingdrawer_max_drag_value_set(Evas_Object *obj, double dw, double dh)\r
-{\r
- ELM_CHECK_WIDTYPE(obj, widtype);\r
- Widget_Data *wd;\r
- Evas_Coord w, h;\r
-\r
- wd = elm_widget_data_get(obj);\r
- wd->max_drag_w = dw;\r
- wd->max_drag_h = dh;\r
- _sizing_eval(obj);\r
-\r
- evas_object_geometry_get(wd->parent, NULL, NULL, &w, &h);\r
- evas_object_size_hint_max_set(wd->dragable_rect, ((double) w) * dw, ((double) h) * dh);\r
-}\r
-\r
+ */
+EAPI void
+elm_slidingdrawer_max_drag_value_set(Evas_Object *obj, double dw, double dh)
+{
+ ELM_CHECK_WIDTYPE(obj, widtype);
+ Widget_Data *wd;
+ Evas_Coord w, h;
+
+ wd = elm_widget_data_get(obj);
+ wd->max_drag_w = dw;
+ wd->max_drag_h = dh;
+ _sizing_eval(obj);
+
+ evas_object_geometry_get(wd->parent, NULL, NULL, &w, &h);
+ evas_object_size_hint_max_set(wd->dragable_rect, ((double) w) * dw, ((double) h) * dh);
+}
+
/**
* Add a new slidingdrawer object to the parent.
*
- * @param parent Parent object
+ * @param[in] parent Parent object
* @return New object or NULL if it cannot be created
*
* @ingroup SlidingDrawer
*/
-EAPI Evas_Object *\r
-elm_slidingdrawer_add(Evas_Object *parent)\r
-{\r
- Evas_Object *obj;\r
- Evas *e;\r
- Widget_Data *wd;\r
-\r
- wd = ELM_NEW(Widget_Data);\r
- if(!wd) return NULL;\r
-\r
- ELM_SET_WIDTYPE(widtype, "slidingdrawer");\r
-\r
- wd->max_drag_w = 1;\r
- wd->max_drag_h = 1;\r
-\r
- wd->parent = parent;\r
+EAPI Evas_Object *
+elm_slidingdrawer_add(Evas_Object *parent)
+{
+ Evas_Object *obj;
+ Evas *e;
+ Widget_Data *wd;
+
+ wd = ELM_NEW(Widget_Data);
+ if(!wd) return NULL;
+
+ ELM_SET_WIDTYPE(widtype, "slidingdrawer");
+
+ wd->max_drag_w = 1;
+ wd->max_drag_h = 1;
+
+ wd->parent = parent;
e = evas_object_evas_get(parent);
- if(!e) return NULL;\r
-\r
- //widget\r
- obj = elm_widget_add(e);\r
- elm_widget_type_set(obj, "slidingdrawer");\r
- elm_widget_sub_object_add(parent, obj);\r
- elm_widget_data_set(obj, wd);\r
- elm_widget_del_hook_set(obj, _del_hook);\r
- elm_widget_theme_hook_set(obj, _theme_hook);\r
- elm_widget_can_focus_set(obj, EINA_FALSE);\r
-\r
- //base\r
- wd->base = edje_object_add(e);\r
- _elm_theme_object_set(obj, wd->base, "slidingdrawer", "bottom", "default");\r
- edje_object_signal_callback_add(wd->base, "drag", "*", _drag_cb, obj);\r
- edje_object_signal_callback_add(wd->base, "mouse,up,*", "*", _up_cb, obj);\r
- edje_object_signal_callback_add(wd->base, "mouse,down,*", "*", _down_cb, obj);\r
- elm_widget_sub_object_add(obj, wd->base);\r
- elm_widget_resize_object_set(obj, wd->base);\r
- \r
- //dragable_rect\r
- wd->dragable_rect = evas_object_rectangle_add(e);\r
- edje_object_part_swallow(wd->base, "elm.swallow.dragable_rect", wd->dragable_rect);\r
-\r
- //handler\r
- wd->handler = evas_object_rectangle_add(e);\r
- evas_object_color_set(wd->handler, 0, 0, 0, 0);\r
- edje_object_part_swallow(wd->base, "elm.dragable.handler", wd->handler);\r
- \r
- evas_object_event_callback_add(parent, EVAS_CALLBACK_RESIZE, _parent_resize, obj);\r
- \r
- _sizing_eval(obj);\r
-\r
- return obj;\r
-}\r
-\r
+ if(!e) return NULL;
+
+ //widget
+ obj = elm_widget_add(e);
+ elm_widget_type_set(obj, "slidingdrawer");
+ elm_widget_sub_object_add(parent, obj);
+ elm_widget_data_set(obj, wd);
+ elm_widget_del_hook_set(obj, _del_hook);
+ elm_widget_theme_hook_set(obj, _theme_hook);
+ elm_widget_can_focus_set(obj, EINA_FALSE);
+
+ //base
+ wd->base = edje_object_add(e);
+ _elm_theme_object_set(obj, wd->base, "slidingdrawer", "bottom", "default");
+ edje_object_signal_callback_add(wd->base, "drag", "*", _drag_cb, obj);
+ edje_object_signal_callback_add(wd->base, "mouse,up,*", "*", _up_cb, obj);
+ edje_object_signal_callback_add(wd->base, "mouse,down,*", "*", _down_cb, obj);
+ elm_widget_sub_object_add(obj, wd->base);
+ elm_widget_resize_object_set(obj, wd->base);
+
+ //dragable_rect
+ wd->dragable_rect = evas_object_rectangle_add(e);
+ edje_object_part_swallow(wd->base, "elm.swallow.dragable_rect", wd->dragable_rect);
+
+ //handler
+ wd->handler = evas_object_rectangle_add(e);
+ evas_object_color_set(wd->handler, 0, 0, 0, 0);
+ edje_object_part_swallow(wd->base, "elm.dragable.handler", wd->handler);
+
+ evas_object_event_callback_add(parent, EVAS_CALLBACK_RESIZE, _parent_resize, obj);
+
+ _sizing_eval(obj);
+
+ return obj;
+}
+
/**
* Set the event blocked when transit is operating.
*
- * @param transit Transit object
- * @param disabled Disable or enable
+ * @param[in] transit Transit object
+ * @param[in] disabled Disable or enable
*
* @ingroup Transit
*/
/**
* Get the value of event blockd status.
*
- * @param transit Transit
+ * @param[in] transit Transit
* @return EINA_TRUE, when event block is disabled
*
* @ingroup Transit
/**
* Remove effect from transit.
*
- * @param transit Transit
- * @param effect Effect to be removed
+ * @param[in] transit Transit
+ * @param[in] effect Effect to be removed
* @return EINA_TRUE, if the effect is removed
* @warning If removed effect does not inserted in any transit, it will be deleted.
*
/**
* Remove all current inserted effects.
*
- * @param transit Transit
+ * @param[in] transit Transit
*
* @ingroup Transit
*/
/**
* Get the list of current inseted effects.
*
- * @param transit Transit
+ * @param[in] transit Transit
* @return Effect list
*
* @ingroup Transit
/**
* Set the user-callback function when the transit operation is done.
*
- * @param transit Transit
- * @param op Callback function pointer
- * @param data Callback funtion user data
+ * @param[in] transit Transit
+ * @param[in] op Callback function pointer
+ * @param[in] data Callback funtion user data
*
* @ingroup Transit
*/
/**
* Delete transit.
*
- * @param transit Transit to be deleted
+ * @param[in] transit Transit to be deleted
*
* @ingroup Transit
*/
/**
* Add new transit.
*
- * @param parent Parent object
+ * @param[in] parent Parent object
* @return transit
*
* @ingroup Transit
/**
* Set reverse effect automatically.
*
- * @param transit Transit
- * @param reverse EINA_TRUE is reverse.
+ * @param[in] transit Transit
+ * @param[in] reverse EINA_TRUE is reverse.
*
* @ingroup Transit
*/
/**
* Insert an effect into the transit.
*
- * @param transit Transit
- * @param effect Effect to be inserted
+ * @param[in] transit Transit
+ * @param[in] effect Effect to be inserted
* @return EINA_TRUE is success
*
* @ingroup Transit
/**
* Set the transit repeat count. Effect will be repeated by repeat count.
*
- * @param transit Transit
- * @param repeat Repeat count
+ * @param[in] transit Transit
+ * @param[in] repeat Repeat count
*
* @ingroup Transit
*/
/**
* Stop the current transit, if the transit is operating.
*
- * @param transit Transit
+ * @param[in] transit Transit
*
* @ingroup Transit
*/
/**
* Run the all the inserted effects.
*
- * @param transit Transit
- * @param duration Transit time in seconds
+ * @param[in] transit Transit
+ * @param[in] duration Transit time in seconds
*
* @ingroup Transit
*/
/**
* Pause the transit
*
- * @param transit Transit
+ * @param[in] transit Transit
*
* @ingroup Transit
*/
/**
* Resume the transit
*
- * @param transit Transit
+ * @param[in] transit Transit
*
* @ingroup Transit
*/
/**
* Add Resizing effect.
*
- * @param obj Evas_Object that effect is applying to
- * @param from_w Object width size when effect begins
- * @param from_h Object height size when effect begins
- * @param to_w Object width size when effect ends
- * @param to_h Object height size when effect ends
+ * @param[in] obj Evas_Object that effect is applying to
+ * @param[in] from_w Object width size when effect begins
+ * @param[in] from_h Object height size when effect begins
+ * @param[in] to_w Object width size when effect ends
+ * @param[in] to_h Object height size when effect ends
* @return Resizing effect
*
* @ingroup Transit
/**
* Add Translation effect.
*
- * @param obj Evas_Object that effect is applying to
- * @param from_x Position X when effect begins
- * @param from_y Position Y when effect begins
- * @param to_x Position X when effect ends
- * @param to_y Position Y when effect ends
+ * @param[in] obj Evas_Object that effect is applying to
+ * @param[in] from_x Position X when effect begins
+ * @param[in] from_y Position Y when effect begins
+ * @param[in] to_x Position X when effect ends
+ * @param[in] to_y Position Y when effect ends
* @return Translation effect
*
* @ingroup Transit
/**
* Add Zoom effect.
*
- * @param obj Evas_Object that effect is applying to
- * @param from_rate Scale rate when effect begins (1 is current rate)
- * @param to_rate Scale rate when effect ends
+ * @param[in] obj Evas_Object that effect is applying to
+ * @param[in] from_rate Scale rate when effect begins (1 is current rate)
+ * @param[in] to_rate Scale rate when effect ends
* @return Zoom effect
*
* @ingroup Transit
/**
* Add Flip effect.
*
- * @param front Front surface object
- * @param back Back surface object
- * @param axis Flipping Axis(X or Y)
- * @param cw Flipping Direction. EINA_TRUE is clock-wise
+ * @param[in] front Front surface object
+ * @param[in] back Back surface object
+ * @param[in] axis Flipping Axis(X or Y)
+ * @param[in] cw Flipping Direction. EINA_TRUE is clock-wise
* @return Flip effect
*
* @ingroup Transit
if ((degree < 90) && (degree > -90))
{
obj = resizable_flip->front;
- evas_object_hide(resizable_flip->back);
- evas_object_show(resizable_flip->front);
+ if(resizable_flip->back != resizable_flip->front) {
+ evas_object_hide(resizable_flip->back);
+ evas_object_show(resizable_flip->front);
}
+ }
else
{
obj = resizable_flip->back;
- evas_object_hide(resizable_flip->front);
- evas_object_show(resizable_flip->back);
- }
-
+ if(resizable_flip->back != resizable_flip->front) {
+ evas_object_hide(resizable_flip->front);
+ evas_object_show(resizable_flip->back);
+ }
+ }
evas_map_smooth_set(map, EINA_TRUE);
x = resizable_flip->from_pos.x + (resizable_flip->to_pos.x * frame);
/**
* Add ResizbleFlip effect. the size of each surface objects are interpolated automatically.
*
- * @param front Front surface object
- * @param back Back surface object
- * @param axis Flipping Axis.(X or Y)
- * @param cw Flipping Direction. EINA_TRUE is clock-wise
+ * @param[in] front Front surface object
+ * @param[in] back Back surface object
+ * @param[in] axis Flipping Axis.(X or Y)
+ * @param[in] cw Flipping Direction. EINA_TRUE is clock-wise
* @return Flip effect
*
* @ingroup Transit
/**
* Add Wipe effect.
*
- * @param obj Evas_Object that effect is applying to
- * @param type Wipe type. Hide or show
- * @param dir Wipe Direction
+ * @param[in] obj Evas_Object that effect is applying to
+ * @param[in] type Wipe type. Hide or show
+ * @param[in] dir Wipe Direction
* @return Wipe effect
*
* @ingroup Transit
/**
* Add Color effect.
*
- * @param obj Evas_Object that effect is applying to
- * @param from_r RGB R when effect begins
- * @param from_g RGB G when effect begins
- * @param from_b RGB B when effect begins
- * @param from_a RGB A when effect begins
- * @param to_r RGB R when effect ends
- * @param to_g RGB G when effect ends
- * @param to_b RGB B when effect ends
- * @param to_a RGB A when effect ends
+ * @param[in] obj Evas_Object that effect is applying to
+ * @param[in] from_r RGB R when effect begins
+ * @param[in] from_g RGB G when effect begins
+ * @param[in] from_b RGB B when effect begins
+ * @param[in] from_a RGB A when effect begins
+ * @param[in] to_r RGB R when effect ends
+ * @param[in] to_g RGB G when effect ends
+ * @param[in] to_b RGB B when effect ends
+ * @param[in] to_a RGB A when effect ends
* @return Color Effect
*
* @ingroup Transit
/**
* Add Fade effect
*
- * @param before Evas Object before fade in
- * @param after Evas Object after fade out
+ * @param[in] before Evas Object before fade in
+ * @param[in] after Evas Object after fade out
* @return Fade effect
*
* @ingroup Transit
/**
* Add Blend effect
*
- * @param before Evas Object before blending
- * @param after Evas Object after blending
+ * @param[in] before Evas Object before blending
+ * @param[in] after Evas Object after blending
* @return Blend effect
*
* @ingroup Transit
/**
* Add Rotation effect
*
- * @param obj Evas_Object that effect is applying to
- * @param from degree Degree when effect begins
- * @param to_degree Degree when effect is ends
- * @param cw Rotation direction. EINA_TRUE is clock wise
+ * @param[in] obj Evas_Object that effect is applying to
+ * @param[in] from degree Degree when effect begins
+ * @param[in] to_degree Degree when effect is ends
+ * @param[in] cw Rotation direction. EINA_TRUE is clock wise
* @return Rotation effect
*
* @ingroup Transit
/**
* Add image_animation effect.
*
- * @param obj Icon object
- * @param images Array of image file path.
- * @param img_cnt Count of image.
+ * @param[in] obj Icon object
+ * @param[in] images Array of image file path.
+ * @param[in] img_cnt Count of image.
* @return ImageAnimation effect.
*
* @ingroup Transit