NAME

cxGeoPlotTextDefine - adds a title to the current geometry buffer

C SPECIFICATION

#include <cx/Geometry.h>

enum cxGeoPlotTextAlign
{
 CX_GEO_PLOT_TEXT_LEFT,
 CX_GEO_PLOT_TEXT_RIGHT,
 CX_GEO_PLOT_TEXT_CENTER,
};

cxGeo cxGeoPlotTextDefine (
char *text, 
char *font, 
float size, 
cxGeoPlotTextAlign just)

PARAMETERS

text
String to be used as title.
font
Name of font to be used in title.
size
Size of text.
just
Justification of text.

FUNCTION RETURN VALUE

cxGeoPlotTextDefine returns a tag for the geometry object that may be used to reference it at a later time with cxGeoFocus(3E).

DESCRIPTION

This function adds the geometric representation of a string to the current geometry buffer, at a location in (x,y) space which makes it convenient to be used as a title for a plot created using cxGeoPlotDefine (3E). The parameters set the contents, X font name (passing NULL causes the default font to be used) and size of the string, together with the justification of the text.

SEE ALSO

cxGeoPlotDefine (3E), cxGeoFocus (3E)

The source of the LineGraph module may be found at $EXPLORERHOME/src/LineGraph/linegraph.c (UNIX) and %EXPLORERHOME%\src\LineGraph\linegraph.c (NT). It illustrates the use of many of the cxGeoPlot* routines.


Last modified: Aug 04 17:06 1999
[
Documentation Home ]

© The Numerical Algorithms Group Ltd, Oxford UK. 1999