This function sets up a RastPort for exclusive use by custom gadget hook routines. Call this function each time a hook routine needs to render into the gadget and ReleaseGIRPort() immediately afterwards.
INPUTS
gInfo
Pointer to GadgetInfo structure, as passed to each custom gadget hook function.
RESULT
Pointer to a RastPort you can render to. NULL if you aren't allowed to render into this gadget.
EXAMPLE
SEE ALSO
ReleaseGIRPort()
NOTES
If a routine passes a RastPort, eg. GM_RENDER, ObtainGIRPort() needn't be called.
BUGS
INTERNALS
HISTORY
16.01.1999 hkiel
Extended AutoDocs
20.10.1998 hkiel
Amiga Research OS
27.01.1997 ldp
Polish
10.12.1996 aros
Moved #include into first column to allow makedepend to see it.
31.10.1996 aros
Use the new functions to create and free the RastPort