Polygon Object Functions

Functions that operate on evas polygon objects. More...

const Eo_Classevas_object_polygon_class_get (void)
 
#define EVAS_OBJ_POLYGON_CLASS   evas_object_polygon_class_get()
 
#define EVAS_OBJ_POLYGON_ID(sub_id)   (EVAS_OBJ_POLYGON_BASE_ID + sub_id)
 
#define evas_obj_polygon_point_add(x, y)   EVAS_OBJ_POLYGON_ID(EVAS_OBJ_POLYGON_SUB_ID_POINT_ADD), EO_TYPECHECK(Evas_Coord, x), EO_TYPECHECK(Evas_Coord, y)
 
#define evas_obj_polygon_points_clear()   EVAS_OBJ_POLYGON_ID(EVAS_OBJ_POLYGON_SUB_ID_POINTS_CLEAR)
 
enum  {
  EVAS_OBJ_POLYGON_SUB_ID_POINT_ADD,
  EVAS_OBJ_POLYGON_SUB_ID_POINTS_CLEAR,
  EVAS_OBJ_POLYGON_SUB_ID_LAST
}
 
Eo_Op EVAS_OBJ_POLYGON_BASE_ID
 
Evas_Objectevas_object_polygon_add (Evas *e)
 Adds a new evas polygon object to the given evas. More...
 
void evas_object_polygon_point_add (Evas_Object *obj, Evas_Coord x, Evas_Coord y)
 Adds the given point to the given evas polygon object. More...
 
void evas_object_polygon_points_clear (Evas_Object *obj)
 Removes all of the points from the given evas polygon object. More...
 

Detailed Description

Functions that operate on evas polygon objects.

Hint: as evas does not provide ellipse, smooth paths or circle, one can calculate points and convert these to a polygon.

Warning
We don't guarantee any proper results if you create a Polygon object without setting the evas engine.

Macro Definition Documentation

§ evas_obj_polygon_point_add

#define evas_obj_polygon_point_add (   x,
 
)    EVAS_OBJ_POLYGON_ID(EVAS_OBJ_POLYGON_SUB_ID_POINT_ADD), EO_TYPECHECK(Evas_Coord, x), EO_TYPECHECK(Evas_Coord, y)
Since
1.8

Adds the given point to the given evas polygon object.

Parameters
[in]x
[in]y
See also
evas_object_polygon_point_add

Referenced by evas_object_polygon_point_add().

§ evas_obj_polygon_points_clear

#define evas_obj_polygon_points_clear ( )    EVAS_OBJ_POLYGON_ID(EVAS_OBJ_POLYGON_SUB_ID_POINTS_CLEAR)
Since
1.8

Removes all of the points from the given evas polygon object.

See also
evas_object_polygon_points_clear

Referenced by evas_object_polygon_points_clear().

Function Documentation

§ evas_object_polygon_add()

Evas_Object* evas_object_polygon_add ( Evas e)

Adds a new evas polygon object to the given evas.

Parameters
eThe given evas.
Returns
A new evas polygon object.

§ evas_object_polygon_point_add()

void evas_object_polygon_point_add ( Evas_Object obj,
Evas_Coord  x,
Evas_Coord  y 
)

Adds the given point to the given evas polygon object.

Parameters
objThe given evas polygon object.
xThe X coordinate of the given point.
yThe Y coordinate of the given point.

References EAPI, eina_list_append(), EINA_LIST_FOREACH, EINA_TRUE, evas_event_feed_mouse_move(), and evas_obj_polygon_point_add.

§ evas_object_polygon_points_clear()

void evas_object_polygon_points_clear ( Evas_Object obj)

Removes all of the points from the given evas polygon object.

Parameters
objThe given polygon object.

References EINA_LIST_FREE, EINA_TRUE, EINA_UNUSED, evas_event_feed_mouse_move(), and evas_obj_polygon_points_clear.