home *** CD-ROM | disk | FTP | other *** search
/ CLIX - Fazer Clix Custa Nix / CLIX-CD.cdr / mac / lib / Mac / QDOffscreen.pm < prev    next >
Text File  |  1998-04-05  |  2KB  |  138 lines

  1. =head1 NAME
  2.  
  3. Mac::QDOffscreen - Macintosh Toolbox Interface to Offscreen QuickDraw
  4.  
  5. =head1 SYNOPSIS
  6.  
  7.  
  8. =head1 DESCRIPTION
  9.  
  10. Access to Inside Macintosh is essential for proper use of these functions.
  11. Explanations of terms, processes and procedures are provided there.
  12. Any attempt to use these functions without guidance can cause severe errors in 
  13. your machine, including corruption of data. B<You have been warned.>
  14.  
  15. =cut
  16.  
  17. use strict;
  18.  
  19. package Mac::QDOffscreen;
  20.  
  21. BEGIN {
  22.     use Exporter   ();
  23.     use DynaLoader ();
  24.     
  25.     use vars qw(@ISA @EXPORT);
  26.     
  27.     @ISA = qw(Exporter DynaLoader);
  28.     @EXPORT = qw(
  29.         pixPurge
  30.         noNewDevice
  31.         useTempMem
  32.         keepLocal
  33.         pixelsPurgeable
  34.         pixelsLocked
  35.         mapPix
  36.         newDepth
  37.         alignPix
  38.         newRowBytes
  39.         reallocPix
  40.         clipPix
  41.         stretchPix
  42.         ditherPix
  43.         gwFlagErr
  44.     
  45.         NewGWorld
  46.         LockPixels
  47.         UnlockPixels
  48.         UpdateGWorld
  49.         DisposeGWorld
  50.         GetGWorld
  51.         SetGWorld
  52.         PortChanged
  53.         AllowPurgePixels
  54.         NoPurgePixels
  55.         GetPixelsState
  56.         SetPixelsState
  57.         GetPixBaseAddr
  58.         GetGWorldDevice
  59.         QDDone
  60.         OffscreenVersion
  61.         PixMap32Bit
  62.         GetGWorldPixMap
  63.     );
  64. }
  65.  
  66. bootstrap Mac::QDOffscreen;
  67.  
  68. =head2 Constants
  69.  
  70. =over 4
  71.  
  72. =item pixPurge
  73.  
  74. =item noNewDevice
  75.  
  76. =item useTempMem
  77.  
  78. =item keepLocal
  79.  
  80. =item pixelsPurgeable
  81.  
  82. =item pixelsLocked
  83.  
  84. =item mapPix
  85.  
  86. =item newDepth
  87.  
  88. =item alignPix
  89.  
  90. =item newRowBytes
  91.  
  92. =item reallocPix
  93.  
  94. =item clipPix
  95.  
  96. =item stretchPix
  97.  
  98. =item ditherPix
  99.  
  100. =item gwFlagErr
  101.  
  102. C<GWorld> flags.
  103.  
  104. =cut
  105. sub pixPurge ()                    { 1 << 0; }
  106. sub noNewDevice ()                 { 1 << 1; }
  107. sub useTempMem ()                  { 1 << 2; }
  108. sub keepLocal ()                   { 1 << 3; }
  109. sub pixelsPurgeable ()             { 1 << 6; }
  110. sub pixelsLocked ()                { 1 << 7; }
  111. sub mapPix ()                      { 1 << 16; }
  112. sub newDepth ()                    { 1 << 17; }
  113. sub alignPix ()                    { 1 << 18; }
  114. sub newRowBytes ()                 { 1 << 19; }
  115. sub reallocPix ()                  { 1 << 20; }
  116. sub clipPix ()                     { 1 << 28; }
  117. sub stretchPix ()                  { 1 << 29; }
  118. sub ditherPix ()                   { 1 << 30; }
  119. sub gwFlagErr ()                   { 1 << 31; }
  120.  
  121. =back
  122.  
  123. =include QDOffscreen.xs
  124.  
  125. =head1 BUGS/LIMITATIONS
  126.  
  127. =head1 FILES
  128.  
  129. =head1 AUTHOR(S)
  130.  
  131. Matthias Ulrich Neeracher <neeri@iis.ee.ethz.ch> 
  132.  
  133. =cut
  134.  
  135. 1;
  136.  
  137. __END__
  138.