home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / C / OTL-MC6.DMS / in.adf / incl.lha / INCLUDE / clib / layers_protos.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-10-29  |  3.0 KB  |  84 lines

  1. #ifndef  CLIB_LAYERS_PROTOS_H
  2. #define  CLIB_LAYERS_PROTOS_H
  3.  
  4. /*
  5. **    $VER: layers_protos.h 38.7 (26.3.92)
  6. **    Includes Release 40.15
  7. **
  8. **    C prototypes. For use with 32 bit integers only.
  9. **
  10. **    (C) Copyright 1990-1993 Commodore-Amiga, Inc.
  11. **        All Rights Reserved
  12. */
  13.  
  14. #ifndef  EXEC_TYPES_H
  15. #include <exec/types.h>
  16. #endif
  17. #ifndef  GRAPHICS_LAYERS_H
  18. #include <graphics/layers.h>
  19. #endif
  20. #ifndef  GRAPHICS_CLIP_H
  21. #include <graphics/clip.h>
  22. #endif
  23. #ifndef  GRAPHICS_RASTPORT_H
  24. #include <graphics/rastport.h>
  25. #endif
  26. #ifndef  GRAPHICS_REGIONS_H
  27. #include <graphics/regions.h>
  28. #endif
  29.  
  30. #ifdef __cplusplus
  31. #define CLIBCPLUSON
  32. #pragma -
  33. #endif
  34.  
  35. void InitLayers( struct Layer_Info *li );
  36. struct Layer *CreateUpfrontLayer( struct Layer_Info *li, struct BitMap *bm,
  37.     long x0, long y0, long x1, long y1, long flags, struct BitMap *bm2 );
  38. struct Layer *CreateBehindLayer( struct Layer_Info *li, struct BitMap *bm,
  39.     long x0, long y0, long x1, long y1, long flags, struct BitMap *bm2 );
  40. LONG UpfrontLayer( long dummy, struct Layer *layer );
  41. LONG BehindLayer( long dummy, struct Layer *layer );
  42. LONG MoveLayer( long dummy, struct Layer *layer, long dx, long dy );
  43. LONG SizeLayer( long dummy, struct Layer *layer, long dx, long dy );
  44. void ScrollLayer( long dummy, struct Layer *layer, long dx, long dy );
  45. LONG BeginUpdate( struct Layer *l );
  46. void EndUpdate( struct Layer *layer, unsigned long flag );
  47. LONG DeleteLayer( long dummy, struct Layer *layer );
  48. void LockLayer( long dummy, struct Layer *layer );
  49. void UnlockLayer( struct Layer *layer );
  50. void LockLayers( struct Layer_Info *li );
  51. void UnlockLayers( struct Layer_Info *li );
  52. void LockLayerInfo( struct Layer_Info *li );
  53. void SwapBitsRastPortClipRect( struct RastPort *rp, struct ClipRect *cr );
  54. struct Layer *WhichLayer( struct Layer_Info *li, long x, long y );
  55. void UnlockLayerInfo( struct Layer_Info *li );
  56. struct Layer_Info *NewLayerInfo( void );
  57. void DisposeLayerInfo( struct Layer_Info *li );
  58. LONG FattenLayerInfo( struct Layer_Info *li );
  59. void ThinLayerInfo( struct Layer_Info *li );
  60. LONG MoveLayerInFrontOf( struct Layer *layer_to_move,
  61.     struct Layer *other_layer );
  62. struct Region *InstallClipRegion( struct Layer *layer,
  63.     struct Region *region );
  64. LONG MoveSizeLayer( struct Layer *layer, long dx, long dy, long dw, long dh );
  65. struct Layer *CreateUpfrontHookLayer( struct Layer_Info *li, struct BitMap *bm,
  66.     long x0, long y0, long x1, long y1, long flags, struct Hook *hook,
  67.     struct BitMap *bm2 );
  68. struct Layer *CreateBehindHookLayer( struct Layer_Info *li, struct BitMap *bm,
  69.     long x0, long y0, long x1, long y1, long flags, struct Hook *hook,
  70.     struct BitMap *bm2 );
  71. struct Hook *InstallLayerHook( struct Layer *layer, struct Hook *hook );
  72. /*--- functions in V39 or higher (Release 3) ---*/
  73. struct Hook *InstallLayerInfoHook( struct Layer_Info *li, struct Hook *hook );
  74. void SortLayerCR( struct Layer *layer, long dx, long dy );
  75. void DoHookClipRects( struct Hook *hook, struct RastPort *rport,
  76.     struct Rectangle *rect );
  77.  
  78. #ifdef CLIBCPLUSON
  79. #undef CLIBCPLUSON
  80. #pragma +
  81. #endif
  82.  
  83. #endif     /* CLIB_LAYERS_PROTOS_H */
  84.