XppWindow | +----XppCanvas
XppCanvas(int width, int height, int x=0, int y=0, char *name = "canvas");
(x,y) with the specified width
and height and name. If
either x or y is negative then
the canvas must be positioned on the root window using the mouse.
XppCanvas(XppWindow& win, int width, int height, int x=0, int y=0);
win
at the relative position (x,y) with width w
and height h.
void SetDrawingCoordinates(double left,double right,double down,double up);
(left,up). The coordinates of the lower-right corner are
specified as (right,down). The default canvas
coordinate system is the usual X window coordinate system, ie. upper-left
corner is (0,0) , lower-right corner is (canvas_width, canvas, height).
void DrawPoint(double x, double y);
void DrawLine(double x1, double y1, double x2, double y2);
void DrawRectangle(double x, double y, double width, double height);
void DrawFilledRectangle(double x, double y, double width, double height);
void DrawRectangleToFit(double x1, double y1, double x2, double y2);
void DrawFilledRectangleToFit(double x1, double y1, double x2, double y2);
void DrawSquare(double x, double y, double r);
void DrawFilledSquare(double x, double y, double r);
void DrawCircle(double x, double y, double r);
void DrawFilledCircle(double x, double y, double r);
void DrawText(double x, double y, char *text);
void DrawXAxis(double atY);
atY.
void DrawYAxis(double atX);
atX.
void DrawXYAxes(double atX, double atY);
atY and a Y axis at x=atX.
int ScanMouse(double& x, double& y);