DALi C# Tizen GBS build:
[platform/core/uifw/dali-toolkit.git] / plugins / dali-swig / automatic / csharp / 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 Dali {
12
13 public 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     lock(this) {
26       if (swigCPtr.Handle != global::System.IntPtr.Zero) {
27         if (swigCMemOwn) {
28           swigCMemOwn = false;
29           throw new global::System.MethodAccessException("C++ destructor does not have public access");
30         }
31         swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
32       }
33       global::System.GC.SuppressFinalize(this);
34       base.Dispose();
35     }
36   }
37
38   public virtual bool GlExtensionCreate() {
39     bool ret = NDalicPINVOKE.NativeImageInterface_GlExtensionCreate(swigCPtr);
40     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
41     return ret;
42   }
43
44   public virtual void GlExtensionDestroy() {
45     NDalicPINVOKE.NativeImageInterface_GlExtensionDestroy(swigCPtr);
46     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
47   }
48
49   public virtual uint TargetTexture() {
50     uint ret = NDalicPINVOKE.NativeImageInterface_TargetTexture(swigCPtr);
51     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
52     return ret;
53   }
54
55   public virtual void PrepareTexture() {
56     NDalicPINVOKE.NativeImageInterface_PrepareTexture(swigCPtr);
57     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
58   }
59
60   public virtual uint GetWidth() {
61     uint ret = NDalicPINVOKE.NativeImageInterface_GetWidth(swigCPtr);
62     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
63     return ret;
64   }
65
66   public virtual uint GetHeight() {
67     uint ret = NDalicPINVOKE.NativeImageInterface_GetHeight(swigCPtr);
68     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
69     return ret;
70   }
71
72   public virtual bool RequiresBlending() {
73     bool ret = NDalicPINVOKE.NativeImageInterface_RequiresBlending(swigCPtr);
74     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
75     return ret;
76   }
77
78 }
79
80 }