home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / at-inc-bin.lha / os-include / intuition / cghooks.i < prev    next >
Text File  |  1993-10-15  |  2KB  |  65 lines

  1.     IFND INTUITION_CGHOOKS_I
  2. INTUITION_CGHOOKS_I SET 1
  3. **
  4. ** $VER: cghooks.i 38.1 (11.11.91)
  5. ** Includes Release 40.15
  6. **
  7. **  Custom gadget processing
  8. **
  9. **  (C) Copyright 1988-1993 Commodore-Amiga, Inc.
  10. **        All Rights Reserved
  11. **
  12.  
  13.     IFND EXEC_TYPES_I
  14.     INCLUDE "exec/types.i"
  15.     ENDC
  16.  
  17.     IFND INTUITION_INTUITION_I
  18.     INCLUDE "intuition/intuition.i"
  19.     ENDC
  20.  
  21. ; ========================================================================
  22. ; === Gadget Info =========================================================
  23. ; ========================================================================
  24.  
  25. ; Package of information passed to custom and 'boopsi'
  26. ; gadget "hook" functions.  This structure is READ ONLY.
  27.  
  28.  STRUCTURE GadgetInfo,0
  29. ;    APTR ggi_Gadget
  30.  
  31.     APTR ggi_Screen
  32.     APTR ggi_Window     ; null for screen gadgets
  33.     APTR ggi_Requester     ; null if not GTYP_REQGADGET
  34.  
  35.     ; rendering information:
  36.     ; don't use these without cloning/locking.
  37.     ; Official way is to call ObtainRPort()
  38.     APTR ggi_RastPort
  39.     APTR ggi_Layer
  40.  
  41.     ; copy of dimensions of screen/window/g00/req/group
  42.     ; that gadget resides in.  Left/Top of this box is
  43.     ; offset from window mouse coordinates to gadget coordinates
  44.     ;     screen gadgets:            0,0 (from screen coords)
  45.     ;    window gadgets (no g00):      0,0
  46.     ;  GZZGADGETs (borderlayer):     0,0
  47.     ;  GZZ innerlayer gadget:      borderleft, bordertop
  48.     ;  Requester gadgets:         reqleft, reqtop
  49.     STRUCT     ggi_Domain,ibox_SIZEOF
  50.  
  51.     ; these are the pens for the window or screen
  52.     STRUCT    ggi_Pens,2    ; detail and block pen UBYTE's
  53.  
  54.     ; the Detail and Block pens in ggi_DrInfo->dri_Pens[] are
  55.     ; for the screen. Use the above for window-sensitive
  56.     ; colors.
  57.     APTR ggi_DrInfo
  58.  
  59.     ; the size of this struct is not defined, since it is allocated
  60.     ; ONLY by Intuition.
  61.     ;     LABEL ggi_SIZEOF
  62.  
  63.  
  64.     ENDC
  65.