Functions that operate on evas polygon objects. More...
const Eo_Class * | evas_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_Object * | evas_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... | |
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.
#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) |
Adds the given point to the given evas polygon object.
[in] | x | |
[in] | y |
Referenced by evas_object_polygon_point_add().
#define evas_obj_polygon_points_clear | ( | ) | EVAS_OBJ_POLYGON_ID(EVAS_OBJ_POLYGON_SUB_ID_POINTS_CLEAR) |
Removes all of the points from the given evas polygon object.
Referenced by evas_object_polygon_points_clear().
Evas_Object* evas_object_polygon_add | ( | Evas * | e | ) |
Adds a new evas polygon object to the given evas.
e | The given evas. |
References EAPI, EINA_UNUSED, and evas_object_evas_get().
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.
obj | The given evas polygon object. |
x | The X coordinate of the given point. |
y | The 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.
void evas_object_polygon_points_clear | ( | Evas_Object * | obj | ) |
Removes all of the points from the given evas polygon object.
obj | The given polygon object. |
References eina_list_count(), eina_list_data_get(), EINA_LIST_FOREACH, EINA_LIST_FREE, eina_list_next(), EINA_TRUE, EINA_UNUSED, evas_event_feed_mouse_move(), and evas_obj_polygon_points_clear.