summaryrefslogtreecommitdiffstats
path: root/qtsharp/src/bindings/static/QWidgetStack.cs
blob: 04de573f17bd901a8367c1b97228daeffc65a403 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
// TQWidgetStack.cs - A Qt to C# binding.
//
// Copyright (C) 2002  Adam Treat (manyoso@yahoo.com)
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
//
// Generated File.  Do Not Modify.

namespace Qt {

	using Qt;
	using System;
	using System.Collections;
	using System.Runtime.InteropServices;

	public class TQWidgetStack : TQFrame, IDisposable {

		private ArrayList widgets;

		[DllImport("libqtc", CharSet=CharSet.Ansi)]
		private static extern IntPtr qt_new_QWidgetStack (IntPtr parent, string name);
		public TQWidgetStack (TQWidget parent, string name) : this (TQNull.Instance)
		{
			if ((qparent = parent) != null)
				qparent.AddChild (this);
			rawObject = qt_new_QWidgetStack (parent != null ? parent.RawObject : IntPtr.Zero, name);
			RegisterObject (this);
		}

		public TQWidgetStack () : this (new TQWidget ()) {}

		public TQWidgetStack (TQWidget parent) : this (parent, "") {}

		internal TQWidgetStack (IntPtr ptr) : this (TQNull.Instance)
		{
			rawObject = ptr;
			RegisterObject(this);
		}

		internal TQWidgetStack (TQNull dummy) : base (TQNull.Instance)
		{
			widgets = new ArrayList ();
		}

		~TQWidgetStack ()
		{
			Dispose (false);
		}

		[DllImport("libqtc", CharSet=CharSet.Ansi)]
		private static extern void qt_del_QWidgetStack (IntPtr raw);
		internal override void Delete ()
		{
			if (deleted) return;

			qt_del_QWidgetStack (rawObject);
			deleted = true;
		}

		[DllImport("libqtc", CharSet=CharSet.Ansi)]
		private static extern int qt_QWidgetStack_addWidget (IntPtr raw, IntPtr arg1, int arg2);
		public int AddWidget (TQWidget arg1, int arg2)
		{
			if (! widgets.Contains (arg1)) widgets.Add (arg1);
			return qt_QWidgetStack_addWidget (RawObject, arg1.RawObject, arg2);
		}

		[DllImport("libqtc", CharSet=CharSet.Ansi)]
		private static extern void qt_QWidgetStack_removeWidget (IntPtr raw, IntPtr arg1);
		public void RemoveWidget (TQWidget arg1)
		{
			widgets.Remove (arg1);
			qt_QWidgetStack_removeWidget (RawObject, arg1.RawObject);
		}

		[DllImport("libqtc", CharSet=CharSet.Ansi)]
		private static extern IntPtr qt_QWidgetStack_sizeHint (IntPtr raw);
		public TQSize SizeHint ()
		{
			return LookupObject (qt_QWidgetStack_sizeHint (RawObject), typeof(TQSize)) as TQSize;
		}

		[DllImport("libqtc", CharSet=CharSet.Ansi)]
		private static extern IntPtr qt_QWidgetStack_minimumSizeHint (IntPtr raw);
		public TQSize MinimumSizeHint ()
		{
			return LookupObject (qt_QWidgetStack_minimumSizeHint (RawObject), typeof(TQSize)) as TQSize;
		}

		[DllImport("libqtc", CharSet=CharSet.Ansi)]
		private static extern void qt_QWidgetStack_show (IntPtr raw);
		public void Show ()
		{
			qt_QWidgetStack_show (RawObject);
		}

		[DllImport("libqtc", CharSet=CharSet.Ansi)]
		private static extern IntPtr qt_QWidgetStack_widget (IntPtr raw, int arg1);
		public TQWidget Widget (int arg1)
		{
			return LookupObject (qt_QWidgetStack_widget (RawObject, arg1), typeof(TQWidget)) as TQWidget;
		}

		[DllImport("libqtc", CharSet=CharSet.Ansi)]
		private static extern int qt_QWidgetStack_id (IntPtr raw, IntPtr arg1);
		public int Id (TQWidget arg1)
		{
			return qt_QWidgetStack_id (RawObject, arg1.RawObject);
		}

		[DllImport("libqtc", CharSet=CharSet.Ansi)]
		private static extern IntPtr qt_QWidgetStack_visibleWidget (IntPtr raw);
		public TQWidget VisibleWidget ()
		{
			return LookupObject (qt_QWidgetStack_visibleWidget (RawObject), typeof(TQWidget)) as TQWidget;
		}

		[DllImport("libqtc", CharSet=CharSet.Ansi)]
		private static extern void qt_QWidgetStack_setFrameRect (IntPtr raw, IntPtr arg1);
		public void SetFrameRect (TQRect arg1)
		{
			qt_QWidgetStack_setFrameRect (RawObject, arg1.RawObject);
		}

		[DllImport("libqtc", CharSet=CharSet.Ansi)]
		private static extern void qt_QWidgetStack_raiseWidget (IntPtr raw, int arg1);
		public void RaiseWidget (int arg1)
		{
			qt_QWidgetStack_raiseWidget (RawObject, arg1);
		}

		[DllImport("libqtc", CharSet=CharSet.Ansi)]
		private static extern void qt_QWidgetStack_raiseWidget1 (IntPtr raw, IntPtr arg1);
		public void RaiseWidget (TQWidget arg1)
		{
			qt_QWidgetStack_raiseWidget1 (RawObject, arg1.RawObject);
		}

		[DllImport("libqtc", CharSet=CharSet.Ansi)]
		private static extern void qt_QWidgetStack_frameChanged (IntPtr raw);
		protected void FrameChanged ()
		{
			qt_QWidgetStack_frameChanged (RawObject);
		}

		[DllImport("libqtc", CharSet=CharSet.Ansi)]
		private static extern void qt_QWidgetStack_setChildGeometries (IntPtr raw);
		protected void SetChildGeometries ()
		{
			qt_QWidgetStack_setChildGeometries (RawObject);
		}

		public int AddWidget (TQWidget arg1)
		{
			return AddWidget(arg1, (int) -1);
		}

		// Begin interface methods.

	}
}