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