home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / Pascal / MAXONPASCAL2.DMS / in.adf / INCLUDE / intuition / imageclass_Functions.h < prev    next >
Encoding:
Text File  |  1994-07-25  |  780 b   |  31 lines

  1. {$if not def INTUITION_IMAGECLASS_MACROS_H} CONST INTUITION_IMAGECLASS_MARCOS_H=0;
  2.  
  3. { ************************************************************************
  4.   ** KickPascal-Include-Datei "intuition/imageclass.h" zu Kickstart 3.0 **
  5.   ** Ergänzung der MACROs als Pascal FUNCTIONen                   by JS **
  6.   ************************************************************************ }
  7.  
  8. {$if not def INTUITION_IMAGECLASS_H;incl "intuition/imageclass.h";endif}
  9.  
  10. function GADGET_BOX(g:p_Gadget):p_IBox;
  11. begin
  12.  GADGET_BOX:=ptr(^g^.LeftEdge);
  13. end;
  14.  
  15. function IM_BOX(im:p_Image):p_IBox;
  16. begin
  17.  IM_BOX:=ptr(^im^.LeftEdge);
  18. end;
  19.  
  20. function IM_FGPEN(im:p_Image):Byte;
  21. begin
  22.  IM_FGPEN:=im^.PlanePick;
  23. end;
  24.  
  25. function IM_BGPEN(im:p_Image):Byte;
  26. begin
  27.  IM_BGPEN:=im^.PlaneOnOff;
  28. end;
  29.  
  30. {$endif}
  31.