2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
3 Copyright © 2001-2003, The MorphOS Development Team. All Rights Reserved.
7 #include <proto/utility.h>
8 #include "intuition_intern.h"
9 #include <utility/tagitem.h>
10 #include <proto/exec.h>
12 /*****************************************************************************
15 #include <proto/intuition.h>
17 AROS_LH2(struct Window
*, OpenWindowTagList
,
20 AROS_LHA(struct NewWindow
*, newWindow
, A0
),
21 AROS_LHA(struct TagItem
*, tagList
, A1
),
24 struct IntuitionBase
*, IntuitionBase
, 101, Intuition
)
43 29-10-95 digulla automatically created from
44 intuition_lib.fd and clib/intuition_protos.h
46 *****************************************************************************/
50 struct ExtNewWindow nw
=
53 ~0, ~0, /* Width, Height */
54 0xFF, 0xFF, /* DetailPen, BlockPen */
57 NULL
, /* FirstGadget */
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",
74 ASSERT_VALID_PTR_ROMOK(newWindow
);
76 CopyMem (newWindow
, &nw
, (newWindow
->Flags
& WFLG_NW_EXTENDED
) ? sizeof (struct ExtNewWindow
) :
77 sizeof (struct NewWindow
));
81 ASSERT_VALID_PTR_ROMOK(tagList
);
83 nw
.Extension
= tagList
;
84 nw
.Flags
|= WFLG_NW_EXTENDED
;
89 struct TagItem tags
[2] =
91 {WA_AutoAdjust
, TRUE
},
96 nw
.Flags
|= WFLG_NW_EXTENDED
;
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
);
114 } /* OpenWindowTagList */