Line Object Functions

Functions used to deal with evas line objects. More...

Functions

Evas_Objectevas_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.

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.

Function Documentation

Evas_Object* evas_object_line_add ( Evas e)

Adds a new evas line object to the given evas.

Parameters
eThe given evas.
Returns
The new 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.

Parameters
objThe given line object.
x1Pointer to an integer in which to store the X coordinate of the first end point.
y1Pointer to an integer in which to store the Y coordinate of the first end point.
x2Pointer to an integer in which to store the X coordinate of the second end point.
y2Pointer to an integer in which to store the Y coordinate of the second end point.
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
objThe given evas line object.
x1The X coordinate of the first point.
y1The Y coordinate of the first point.
x2The X coordinate of the second point.
y2The Y coordinate of the second point.

References evas_event_feed_mouse_move().