Tizen Native API
|
Functions | |
Eina_Bool | edje_object_part_drag_step_set (Edje_Object *obj, const char *part, double dx, double dy) |
Sets the drag step increment. | |
Eina_Bool | edje_object_part_drag_step_get (const Edje_Object *obj, const char *part, double *dx, double *dy) |
Gets the drag step increment values. | |
Eina_Bool | edje_object_part_drag_value_set (Edje_Object *obj, const char *part, double dx, double dy) |
Set the dragable object location. | |
Eina_Bool | edje_object_part_drag_value_get (const Edje_Object *obj, const char *part, double *dx, double *dy) |
Get the dragable object location. | |
Eina_Bool | edje_object_part_drag_page_set (Edje_Object *obj, const char *part, double dx, double dy) |
Sets the page step increments. | |
Eina_Bool | edje_object_part_drag_page_get (const Edje_Object *obj, const char *part, double *dx, double *dy) |
Gets the page step increments. | |
Eina_Bool | edje_object_part_drag_size_set (Edje_Object *obj, const char *part, double dw, double dh) |
Set the dragable object size. | |
Eina_Bool | edje_object_part_drag_size_get (const Edje_Object *obj, const char *part, double *dw, double *dh) |
Get the dragable object size. | |
Edje_Drag_Dir | edje_object_part_drag_dir_get (const Edje_Object *obj, const char *part) |
Determine dragable directions. | |
Eina_Bool | edje_object_part_drag_page (Edje_Object *obj, const char *part, double dx, double dy) |
Pages x,y steps. | |
Eina_Bool | edje_object_part_drag_step (Edje_Object *obj, const char *part, double dx, double dy) |
Steps the dragable x,y steps. | |
Typedefs | |
typedef enum _Edje_Drag_Dir | Edje_Drag_Dir |
Functions that deal with dragable parts.
To create a movable part it must be declared as dragable in EDC file. To do so, one must define a "dragable" block inside the "part" block.
These functions are used to set dragging properties to a part or get dragging information about it.
- See also:
- Dragable parts example
Typedef Documentation
Dragable properties values
Enumeration Type Documentation
enum _Edje_Drag_Dir |
Function Documentation
Edje_Drag_Dir edje_object_part_drag_dir_get | ( | const Edje_Object * | obj, |
const char * | part | ||
) |
Determine dragable directions.
- Since :
- 2.3
- Remarks:
- The dragable directions are defined in the EDC file, inside the
dragable
section, by the attributesx
andy
. See the edcref for more information.
- Returns:
- EDJE_DRAG_DIR_NONE: Not dragable EDJE_DRAG_DIR_X: Dragable in X direction EDJE_DRAG_DIR_Y: Dragable in Y direction EDJE_DRAG_DIR_XY: Dragable in X & Y directions
- Parameters:
-
[in] obj The edje object [in] part The part name
Eina_Bool edje_object_part_drag_page | ( | Edje_Object * | obj, |
const char * | part, | ||
double | dx, | ||
double | dy | ||
) |
Pages x,y steps.
- Since :
- 2.3
- Remarks:
- Pages x,y where the increment is defined by edje_object_part_drag_page_set.
-
Values for
dx
anddy
are real numbers that range from 0 to 1.
- Warning:
- Paging is bugged!
- See also:
- edje_object_part_drag_step()
- Parameters:
-
[in] obj The edje object [in] part The part name [in] dx The x step [in] dy The y step
Eina_Bool edje_object_part_drag_page_get | ( | const Edje_Object * | obj, |
const char * | part, | ||
double * | dx, | ||
double * | dy | ||
) |
Gets the page step increments.
- Since :
- 2.3
- Remarks:
- Gets the x,y page step increments for the dragable object.
- See also:
- edje_object_part_drag_page_set()
- Parameters:
-
[in] obj The edje object [in] part The part name [out] dx The dx page increment pointer [out] dy The dy page increment pointer
Eina_Bool edje_object_part_drag_page_set | ( | Edje_Object * | obj, |
const char * | part, | ||
double | dx, | ||
double | dy | ||
) |
Sets the page step increments.
- Since :
- 2.3
- Remarks:
- Sets the x,y page step increment values.
-
Values for
dx
anddy
are real numbers that range from 0 to 1, representing the relative size of the dragable area on that axis by which the part will be moved.
- See also:
- edje_object_part_drag_page_get()
- Parameters:
-
[in] obj The edje object [in] part The part name [in] dx The x page step increment [in] dy The y page step increment
Eina_Bool edje_object_part_drag_size_get | ( | const Edje_Object * | obj, |
const char * | part, | ||
double * | dw, | ||
double * | dh | ||
) |
Get the dragable object size.
- Since :
- 2.3
- Remarks:
- Gets the dragable object size.
- See also:
- edje_object_part_drag_size_set()
- Parameters:
-
[in] obj The edje object [in] part The part name [out] dw The drag width pointer [out] dh The drag height pointer
Eina_Bool edje_object_part_drag_size_set | ( | Edje_Object * | obj, |
const char * | part, | ||
double | dw, | ||
double | dh | ||
) |
Set the dragable object size.
- Since :
- 2.3
- Remarks:
- Values for
dw
anddh
are real numbers that range from 0 to 1, representing the relative size of the dragable area on that axis. - Sets the size of the dragable object.
- See also:
- edje_object_part_drag_size_get()
- Parameters:
-
[in] obj The edje object [in] part The part name [in] dw The drag width [in] dh The drag height
Eina_Bool edje_object_part_drag_step | ( | Edje_Object * | obj, |
const char * | part, | ||
double | dx, | ||
double | dy | ||
) |
Steps the dragable x,y steps.
- Since :
- 2.3
- Remarks:
- Steps x,y where the step increment is the amount set by edje_object_part_drag_step_set.
-
Values for
dx
anddy
are real numbers that range from 0 to 1.
- See also:
- edje_object_part_drag_page()
- Parameters:
-
[in] obj The edje object [in] part The part name [in] dx The x step [in] dy The y step
Eina_Bool edje_object_part_drag_step_get | ( | const Edje_Object * | obj, |
const char * | part, | ||
double * | dx, | ||
double * | dy | ||
) |
Gets the drag step increment values.
- Since :
- 2.3
- Remarks:
- Gets the x and y step increments for the dragable object.
- See also:
- edje_object_part_drag_step_set()
- Parameters:
-
[in] obj The edje object [in] part The part [out] dx The x step increment pointer [out] dy The y step increment pointer
Eina_Bool edje_object_part_drag_step_set | ( | Edje_Object * | obj, |
const char * | part, | ||
double | dx, | ||
double | dy | ||
) |
Sets the drag step increment.
- Since :
- 2.3
- Remarks:
- Sets the x,y step increments for a dragable object.
-
Values for
dx
anddy
are real numbers that range from 0 to 1, representing the relative size of the dragable area on that axis by which the part will be moved.
- See also:
- edje_object_part_drag_step_get()
- Parameters:
-
[in] obj The edje object [in] part The part name [in] dx The x step amount [in] dy The y step amount
Eina_Bool edje_object_part_drag_value_get | ( | const Edje_Object * | obj, |
const char * | part, | ||
double * | dx, | ||
double * | dy | ||
) |
Get the dragable object location.
- Since :
- 2.3
- Remarks:
- Values for
dx
anddy
are real numbers that range from 0 to 1, representing the relative position to the dragable area on that axis.
- See also:
- edje_object_part_drag_value_set()
Gets the drag location values.
- Parameters:
-
[in] obj The edje object [in] part The part name [out] dx The X value pointer [out] dy The Y value pointer
Eina_Bool edje_object_part_drag_value_set | ( | Edje_Object * | obj, |
const char * | part, | ||
double | dx, | ||
double | dy | ||
) |
Set the dragable object location.
- Since :
- 2.3
- Remarks:
- Places the dragable object at the given location.
-
Values for
dx
anddy
are real numbers that range from 0 to 1, representing the relative position to the dragable area on that axis. -
This value means, for the vertical axis, that 0.0 will be at the top if the first parameter of
y
in the dragable part theme is 1, and at bottom if it is -1. -
For the horizontal axis, 0.0 means left if the first parameter of
x
in the dragable part theme is 1, and right if it is -1.
- See also:
- edje_object_part_drag_value_get()
- Parameters:
-
[in] obj The edje object [in] part The part name [in] dx The x value [in] dy The y value