8#include <WXP/Listener.h> 
   10#include <WXP/Points.h> 
   12#include <WXP/String.h> 
   23      struct XCallbackItem {
 
   28         struct XCallbackItem *next;
 
   31      static Display *display;
 
   33      static int num_errors;
 
   35      static int error_print;
 
   36      static XCallbackItem *callbackroot;
 
   38      static int num_windows;
 
   92      XFontStruct *font_info;
 
  109      int printImage( XImage *ximage );
 
  118      int resize(
float rwidth, 
float rheight);
 
  120      int doCallback( 
const char *ev_str, 
const char *ev_data );
 
  121      void callback( 
const char *ev_str, 
const char *ev_data, 
const void *data );
 
  127      int clearRect( 
Rect &rect );
 
  131      inline const char *getTitle(){ 
return title; };
 
  135      inline int getCursor(){ 
return cursor; };
 
  139      int setSize(
float rwidth, 
float rheight);
 
  140      int getSize(
float &width, 
float &height);
 
  141      inline float getWidth() { 
return width; };
 
  142      inline float getHeight() { 
return height; };
 
  147      int allocColor( 
float red, 
float grn, 
float blu );
 
  152      int drawLine( 
int type, 
float x1, 
float y1, 
float x2, 
float y2 );
 
  159      int setFont( 
const char *name );
 
  163      int setClip( 
float x1, 
float y1, 
float x2, 
float y2 );
 
  180      int message( 
const char *str );
 
  187      static int addWindow( Window &win );
 
  189      static int procCallback( Window win, 
int type, 
const char *ev_str, 
const char *ev_data );
 
  191      static int deleteCallbacks( Window );
 
  192      static int errorHandler( Display *dpy, XErrorEvent *error );
 
  195      static const int AnyEvent =  0;
 
  196      static const int Redraw   = 50;
 
  198      static const int WINDOW = 1;
 
  199      static const int PIXMAP = 2;
 
  201      static const int CURSOR_X    = 0;
 
  202      static const int CURSOR_PTR  = 1;
 
  203      static const int CURSOR_MOVE = 2;
 
  204      static const int CURSOR_LOOP = 3;
 
  205      static const int CURSOR_STOP = 4;
 
  206      static const int CURSOR_DRAW = 5;
 
  207      static const int CURSOR_RECT = 6;
 
  208      static const int CURSOR_PLUS = 6;
 
  209      static const int CURSOR_TEXT = 7;
 
  210      static const int CURSOR_WAIT = 8;
 
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
This class plots data to the X Windows device.
Definition XWindow.h:15
int close()
Definition XWindow.cc:991
int setSize(float rwidth, float rheight)
Definition XWindow.cc:1207
int init()
Definition XWindow.cc:512
int setIcon(bool val)
Definition XWindow.cc:1131
int manage()
Definition XWindow.cc:1055
int drawFill(int type, Points &pts)
Definition XWindow.cc:1459
Pixmap getFramePixmap(int ind)
Definition XWindow.cc:1886
int message(const char *str)
Definition XWindow.cc:2243
int allocColor(float red, float grn, float blu)
Definition XWindow.cc:1282
static int procCallback(Window win, int type, const char *ev_str, const char *ev_data)
Definition XWindow.cc:311
int setLineStyle(int type, int style)
Definition XWindow.cc:1344
Rect getClip()
Definition XWindow.cc:1270
int setFixed(bool val)
Definition XWindow.cc:1140
int setFont(const char *name)
Definition XWindow.cc:1491
int setTitle(const char *str)
Definition XWindow.cc:1118
int getFrame()
Definition XWindow.cc:2003
int deleteFrame()
Definition XWindow.cc:2071
int toggleLoop()
Definition XWindow.cc:2140
XWindow()
Definition XWindow.cc:484
static int errorIOHandler(Display *dpy)
Definition XWindow.cc:474
int clear()
Definition XWindow.cc:1073
int resize(float rwidth, float rheight)
Definition XWindow.cc:873
int setOffset(float rx, float ry)
Definition XWindow.cc:1218
static int waitEvent()
Definition XWindow.cc:99
int loopRate(int dir)
Definition XWindow.cc:2156
int addCallback(const char *event, Listener *list, const void *data)
Definition XWindow.cc:977
int open()
Definition XWindow.cc:618
int getDevice(String &str)
Definition XWindow.cc:863
int unsetFocus()
Definition XWindow.cc:1048
int drawImage(Image &image, float x, float y)
Definition XWindow.cc:1616
int setFrame(int ind)
Definition XWindow.cc:2012
int setTextAlign(int h, int v)
Definition XWindow.cc:1548
int setParam(const char *str)
Definition XWindow.cc:574
static int checkEvent()
Definition XWindow.cc:115
static int processEvent(XEvent *event)
Definition XWindow.cc:129
int printGC(int type)
Definition XWindow.cc:2189
int unmanage()
Definition XWindow.cc:1065
int drawLine(int type, float x1, float y1, float x2, float y2)
Definition XWindow.cc:1406
int displayFrame(int ind)
Definition XWindow.cc:1926
bool getInverse()
Definition XWindow.cc:1189
int setBackground(const char *str)
Definition XWindow.cc:1197
bool isLooping()
Definition XWindow.cc:1995
int setLineWidth(int type, float width)
Definition XWindow.cc:1322
int setClip(float x1, float y1, float x2, float y2)
Definition XWindow.cc:1852
int setImageAlign(int h, int v)
Definition XWindow.cc:1604
Rect getCoords()
Definition XWindow.cc:1259
int incFrame(int step)
Definition XWindow.cc:2084
int setColor(int type, int ind)
Definition XWindow.cc:1302
void callback(const char *ev_str, const char *ev_data, const void *data)
Definition XWindow.cc:918
int setFillStyle(int type, int style)
Definition XWindow.cc:1378
int setFocus()
Definition XWindow.cc:1041
~XWindow()
Definition XWindow.cc:491
int setInverse(bool val)
Definition XWindow.cc:1180
int copyFrame(int dest, int src)
Definition XWindow.cc:1906
int setCursor(int type)
Definition XWindow.cc:1150
static int errorHandler(Display *dpy, XErrorEvent *error)
Definition XWindow.cc:454
int getSize(float &width, float &height)
Definition XWindow.cc:1229
int drawText(Point &pt, const char *str)
Definition XWindow.cc:1559
int getNumFrames()
Definition XWindow.cc:2181
static int mainloop()
Definition XWindow.cc:395
int update()
Definition XWindow.cc:1107
int getImage(Image &image)
Definition XWindow.cc:1811
static int newCallback(Window win, int event, Listener *list, const void *data)
Definition XWindow.cc:350
int getOffset(float &x, float &y)
Definition XWindow.cc:1240
int clearFrame(int ind)
Definition XWindow.cc:1946
int newFrame()
Definition XWindow.cc:1984
int bell(int len)
Definition XWindow.cc:2231
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