N_GRAPHI.H
上传用户:wtrl82617
上传日期:2007-01-07
资源大小:187k
文件大小:1k
源码类别:

界面编程

开发平台:

DOS

  1. #ifndef __N_GRAPHI_H
  2. #define __N_GRAPHI_H
  3. #define mouse_on  if(sysmouse)sysmouse->on(1)
  4. #define mouse_off if(sysmouse)sysmouse->off(1)
  5. //void mouse_on(int restoreflagflag);
  6. //void mouse_off(int tmpflag);
  7. #define line(x1,y1,x2,y2) mouse_off;line(x1,y1,x2,y2);mouse_on
  8. #define linerel(dx,dy) mouse_off;linerel(dx,dy);mouse_on
  9. #define lineto(x,y) mouse_off;lineto(x,y);mouse_on
  10. #define ellipse(x,y,stangle,endangle,xradius,yradius)  mouse_off;ellipse(x,y,stangle,endangle,xradius,yradius);mouse_on
  11. #define fillellipse(x,y,xradius,yradius) mouse_off;fillellipse(x,y,xradius,yradius);mouse_on
  12. #define sector(x,y,stangle,endangle,xradius,yradius)  mouse_off;sector(x,y,stangle,endangle,xradius,yradius);mouse_on
  13. #define putimage(left,top,bitmap,op) mouse_off;putimage(left,top,bitmap,op);mouse_on
  14. #define getimage(left,top,right,bottom,bitmap) mouse_off;getimage(left,top,right,bottom,bitmap);mouse_on
  15. #define bar(left,top,right,bottom)  mouse_off;bar((left),(top),(right),(bottom));mouse_on
  16. #define rectangle(left,top,right,bottom)  mouse_off;rectangle((left),(top),(right),(bottom));mouse_on
  17. #define outtext(textstring)   mouse_off;outtext(textstring);mouse_on
  18. #define outtextxy(x,y,textstring)  mouse_off;outtextxy((x),(y),(textstring));mouse_on
  19. #define fillpoly(numpoints,polypoints) mouse_off;fillpoly(numpoints,polypoints);mouse_on
  20. #endif