Efl.Gfx.Map (mixin)

Description

Texture UV mapping for all objects (rotation, perspective, 3d, ...).

Evas allows different transformations to be applied to all kinds of objects. These are applied by means of UV mapping.

With UV mapping, one maps points in the source object to a 3D space positioning at target. This allows rotation, perspective, scale and lots of other effects, depending on the map that is used.

Each map point may carry a multiplier color. If properly calculated, these can do shading effects on the object, producing 3D effects.

At the moment of writing, maps can only have 4 points (no more, no less).

Since 1.20

Inheritance

Efl.Interface (interface)

Full hierarchy

Members

constructor [Overridden from Efl.Object]

Call the object's constructor.
Efl_Object *efl_constructor(Eo *obj);


destructor [Overridden from Efl.Object]

Call the object's destructor.
void efl_destructor(Eo *obj);


lightning_3d

Apply a lighting effect on the object.
void efl_gfx_map_lightning_3d(Eo *obj, const Efl_Gfx *pivot, double lx, double ly, double lz, int lr, int lg, int lb, int ar, int ag, int ab);


lightning_3d_absolute

Apply a lighting effect to the object.
void efl_gfx_map_lightning_3d_absolute(Eo *obj, double lx, double ly, double lz, int lr, int lg, int lb, int ar, int ag, int ab);


map_alpha (get, set)

Alpha flag for map rendering.
Eina_Bool efl_gfx_map_alpha_get(const Eo *obj);
void efl_gfx_map_alpha_set(Eo *obj, Eina_Bool alpha);


map_clockwise (get)

Clockwise state of a map (read-only).
Eina_Bool efl_gfx_map_clockwise_get(const Eo *obj);


map_color (get, set)

Color of a vertex in the map.
void efl_gfx_map_color_get(const Eo *obj, int idx, int *r, int *g, int *b, int *a);
void efl_gfx_map_color_set(Eo *obj, int idx, int r, int g, int b, int a);


map_coord_absolute (get, set)

A point's absolute coordinate on the canvas.
void efl_gfx_map_coord_absolute_get(const Eo *obj, int idx, double *x, double *y, double *z);
void efl_gfx_map_coord_absolute_set(Eo *obj, int idx, double x, double y, double z);


map_has

Read-only property indicating whether an object is mapped.
Eina_Bool efl_gfx_map_has(Eo *obj);


map_point_count (get, set)

Number of points of a map.
int efl_gfx_map_point_count_get(const Eo *obj);
void efl_gfx_map_point_count_set(Eo *obj, int count);


map_reset

Resets the map transformation to its default state.
void efl_gfx_map_reset(Eo *obj);


map_smooth (get, set)

Smoothing state for map rendering.
Eina_Bool efl_gfx_map_smooth_get(const Eo *obj);
void efl_gfx_map_smooth_set(Eo *obj, Eina_Bool smooth);


map_uv (get, set)

Map point's U and V texture source point.
void efl_gfx_map_uv_get(const Eo *obj, int idx, double *u, double *v);
void efl_gfx_map_uv_set(Eo *obj, int idx, double u, double v);


perspective_3d

Apply a perspective transform to the map
void efl_gfx_map_perspective_3d(Eo *obj, const Efl_Gfx *pivot, double px, double py, double z0, double foc);


perspective_3d_absolute

Apply a perspective transform to the map
void efl_gfx_map_perspective_3d_absolute(Eo *obj, double px, double py, double z0, double foc);


rotate

Apply a rotation to the object.
void efl_gfx_map_rotate(Eo *obj, double degrees, const Efl_Gfx *pivot, double cx, double cy);


rotate_3d

Rotate the object around 3 axes in 3D.
void efl_gfx_map_rotate_3d(Eo *obj, double dx, double dy, double dz, const Efl_Gfx *pivot, double cx, double cy, double cz);


rotate_3d_absolute

Rotate the object around 3 axes in 3D, using absolute coordinates.
void efl_gfx_map_rotate_3d_absolute(Eo *obj, double dx, double dy, double dz, double cx, double cy, double cz);


rotate_absolute

Apply a rotation to the object, using absolute coordinates.
void efl_gfx_map_rotate_absolute(Eo *obj, double degrees, double cx, double cy);


rotate_quat

Rotate the object in 3D using a unit quaternion.
void efl_gfx_map_rotate_quat(Eo *obj, double qx, double qy, double qz, double qw, const Efl_Gfx *pivot, double cx, double cy, double cz);


rotate_quat_absolute

Rotate the object in 3D using a unit quaternion, using absolute coordinates.
void efl_gfx_map_rotate_quat_absolute(Eo *obj, double qx, double qy, double qz, double qw, double cx, double cy, double cz);


translate

Apply a translation to the object using map.
void efl_gfx_map_translate(Eo *obj, double dx, double dy, double dz);


zoom

Apply a zoom to the object.
void efl_gfx_map_zoom(Eo *obj, double zoomx, double zoomy, const Efl_Gfx *pivot, double cx, double cy);


zoom_absolute

Apply a zoom to the object, using absolute coordinates.
void efl_gfx_map_zoom_absolute(Eo *obj, double zoomx, double zoomy, double cx, double cy);


Inherited

Efl.Object
allow_parent_unref (get, set) Allow an object to be deleted by unref even if it has a parent.
children_iterator_new Get an iterator on all childrens
comment (get, set) A human readable comment for the object
composite_attach Make an object a composite object of another.
composite_detach Detach a composite object from another object.
composite_part_is Check if an object is part of a composite object.
debug_name_override Build a read-only name for this object used for debugging.
del Unrefs the object and reparents it to NULL.
event_callback_forwarder_add Add an event callback forwarder for an event and an object.
event_callback_forwarder_del Remove an event callback forwarder for an event and an object.
event_callback_stop Stop the current callback call.
event_freeze Freeze events of object.
event_freeze_count (get) Return freeze events of object.
class event_global_freeze Freeze events of object.
class event_global_freeze_count (get) Return freeze events of object.
class event_global_thaw Thaw events of object.
event_thaw Thaw events of object.
finalize Called at the end of efl_add. Should not be called, just overridden.
finalized (get) True if the object is already finalized, otherwise false.
name (get, set) The name of the object.
name_find Find a child object with the given name and return it.
parent (get, set) The parent of an object.
provider_find Searches upwards in the object tree for a provider which knows the given class/interface.

Events

Inherited

Efl.Object
callback,add A callback was added.
callback,del A callback was deleted.
del Object is being deleted.
destruct Object has been fully destroyed. It can not be used beyond this point. This event should only serve to clean up any dangling pointer.