Tizen Native API  5.0
Quadrangles

Quadrangles operations.

Functions

void eina_quad_rectangle_to (const Eina_Quad *q, Eina_Rectangle *r)
 Transform the given quadrangle to the given rectangle.
void eina_quad_rectangle_from (Eina_Quad *q, const Eina_Rectangle *r)
 Transform the given rectangle to the given quadrangle.
void eina_quad_coords_set (Eina_Quad *q, double x0, double y0, double x1, double y1, double x2, double y2, double x3, double y3)
 Sets the values of the coordinates of the given quadrangle.
void eina_quad_coords_get (const Eina_Quad *q, double *x0, double *y0, double *x1, double *y1, double *x2, double *y2, double *x3, double *y3)
 Gets the values of the coordinates of the given quadrangle.

Typedefs

typedef struct _Eina_Quad Eina_Quad

Typedef Documentation

typedef struct _Eina_Quad Eina_Quad

Quadrangle definition


Function Documentation

void eina_quad_coords_get ( const Eina_Quad q,
double *  x0,
double *  y0,
double *  x1,
double *  y1,
double *  x2,
double *  y2,
double *  x3,
double *  y3 
)

Gets the values of the coordinates of the given quadrangle.

Parameters:
qThe quadrangle to get coordinates.
x0Top left x coordinate.
y0Top left y coordinate.
x1Top right x coordinate.
y1Top right y coordinate.
x2Bottom right x coordinate.
y2Bottom right y coordinate.
x3Bottom left x coordinate.
y3Bottom left y coordinate.
Since (EFL) :
1.14
Since :
3.0
void eina_quad_coords_set ( Eina_Quad q,
double  x0,
double  y0,
double  x1,
double  y1,
double  x2,
double  y2,
double  x3,
double  y3 
)

Sets the values of the coordinates of the given quadrangle.

Parameters:
qThe quadrangle to set coordinates.
x0Top left x coordinate.
y0Top left y coordinate.
x1Top right x coordinate.
y1Top right y coordinate.
x2Bottom right x coordinate.
y2Bottom right y coordinate.
x3Bottom left x coordinate.
y3Bottom left y coordinate.
Since (EFL) :
1.14
Since :
3.0
void eina_quad_rectangle_from ( Eina_Quad q,
const Eina_Rectangle r 
)

Transform the given rectangle to the given quadrangle.

Parameters:
qThe quadrangle.
rThe rectangle to get coordinates.
Since (EFL) :
1.14
Since :
3.0
void eina_quad_rectangle_to ( const Eina_Quad q,
Eina_Rectangle r 
)

Transform the given quadrangle to the given rectangle.

Parameters:
qThe quadrangle to get coordinates.
rThe rectangle.
Since (EFL) :
1.14
Since :
3.0