Go to the first, previous, next, last section, table of contents.


EZDText -- EZD Object with Text

SYNOPSIS

#include <CNCL/EZDText.h>

TYPE

CN_EZDTEXT

BASE CLASSES

EZDObject

DERIVED CLASSES

None

RELATED CLASSES

None

DESCRIPTION:


EZDText writes text into a clear rectangle. The rectangle is handled as an EZDObject, its size is automatically as large as necessary to hold the text in the given font and (x,y) are its minimum coordinates in the current drawing. Note that the font name is specified as a string in X font name terminology.
Constructors:

EZDText();
EZDText(CNParam *param);
EZDText(int x, int y, const CNString &text);
EZDText(const CNString &name, int x, int y, const CNString &text);
EZDText(int x, int y, const CNString &text, const CNString &font);
EZDText(const CNString &name, int x, int y, const CNString &text, const CNString &font);
Initializes the EZDObject and displays the text in the current drawing at the (x,y) coordinates. If no EZDObject name is chosen it is called "text".


In addition to the member functions required by CNCL, EZDText provides:

virtual void redraw();
Redraws the text in the current drawing.
void set_text(const CNString &t);
void set_text_val(int x);
void set_text_val(const CNString &t, int x);
void set_text_val(double x);
void set_text_val(const CNString &t, double x);
Creates text out of text, integer or double and displays it in the current drawing.


Go to the first, previous, next, last section, table of contents.