Autodoc headers unified to avoid misinterpretation by the build script.
[cake.git] / rom / intuition / openwindowtaglist.c
blob413b736fb71ac782f34a076975c9aa664938402c
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$
5 */
7 #include <proto/utility.h>
8 #include "intuition_intern.h"
9 #include <utility/tagitem.h>
10 #include <proto/exec.h>
12 /*****************************************************************************
14 NAME */
15 #include <proto/intuition.h>
17 AROS_LH2(struct Window *, OpenWindowTagList,
19 /* SYNOPSIS */
20 AROS_LHA(struct NewWindow *, newWindow, A0),
21 AROS_LHA(struct TagItem *, tagList, A1),
23 /* LOCATION */
24 struct IntuitionBase *, IntuitionBase, 101, Intuition)
26 /* FUNCTION
28 INPUTS
30 RESULT
32 NOTES
34 EXAMPLE
36 BUGS
38 SEE ALSO
40 INTERNALS
42 HISTORY
43 29-10-95 digulla automatically created from
44 intuition_lib.fd and clib/intuition_protos.h
46 *****************************************************************************/
48 AROS_LIBFUNC_INIT
50 struct ExtNewWindow nw =
52 0, 0, /* Left, Top */
53 ~0, ~0, /* Width, Height */
54 0xFF, 0xFF, /* DetailPen, BlockPen */
55 0L, /* IDCMPFlags */
56 0L, /* Flags */
57 NULL, /* FirstGadget */
58 NULL, /* CheckMark */
59 NULL, /* Title */
60 NULL, /* Screen */
61 NULL, /* BitMap */
62 0, 0, /* MinWidth, MinHeight */
63 0, 0, /* MaxWidth, MaxHeight */
64 WBENCHSCREEN, /* Type */
65 NULL /* Extension (taglist) */
67 struct Window *window;
69 DEBUG_OPENWINDOWTAGLIST(dprintf("OpenWindowTagList: NewWindow 0x%lx TagList 0x%lx\n",
70 newWindow, tagList));
72 if (newWindow)
74 ASSERT_VALID_PTR_ROMOK(newWindow);
76 CopyMem (newWindow, &nw, (newWindow->Flags & WFLG_NW_EXTENDED) ? sizeof (struct ExtNewWindow) :
77 sizeof (struct NewWindow));
79 if (tagList)
81 ASSERT_VALID_PTR_ROMOK(tagList);
83 nw.Extension = tagList;
84 nw.Flags |= WFLG_NW_EXTENDED;
87 else
89 struct TagItem tags[2] =
91 {WA_AutoAdjust , TRUE },
92 {TAG_END , NULL}
95 nw.Extension = tags;
96 nw.Flags |= WFLG_NW_EXTENDED;
98 if (tagList)
100 ASSERT_VALID_PTR_ROMOK(tagList);
102 tags[1].ti_Tag = TAG_MORE;
103 tags[1].ti_Data = (IPTR)tagList;
108 window = OpenWindow ((struct NewWindow *)&nw);
110 return window;
112 AROS_LIBFUNC_EXIT
114 } /* OpenWindowTagList */