1 #ifndef CLIB_MUIMASTER_PROTOS_H
2 #define CLIB_MUIMASTER_PROTOS_H
5 #include <exec/types.h>
7 #ifndef INTUITION_CLASSES_H
8 #include <intuition/classes.h>
10 #ifndef UTILITY_TAGITEM_H
11 #include <utility/tagitem.h>
13 #ifndef LIBRARIES_MUI_H
14 #include <libraries/mui.h>
21 /****************************************/
22 /* functions to be used in applications */
23 /****************************************/
25 Object
*MUI_NewObjectA (char *classname
,struct TagItem
*tags
);
26 Object
*MUI_NewObject (char *classname
,Tag tag1
,...);
27 Object
*MUI_MakeObjectA (LONG type
,ULONG
*params
);
28 Object
*MUI_MakeObject (LONG type
,...);
29 VOID
MUI_DisposeObject (Object
*obj
);
30 LONG
MUI_RequestA (APTR app
,APTR win
,LONGBITS flags
,char *title
,char *gadgets
,char *format
,APTR params
);
31 LONG
MUI_Request (APTR app
,APTR win
,LONGBITS flags
,char *title
,char *gadgets
,char *format
,...);
32 LONG
MUI_Error (VOID
);
33 APTR
MUI_AllocAslRequest (unsigned long reqType
, struct TagItem
*tagList
);
34 APTR
MUI_AllocAslRequestTags(unsigned long reqType
, Tag Tag1
, ...);
35 VOID
MUI_FreeAslRequest (APTR requester
);
36 BOOL
MUI_AslRequest (APTR requester
, struct TagItem
*tagList
);
37 BOOL
MUI_AslRequestTags (APTR requester
, Tag Tag1
, ...);
39 /******************************************/
40 /* functions to be used in custom classes */
41 /******************************************/
43 LONG
MUI_SetError (LONG num
);
44 struct IClass
* MUI_GetClass (char *classname
);
45 VOID
MUI_FreeClass (struct IClass
*classptr
);
46 VOID
MUI_RequestIDCMP (Object
*obj
,ULONG flags
);
47 VOID
MUI_RejectIDCMP (Object
*obj
,ULONG flags
);
48 VOID
MUI_Redraw (Object
*obj
,ULONG flags
);
49 APTR
MUI_AddClipping (struct MUI_RenderInfo
*mri
,WORD left
,WORD top
,WORD width
,WORD height
);
50 VOID
MUI_RemoveClipping (struct MUI_RenderInfo
*mri
,APTR handle
);
51 APTR
MUI_AddClipRegion (struct MUI_RenderInfo
*mri
,struct Region
*r
);
52 VOID
MUI_RemoveClipRegion (struct MUI_RenderInfo
*mri
,APTR handle
);
53 BOOL
MUI_BeginRefresh (struct MUI_RenderInfo
*mri
,ULONG flags
);
54 VOID
MUI_EndRefresh (struct MUI_RenderInfo
*mri
,ULONG flags
);
55 struct MUI_CustomClass
*MUI_CreateCustomClass(struct Library
*base
,char *supername
,struct MUI_CustomClass
*supermcc
,int datasize
,APTR dispatcher
);
56 BOOL
MUI_DeleteCustomClass(struct MUI_CustomClass
*mcc
);
57 LONG
MUI_ObtainPen (struct MUI_RenderInfo
*mri
,struct MUI_PenSpec
*spec
,ULONG flags
);
58 VOID
MUI_ReleasePen (struct MUI_RenderInfo
*mri
,LONG pen
);
60 /*************************************************************/
61 /* layout function, use only in custom layout callback hook! */
62 /*************************************************************/
64 BOOL
MUI_Layout(Object
*obj
,LONG left
,LONG top
,LONG width
,LONG height
,ULONG flags
);
70 #endif /* CLIB_MUIMASTER_PROTOS_H */