manual nui merge 0.2.38
[platform/core/csapi/nui.git] / Tizen.NUI / src / internal / NativeImageInterface.cs
1 //------------------------------------------------------------------------------
2 // <auto-generated />
3 //
4 // This file was automatically generated by SWIG (http://www.swig.org).
5 // Version 3.0.9
6 //
7 // Do not make changes to this file unless you know what you are doing--modify
8 // the SWIG interface file instead.
9 //------------------------------------------------------------------------------
10
11 namespace Tizen.NUI {
12
13     internal class NativeImageInterface : RefObject {
14   private global::System.Runtime.InteropServices.HandleRef swigCPtr;
15
16   internal NativeImageInterface(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.NativeImageInterface_SWIGUpcast(cPtr), cMemoryOwn) {
17     swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
18   }
19
20   internal static global::System.Runtime.InteropServices.HandleRef getCPtr(NativeImageInterface obj) {
21     return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
22   }
23
24   public override void Dispose() {
25
26     lock(this) {
27       if (swigCPtr.Handle != global::System.IntPtr.Zero) {
28         if (swigCMemOwn) {
29           swigCMemOwn = false;
30           throw new global::System.MethodAccessException("C++ destructor does not have public access");
31         }
32         swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
33       }
34       global::System.GC.SuppressFinalize(this);
35       base.Dispose();
36     }
37   }
38
39   public virtual bool GlExtensionCreate() {
40     bool ret = NDalicPINVOKE.NativeImageInterface_GlExtensionCreate(swigCPtr);
41     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
42     return ret;
43   }
44
45   public virtual void GlExtensionDestroy() {
46     NDalicPINVOKE.NativeImageInterface_GlExtensionDestroy(swigCPtr);
47     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
48   }
49
50   public virtual uint TargetTexture() {
51     uint ret = NDalicPINVOKE.NativeImageInterface_TargetTexture(swigCPtr);
52     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
53     return ret;
54   }
55
56   public virtual void PrepareTexture() {
57     NDalicPINVOKE.NativeImageInterface_PrepareTexture(swigCPtr);
58     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
59   }
60
61   public virtual uint GetWidth() {
62     uint ret = NDalicPINVOKE.NativeImageInterface_GetWidth(swigCPtr);
63     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
64     return ret;
65   }
66
67   public virtual uint GetHeight() {
68     uint ret = NDalicPINVOKE.NativeImageInterface_GetHeight(swigCPtr);
69     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
70     return ret;
71   }
72
73   public virtual bool RequiresBlending() {
74     bool ret = NDalicPINVOKE.NativeImageInterface_RequiresBlending(swigCPtr);
75     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
76     return ret;
77   }
78
79 }
80
81 }