Example of an xpm data string
Pixrects and bitmaps are
realized by pointers of type char * . There is no constructor
and no destructor. The user must explicitely create and destroy
pixrects .
char * W.create_pixrect(double x0,double y1,double x1,double y1);
char * W.get_window_pixrect();
char * W.create_pixrect(char ** xpm);
char * W.create_pixrect(string prect);
The first variant constructs a pixrect from the rectangle
(x0,y0,x1,y1) of the drawing area of window W and the
second constructs a pixrect from the complete window.
The third and fourth variant create a pixrect from
an xpm data string stored as char ** , respectively,
string. The operation
void W.del_pixrect(char * prect);
deletes the pixrect prect .
Drawing Pixrects
The operations
W.put_pixrect(double x, double y, char* prect);
W.put_pixrect(point p, char* prect);
draw the pixrect prect at the corresponding position
of the drawing area of W .
|