[NUI] Fix not to use setter of AnimatedImageView.URLs (#2303)
[platform/core/csapi/tizenfx.git] / src / Tizen.NUI / src / public / FrameCallback.cs
1 using System;
2 using System.Collections.Generic;
3 using System.Runtime.InteropServices;
4 using System.Text;
5 using System.ComponentModel;
6
7 namespace Tizen.NUI
8 {
9
10     /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
11     [EditorBrowsable(EditorBrowsableState.Never)]
12     public class FrameCallback : BaseHandle
13     {
14         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
15         [EditorBrowsable(EditorBrowsableState.Never)]
16         public FrameCallback() : this(Interop.FrameCallback.FrameUpdateCallback_New(), true)
17         {
18
19         }
20
21
22         internal FrameCallback(global::System.IntPtr cPtr, bool cMemoryOwn) : base(Interop.FrameCallback.FrameUpdateCallback_SWIGUpcast(cPtr), cMemoryOwn)
23         {
24         }
25
26         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
27         [EditorBrowsable(EditorBrowsableState.Never)]
28         [UnmanagedFunctionPointer(CallingConvention.StdCall)]
29         public delegate void FrameUpdateCallback(float progress);
30
31         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
32         [EditorBrowsable(EditorBrowsableState.Never)]
33         public void AddCallback(FrameUpdateCallback callback)
34         {
35             System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate<System.Delegate>(callback);
36             {
37                 Interop.FrameCallback.FrameUpdateCallback_AddCallback(swigCPtr, new System.Runtime.InteropServices.HandleRef(this, ip));
38                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
39             }
40         }
41
42         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
43         [EditorBrowsable(EditorBrowsableState.Never)]
44         public void AddMainThreadCallback(FrameUpdateCallback callback)
45         {
46             System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate<System.Delegate>(callback);
47             {
48                 Interop.FrameCallback.FrameUpdateCallback_AddMainThreadCallback(swigCPtr, new System.Runtime.InteropServices.HandleRef(this, ip));
49                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
50             }
51         }
52
53         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
54         [EditorBrowsable(EditorBrowsableState.Never)]
55         public void RemoveCallback()
56         {
57             Interop.FrameCallback.FrameUpdateCallback_RemoveCallback(swigCPtr);
58             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
59         }
60
61         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
62         [EditorBrowsable(EditorBrowsableState.Never)]
63         public Vector3 GetPosition(uint actorID)
64         {
65             Vector3 ret = new Vector3(Interop.FrameCallback.FrameUpdateCallback_GetPosition(swigCPtr, actorID), false);
66             return ret;
67         }
68
69         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
70         [EditorBrowsable(EditorBrowsableState.Never)]
71         public void SetPosition(uint actorID, Vector3 position)
72         {
73             Interop.FrameCallback.FrameUpdateCallback_SetPosition(swigCPtr, actorID, Vector3.getCPtr(position));
74         }
75
76         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
77         [EditorBrowsable(EditorBrowsableState.Never)]
78         public void BakePosition(uint actorID, Vector3 position)
79         {
80             Interop.FrameCallback.FrameUpdateCallback_BakePosition(swigCPtr, actorID, Vector3.getCPtr(position));
81         }
82
83         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
84         [EditorBrowsable(EditorBrowsableState.Never)]
85         public Vector3 GetSize(uint actorID)
86         {
87             Vector3 ret = new Vector3(Interop.FrameCallback.FrameUpdateCallback_GetSize(swigCPtr, actorID), false);
88             return ret;
89         }
90
91         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
92         [EditorBrowsable(EditorBrowsableState.Never)]
93         public void SetSize(uint actorID, Vector3 size)
94         {
95             Interop.FrameCallback.FrameUpdateCallback_SetSize(swigCPtr, actorID, Vector3.getCPtr(size));
96         }
97
98         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
99         [EditorBrowsable(EditorBrowsableState.Never)]
100         public void BakeSize(uint actorID, Vector3 size)
101         {
102             Interop.FrameCallback.FrameUpdateCallback_BakeSize(swigCPtr, actorID, Vector3.getCPtr(size));
103         }
104
105         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
106         [EditorBrowsable(EditorBrowsableState.Never)]
107         public Vector3 GetScale(uint actorID)
108         {
109             Vector3 ret = new Vector3(Interop.FrameCallback.FrameUpdateCallback_GetScale(swigCPtr, actorID), false);
110             return ret;
111         }
112
113         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
114         [EditorBrowsable(EditorBrowsableState.Never)]
115         public void SetScale(uint actorID, Vector3 scale)
116         {
117             Interop.FrameCallback.FrameUpdateCallback_SetScale(swigCPtr, actorID, Vector3.getCPtr(scale));
118         }
119
120         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
121         [EditorBrowsable(EditorBrowsableState.Never)]
122         public void BakeScale(uint actorID, Vector3 scale)
123         {
124             Interop.FrameCallback.FrameUpdateCallback_BakeScale(swigCPtr, actorID, Vector3.getCPtr(scale));
125         }
126
127         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
128         [EditorBrowsable(EditorBrowsableState.Never)]
129         public Vector4 GetColor(uint actorID)
130         {
131             Vector4 ret = new Vector4(Interop.FrameCallback.FrameUpdateCallback_GetColor(swigCPtr, actorID), false);
132             return ret;
133         }
134
135         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
136         [EditorBrowsable(EditorBrowsableState.Never)]
137         public void SetColor(uint actorID, Vector4 color)
138         {
139             Interop.FrameCallback.FrameUpdateCallback_SetColor(swigCPtr, actorID, Vector4.getCPtr(color));
140         }
141
142         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
143         [EditorBrowsable(EditorBrowsableState.Never)]
144         public void BakeColor(uint actorID, Vector4 color)
145         {
146             Interop.FrameCallback.FrameUpdateCallback_BakeColor(swigCPtr, actorID, Vector4.getCPtr(color));
147         }
148
149         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
150         [EditorBrowsable(EditorBrowsableState.Never)]
151         public void SetAlphaFunction(AlphaFunction alphaFunction)
152         {
153             Interop.FrameCallback.FrameUpdateCallback_SetAlphaFunction(swigCPtr, AlphaFunction.getCPtr(alphaFunction));
154         }
155
156         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
157         [EditorBrowsable(EditorBrowsableState.Never)]
158         public AlphaFunction GetAlphaFunction()
159         {
160             AlphaFunction alphaFunction = new AlphaFunction(Interop.FrameCallback.FrameUpdateCallback_GetAlphaFunction(swigCPtr), false);
161             return alphaFunction;
162         }
163
164         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
165         [EditorBrowsable(EditorBrowsableState.Never)]
166         public void SetDuration(float seconds)
167         {
168             Interop.FrameCallback.FrameUpdateCallback_SetDuration(swigCPtr, seconds);
169         }
170
171         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
172         [EditorBrowsable(EditorBrowsableState.Never)]
173         public float GetDuration()
174         {
175             return Interop.FrameCallback.FrameUpdateCallback_GetDuration(swigCPtr);
176         }
177
178     }
179 }