enesim  0.0.23.1
Drawinglibrary
Functions
Checker
Renderer

Checked pattern renderer inherits from \1. More...

Functions

EAPI Enesim_Rendererenesim_renderer_checker_new (void)
EAPI void enesim_renderer_checker_even_color_set (Enesim_Renderer *r, Enesim_Color color)
 Sets the color of the even squares .
EAPI Enesim_Color enesim_renderer_checker_even_color_get (Enesim_Renderer *r)
 Gets the color of the even squares .
EAPI void enesim_renderer_checker_odd_color_set (Enesim_Renderer *r, Enesim_Color color)
 Sets the color of the odd squares .
EAPI Enesim_Color enesim_renderer_checker_odd_color_get (Enesim_Renderer *r)
 Gets the color of the odd squares .
EAPI void enesim_renderer_checker_width_set (Enesim_Renderer *r, int width)
 Sets the width of the checker rectangles .
EAPI int enesim_renderer_checker_width_get (Enesim_Renderer *r)
 Gets the width of the checker rectangles .
EAPI void enesim_renderer_checker_height_set (Enesim_Renderer *r, int height)
 Sets the height of the checker rectangles .
EAPI int enesim_renderer_checker_height_get (Enesim_Renderer *r)
 Gets the height of the checker rectangles .

Detailed Description

Checked pattern renderer inherits from \1.


Function Documentation

Todo:
  • Optimize the case where both colors are the same
  • There's a bug on the affine renderer, easily reproducible whenever we scale

Creates a checker renderer

Returns:
The new renderer

Sets the color of the even squares .

Parameters:
[in]rThe checker renderer
[in]colorThe color

Gets the color of the even squares .

Parameters:
[in]rThe checker renderer
Returns:
The color

Sets the color of the odd squares .

Parameters:
[in]rThe checker renderer
[in]colorThe color

Gets the color of the odd squares .

Parameters:
[in]rThe checker renderer
Returns:
The color
EAPI void enesim_renderer_checker_width_set ( Enesim_Renderer r,
int  width 
)

Sets the width of the checker rectangles .

Parameters:
[in]rThe checker renderer
[in]widthThe width

Gets the width of the checker rectangles .

Parameters:
[in]rThe checker renderer
Returns:
The width
EAPI void enesim_renderer_checker_height_set ( Enesim_Renderer r,
int  height 
)

Sets the height of the checker rectangles .

Parameters:
[in]rThe checker renderer
[in]heightThe height

Gets the height of the checker rectangles .

Parameters:
[in]rThe checker renderer
Returns:
The height
 All Data Structures Variables