home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / MUI / MUIBuilder22.lha / MUIBuilder / MB / GCC / example / mui_staff.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1995-05-31  |  827 b   |  37 lines

  1.  
  2. #include <inline/alib.h>
  3. #include <inline/muimaster.h>
  4.  
  5.  
  6. ULONG DoMethod( Object *obj, unsigned long MethodID, ... )
  7. {
  8.   return(DoMethodA(obj, (Msg) &MethodID));
  9. }
  10.  
  11. LONG MUI_Request(APTR app, APTR win, LONGBITS flags, char *title, char *gadgets, char *format, ...)
  12. {
  13.  return(MUI_RequestA(app, win, flags, title, gadgets, format, (APTR) (((ULONG)&format)+4) ));
  14. }
  15.  
  16. Object* MUI_NewObject(char *classname, Tag tag1, ...)
  17. {
  18.  return(MUI_NewObjectA(classname, (struct TagItem *) &tag1));
  19. }
  20.  
  21. Object *MUI_MakeObject(LONG type, ...)
  22. {
  23.   return(MUI_MakeObjectA(type, (ULONG *)(((ULONG)&type)+4)));
  24. }
  25.  
  26. BOOL MUI_AslRequestTags(APTR req, Tag tag1, ...)
  27. {
  28.   return(MUI_AslRequest(req, (struct TagItem *) &tag1));
  29. }
  30.  
  31. APTR MUI_AllocAslRequestTags(ULONG type, Tag tag1, ...)
  32. {
  33.   return(MUI_AllocAslRequest(type, (struct TagItem *) &tag1));
  34. }
  35.  
  36.  
  37.