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