enesim  0.0.23.1
Drawinglibrary
Functions
Line
Shapes

Line renderer inherits from \1. More...

Functions

EAPI Enesim_Rendererenesim_renderer_line_new (void)
 Create a new line renderer.
EAPI void enesim_renderer_line_x0_set (Enesim_Renderer *r, double x0)
 Set the X coordinate of the first point of a line renderer. .
EAPI double enesim_renderer_line_x0_get (Enesim_Renderer *r)
 Retrieve the X coordinate of the first point of a line renderer. .
EAPI void enesim_renderer_line_y0_set (Enesim_Renderer *r, double y0)
 Set the Y coordinate of the first point of a line renderer. .
EAPI double enesim_renderer_line_y0_get (Enesim_Renderer *r)
 Get the Y coordinate of the first point of a line renderer. .
EAPI void enesim_renderer_line_x1_set (Enesim_Renderer *r, double x1)
 Set the X coordinate of the second point of a line renderer. .
EAPI double enesim_renderer_line_x1_get (Enesim_Renderer *r)
 Get the X coordinate of the second point of a line renderer. .
EAPI void enesim_renderer_line_y1_set (Enesim_Renderer *r, double y1)
 Set the Y coordinate of the second point of a line renderer. .
EAPI double enesim_renderer_line_y1_get (Enesim_Renderer *r)
 Get the Y coordinate of the second point of a line renderer. .
EAPI void enesim_renderer_line_coords_set (Enesim_Renderer *r, double x0, double y0, double x1, double y1)
 Set the coordinates of a line renderer.
EAPI void enesim_renderer_line_coords_get (Enesim_Renderer *r, double *x0, double *y0, double *x1, double *y1)
 Retrieve the coordinates of a line renderer.

Detailed Description

Line renderer inherits from \1.


Function Documentation

Create a new line renderer.

Returns:
A new line renderer.

This function returns a newly allocated line renderer.

EAPI void enesim_renderer_line_x0_set ( Enesim_Renderer r,
double  x0 
)

Set the X coordinate of the first point of a line renderer. .

Parameters:
[in]rThe line renderer.
[in]x0The X coordinate.

This function sets the X coordinate of the first point of the line renderer r to the value x0.

Retrieve the X coordinate of the first point of a line renderer. .

Parameters:
[in]rThe line renderer.
Returns:
The X coordinate.

This function returns the X coordinate value of the first point of the line renderer r

EAPI void enesim_renderer_line_y0_set ( Enesim_Renderer r,
double  y 
)

Set the Y coordinate of the first point of a line renderer. .

Parameters:
[in]rThe line renderer.
[in]yThe Y coordinate.

This function sets the Y coordinate of the first point of the line renderer r to the value y.

Get the Y coordinate of the first point of a line renderer. .

Parameters:
[in]rThe line renderer.
Returns:
The first Y coordinate.

This function returns the Y coordinate value of the first point of the line renderer r

EAPI void enesim_renderer_line_x1_set ( Enesim_Renderer r,
double  x 
)

Set the X coordinate of the second point of a line renderer. .

Parameters:
[in]rThe line renderer.
[in]xThe X coordinate.

This function sets the X coordinate of the second point of the line renderer r to the value x.

Get the X coordinate of the second point of a line renderer. .

Parameters:
[in]rThe line renderer.
Returns:
The X coordinate.

This function returns the X coordinate value of the second point of the line renderer r

EAPI void enesim_renderer_line_y1_set ( Enesim_Renderer r,
double  y 
)

Set the Y coordinate of the second point of a line renderer. .

Parameters:
[in]rThe line renderer.
[in]yThe Y coordinate.

This function sets the Y coordinate of the second point of the line renderer r to the value y.

Get the Y coordinate of the second point of a line renderer. .

Parameters:
[in]rThe line renderer.
Returns:
The second Y coordinate.

This function returns the Y coordinate value of the second point of the line renderer r

EAPI void enesim_renderer_line_coords_set ( Enesim_Renderer r,
double  x0,
double  y0,
double  x1,
double  y1 
)

Set the coordinates of a line renderer.

Parameters:
[in]rThe line renderer.
[in]x0The X coordinate of the first point.
[in]y0The Y coordinate of the first point.
[in]x1The X coordinate of the second point.
[in]y1The Y coordinate of the second point.

This function sets the coordinates of the points of the line renderer r to the values x0, y0, x1 and y1.

EAPI void enesim_renderer_line_coords_get ( Enesim_Renderer r,
double *  x0,
double *  y0,
double *  x1,
double *  y1 
)

Retrieve the coordinates of a line renderer.

Parameters:
[in]rThe line renderer.
[out]x0The X coordinate of the first point.
[out]y0The Y coordinate of the first point.
[out]x1The X coordinate of the second point.
[out]y1The Y coordinate of the second point.

This function stores the coordinates value of the points of the line renderer r in the buffers x0, y0, x1 and y1. These buffers can be NULL.

 All Data Structures Variables