Functions used to deal with evas line objects. More...
Macros | |
| #define | EVAS_OBJ_LINE_CLASS evas_object_line_class_get() |
| #define | EVAS_OBJ_LINE_ID(sub_id) (EVAS_OBJ_LINE_BASE_ID + sub_id) |
| #define | evas_obj_line_xy_set(x1, y1, x2, y2) EVAS_OBJ_LINE_ID(EVAS_OBJ_LINE_SUB_ID_XY_SET), EO_TYPECHECK(Evas_Coord, x1), EO_TYPECHECK(Evas_Coord, y1), EO_TYPECHECK(Evas_Coord, x2), EO_TYPECHECK(Evas_Coord, y2) |
| #define | evas_obj_line_xy_get(x1, y1, x2, y2) EVAS_OBJ_LINE_ID(EVAS_OBJ_LINE_SUB_ID_XY_GET), EO_TYPECHECK(Evas_Coord *, x1), EO_TYPECHECK(Evas_Coord *, y1), EO_TYPECHECK(Evas_Coord *, x2), EO_TYPECHECK(Evas_Coord *, y2) |
Enumerations | |
| enum | { EVAS_OBJ_LINE_SUB_ID_XY_SET, EVAS_OBJ_LINE_SUB_ID_XY_GET, EVAS_OBJ_LINE_SUB_ID_LAST } |
Functions | |
| const Eo_Class * | evas_object_line_class_get (void) |
| Evas_Object * | evas_object_line_add (Evas *e) |
| Adds a new evas line object to the given evas. | |
| void | evas_object_line_xy_set (Evas_Object *obj, Evas_Coord x1, Evas_Coord y1, Evas_Coord x2, Evas_Coord y2) |
| Sets the coordinates of the end points of the given evas line object. | |
| void | evas_object_line_xy_get (const Evas_Object *obj, Evas_Coord *x1, Evas_Coord *y1, Evas_Coord *x2, Evas_Coord *y2) |
| Retrieves the coordinates of the end points of the given evas line object. | |
Variables | |
| Eo_Op | EVAS_OBJ_LINE_BASE_ID |
Detailed Description
Functions used to deal with evas line objects.
- Warning
- We don't guarantee any proper results if you create a Line object without setting the evas engine.
Macro Definition Documentation
| #define evas_obj_line_xy_set | ( | x1, | |
| y1, | |||
| x2, | |||
| y2 | |||
| ) | EVAS_OBJ_LINE_ID(EVAS_OBJ_LINE_SUB_ID_XY_SET), EO_TYPECHECK(Evas_Coord, x1), EO_TYPECHECK(Evas_Coord, y1), EO_TYPECHECK(Evas_Coord, x2), EO_TYPECHECK(Evas_Coord, y2) |
- Since
- 1.8
Sets the coordinates of the end points of the given evas line object.
- Parameters
-
[in] x1 [in] y1 [in] x2 [in] y2
- See Also
- evas_object_line_xy_set
Referenced by evas_object_line_xy_set().
| #define evas_obj_line_xy_get | ( | x1, | |
| y1, | |||
| x2, | |||
| y2 | |||
| ) | EVAS_OBJ_LINE_ID(EVAS_OBJ_LINE_SUB_ID_XY_GET), EO_TYPECHECK(Evas_Coord *, x1), EO_TYPECHECK(Evas_Coord *, y1), EO_TYPECHECK(Evas_Coord *, x2), EO_TYPECHECK(Evas_Coord *, y2) |
- Since
- 1.8
Retrieves the coordinates of the end points of the given evas line object.
- Parameters
-
[out] x1 [out] y1 [out] x2 [out] y2
- See Also
- evas_object_line_xy_get
Referenced by evas_object_line_xy_get().
Function Documentation
| Evas_Object* evas_object_line_add | ( | Evas * | e | ) |
Adds a new evas line object to the given evas.
- Parameters
-
e The given evas.
- Returns
- The new evas line object.
References eo_add, and eo_unref().
| void evas_object_line_xy_set | ( | Evas_Object * | obj, |
| Evas_Coord | x1, | ||
| Evas_Coord | y1, | ||
| Evas_Coord | x2, | ||
| Evas_Coord | y2 | ||
| ) |
Sets the coordinates of the end points of the given evas line object.
- Parameters
-
obj The given evas line object. x1 The X coordinate of the first point. y1 The Y coordinate of the first point. x2 The X coordinate of the second point. y2 The Y coordinate of the second point.
References eo_do, and evas_obj_line_xy_set.
| void evas_object_line_xy_get | ( | const Evas_Object * | obj, |
| Evas_Coord * | x1, | ||
| Evas_Coord * | y1, | ||
| Evas_Coord * | x2, | ||
| Evas_Coord * | y2 | ||
| ) |
Retrieves the coordinates of the end points of the given evas line object.
- Parameters
-
obj The given line object. x1 Pointer to an integer in which to store the X coordinate of the first end point. y1 Pointer to an integer in which to store the Y coordinate of the first end point. x2 Pointer to an integer in which to store the X coordinate of the second end point. y2 Pointer to an integer in which to store the Y coordinate of the second end point.
References eo_do, and evas_obj_line_xy_get.
