home *** CD-ROM | disk | FTP | other *** search
/ Aminet 18 / aminetcdnumber181997.iso / Aminet / misc / emu / AROSdev.lha / AROS / compiler / alib / dogadgetmethod.c < prev    next >
Encoding:
C/C++ Source or Header  |  1997-01-27  |  1.5 KB  |  73 lines

  1. /*
  2.     (C) 1995-96 AROS - The Amiga Replacement OS
  3.     $Id: dogadgetmethod.c,v 1.5 1997/01/27 00:16:36 ldp Exp $
  4.  
  5.     Desc:
  6.     Lang: english
  7. */
  8.  
  9. #ifndef INTUITION_CLASSUSR_H
  10. #   include <intuition/classusr.h>
  11. #endif
  12. #include "alib_intern.h"
  13. #include <proto/alib.h>
  14.  
  15. extern struct IntuitionBase * IntuitionBase;
  16.  
  17. /*****************************************************************************
  18.  
  19.     NAME */
  20. #include <intuition/intuition.h>
  21. #include <proto/intuition.h>
  22.  
  23.     IPTR DoGadgetMethod (
  24.  
  25. /*  SYNOPSIS */
  26.     struct Gadget     * gad,
  27.     struct Window     * win,
  28.     struct Requester * req,
  29.     ULONG           methodId,
  30.     ...)
  31.  
  32. /*  FUNCTION
  33.     Invokes a boopsi method on a object with a GadgetInfo derived from
  34.     the supplied window or requester parameter.
  35.  
  36.     INPUTS
  37.     gad - The gadget to work on
  38.     win - The window which contains the gadget or the requester with
  39.         the gadgets.
  40.     req - If the gadget is in a requester, you must specify that one,
  41.         too.
  42.     methodId - The message to the gadget follows here.
  43.  
  44.     RESULT
  45.     The result depends on the contents of the message sent to the
  46.     gadget.
  47.  
  48.     NOTES
  49.  
  50.     EXAMPLE
  51.  
  52.     BUGS
  53.  
  54.     SEE ALSO
  55.  
  56.     INTERNALS
  57.  
  58.     HISTORY
  59.     29-10-95    digulla automatically created from
  60.                 intuition_lib.fd and clib/intuition_protos.h
  61.     25-10-96    calid   submitted the code
  62.  
  63. *****************************************************************************/
  64. {
  65.     AROS_SLOWSTACKMETHODS_PRE(methodId)
  66.     retval = DoGadgetMethodA (gad
  67.     , win
  68.     , req
  69.     , AROS_SLOWSTACKMETHODS_ARG(methodId)
  70.     );
  71.     AROS_SLOWSTACKMETHODS_POST
  72. } /* DoGadgetMethod */
  73.