[NUI] remove "_" and refactoring naming to pascal case.
[platform/core/csapi/tizenfx.git] / src / Tizen.NUI / src / internal / NativeImageInterface.cs
1 /*
2  * Copyright(c) 2017 Samsung Electronics Co., Ltd.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  */
17
18 using System.ComponentModel;
19
20 namespace Tizen.NUI
21 {
22     [EditorBrowsable(EditorBrowsableState.Never)]
23     public class NativeImageInterface : RefObject
24     {
25
26         internal NativeImageInterface(global::System.IntPtr cPtr, bool cMemoryOwn) : base(Interop.NativeImageInterface.Upcast(cPtr), cMemoryOwn)
27         {
28         }
29
30         internal static global::System.Runtime.InteropServices.HandleRef getCPtr(NativeImageInterface obj)
31         {
32             return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
33         }
34
35         protected override void ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef swigCPtr)
36         {
37             throw new global::System.MethodAccessException("C++ destructor does not have public access");
38         }
39
40         public virtual bool GlExtensionCreate()
41         {
42             bool ret = Interop.NativeImageInterface.GlExtensionCreate(swigCPtr);
43             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
44             return ret;
45         }
46
47         public virtual void GlExtensionDestroy()
48         {
49             Interop.NativeImageInterface.GlExtensionDestroy(swigCPtr);
50             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
51         }
52
53         public virtual uint TargetTexture()
54         {
55             uint ret = Interop.NativeImageInterface.TargetTexture(swigCPtr);
56             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
57             return ret;
58         }
59
60         public virtual void PrepareTexture()
61         {
62             Interop.NativeImageInterface.PrepareTexture(swigCPtr);
63             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
64         }
65
66         public virtual uint GetWidth()
67         {
68             uint ret = Interop.NativeImageInterface.GetWidth(swigCPtr);
69             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
70             return ret;
71         }
72
73         public virtual uint GetHeight()
74         {
75             uint ret = Interop.NativeImageInterface.GetHeight(swigCPtr);
76             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
77             return ret;
78         }
79
80         public virtual bool RequiresBlending()
81         {
82             bool ret = Interop.NativeImageInterface.RequiresBlending(swigCPtr);
83             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
84             return ret;
85         }
86     }
87 }