enesim  0.0.23.1
Drawinglibrary
Functions
Image
Renderer

Image based renderer inherits from \1. More...

Functions

EAPI Enesim_Rendererenesim_renderer_image_new (void)
 Create a new image renderer.
EAPI void enesim_renderer_image_x_set (Enesim_Renderer *r, double x)
 Set the top left X coordinate of a image renderer. .
EAPI double enesim_renderer_image_x_get (Enesim_Renderer *r)
 Retrieve the top left X coordinate of a image renderer. .
EAPI void enesim_renderer_image_y_set (Enesim_Renderer *r, double y)
 Set the top left Y coordinate of a image renderer. .
EAPI double enesim_renderer_image_y_get (Enesim_Renderer *r)
 Retrieve the top left Y coordinate of a image renderer. .
EAPI void enesim_renderer_image_position_set (Enesim_Renderer *r, double x, double y)
 Set the top left coordinates of a image renderer.
EAPI void enesim_renderer_image_position_get (Enesim_Renderer *r, double *x, double *y)
 Retrieve the top left coordinates of a image renderer.
EAPI void enesim_renderer_image_width_set (Enesim_Renderer *r, double w)
 Set the width of a image renderer. .
EAPI double enesim_renderer_image_width_get (Enesim_Renderer *r)
 Retrieve the width of a image renderer. .
EAPI void enesim_renderer_image_height_set (Enesim_Renderer *r, double h)
 Set the height of a image renderer. .
EAPI double enesim_renderer_image_height_get (Enesim_Renderer *r)
 Retrieve the height of a image renderer. .
EAPI void enesim_renderer_image_size_set (Enesim_Renderer *r, double w, double h)
 Set the size of a image renderer.
EAPI void enesim_renderer_image_size_get (Enesim_Renderer *r, double *w, double *h)
 Retrieve the size of a image renderer.
EAPI void enesim_renderer_image_source_surface_set (Enesim_Renderer *r, Enesim_Surface *src)
 Set the surface used as pixel source for the image renderer .
EAPI Enesim_Surfaceenesim_renderer_image_source_surface_get (Enesim_Renderer *r)
 Retrieve the surface used as the pixel source for the image renderer .
EAPI void enesim_renderer_image_damage_add (Enesim_Renderer *r, const Eina_Rectangle *area)
 Add an area to repaint on the renderer.

Detailed Description

Image based renderer inherits from \1.


Function Documentation

Create a new image renderer.

Todo:
  • add support for sw and sh
  • add support for qualities (good scaler, interpolate between the four neighbours)
  • all the span functions have a memset ... that has to be fixed to: + whenever the color = 0, use a image renderer and call it directly + on sw hints check the same condition and use the image renderer hints
Returns:
A new image renderer.

This function returns a newly allocated image renderer.

EAPI void enesim_renderer_image_x_set ( Enesim_Renderer r,
double  x 
)

Set the top left X coordinate of a image renderer. .

Parameters:
[in]rThe image renderer.
[in]xThe top left X coordinate.

This function sets the top left X coordinate of the image renderer r to the value x.

Retrieve the top left X coordinate of a image renderer. .

Parameters:
[in]rThe image renderer.
Returns:
The top left X coordinate.

This function gets the top left X coordinate of the image renderer r

EAPI void enesim_renderer_image_y_set ( Enesim_Renderer r,
double  y 
)

Set the top left Y coordinate of a image renderer. .

Parameters:
[in]rThe image renderer.
[in]yThe top left Y coordinate.

This function sets the top left Y coordinate of the image renderer r to the value y.

Retrieve the top left Y coordinate of a image renderer. .

Parameters:
[in]rThe image renderer.
Returns:
The top left Y coordinate.

This function gets the top left Y coordinate of the image renderer r

EAPI void enesim_renderer_image_position_set ( Enesim_Renderer r,
double  x,
double  y 
)

Set the top left coordinates of a image renderer.

Parameters:
[in]rThe image renderer.
[in]xThe top left X coordinate.
[in]yThe top left Y coordinate.

This function sets the top left coordinates of the image renderer r to the values x and y.

EAPI void enesim_renderer_image_position_get ( Enesim_Renderer r,
double *  x,
double *  y 
)

Retrieve the top left coordinates of a image renderer.

Parameters:
[in]rThe image renderer.
[out]xThe top left X coordinate.
[out]yThe top left Y coordinate.

This function stores the top left coordinates value of the image renderer r in the pointers x and y. These pointers can be NULL.

EAPI void enesim_renderer_image_width_set ( Enesim_Renderer r,
double  w 
)

Set the width of a image renderer. .

Parameters:
[in]rThe image renderer.
[in]wThe image width.

This function sets the width of the image renderer r to the value width.

Retrieve the width of a image renderer. .

Parameters:
[in]rThe image renderer.
Returns:
The image width.

This function gets the width of the image renderer r

EAPI void enesim_renderer_image_height_set ( Enesim_Renderer r,
double  h 
)

Set the height of a image renderer. .

Parameters:
[in]rThe image renderer.
[in]hThe image height.

This function sets the height of the image renderer r to the value height.

Retrieve the height of a image renderer. .

Parameters:
[in]rThe image renderer.
Returns:
The image height.

This function gets the height of the image renderer r

EAPI void enesim_renderer_image_size_set ( Enesim_Renderer r,
double  w,
double  h 
)

Set the size of a image renderer.

Parameters:
[in]rThe image renderer.
[in]wThe width.
[in]hThe height.

This function sets the size of the image renderer r to the values width and height.

EAPI void enesim_renderer_image_size_get ( Enesim_Renderer r,
double *  w,
double *  h 
)

Retrieve the size of a image renderer.

Parameters:
[in]rThe image renderer.
[out]wThe width.
[out]hThe height.

This function stores the size of the image renderer r in the pointers width and height. These pointers can be NULL.

Set the surface used as pixel source for the image renderer .

Parameters:
[in]rThe image renderer.
[in]srcThe surface to use [Transfer full]

This function sets the source pixels to use for the image renderer.

Retrieve the surface used as the pixel source for the image renderer .

Parameters:
[in]rThe image renderer.
Returns:
src The source surface [Transfer none]

This function returns the surface used as the pixel source

EAPI void enesim_renderer_image_damage_add ( Enesim_Renderer r,
const Eina_Rectangle *  area 
)

Add an area to repaint on the renderer.

Parameters:
[in]rThe image renderer.
[in]areaThe area to repaint

This function adds a repaint area (damage) using the source surface coordinate space. Next time a enesim_renderer_damages_get is called, this new area will be taken into account too.

 All Data Structures Variables