enesim  0.0.23.1
Drawinglibrary
Modules | Functions
Shapes
Renderer

Geometric shape renderer inherits from \1. More...

Modules

 Circle
 

Circle renderer inherits from \1.


 Ellipse
 

Ellipse renderer inherits from \1.


 Figure
 

A figure composed of polygons renderer inherits from \1.


 Line
 

Line renderer inherits from \1.


 Path
 

Path renderer inherits from \1.


 Rectangle
 

Rectangle renderer inherits from \1.


 Definitions

Functions

EAPI int enesim_renderer_shape_shape_features_get (Enesim_Renderer *r)
 Get the features a shape renderer support.
EAPI void enesim_renderer_shape_stroke_color_set (Enesim_Renderer *r, Enesim_Color stroke_color)
EAPI Enesim_Color enesim_renderer_shape_stroke_color_get (Enesim_Renderer *r)
EAPI void enesim_renderer_shape_stroke_renderer_set (Enesim_Renderer *r, Enesim_Renderer *stroke)
EAPI Enesim_Rendererenesim_renderer_shape_stroke_renderer_get (Enesim_Renderer *r)
EAPI void enesim_renderer_shape_stroke_weight_set (Enesim_Renderer *r, double weight)
EAPI double enesim_renderer_shape_stroke_weight_get (Enesim_Renderer *r)
EAPI void enesim_renderer_shape_stroke_location_set (Enesim_Renderer *r, Enesim_Renderer_Shape_Stroke_Location location)
EAPI
Enesim_Renderer_Shape_Stroke_Location 
enesim_renderer_shape_stroke_location_get (Enesim_Renderer *r)
EAPI void enesim_renderer_shape_stroke_cap_set (Enesim_Renderer *r, Enesim_Renderer_Shape_Stroke_Cap cap)
EAPI
Enesim_Renderer_Shape_Stroke_Cap 
enesim_renderer_shape_stroke_cap_get (Enesim_Renderer *r)
EAPI void enesim_renderer_shape_stroke_join_set (Enesim_Renderer *r, Enesim_Renderer_Shape_Stroke_Join join)
EAPI
Enesim_Renderer_Shape_Stroke_Join 
enesim_renderer_shape_stroke_join_get (Enesim_Renderer *r)
EAPI void enesim_renderer_shape_stroke_dash_add_simple (Enesim_Renderer *r, double length, double gap)
EAPI void enesim_renderer_shape_stroke_dash_add (Enesim_Renderer *r, const Enesim_Renderer_Shape_Stroke_Dash *dash)
EAPI void enesim_renderer_shape_stroke_dash_clear (Enesim_Renderer *r)
EAPI void enesim_renderer_shape_stroke_scalable_set (Enesim_Renderer *r, Eina_Bool scalable)
 Sets whenever a stroke should be scalable .
EAPI Eina_Bool enesim_renderer_shape_stroke_scalable_get (Enesim_Renderer *r)
 Gets whenever a stroke should be scalable .
EAPI void enesim_renderer_shape_fill_color_set (Enesim_Renderer *r, Enesim_Color fill_color)
EAPI Enesim_Color enesim_renderer_shape_fill_color_get (Enesim_Renderer *r)
EAPI void enesim_renderer_shape_fill_renderer_set (Enesim_Renderer *r, Enesim_Renderer *fill)
EAPI Enesim_Rendererenesim_renderer_shape_fill_renderer_get (Enesim_Renderer *r)
EAPI void enesim_renderer_shape_fill_rule_set (Enesim_Renderer *r, Enesim_Renderer_Shape_Fill_Rule rule)
EAPI
Enesim_Renderer_Shape_Fill_Rule 
enesim_renderer_shape_fill_rule_get (Enesim_Renderer *r)
EAPI void enesim_renderer_shape_draw_mode_set (Enesim_Renderer *r, int draw_mode)
EAPI int enesim_renderer_shape_draw_mode_get (Enesim_Renderer *r)
EAPI Eina_Bool enesim_renderer_shape_geometry_get (Enesim_Renderer *r, Enesim_Rectangle *geometry)
 Get the geometry of a renderer shape.
EAPI Eina_Bool enesim_renderer_shape_destination_geometry_get (Enesim_Renderer *r, Enesim_Rectangle *geometry)
 Get the destination geometry of a renderer shape.

Detailed Description

Geometric shape renderer inherits from \1.


Function Documentation

Get the features a shape renderer support.

Parameters:
[in]rThe renderer to get the features from
Returns:
The renderer features

Sets the stroke color of a shape renderer

Parameters:
[in]rThe shape renderer to set the stroke color on
[in]colorThe stroke color to set

Gets the stroke color of a shape renderer

Parameters:
[in]rThe shape renderer to get the stroke color from
Returns:
The stroke color

Sets the stroke renderer of a shape renderer

Parameters:
[in]rThe shape renderer to set the stroke renderer on
[in]strokeThe stroke renderer to set

Gets the stroke renderer of a shape renderer

Parameters:
[in]rThe shape renderer to get the stroke renderer from
Returns:
The stroke renderer
EAPI void enesim_renderer_shape_stroke_weight_set ( Enesim_Renderer r,
double  weight 
)

Sets the stroke weight of a shape renderer

Parameters:
[in]rThe shape renderer to set the stroke weight on
[in]weightThe stroke weight to set

Gets the stroke weight of a shape renderer

Parameters:
[in]rThe shape renderer to get the stroke weight from
Returns:
The stroke weight

Sets the stroke location of a shape renderer

Parameters:
[in]rThe shape renderer to set the stroke location on
[in]locationThe stroke location to set

Gets the stroke location of a shape renderer

Parameters:
[in]rThe shape renderer to get the stroke location from
Returns:
The stroke location

Sets the stroke cap of a shape renderer

Parameters:
[in]rThe shape renderer to set the stroke cap on
[in]capThe stroke cap to set

Gets the stroke cap of a shape renderer

Parameters:
[in]rThe shape renderer to get the stroke cap from
Returns:
The stroke cap

Sets the stroke join of a shape renderer

Parameters:
[in]rThe shape renderer to set the stroke join on
[in]joinThe stroke join to set

Gets the stroke join of a shape renderer

Parameters:
[in]rThe shape renderer to get the stroke join from
Returns:
The stroke join
EAPI void enesim_renderer_shape_stroke_scalable_set ( Enesim_Renderer r,
Eina_Bool  scalable 
)

Sets whenever a stroke should be scalable .

Parameters:
[in]rThe shape renderer to set the stroke scalable to
[in]scalableEINA_TRUE to enable scaling the stroke, EINA_FALSE otherwise

Gets whenever a stroke should be scalable .

Parameters:
[in]rThe shape renderer to get the stroke scalable from
Returns:
EINA_TRUE is the stroke is scalable, EINA_FALSE otherwise

Sets the fill color of a shape renderer

Parameters:
[in]rThe shape renderer to set the fill color on
[in]colorThe fill color to set

Gets the fill color of a shape renderer

Parameters:
[in]rThe shape renderer to get the fill color from
Returns:
The fill color

Sets the fill renderer of a shape renderer

Parameters:
[in]rThe shape renderer to set the fill renderer on
[in]fillThe fill renderer to set

Gets the fill renderer of a shape renderer

Parameters:
[in]rThe shape renderer to get the fill renderer from
Returns:
The fill renderer

Sets the fill rule of a shape renderer

Parameters:
[in]rThe shape renderer to set the fill rule on
[in]ruleThe fill rule to set

Gets the fill rule of a shape renderer

Parameters:
[in]rThe shape renderer to get the fill rule from
Returns:
The fill rule
EAPI void enesim_renderer_shape_draw_mode_set ( Enesim_Renderer r,
int  draw_mode 
)

Sets the draw mode of a shape renderer

Parameters:
[in]rThe shape renderer to set the draw mode on
[in]draw_modeThe draw mode to set

Gets the draw mode of a shape renderer

Parameters:
[in]rThe shape renderer to get the draw mode from
Returns:
The draw mode
EAPI Eina_Bool enesim_renderer_shape_geometry_get ( Enesim_Renderer r,
Enesim_Rectangle geometry 
)

Get the geometry of a renderer shape.

Parameters:
[in]rThe shape renderer to get the geometry from
[out]geometryThe rectangle pointer to write the geometry in
Returns:
Eina_True if the functions success on the getting geometry, Eina_False otherwise

This function gets the geometry of a shape renderer which is defined only by it's shape and not by the pixels drawn. That is, the stroking of the shape is not taking into account. To know the area of the pixels drawn by the shape renderer use enesim_renderer_bounds_get

Get the destination geometry of a renderer shape.

Parameters:
[in]rThe shape renderer to get the destination geometry from
[out]geometryThe rectangle pointer to write the destination geometry in
Returns:
Eina_True if the functions success on the getting geometry, Eina_False otherwise

This function is similar to enesim_renderer_shape_geometry_get but the geometry is also transformed by the transformation matrix set using enesim_renderer_transformation_set

 All Data Structures Variables