home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Fred Fish Collection 1.5
/
ffcollection-1-5-1992-11.iso
/
ff_disks
/
200-299
/
ff201.lzh
/
Draco
/
drinc
/
intuition
/
gadget.g
< prev
next >
Wrap
Text File
|
1989-04-03
|
3KB
|
165 lines
type
Gadget_t=struct{
*Gadget_tg_NextGadget;
intg_LeftEdge,g_TopEdge;
intg_Width,g_Height;
uintg_Flags;
uintg_Activation;
uintg_GadgetType;
union{*Image_tgImage;*Border_tgBorder}
g_GadgetRender,g_SelectRender;
*IntuiText_tg_GadgetText;
ulongg_MutualExclude;
union{*BoolInfo_tgBool;*StringInfo_tgStr;*PropInfo_tgProp}
g_SpecialInfo;
uintg_GadgetID;
*byteg_UserData;
};
uint
GADGHIGHBITS=0x0003,
GADGHCOMP=0x0000,
GADGHBOX=0x0001,
GADGHIMAGE=0x0002,
GADGHNONE=0x0003,
GADGIMAGE=0x0004,
GRELBOTTOM=0x0008,
GRELRIGHT=0x0010,
GRELWIDTH=0x0020,
GRELHEIGHT=0x0040,
SELECTED=0x0080,
GADGDISABLED=0x0100;
uint
RELVERIFY=0x0001,
GADGIMMEDIATE=0x0002,
ENDGADGET=0x0004,
FOLLOWMOUSE=0x0008,
RIGHTBORDER=0x0010,
LEFTBORDER=0x0020,
TOPBORDER=0x0040,
BOTTOMBORDER=0x0080,
TOGGLESELECT=0x0100,
STRINGCENTER=0x0200,
STRINGRIGHT=0x0400,
LONGINT =0x0800,
ALTKEYMAP=0x1000,
BOOLEXTEND=0x2000;
uint
GADGETTYPE=0xFC00,
SYSGADGET=0x8000,
SCRGADGET=0x4000,
GZZGADGET=0x2000,
REQGADGET=0x1000,
SIZING=0x0010,
WDRAGGING=0x0020,
SDRAGGING=0x0030,
WUPFRONT=0x0040,
SUPFRONT=0x0050,
WDOWNBACK=0x0060,
SDOWNBACK=0x0070,
CLOSE=0x0080,
BOOLGADGET=0x0001,
GADGET002=0x0002,
PROPGADGET=0x0003,
STRGADGET=0x0004;
type
BoolInfo_t=struct{
uintbi_Flags;
*uintbi_Mask;
ulongbi_Reserved;
};
uint
BOOLMASK=0x0001;
type
PropInfo_t=struct{
uintpi_Flags;
uintpi_HorizPot;
uintpi_VertPot;
uintpi_HorizBody;
uintpi_VertBody;
uintpi_CWidth;
uintpi_CHeight;
uintpi_HPotRes,pi_VPotRes;
uintpi_LeftBorder;
uintpi_TopBorder;
};
uint
AUTOKNOB=0x0001,
FREEHORIZ=0x0002,
FREEVERT=0x0004,
PROPBORDERLESS=0x0008,
KNOBHIT =0x0100;
uint
KNOBHMIN=6,
KNOBVMIN=4,
MAXBODY =65535,
MAXBOT=65535;
type
StringInfo_t=struct{
*charsi_Buffer;
*charsi_UndoBuffer;
uintsi_BufferPos;
uintsi_MaxChars;
uintsi_DispPos;
uintsi_UndoPos;
uintsi_NumChars;
uintsi_DispCount;
intsi_CLeft,si_CTop;
*Layer_tsi_LayerPtr;
longsi_LongInt;
*KeyMap_tsi_AltKeyMap;
};
extern
ActivateGadget(*Gadget_tg;*Window_tw;*Requester_tr)bool,
AddGadget(*Window_tw;*Gadget_tg;ulongposition)ulong,
AddGList(*Window_tw;*Gadget_tg;ulongposition;longnumGad;
*Requester_tr)ulong,
ModifyProp(*Gadget_tg;*Window_tw;*Requester_tr;ulongflags;
ulonghorizPot,vertPot,horizBody,vertBody)void,
NewModifyProp(*Gadget_tg;*Window_tw;*Requester_tr;ulongflags;
ulonghorizPot,vertPot,horizBody,vertBody;
longnumGad)void,
OffGadget(*Gadget_tg;*Window_tw;*Requester_tr)void,
OnGadget(*Gadget_tg;*Window_tw;*Requester_tr)void,
RefreshGadgets(*Gadget_tg;*Window_tw;*Requester_tr)void,
RefreshGList(*Gadget_tg;*Window_tw;*Requester_tr;longnumGad)void,
RemoveGadget(*Window_tw;*Gadget_tg)long,
RemoveGList(*Window_tw;*Gadget_tg;longnumGad)long;