~ubuntu-branches/ubuntu/trusty/monodevelop/trusty-proposed

« back to all changes in this revision

Viewing changes to external/monomac/src/AppKit/#NSOpenGLContext.g.cs#

  • Committer: Package Import Robot
  • Author(s): Jo Shields
  • Date: 2013-05-12 09:46:03 UTC
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20130512094603-mad323bzcxvmcam0
Tags: upstream-4.0.5+dfsg
ImportĀ upstreamĀ versionĀ 4.0.5+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
//
2
 
// Auto-generated from generator.cs, do not edit
3
 
//
4
 
// We keep references to objects, so warning 414 is expected
5
 
 
6
 
#pragma warning disable 414
7
 
 
8
 
using System;
9
 
 
10
 
using System.Drawing;
11
 
 
12
 
using System.Runtime.InteropServices;
13
 
 
14
 
using MonoMac.CoreFoundation;
15
 
 
16
 
using MonoMac.Foundation;
17
 
 
18
 
using MonoMac.ObjCRuntime;
19
 
 
20
 
using MonoMac.CoreGraphics;
21
 
 
22
 
using MonoMac.CoreAnimation;
23
 
 
24
 
using MonoMac.CoreLocation;
25
 
 
26
 
using MonoMac.QTKit;
27
 
 
28
 
namespace MonoMac.AppKit {
29
 
        [Register("NSOpenGLContext")]
30
 
        public partial class NSOpenGLContext : NSObject {
31
 
                static IntPtr selCGLContextObj = Selector.GetHandle ("CGLContextObj");
32
 
 
33
 
                static IntPtr selPixelBuffer = Selector.GetHandle ("pixelBuffer");
34
 
                static IntPtr selPixelBufferCubeMapFace = Selector.GetHandle ("pixelBufferCubeMapFace");
35
 
                static IntPtr selPixelBufferMipMapLevel = Selector.GetHandle ("pixelBufferMipMapLevel");
36
 
                static IntPtr selView = Selector.GetHandle ("view");
37
 
                static IntPtr selSetView = Selector.GetHandle ("setView:");
38
 
                static IntPtr selCurrentVirtualScreen = Selector.GetHandle ("currentVirtualScreen");
39
 
                static IntPtr selSetCurrentVirtualScreen = Selector.GetHandle ("setCurrentVirtualScreen:");
40
 
                static IntPtr selInitWithFormatShareContext = Selector.GetHandle ("initWithFormat:shareContext:");
41
 
                static IntPtr selSetFullScreen = Selector.GetHandle ("setFullScreen");
42
 
                static IntPtr selSetOffScreenWidthHeightRowbytes = Selector.GetHandle ("setOffScreen:width:height:rowbytes:");
43
 
                static IntPtr selClearDrawable = Selector.GetHandle ("clearDrawable");
44
 
                static IntPtr selUpdate = Selector.GetHandle ("update");
45
 
                static IntPtr selFlushBuffer = Selector.GetHandle ("flushBuffer");
46
 
                static IntPtr selMakeCurrentContext = Selector.GetHandle ("makeCurrentContext");
47
 
                static IntPtr selClearCurrentContext = Selector.GetHandle ("clearCurrentContext");
48
 
                static IntPtr selCurrentContext = Selector.GetHandle ("currentContext");
49
 
                static IntPtr selCopyAttributesFromContextWithMask = Selector.GetHandle ("copyAttributesFromContext:withMask:");
50
 
                static IntPtr selSetValuesForParameter = Selector.GetHandle ("setValues:forParameter:");
51
 
                static IntPtr selGetValuesForParameter = Selector.GetHandle ("getValues:forParameter:");
52
 
                static IntPtr selCreateTextureFromViewInternalFormat = Selector.GetHandle ("createTexture:fromView:internalFormat:");
53
 
                static IntPtr selSetPixelBufferCubeMapFaceMipMapLevelCurrentVirtualScreen = Selector.GetHandle ("setPixelBuffer:cubeMapFace:mipMapLevel:currentVirtualScreen:");
54
 
                static IntPtr selSetTextureImageToPixelBufferColorBuffer = Selector.GetHandle ("setTextureImageToPixelBuffer:colorBuffer:");
55
 
 
56
 
                static IntPtr class_ptr = Class.GetHandle ("NSOpenGLContext");
57
 
 
58
 
                public override IntPtr ClassHandle { get { return class_ptr; } }
59
 
 
60
 
                [Export ("init")]
61
 
                public  NSOpenGLContext () : base (NSObjectFlag.Empty)
62
 
                {
63
 
                        if (IsDirectBinding) {
64
 
                                Handle = MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, Selector.Init);
65
 
                        } else {
66
 
                                Handle = MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, Selector.Init);
67
 
                        }
68
 
                }
69
 
 
70
 
                [Export ("initWithCoder:")]
71
 
                public NSOpenGLContext (NSCoder coder) : base (NSObjectFlag.Empty)
72
 
                {
73
 
                        if (IsDirectBinding) {
74
 
                                Handle = MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr (this.Handle, Selector.InitWithCoder, coder.Handle);
75
 
                        } else {
76
 
                                Handle = MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.InitWithCoder, coder.Handle);
77
 
                        }
78
 
                }
79
 
 
80
 
                public NSOpenGLContext (NSObjectFlag t) : base (t) {}
81
 
 
82
 
                public NSOpenGLContext (IntPtr handle) : base (handle) {}
83
 
 
84
 
                [Export ("initWithFormat:shareContext:")]
85
 
                public NSOpenGLContext (NSOpenGLPixelFormat format, NSOpenGLContext shareContext) : base (NSObjectFlag.Empty)
86
 
                {
87
 
                        if (format == null)
88
 
                                throw new ArgumentNullException ("format");
89
 
                        if (shareContext == null)
90
 
                                throw new ArgumentNullException ("shareContext");
91
 
                        if (IsDirectBinding) {
92
 
                                Handle = MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr (this.Handle, selInitWithFormatShareContext, format.Handle, shareContext.Handle);
93
 
                        } else {
94
 
                                Handle = MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr (this.SuperHandle, selInitWithFormatShareContext, format.Handle, shareContext.Handle);
95
 
                        }
96
 
                }
97
 
 
98
 
                [Export ("setFullScreen")]
99
 
                public virtual void SetFullScreen ()
100
 
                {
101
 
                        if (IsDirectBinding) {
102
 
                                MonoMac.ObjCRuntime.Messaging.void_objc_msgSend (this.Handle, selSetFullScreen);
103
 
                        } else {
104
 
                                MonoMac.ObjCRuntime.Messaging.void_objc_msgSendSuper (this.SuperHandle, selSetFullScreen);
105
 
                        }
106
 
                }
107
 
 
108
 
                [Export ("setOffScreen:width:height:rowbytes:")]
109
 
                public virtual void SetOffScreen (System.IntPtr baseaddr, int width, int height, int rowbytes)
110
 
                {
111
 
                        if (IsDirectBinding) {
112
 
                                MonoMac.ObjCRuntime.Messaging.void_objc_msgSend_IntPtr_int_int_int (this.Handle, selSetOffScreenWidthHeightRowbytes, baseaddr, width, height, rowbytes);
113
 
                        } else {
114
 
                                MonoMac.ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr_int_int_int (this.SuperHandle, selSetOffScreenWidthHeightRowbytes, baseaddr, width, height, rowbytes);
115
 
                        }
116
 
                }
117
 
 
118
 
                [Export ("clearDrawable")]
119
 
                public virtual void ClearDrawable ()
120
 
                {
121
 
                        if (IsDirectBinding) {
122
 
                                MonoMac.ObjCRuntime.Messaging.void_objc_msgSend (this.Handle, selClearDrawable);
123
 
                        } else {
124
 
                                MonoMac.ObjCRuntime.Messaging.void_objc_msgSendSuper (this.SuperHandle, selClearDrawable);
125
 
                        }
126
 
                }
127
 
 
128
 
                [Export ("update")]
129
 
                public virtual void Update ()
130
 
                {
131
 
                        if (IsDirectBinding) {
132
 
                                MonoMac.ObjCRuntime.Messaging.void_objc_msgSend (this.Handle, selUpdate);
133
 
                        } else {
134
 
                                MonoMac.ObjCRuntime.Messaging.void_objc_msgSendSuper (this.SuperHandle, selUpdate);
135
 
                        }
136
 
                }
137
 
 
138
 
                [Export ("flushBuffer")]
139
 
                public virtual void FlushBuffer ()
140
 
                {
141
 
                        if (IsDirectBinding) {
142
 
                                MonoMac.ObjCRuntime.Messaging.void_objc_msgSend (this.Handle, selFlushBuffer);
143
 
                        } else {
144
 
                                MonoMac.ObjCRuntime.Messaging.void_objc_msgSendSuper (this.SuperHandle, selFlushBuffer);
145
 
                        }
146
 
                }
147
 
 
148
 
                [Export ("makeCurrentContext")]
149
 
                public virtual void MakeCurrentContext ()
150
 
                {
151
 
                        if (IsDirectBinding) {
152
 
                                MonoMac.ObjCRuntime.Messaging.void_objc_msgSend (this.Handle, selMakeCurrentContext);
153
 
                        } else {
154
 
                                MonoMac.ObjCRuntime.Messaging.void_objc_msgSendSuper (this.SuperHandle, selMakeCurrentContext);
155
 
                        }
156
 
                }
157
 
 
158
 
                [Export ("clearCurrentContext")]
159
 
                public static void ClearCurrentContext ()
160
 
                {
161
 
                        MonoMac.ObjCRuntime.Messaging.void_objc_msgSend (class_ptr, selClearCurrentContext);
162
 
                }
163
 
 
164
 
                [Export ("currentContext")]
165
 
                public static NSOpenGLContext CurrentContext ()
166
 
                {
167
 
                        return (NSOpenGLContext) Runtime.GetNSObject (MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSend (class_ptr, selCurrentContext));
168
 
                }
169
 
 
170
 
                [Export ("copyAttributesFromContext:withMask:")]
171
 
                public virtual void CopyAttributes (NSOpenGLContext context, System.UInt32 mask)
172
 
                {
173
 
                        if (context == null)
174
 
                                throw new ArgumentNullException ("context");
175
 
                        if (IsDirectBinding) {
176
 
                                MonoMac.ObjCRuntime.Messaging.void_objc_msgSend_IntPtr_UInt32 (this.Handle, selCopyAttributesFromContextWithMask, context.Handle, mask);
177
 
                        } else {
178
 
                                MonoMac.ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr_UInt32 (this.SuperHandle, selCopyAttributesFromContextWithMask, context.Handle, mask);
179
 
                        }
180
 
                }
181
 
 
182
 
                [Export ("setValues:forParameter:")]
183
 
                public virtual void SetValues (System.IntPtr vals, NSOpenGLContextParameter param)
184
 
                {
185
 
                        if (IsDirectBinding) {
186
 
                                MonoMac.ObjCRuntime.Messaging.void_objc_msgSend_IntPtr_int (this.Handle, selSetValuesForParameter, vals, (int)param);
187
 
                        } else {
188
 
                                MonoMac.ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr_int (this.SuperHandle, selSetValuesForParameter, vals, (int)param);
189
 
                        }
190
 
                }
191
 
 
192
 
                [Export ("getValues:forParameter:")]
193
 
                public virtual void GetValues (System.IntPtr vals, NSOpenGLContextParameter param)
194
 
                {
195
 
                        if (IsDirectBinding) {
196
 
                                MonoMac.ObjCRuntime.Messaging.void_objc_msgSend_IntPtr_int (this.Handle, selGetValuesForParameter, vals, (int)param);
197
 
                        } else {
198
 
                                MonoMac.ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr_int (this.SuperHandle, selGetValuesForParameter, vals, (int)param);
199
 
                        }
200
 
                }
201
 
 
202
 
                [Export ("createTexture:fromView:internalFormat:")]
203
 
                public virtual void CreateTexture (int targetIdentifier, NSView view, int format)
204
 
                {
205
 
                        if (view == null)
206
 
                                throw new ArgumentNullException ("view");
207
 
                        if (IsDirectBinding) {
208
 
                                MonoMac.ObjCRuntime.Messaging.void_objc_msgSend_int_IntPtr_int (this.Handle, selCreateTextureFromViewInternalFormat, targetIdentifier, view.Handle, format);
209
 
                        } else {
210
 
                                MonoMac.ObjCRuntime.Messaging.void_objc_msgSendSuper_int_IntPtr_int (this.SuperHandle, selCreateTextureFromViewInternalFormat, targetIdentifier, view.Handle, format);
211
 
                        }
212
 
                }
213
 
 
214
 
                [Export ("setPixelBuffer:cubeMapFace:mipMapLevel:currentVirtualScreen:")]
215
 
                public virtual void SetPixelBuffer (NSOpenGLPixelBuffer pixelBuffer, NSGLTextureCubeMap face, int level, int screen)
216
 
                {
217
 
                        if (pixelBuffer == null)
218
 
                                throw new ArgumentNullException ("pixelBuffer");
219
 
                        if (IsDirectBinding) {
220
 
                                MonoMac.ObjCRuntime.Messaging.void_objc_msgSend_IntPtr_int_int_int (this.Handle, selSetPixelBufferCubeMapFaceMipMapLevelCurrentVirtualScreen, pixelBuffer.Handle, (int)face, level, screen);
221
 
                        } else {
222
 
                                MonoMac.ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr_int_int_int (this.SuperHandle, selSetPixelBufferCubeMapFaceMipMapLevelCurrentVirtualScreen, pixelBuffer.Handle, (int)face, level, screen);
223
 
                        }
224
 
                }
225
 
 
226
 
                [Export ("setTextureImageToPixelBuffer:colorBuffer:")]
227
 
                public virtual void SetTextureImage (NSOpenGLPixelBuffer pixelBuffer, NSGLColorBuffer source)
228
 
                {
229
 
                        if (pixelBuffer == null)
230
 
                                throw new ArgumentNullException ("pixelBuffer");
231
 
                        if (IsDirectBinding) {
232
 
                                MonoMac.ObjCRuntime.Messaging.void_objc_msgSend_IntPtr_int (this.Handle, selSetTextureImageToPixelBufferColorBuffer, pixelBuffer.Handle, (int)source);
233
 
                        } else {
234
 
                                MonoMac.ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr_int (this.SuperHandle, selSetTextureImageToPixelBufferColorBuffer, pixelBuffer.Handle, (int)source);
235
 
                        }
236
 
                }
237
 
 
238
 
                public virtual System.IntPtr CGLContextObj {
239
 
                        [Export ("CGLContextObj")]
240
 
                        get {
241
 
                                if (IsDirectBinding) {
242
 
                                        return MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selCGLContextObj);
243
 
                                } else {
244
 
                                        return MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selCGLContextObj);
245
 
                                }
246
 
                        }
247
 
 
248
 
                }
249
 
 
250
 
                MonoMac.AppKit.NSOpenGLPixelBuffer __mt_PixelBuffer_var;
251
 
                public virtual NSOpenGLPixelBuffer PixelBuffer {
252
 
                        [Export ("pixelBuffer")]
253
 
                        get {
254
 
                                NSOpenGLPixelBuffer ret;
255
 
                                if (IsDirectBinding) {
256
 
                                        ret = (NSOpenGLPixelBuffer) Runtime.GetNSObject (MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selPixelBuffer));
257
 
                                } else {
258
 
                                        ret = (NSOpenGLPixelBuffer) Runtime.GetNSObject (MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selPixelBuffer));
259
 
                                }
260
 
                                __mt_PixelBuffer_var = ret;
261
 
                                return ret;
262
 
                        }
263
 
 
264
 
                }
265
 
 
266
 
                public virtual int PixelBufferCubeMapFace {
267
 
                        [Export ("pixelBufferCubeMapFace")]
268
 
                        get {
269
 
                                if (IsDirectBinding) {
270
 
                                        return MonoMac.ObjCRuntime.Messaging.int_objc_msgSend (this.Handle, selPixelBufferCubeMapFace);
271
 
                                } else {
272
 
                                        return MonoMac.ObjCRuntime.Messaging.int_objc_msgSendSuper (this.SuperHandle, selPixelBufferCubeMapFace);
273
 
                                }
274
 
                        }
275
 
 
276
 
                }
277
 
 
278
 
                public virtual int PixelBufferMipMapLevel {
279
 
                        [Export ("pixelBufferMipMapLevel")]
280
 
                        get {
281
 
                                if (IsDirectBinding) {
282
 
                                        return MonoMac.ObjCRuntime.Messaging.int_objc_msgSend (this.Handle, selPixelBufferMipMapLevel);
283
 
                                } else {
284
 
                                        return MonoMac.ObjCRuntime.Messaging.int_objc_msgSendSuper (this.SuperHandle, selPixelBufferMipMapLevel);
285
 
                                }
286
 
                        }
287
 
 
288
 
                }
289
 
 
290
 
                MonoMac.AppKit.NSView __mt_View_var;
291
 
                public virtual NSView View {
292
 
                        [Export ("view")]
293
 
                        get {
294
 
                                NSView ret;
295
 
                                if (IsDirectBinding) {
296
 
                                        ret = (NSView) Runtime.GetNSObject (MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selView));
297
 
                                } else {
298
 
                                        ret = (NSView) Runtime.GetNSObject (MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selView));
299
 
                                }
300
 
                                __mt_View_var = ret;
301
 
                                return ret;
302
 
                        }
303
 
 
304
 
                        [Export ("setView:")]
305
 
                        set {
306
 
                                if (value == null)
307
 
                                        throw new ArgumentNullException ("value");
308
 
                                if (IsDirectBinding) {
309
 
                                        MonoMac.ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, selSetView, value.Handle);
310
 
                                } else {
311
 
                                        MonoMac.ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, selSetView, value.Handle);
312
 
                                }
313
 
                                __mt_View_var = value;
314
 
                        }
315
 
                }
316
 
 
317
 
                public virtual int CurrentVirtualScreen {
318
 
                        [Export ("currentVirtualScreen")]
319
 
                        get {
320
 
                                if (IsDirectBinding) {
321
 
                                        return MonoMac.ObjCRuntime.Messaging.int_objc_msgSend (this.Handle, selCurrentVirtualScreen);
322
 
                                } else {
323
 
                                        return MonoMac.ObjCRuntime.Messaging.int_objc_msgSendSuper (this.SuperHandle, selCurrentVirtualScreen);
324
 
                                }
325
 
                        }
326
 
 
327
 
                        [Export ("setCurrentVirtualScreen:")]
328
 
                        set {
329
 
                                if (IsDirectBinding) {
330
 
                                        MonoMac.ObjCRuntime.Messaging.void_objc_msgSend_int (this.Handle, selSetCurrentVirtualScreen, value);
331
 
                                } else {
332
 
                                        MonoMac.ObjCRuntime.Messaging.void_objc_msgSendSuper_int (this.SuperHandle, selSetCurrentVirtualScreen, value);
333
 
                                }
334
 
                        }
335
 
                }
336
 
 
337
 
        
338
 
        } /* class NSOpenGLContext */
339
 
}