5#include <WXP/Listener.h>
21 static const int BASE = 0;
22 static const int LINE = 1;
23 static const int MARK = 2;
24 static const int FILL = 3;
25 static const int TEXT = 4;
27 static const int LAST = -1;
28 static const int CUR = -2;
29 static const int WIN = -3;
30 static const int ALL = -4;
32 static const int CURSOR_X = 0;
33 static const int CURSOR_PTR = 1;
34 static const int CURSOR_MOVE = 2;
35 static const int CURSOR_LOOP = 3;
36 static const int CURSOR_STOP = 4;
37 static const int CURSOR_DRAW = 5;
38 static const int CURSOR_RECT = 6;
39 static const int CURSOR_PLUS = 6;
40 static const int CURSOR_TEXT = 7;
41 static const int CURSOR_WAIT = 8;
43 static const int ALIGN_HLEFT = 1;
44 static const int ALIGN_HCENTER = 2;
45 static const int ALIGN_HRIGHT = 3;
47 static const int ALIGN_VBOTTOM = 1;
48 static const int ALIGN_VCENTER = 2;
49 static const int ALIGN_VTOP = 3;
52 virtual int init() = 0;
53 virtual int setParam(
const char *str ) = 0;
54 virtual int open() = 0;
55 virtual int getDevice(
String &str ) = 0;
56 virtual int resize(
float rwidth,
float rheight) = 0;
57 virtual int manage() = 0;
58 virtual int unmanage() = 0;
59 virtual int addCallback(
const char *event,
Listener *list,
const void *data ) = 0;
60 virtual int doCallback(
const char *ev_str,
const char *ev_data ) = 0;
61 virtual void callback(
const char *ev_str,
const char *ev_data,
const void *data ) = 0;
62 virtual int close() = 0;
63 virtual int update() = 0;
64 virtual int clear() = 0;
65 virtual int clearRect(
Rect &rect) = 0;
66 virtual int setTitle(
const char *str) = 0;
67 virtual int setIcon(
bool val) = 0;
68 virtual int setFixed(
bool val) = 0;
69 virtual int setInverse(
bool val) = 0;
70 virtual bool getInverse() = 0;
71 virtual int setBackground(
const char *str) = 0;
72 virtual int setSize(
float rwidth,
float rheight) = 0;
73 virtual int getSize(
float &width,
float &height) = 0;
74 virtual float getWidth() = 0;
75 virtual float getHeight() = 0;
76 virtual int setOffset(
float rx,
float ry) = 0;
77 virtual int getOffset(
float &x,
float &y) = 0;
78 virtual int getCoords(
Rect &rect ) = 0;
79 virtual Rect getCoords() = 0;
80 virtual int allocColor(
float red,
float grn,
float blu ) = 0;
81 virtual int setColor(
int type,
int ind ) = 0;
82 virtual int setLineWidth(
int type,
float width ) = 0;
83 virtual int setLineStyle(
int type,
int style ) = 0;
84 virtual int setFillStyle(
int type,
int style ) = 0;
85 virtual int drawLine(
int type,
float x1,
float y1,
float x2,
float y2 ) = 0;
86 virtual int drawLine(
int type,
Points &pts ) = 0;
87 virtual int drawFill(
int type,
Points &pts ) = 0;
88 virtual int setImageAlign(
int h,
int v ) = 0;
89 virtual int drawImage(
Image &image,
float x,
float y ) = 0;
90 virtual int drawImage(
Image &image,
int bgcolor,
float x,
float y ) = 0;
91 virtual int getImage(
Image &image ) = 0;
92 virtual int setFont(
const char *name ) = 0;
93 virtual int setTextAlign(
int h,
int v ) = 0;
94 virtual int drawText(
Point &pt,
const char *str ) = 0;
95 virtual Rect getClip() = 0;
96 virtual int setClip(
float x1,
float y1,
float x2,
float y2 ) = 0;
97 virtual int setClip(
Rect rect ) = 0;
98 virtual int setCursor(
int type ) = 0;
99 virtual int copyFrame(
int dest,
int src ) = 0;
100 virtual int displayFrame(
int ind ) = 0;
101 virtual int clearFrame(
int ind ) = 0;
102 virtual int newFrame(
int ind ) = 0;
103 virtual int newFrame() = 0;
104 virtual bool isLooping() = 0;
105 virtual int getFrame() = 0;
106 virtual int setFrame(
int ind ) = 0;
107 virtual int incFrame(
int step ) = 0;
108 virtual int deleteFrame(
int ind ) = 0;
109 virtual int getNumFrames() = 0;
110 virtual int message(
const char *str ) = 0;
111 virtual int bell(
int len ) = 0;
This virtual class defines methods for output to generic device.
Definition Device.h:19
This class defines an image.
Definition Image.h:19
This virtual class defines the callback method for use with plotting.
Definition Listener.h:11
This class creates an array a 2D points (x, y)
Definition Points.h:8
This is a variable length string class.
Definition String.h:5
All WXP classes fall under the WXP namespace.
Definition Angle.h:4
This struct sets a 3D point (x, y, z)
Definition Point.h:5
This structure defines rectangle coordinates.
Definition Rect.h:5