define __KERNEL_STRICT_NAMES to avoid inclusion of kernel types on systems that carry...
[cake.git] / rom / intuition / removegadget.c
blob0b785e2cebd83067b86f60973f9ba25ccec09bb5
1 /*
2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
3 Copyright © 2001-2003, The MorphOS Development Team. All Rights Reserved.
4 $Id$
6 Remove a single gadget from a window.
7 */
9 #include "intuition_intern.h"
11 /*****************************************************************************
13 NAME */
14 #include <intuition/intuition.h>
15 #include <proto/intuition.h>
17 AROS_LH2(UWORD, RemoveGadget,
19 /* SYNOPSIS */
20 AROS_LHA(struct Window *, window, A0),
21 AROS_LHA(struct Gadget *, gadget, A1),
23 /* LOCATION */
24 struct IntuitionBase *, IntuitionBase, 38, Intuition)
26 /* FUNCTION
27 Remove a gadget from the list of gadgets in a window.
29 INPUTS
30 window - Remove the gadget from this list.
31 gadget - Remove this gadget.
33 RESULT
34 The position of the gadget or 0xFFFF if the gadget doesn't
35 exist or the gadget is the 65535th of the list.
37 NOTES
39 EXAMPLE
41 BUGS
43 SEE ALSO
45 INTERNALS
47 HISTORY
49 *****************************************************************************/
51 AROS_LIBFUNC_INIT
53 return RemoveGList (window, gadget, 1);
55 AROS_LIBFUNC_EXIT
56 } /* RemoveGadget */