Merge "Add PRIVATECOMMAND of ImfEvent in text-controller" into devel/master
[platform/core/uifw/dali-toolkit.git] / plugins / dali-sharp / sharp / internal / RenderTask.cs
1 //------------------------------------------------------------------------------
2 // <auto-generated />
3 //
4 // This file was automatically generated by SWIG (http://www.swig.org).
5 // Version 3.0.10
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 RenderTask : Animatable {
14   private global::System.Runtime.InteropServices.HandleRef swigCPtr;
15
16   internal RenderTask(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.RenderTask_SWIGUpcast(cPtr), cMemoryOwn) {
17     swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
18   }
19
20   internal static global::System.Runtime.InteropServices.HandleRef getCPtr(RenderTask obj) {
21     return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
22   }
23
24   ~RenderTask() {
25     DisposeQueue.Instance.Add(this);
26   }
27
28   public override void Dispose() {
29     if (!Window.IsInstalled()) {
30       DisposeQueue.Instance.Add(this);
31       return;
32     }
33
34     lock(this) {
35       if (swigCPtr.Handle != global::System.IntPtr.Zero) {
36         if (swigCMemOwn) {
37           swigCMemOwn = false;
38           NDalicPINVOKE.delete_RenderTask(swigCPtr);
39         }
40         swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
41       }
42       global::System.GC.SuppressFinalize(this);
43       base.Dispose();
44     }
45   }
46
47
48  public static RenderTask GetRenderTaskFromPtr(global::System.IntPtr cPtr) {
49     RenderTask ret = new RenderTask(cPtr, false);
50         if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
51     return ret;
52   }
53
54   public class Property : global::System.IDisposable {
55     private global::System.Runtime.InteropServices.HandleRef swigCPtr;
56     protected bool swigCMemOwn;
57
58     internal Property(global::System.IntPtr cPtr, bool cMemoryOwn) {
59       swigCMemOwn = cMemoryOwn;
60       swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
61     }
62
63     internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Property obj) {
64       return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
65     }
66
67     ~Property() {
68       Dispose();
69     }
70
71     public virtual void Dispose() {
72       lock(this) {
73         if (swigCPtr.Handle != global::System.IntPtr.Zero) {
74           if (swigCMemOwn) {
75             swigCMemOwn = false;
76             NDalicPINVOKE.delete_RenderTask_Property(swigCPtr);
77           }
78           swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
79         }
80         global::System.GC.SuppressFinalize(this);
81       }
82     }
83
84     public Property() : this(NDalicPINVOKE.new_RenderTask_Property(), true) {
85       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
86     }
87
88     public static readonly int VIEWPORT_POSITION = NDalicPINVOKE.RenderTask_Property_VIEWPORT_POSITION_get();
89     public static readonly int VIEWPORT_SIZE = NDalicPINVOKE.RenderTask_Property_VIEWPORT_SIZE_get();
90     public static readonly int CLEAR_COLOR = NDalicPINVOKE.RenderTask_Property_CLEAR_COLOR_get();
91     public static readonly int REQUIRES_SYNC = NDalicPINVOKE.RenderTask_Property_REQUIRES_SYNC_get();
92
93   }
94
95   public static SWIGTYPE_p_f_r_Dali__Vector2__bool DEFAULT_SCREEN_TO_FRAMEBUFFER_FUNCTION {
96     get {
97       global::System.IntPtr cPtr = NDalicPINVOKE.RenderTask_DEFAULT_SCREEN_TO_FRAMEBUFFER_FUNCTION_get();
98       SWIGTYPE_p_f_r_Dali__Vector2__bool ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_f_r_Dali__Vector2__bool(cPtr, false);
99       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
100       return ret;
101     }
102   }
103
104   public static SWIGTYPE_p_f_r_Dali__Vector2__bool FULLSCREEN_FRAMEBUFFER_FUNCTION {
105     get {
106       global::System.IntPtr cPtr = NDalicPINVOKE.RenderTask_FULLSCREEN_FRAMEBUFFER_FUNCTION_get();
107       SWIGTYPE_p_f_r_Dali__Vector2__bool ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_f_r_Dali__Vector2__bool(cPtr, false);
108       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
109       return ret;
110     }
111   }
112
113   public static bool DEFAULT_EXCLUSIVE {
114     get {
115       bool ret = NDalicPINVOKE.RenderTask_DEFAULT_EXCLUSIVE_get();
116       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
117       return ret;
118     }
119   }
120
121   public static bool DEFAULT_INPUT_ENABLED {
122     get {
123       bool ret = NDalicPINVOKE.RenderTask_DEFAULT_INPUT_ENABLED_get();
124       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
125       return ret;
126     }
127   }
128
129   public static Vector4 DEFAULT_CLEAR_COLOR {
130     get {
131       global::System.IntPtr cPtr = NDalicPINVOKE.RenderTask_DEFAULT_CLEAR_COLOR_get();
132       Vector4 ret = (cPtr == global::System.IntPtr.Zero) ? null : new Vector4(cPtr, false);
133       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
134       return ret;
135     }
136   }
137
138   public static bool DEFAULT_CLEAR_ENABLED {
139     get {
140       bool ret = NDalicPINVOKE.RenderTask_DEFAULT_CLEAR_ENABLED_get();
141       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
142       return ret;
143     }
144   }
145
146   public static bool DEFAULT_CULL_MODE {
147     get {
148       bool ret = NDalicPINVOKE.RenderTask_DEFAULT_CULL_MODE_get();
149       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
150       return ret;
151     }
152   }
153
154   public static uint DEFAULT_REFRESH_RATE {
155     get {
156       uint ret = NDalicPINVOKE.RenderTask_DEFAULT_REFRESH_RATE_get();
157       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
158       return ret;
159     }
160   }
161
162   public RenderTask() : this(NDalicPINVOKE.new_RenderTask__SWIG_0(), true) {
163     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
164   }
165
166   public new static RenderTask DownCast(BaseHandle handle) {
167     RenderTask ret = new RenderTask(NDalicPINVOKE.RenderTask_DownCast(BaseHandle.getCPtr(handle)), true);
168     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
169     return ret;
170   }
171
172   public RenderTask(RenderTask handle) : this(NDalicPINVOKE.new_RenderTask__SWIG_1(RenderTask.getCPtr(handle)), true) {
173     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
174   }
175
176   public RenderTask Assign(RenderTask rhs) {
177     RenderTask ret = new RenderTask(NDalicPINVOKE.RenderTask_Assign(swigCPtr, RenderTask.getCPtr(rhs)), false);
178     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
179     return ret;
180   }
181
182   public void SetSourceView(View view) {
183     NDalicPINVOKE.RenderTask_SetSourceActor(swigCPtr, View.getCPtr(view));
184     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
185   }
186
187   public View GetSourceView() {
188     View ret = new View(NDalicPINVOKE.RenderTask_GetSourceActor(swigCPtr), true);
189     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
190     return ret;
191   }
192
193   public void SetExclusive(bool exclusive) {
194     NDalicPINVOKE.RenderTask_SetExclusive(swigCPtr, exclusive);
195     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
196   }
197
198   public bool IsExclusive() {
199     bool ret = NDalicPINVOKE.RenderTask_IsExclusive(swigCPtr);
200     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
201     return ret;
202   }
203
204   public void SetInputEnabled(bool enabled) {
205     NDalicPINVOKE.RenderTask_SetInputEnabled(swigCPtr, enabled);
206     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
207   }
208
209   public bool GetInputEnabled() {
210     bool ret = NDalicPINVOKE.RenderTask_GetInputEnabled(swigCPtr);
211     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
212     return ret;
213   }
214
215   public void SetCamera(Camera camera) {
216     NDalicPINVOKE.RenderTask_SetCameraActor(swigCPtr, Camera.getCPtr(camera));
217     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
218   }
219
220   public Camera GetCamera() {
221     Camera ret = new Camera(NDalicPINVOKE.RenderTask_GetCameraActor(swigCPtr), true);
222     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
223     return ret;
224   }
225
226   public void SetTargetFrameBuffer(FrameBufferImage frameBuffer) {
227     NDalicPINVOKE.RenderTask_SetTargetFrameBuffer(swigCPtr, FrameBufferImage.getCPtr(frameBuffer));
228     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
229   }
230
231   public FrameBufferImage GetTargetFrameBuffer() {
232     FrameBufferImage ret = new FrameBufferImage(NDalicPINVOKE.RenderTask_GetTargetFrameBuffer(swigCPtr), true);
233     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
234     return ret;
235   }
236
237   public void SetFrameBuffer(FrameBuffer frameBuffer) {
238     NDalicPINVOKE.RenderTask_SetFrameBuffer(swigCPtr, FrameBuffer.getCPtr(frameBuffer));
239     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
240   }
241
242   public FrameBuffer GetFrameBuffer() {
243     FrameBuffer ret = new FrameBuffer(NDalicPINVOKE.RenderTask_GetFrameBuffer(swigCPtr), true);
244     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
245     return ret;
246   }
247
248   public void SetScreenToFrameBufferFunction(SWIGTYPE_p_f_r_Dali__Vector2__bool conversionFunction) {
249     NDalicPINVOKE.RenderTask_SetScreenToFrameBufferFunction(swigCPtr, SWIGTYPE_p_f_r_Dali__Vector2__bool.getCPtr(conversionFunction));
250     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
251   }
252
253   public SWIGTYPE_p_f_r_Dali__Vector2__bool GetScreenToFrameBufferFunction() {
254     global::System.IntPtr cPtr = NDalicPINVOKE.RenderTask_GetScreenToFrameBufferFunction(swigCPtr);
255     SWIGTYPE_p_f_r_Dali__Vector2__bool ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_f_r_Dali__Vector2__bool(cPtr, false);
256     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
257     return ret;
258   }
259
260   public void SetScreenToFrameBufferMappingView(View mappingView) {
261     NDalicPINVOKE.RenderTask_SetScreenToFrameBufferMappingActor(swigCPtr, View.getCPtr(mappingView));
262     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
263   }
264
265   public View GetScreenToFrameBufferMappingView() {
266     View ret = new View(NDalicPINVOKE.RenderTask_GetScreenToFrameBufferMappingActor(swigCPtr), true);
267     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
268     return ret;
269   }
270
271   public void SetViewportPosition(Vector2 position) {
272     NDalicPINVOKE.RenderTask_SetViewportPosition(swigCPtr, Vector2.getCPtr(position));
273     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
274   }
275
276   public Vector2 GetCurrentViewportPosition() {
277     Vector2 ret = new Vector2(NDalicPINVOKE.RenderTask_GetCurrentViewportPosition(swigCPtr), true);
278     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
279     return ret;
280   }
281
282   public void SetViewportSize(Vector2 size) {
283     NDalicPINVOKE.RenderTask_SetViewportSize(swigCPtr, Vector2.getCPtr(size));
284     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
285   }
286
287   public Vector2 GetCurrentViewportSize() {
288     Vector2 ret = new Vector2(NDalicPINVOKE.RenderTask_GetCurrentViewportSize(swigCPtr), true);
289     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
290     return ret;
291   }
292
293   public void SetViewport(Rectangle viewport) {
294     NDalicPINVOKE.RenderTask_SetViewport(swigCPtr, Rectangle.getCPtr(viewport));
295     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
296   }
297
298   public Rectangle GetViewport() {
299     Rectangle ret = new Rectangle(NDalicPINVOKE.RenderTask_GetViewport(swigCPtr), true);
300     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
301     return ret;
302   }
303
304   public void SetClearColor(Vector4 color) {
305     NDalicPINVOKE.RenderTask_SetClearColor(swigCPtr, Vector4.getCPtr(color));
306     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
307   }
308
309   public Vector4 GetClearColor() {
310     Vector4 ret = new Vector4(NDalicPINVOKE.RenderTask_GetClearColor(swigCPtr), true);
311     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
312     return ret;
313   }
314
315   public void SetClearEnabled(bool enabled) {
316     NDalicPINVOKE.RenderTask_SetClearEnabled(swigCPtr, enabled);
317     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
318   }
319
320   public bool GetClearEnabled() {
321     bool ret = NDalicPINVOKE.RenderTask_GetClearEnabled(swigCPtr);
322     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
323     return ret;
324   }
325
326   public void SetCullMode(bool cullMode) {
327     NDalicPINVOKE.RenderTask_SetCullMode(swigCPtr, cullMode);
328     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
329   }
330
331   public bool GetCullMode() {
332     bool ret = NDalicPINVOKE.RenderTask_GetCullMode(swigCPtr);
333     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
334     return ret;
335   }
336
337   public void SetRefreshRate(uint refreshRate) {
338     NDalicPINVOKE.RenderTask_SetRefreshRate(swigCPtr, refreshRate);
339     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
340   }
341
342   public uint GetRefreshRate() {
343     uint ret = NDalicPINVOKE.RenderTask_GetRefreshRate(swigCPtr);
344     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
345     return ret;
346   }
347
348   public bool WorldToViewport(Vector3 position, out float viewportX, out float viewportY) {
349     bool ret = NDalicPINVOKE.RenderTask_WorldToViewport(swigCPtr, Vector3.getCPtr(position), out viewportX, out viewportY);
350     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
351     return ret;
352   }
353
354   public bool ViewportToLocal(View view, float viewportX, float viewportY, out float localX, out float localY) {
355     bool ret = NDalicPINVOKE.RenderTask_ViewportToLocal(swigCPtr, View.getCPtr(view), viewportX, viewportY, out localX, out localY);
356     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
357     return ret;
358   }
359
360   public RenderTaskSignal FinishedSignal() {
361     RenderTaskSignal ret = new RenderTaskSignal(NDalicPINVOKE.RenderTask_FinishedSignal(swigCPtr), false);
362     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
363     return ret;
364   }
365
366   public enum RefreshRate {
367     REFRESH_ONCE = 0,
368     REFRESH_ALWAYS = 1
369   }
370
371   public Vector2 ViewportPosition
372   {
373     get
374     {
375       Vector2 temp = new Vector2(0.0f,0.0f);
376       GetProperty( RenderTask.Property.VIEWPORT_POSITION).Get(  temp );
377       return temp;
378     }
379     set
380     {
381       SetProperty( RenderTask.Property.VIEWPORT_POSITION, new Dali.Property.Value( value ) );
382     }
383   }
384   public Vector2 ViewportSize
385   {
386     get
387     {
388       Vector2 temp = new Vector2(0.0f,0.0f);
389       GetProperty( RenderTask.Property.VIEWPORT_SIZE).Get(  temp );
390       return temp;
391     }
392     set
393     {
394       SetProperty( RenderTask.Property.VIEWPORT_SIZE, new Dali.Property.Value( value ) );
395     }
396   }
397   public Vector4 ClearColor
398   {
399     get
400     {
401       Vector4 temp = new Vector4(0.0f,0.0f,0.0f,0.0f);
402       GetProperty( RenderTask.Property.CLEAR_COLOR).Get(  temp );
403       return temp;
404     }
405     set
406     {
407       SetProperty( RenderTask.Property.CLEAR_COLOR, new Dali.Property.Value( value ) );
408     }
409   }
410   public bool RequiresSync
411   {
412     get
413     {
414       bool temp = false;
415       GetProperty( RenderTask.Property.REQUIRES_SYNC).Get( ref temp );
416       return temp;
417     }
418     set
419     {
420       SetProperty( RenderTask.Property.REQUIRES_SYNC, new Dali.Property.Value( value ) );
421     }
422   }
423
424 }
425
426 }