
    IFND INTUITION_CGHOOKS_I
INTUITION_CGHOOKS_I SET 1


*** cghooks.i ********************************************************
*
*  Custom Gadget processing
*
*  $Header: /home/amiga/V36/src/kickstart/intuition/RCS/cghooks.i,v 1.6 90/04/06 22:23:49 jimm Exp $
*
*  Confidential Information: Commodore-Amiga Computer, Inc.
*  Copyright (c) Commodore-Amiga Computer, Inc.
***************************************************************************

    IFND EXEC_TYPES_I
    INCLUDE 'exec/types.i'
    ENDC

    IFND INTUITION_INTUITION_I
    INCLUDE 'intuition/intuition.i'
    ENDC

; ========================================================================
; === Gadget Info =========================================================
; ========================================================================

; THIS IS THE STRUCTURE PASSED TO MOST CUSTOM GADGET HOOKS.
; IT IS *READ ONLY*

; NOTE: fields removed Nov 1989, jimm

 STRUCTURE GadgetInfo,0
;    APTR ggi_Gadget

    APTR ggi_Screen
    APTR ggi_Window	 ; null for screen gadgets
    APTR ggi_Requester	 ; null if not REQGADGET
    
    ; rendering information:
    ; don't use these without cloning/locking.
    ; Official way is to call ObtainRPort()
    APTR ggi_RastPort
    APTR ggi_Layer

    ; copy of dimensions of screen/window/g00/req/group
    ; that gadget resides in.  Left/Top of this box is
    ; offset from window mouse coordinates to gadget coordinates
    ; 	screen gadgets:			0,0
    ;	window gadgets (no g00):  	0,0
    ;  GZZGADGETs (borderlayer): 	0,0
    ;  GZZ innerlayer gadget:  	borderleft, bordertop
    ;  Requester gadgets: 		reqleft, reqtop
    STRUCT 	ggi_Domain,ibox_SIZEOF

    ; actual dimensions of gadget,
    ; after relative position/dims calculations
;    STRUCT 	ggi_Box,ibox_SIZEOF
    STRUCT	ggi_Pens,2	; detail and block pen UBYTE's

    ; NOTE: there are some fields in the C structure that I
    ; haven't repeated here, but I expect them to be removed.

    ; the size of this struct is not defined, since it is allocated
    ; ONLY by Intuition.
    ;    LABEL ggi_SIZEOF

; === Custom Gadget Hooks =============================================

; The hook command ID's (method/message ID's)s for the custom gadget hooks
; and the parameter packet (message) structure are now in
; intuition/gadgetclass.i

    ENDC
