GADTOOLS Types Reference¶
Per-function autodoc pages link to these types via the type name (e.g., [List](types-gadtools.md#list)).
Clickable inner types: inside each struct definition, field types that are themselves structs/unions/enums are clickable hyperlinks to their own definitions.
Contents¶
gadtools.h¶
LVDrawMsg¶
Source: libraries/gadtools.h
struct LVDrawMsg
{
ULONG lvdm_MethodID; /* LV_DRAW */
struct RastPort *lvdm_RastPort; /* where to render to */
struct DrawInfo *lvdm_DrawInfo; /* useful to have around */
struct Rectangle lvdm_Bounds; /* limits of where to render */
ULONG lvdm_State; /* how to render */
};
NewGadget¶
Source: libraries/gadtools.h
struct NewGadget
{
WORD ng_LeftEdge, ng_TopEdge; /* gadget position */
WORD ng_Width, ng_Height; /* gadget size */
CONST_STRPTR ng_GadgetText; /* gadget label */
CONST struct TextAttr *ng_TextAttr; /* desired font for gadget label */
UWORD ng_GadgetID; /* gadget ID */
ULONG ng_Flags; /* see below */
APTR ng_VisualInfo; /* Set to retval of GetVisualInfo() */
APTR ng_UserData; /* gadget UserData */
};
NewMenu¶
Source: libraries/gadtools.h
struct NewMenu
{
UBYTE nm_Type; /* See below */
/* Compiler inserts a PAD byte here */
CONST_STRPTR nm_Label; /* Menu's label */
CONST_STRPTR nm_CommKey; /* MenuItem Command Key Equiv */
UWORD nm_Flags; /* Menu or MenuItem flags (see note) */
LONG nm_MutualExclude; /* MenuItem MutualExclude word */
APTR nm_UserData; /* For your own use, see note */
};