The TGadgetInfo structure contains information about the display on which the gadget needs to render itself
Source position: intuition.pas line 2699
type tGadgetInfo = record |
||
gi_Screen: pScreen; |
|
ScreenPtr |
gi_Window: pWindow; |
|
nil for screen gadgets |
gi_Requester: pRequester; |
|
nil IF not GTYP_REQGADGET |
gi_RastPort: pRastPort; |
|
Rendering information: don't use these without cloning/locking. Official way is to call ObtainGIRPort() |
gi_Layer: pLayer; |
|
LayerPtr |
gi_Domain: tIBox; |
|
Copy of dimensions of screen/window/g00/req(/group) that gadget resides in. |
gi_Pens: record |
|
|
DetailPen: Byte; |
|
|
BlockPen: Byte; |
|
|
end; |
||
gi_DrInfo: pDrawInfo; |
|
the Detail and Block pens in gi_DrInfo^.dri_Pens[] are for the screen. Use the above for window-sensitive colors. |
gi_Reserved: array [0..5] of LongWord; |
|
|
end; |
All the fields in this structure are read only.
Although this structure contains a pointer to the gadget's RastPort structure, applications should not use it for rendering. Instead, use the intuition.library function ObtainGIRPort() to obtain a copy of the GadgetInfo's RastPort. When the gadget is finished with this RastPort, it should call ReleaseGIRPort() to relinquish the RastPort.
|
||
|
||
|
Message parameter passed for GM_HITTEST or GM_HELPTEST |
|
|
Message parameter passed for GM_RENDER |
|
|
Message parameter passed for GM_GOACTIVE or GM_HANDLEINPUT |
|
|
Message parameter passed for GM_GOINACTIVE |
|
|
Message parameter passed for GM_LAYOUT |
|
|
||
|
String gadget message |
|
|
Calculate gadget-relative mouse position. |
|
|
Set up a RastPort for a custom gadget. |