home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Misc / DC-POS24.LZX / pOS / pOSxA.lzx / pOSxA / clib / layers_protos.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-03-12  |  3.5 KB  |  92 lines

  1. #ifndef  CLIB_LAYERS_PROTOS_H
  2. #define  CLIB_LAYERS_PROTOS_H
  3.  
  4. /*******************************************************************
  5.  pOS / Amiga adapt
  6. *******************************************************************/
  7.  
  8. #ifndef  EXEC_TYPES_H
  9. #include <exec/types.h>
  10. #endif
  11. #ifndef  GRAPHICS_LAYERS_H
  12. #include <graphics/layers.h>
  13. #endif
  14. #ifndef  GRAPHICS_CLIP_H
  15. #include <graphics/clip.h>
  16. #endif
  17. #ifndef  GRAPHICS_RASTPORT_H
  18. #include <graphics/rastport.h>
  19. #endif
  20. #ifndef  GRAPHICS_REGIONS_H
  21. #include <graphics/regions.h>
  22. #endif
  23.  
  24. #ifdef __cplusplus
  25. extern "C" {
  26. #endif
  27.  
  28. struct Layer *CreateUpfrontLayer( struct Layer_Info *li, struct BitMap *bm,
  29.     long x0, long y0, long x1, long y1, long flags, struct BitMap *bm2 );
  30. struct Layer *CreateBehindLayer( struct Layer_Info *li, struct BitMap *bm,
  31.     long x0, long y0, long x1, long y1, long flags, struct BitMap *bm2 );
  32. LONG UpfrontLayer( long dummy, struct Layer *layer );
  33. LONG BehindLayer( long dummy, struct Layer *layer );
  34. LONG MoveLayer( long dummy, struct Layer *layer, long dx, long dy );
  35. LONG SizeLayer( long dummy, struct Layer *layer, long dx, long dy );
  36. void ScrollLayer( long dummy, struct Layer *layer, long dx, long dy );
  37. LONG BeginUpdate( struct Layer *l );
  38. void EndUpdate( struct Layer *layer, unsigned long flag );
  39. LONG DeleteLayer( long dummy, struct Layer *layer );
  40. void LockLayer( long dummy, struct Layer *layer );
  41. void UnlockLayer( struct Layer *layer );
  42. void LockLayers( struct Layer_Info *li );
  43. void UnlockLayers( struct Layer_Info *li );
  44. void LockLayerInfo( struct Layer_Info *li );
  45. struct Layer *WhichLayer( struct Layer_Info *li, long x, long y );
  46. void UnlockLayerInfo( struct Layer_Info *li );
  47. struct Layer_Info *NewLayerInfo( void );
  48. void DisposeLayerInfo( struct Layer_Info *li );
  49. LONG MoveLayerInFrontOf( struct Layer *layer_to_move,struct Layer *other_layer );
  50. struct Region *InstallClipRegion( struct Layer *layer,struct Region *region );
  51. LONG MoveSizeLayer( struct Layer *layer, long dx, long dy, long dw, long dh );
  52.  
  53.  
  54.  
  55.  
  56.  
  57. #ifdef __IGNORE_NOT_SUPPORTED__
  58.  
  59.   void SwapBitsRastPortClipRect( struct RastPort *rp, struct ClipRect *cr );
  60.   struct Layer *CreateUpfrontHookLayer(struct Layer_Info*,struct BitMap*,long,long,long,long,long,struct Hook*,struct BitMap*);
  61.   struct Layer *CreateBehindHookLayer( struct Layer_Info*,struct BitMap*,long,long,long,long,long,struct Hook*,struct BitMap*);
  62.   struct Hook *InstallLayerHook( struct Layer *layer, struct Hook *hook );
  63.   struct Hook *InstallLayerInfoHook( struct Layer_Info *li, struct Hook *hook );
  64.  
  65. #else  /** __IGNORE_NOT_SUPPORTED__ **/
  66.  
  67. #define SwapBitsRastPortClipRect SwapBitsRastPortClipRect_NOT_SUPPORTED
  68.   void SwapBitsRastPortClipRect(struct NOT_SUPPORTED*, struct RastPort *rp, struct ClipRect *cr );
  69. #define CreateUpfrontHookLayer CreateUpfrontHookLayer_NOT_SUPPORTED
  70.   struct Layer *CreateUpfrontHookLayer(struct NOT_SUPPORTED*,struct Layer_Info*,struct BitMap*,long,long,long,long,long,struct Hook*,struct BitMap*);
  71. #define CreateBehindHookLayer CreateBehindHookLayer_NOT_SUPPORTED
  72.   struct Layer *CreateBehindHookLayer(struct NOT_SUPPORTED*, struct Layer_Info*,struct BitMap*,long,long,long,long,long,struct Hook*,struct BitMap*);
  73. #define InstallLayerHook InstallLayerHook_NOT_SUPPORTED
  74.   struct Hook *InstallLayerHook(struct NOT_SUPPORTED*, struct Layer *layer, struct Hook *hook );
  75. #define InstallLayerInfoHook InstallLayerInfoHook_NOT_SUPPORTED
  76.   struct Hook *InstallLayerInfoHook(struct NOT_SUPPORTED*, struct Layer_Info *li, struct Hook *hook );
  77.  
  78. #endif /** __IGNORE_NOT_SUPPORTED__ **/
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87. #ifdef __cplusplus
  88. }
  89. #endif
  90.  
  91. #endif     /* CLIB_LAYERS_PROTOS_H */
  92.