enesim  0.0.23.1
Drawinglibrary
Functions
Clipper
Renderer

Renderer that clips a source renderer inherits from \1. More...

Functions

EAPI Enesim_Rendererenesim_renderer_clipper_new (void)
 Creates a clipper renderer.
EAPI void enesim_renderer_clipper_clipped_set (Enesim_Renderer *r, Enesim_Renderer *clipped)
 Sets the clipped renderer.
EAPI Enesim_Rendererenesim_renderer_clipper_clipped_get (Enesim_Renderer *r)
 Gets the clipped renderer.
EAPI void enesim_renderer_clipper_x_set (Enesim_Renderer *r, int x)
 Set the top left X coordinate of a clipper renderer.
EAPI int enesim_renderer_clipper_x_get (Enesim_Renderer *r)
 Retrieve the top left X coordinate of a clipper renderer.
EAPI void enesim_renderer_clipper_y_set (Enesim_Renderer *r, int y)
 Set the top left Y coordinate of a clipper renderer.
EAPI int enesim_renderer_clipper_y_get (Enesim_Renderer *r)
 Retrieve the top left Y coordinate of a clipper renderer.
EAPI void enesim_renderer_clipper_position_set (Enesim_Renderer *r, int x, int y)
 Set the top left coordinates of a clipper renderer.
EAPI void enesim_renderer_clipper_position_get (Enesim_Renderer *r, int *x, int *y)
 Retrieve the top left coordinates of a clipper renderer.
EAPI void enesim_renderer_clipper_width_set (Enesim_Renderer *r, int width)
 Sets the width of the clipper.
EAPI int enesim_renderer_clipper_width_get (Enesim_Renderer *r)
 Sets the width of the clipper.
EAPI void enesim_renderer_clipper_height_set (Enesim_Renderer *r, int height)
 Sets the height of the clipper.
EAPI int enesim_renderer_clipper_height_get (Enesim_Renderer *r)
 Sets the height of the clipper.
EAPI void enesim_renderer_clipper_size_set (Enesim_Renderer *r, int w, int h)
 Set the size of a clipper renderer.
EAPI void enesim_renderer_clipper_size_get (Enesim_Renderer *r, int *w, int *h)
 Retrieve the size of a clipper renderer.

Detailed Description

Renderer that clips a source renderer inherits from \1.


Function Documentation

Creates a clipper renderer.

Returns:
The new renderer

Sets the clipped renderer.

Parameters:
[in]rThe clipper renderer to set the clip to
[in]clippedThe renderer to clip [Transfer full]

Gets the clipped renderer.

Parameters:
[in]rThe clipper renderer to set the clip to
Returns:
The clipped renderer [Transfer none]
EAPI void enesim_renderer_clipper_x_set ( Enesim_Renderer r,
int  x 
)

Set the top left X coordinate of a clipper renderer.

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

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

Retrieve the top left X coordinate of a clipper renderer.

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

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

EAPI void enesim_renderer_clipper_y_set ( Enesim_Renderer r,
int  y 
)

Set the top left Y coordinate of a clipper renderer.

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

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

Retrieve the top left Y coordinate of a clipper renderer.

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

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

EAPI void enesim_renderer_clipper_position_set ( Enesim_Renderer r,
int  x,
int  y 
)

Set the top left coordinates of a clipper renderer.

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

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

EAPI void enesim_renderer_clipper_position_get ( Enesim_Renderer r,
int *  x,
int *  y 
)

Retrieve the top left coordinates of a clipper renderer.

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

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

EAPI void enesim_renderer_clipper_width_set ( Enesim_Renderer r,
int  width 
)

Sets the width of the clipper.

Parameters:
[in]rThe clipper renderer to set width to
[in]widthThe width

Sets the width of the clipper.

Parameters:
[in]rThe clipper renderer to set width to
Returns:
width The width
EAPI void enesim_renderer_clipper_height_set ( Enesim_Renderer r,
int  height 
)

Sets the height of the clipper.

Parameters:
[in]rThe clipper renderer to set height to
[in]heightThe height

Sets the height of the clipper.

Parameters:
[in]rThe clipper renderer to set height to
Returns:
height The height
EAPI void enesim_renderer_clipper_size_set ( Enesim_Renderer r,
int  w,
int  h 
)

Set the size of a clipper renderer.

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

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

EAPI void enesim_renderer_clipper_size_get ( Enesim_Renderer r,
int *  w,
int *  h 
)

Retrieve the size of a clipper renderer.

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

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

 All Data Structures Variables