[BACK]Return to ifplot.h CVS log [TXT][DIR] Up to [local] / OpenXM_contrib2 / asir2000 / plot

Diff for /OpenXM_contrib2/asir2000/plot/ifplot.h between version 1.3 and 1.4

version 1.3, 2000/08/22 05:04:31 version 1.4, 2000/11/07 06:06:40
Line 45 
Line 45 
  * DEVELOPER SHALL HAVE NO LIABILITY IN CONNECTION WITH THE USE,   * DEVELOPER SHALL HAVE NO LIABILITY IN CONNECTION WITH THE USE,
  * PERFORMANCE OR NON-PERFORMANCE OF THE SOFTWARE.   * PERFORMANCE OR NON-PERFORMANCE OF THE SOFTWARE.
  *   *
  * $OpenXM: OpenXM_contrib2/asir2000/plot/ifplot.h,v 1.2 2000/08/21 08:31:50 noro Exp $   * $OpenXM: OpenXM_contrib2/asir2000/plot/ifplot.h,v 1.3 2000/08/22 05:04:31 noro Exp $
 */  */
 #if defined(THINK_C)  #if defined(THINK_C)
 #include        <QuickDraw.h>  #include        <QuickDraw.h>
Line 55 
Line 55 
 #include        <ToolUtils.h>  #include        <ToolUtils.h>
 #include        <Fonts.h>  #include        <Fonts.h>
 /* #include        <Strings.h> */  /* #include        <Strings.h> */
   #elif defined(VISUAL)
   /* for Visual C++ */
   #include <windows.h>
 #else  #else
 #include <sys/types.h>  #include <sys/types.h>
 #include <X11/Xlib.h>  #include <X11/Xlib.h>
Line 104 
Line 107 
 #define MODE_IFPLOT 0  #define MODE_IFPLOT 0
 #define MODE_CONPLOT 1  #define MODE_CONPLOT 1
 #define MODE_PLOT 2  #define MODE_PLOT 2
   #define MODE_INTERACTIVE 3
   
 #define DIR_X 0  #define DIR_X 0
 #define DIR_Y 1  #define DIR_Y 1
Line 127 
Line 131 
 #else  #else
 #define DRAWABLE BitMap  #define DRAWABLE BitMap
 #endif  #endif
   
   #elif defined(VISUAL)
   /* for Visual C++ */
   #define XC(a) ((a).x)
   #define YC(a) ((a).y)
   #define DISPLAY int
   #define WINDOW int
   #define CURSOR int
   #define DRAWABLE HDC
   
   /* XXX : use GC argument as the color */
   #define DRAWPOINT(d,p,g,x,y) SetPixel(p,x,y,0)
   
   #define DRAWLINE(d,p,g,x,y,u,v) MoveToEx(p,x,y,&oldpos); LineTo(p,u,v)
   #define DRAWSTRING(d,p,g,x,y,s,l)
   #define TEXTWIDTH(f,s,l) 0
 #else  #else
   /* for UNIX */
 #define POINT XPoint  #define POINT XPoint
 #define XC(a) ((a).x)  #define XC(a) ((a).x)
 #define YC(a) ((a).y)  #define YC(a) ((a).y)
Line 146  struct pa {
Line 167  struct pa {
         POINT *pos;          POINT *pos;
 };  };
   
   typedef struct RealVect {
           int len;
           int body[1];
   } RealVect;
   
   #define MKRVECT2(v,x,y)\
   ((v)=(RealVect *)MALLOC_ATOMIC(sizeof(RealVect)+sizeof(int)),\
    (v)->len=2,(v)->body[0]=(x),(v)->body[1]=(y))
   #define MKRVECT4(v,x,y,a,b)\
   ((v)=(RealVect *)MALLOC_ATOMIC(sizeof(RealVect)+3*sizeof(int)),\
    (v)->len=2,(v)->body[0]=(x),(v)->body[1]=(y),(v)->body[2]=(a),(v)->body[3]=(b))
   
 struct canvas {  struct canvas {
         int index;          int index;
 #if defined(THINK_C)  #if defined(THINK_C)
Line 158  struct canvas {
Line 191  struct canvas {
         BitMap pix,wbits;          BitMap pix,wbits;
         RgnHandle rgnsav;          RgnHandle rgnsav;
 #endif  #endif
   #elif defined(VISUAL)
   /* for Visual C++ */
           void *window; /* pointer to CMainFrame */
           HWND hwnd; /* handle to the canvas window */
           HDC pix; /* shadow DC on memory */
           char *prefix;
           int percentage;
           struct canvas *real_can;
 #else  #else
         Widget shell,xcoord,ycoord,xdone,ydone,level,wideb,preciseb,noaxisb;          Widget shell,xcoord,ycoord,xdone,ydone,level,wideb,preciseb,noaxisb;
         Window window;          Window window;
Line 178  struct canvas {
Line 219  struct canvas {
         Q qxmin,qxmax;          Q qxmin,qxmax;
         Q qymin,qymax;          Q qymin,qymax;
         struct pa *pa;          struct pa *pa;
           /* to register the history in the interactive mode */
           NODE history;
 };  };
   
 extern struct canvas *canvas[];  extern struct canvas *canvas[];
Line 191  extern int stream;
Line 234  extern int stream;
 extern DISPLAY *display;  extern DISPLAY *display;
 extern CURSOR normalcur,runningcur,errorcur;  extern CURSOR normalcur,runningcur,errorcur;
   
 #if !defined(THINK_C)  #if defined(VISUAL)
   extern POINT start_point,end_point;
   extern SIZE cansize;
   #else
 extern Window rootwin;  extern Window rootwin;
 extern GC drawGC,dashGC,hlGC,scaleGC,clearGC,xorGC,colorGC;  extern GC drawGC,dashGC,hlGC,scaleGC,clearGC,xorGC,colorGC;
 extern XFontStruct *sffs;  extern XFontStruct *sffs;

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>