16d52e91bafed90be2b59f730b6f16af66c0e147
[platform/core/csapi/tizenfx.git] / src / Tizen.NUI / src / internal / RenderTask.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 namespace Tizen.NUI
19 {
20     using Tizen.NUI.BaseComponents;
21     internal class RenderTask : Animatable
22     {
23         private global::System.Runtime.InteropServices.HandleRef swigCPtr;
24
25         internal RenderTask(global::System.IntPtr cPtr, bool cMemoryOwn) : base(Interop.RenderTask.RenderTask_SWIGUpcast(cPtr), cMemoryOwn)
26         {
27             swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
28         }
29
30         internal static global::System.Runtime.InteropServices.HandleRef getCPtr(RenderTask 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 Dispose(DisposeTypes type)
36         {
37             if (disposed)
38             {
39                 return;
40             }
41
42             if (type == DisposeTypes.Explicit)
43             {
44                 //Called by User
45                 //Release your own managed resources here.
46                 //You should release all of your own disposable objects here.
47
48             }
49
50             //Release your own unmanaged resources here.
51             //You should not access any managed member here except static instance.
52             //because the execution order of Finalizes is non-deterministic.
53
54
55             if (swigCPtr.Handle != global::System.IntPtr.Zero)
56             {
57                 if (swigCMemOwn)
58                 {
59                     swigCMemOwn = false;
60                     Interop.RenderTask.delete_RenderTask(swigCPtr);
61                 }
62                 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
63             }
64
65             base.Dispose(type);
66         }
67
68
69         public static RenderTask GetRenderTaskFromPtr(global::System.IntPtr cPtr)
70         {
71             RenderTask ret = new RenderTask(cPtr, false);
72             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
73             return ret;
74         }
75
76         /// <since_tizen> 3 </since_tizen>
77         public class Property : global::System.IDisposable
78         {
79             private global::System.Runtime.InteropServices.HandleRef swigCPtr;
80             /// <since_tizen> 3 </since_tizen>
81             protected bool swigCMemOwn;
82
83             internal Property(global::System.IntPtr cPtr, bool cMemoryOwn)
84             {
85                 swigCMemOwn = cMemoryOwn;
86                 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
87             }
88
89             internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Property obj)
90             {
91                 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
92             }
93
94             //A Flag to check who called Dispose(). (By User or DisposeQueue)
95             private bool isDisposeQueued = false;
96             //A Flat to check if it is already disposed.
97             /// <since_tizen> 3 </since_tizen>
98             protected bool disposed = false;
99
100
101             ~Property()
102             {
103                 if (!isDisposeQueued)
104                 {
105                     isDisposeQueued = true;
106                     DisposeQueue.Instance.Add(this);
107                 }
108             }
109
110             /// <since_tizen> 3 </since_tizen>
111             public void Dispose()
112             {
113                 //Throw excpetion if Dispose() is called in separate thread.
114                 if (!Window.IsInstalled())
115                 {
116                     throw new System.InvalidOperationException("This API called from separate thread. This API must be called from MainThread.");
117                 }
118
119                 if (isDisposeQueued)
120                 {
121                     Dispose(DisposeTypes.Implicit);
122                 }
123                 else
124                 {
125                     Dispose(DisposeTypes.Explicit);
126                     System.GC.SuppressFinalize(this);
127                 }
128             }
129
130             /// <since_tizen> 3 </since_tizen>
131             protected virtual void Dispose(DisposeTypes type)
132             {
133                 if (disposed)
134                 {
135                     return;
136                 }
137
138                 if (type == DisposeTypes.Explicit)
139                 {
140                     //Called by User
141                     //Release your own managed resources here.
142                     //You should release all of your own disposable objects here.
143
144                 }
145
146                 //Release your own unmanaged resources here.
147                 //You should not access any managed member here except static instance.
148                 //because the execution order of Finalizes is non-deterministic.
149
150                 if (swigCPtr.Handle != global::System.IntPtr.Zero)
151                 {
152                     if (swigCMemOwn)
153                     {
154                         swigCMemOwn = false;
155                         Interop.RenderTask.delete_RenderTask_Property(swigCPtr);
156                     }
157                     swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
158                 }
159
160                 disposed = true;
161             }
162
163             /// <since_tizen> 3 </since_tizen>
164             public Property() : this(Interop.RenderTask.new_RenderTask_Property(), true)
165             {
166                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
167             }
168
169             /// <since_tizen> 3 </since_tizen>
170             public static readonly int VIEWPORT_POSITION = Interop.RenderTask.RenderTask_Property_VIEWPORT_POSITION_get();
171             /// <since_tizen> 3 </since_tizen>
172             public static readonly int VIEWPORT_SIZE = Interop.RenderTask.RenderTask_Property_VIEWPORT_SIZE_get();
173             /// <since_tizen> 3 </since_tizen>
174             public static readonly int CLEAR_COLOR = Interop.RenderTask.RenderTask_Property_CLEAR_COLOR_get();
175             /// <since_tizen> 3 </since_tizen>
176             public static readonly int REQUIRES_SYNC = Interop.RenderTask.RenderTask_Property_REQUIRES_SYNC_get();
177
178         }
179
180         internal static SWIGTYPE_p_f_r_Dali__Vector2__bool DEFAULT_SCREEN_TO_FRAMEBUFFER_FUNCTION
181         {
182             get
183             {
184                 global::System.IntPtr cPtr = Interop.RenderTask.RenderTask_DEFAULT_SCREEN_TO_FRAMEBUFFER_FUNCTION_get();
185                 SWIGTYPE_p_f_r_Dali__Vector2__bool ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_f_r_Dali__Vector2__bool(cPtr, false);
186                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
187                 return ret;
188             }
189         }
190
191         internal static SWIGTYPE_p_f_r_Dali__Vector2__bool FULLSCREEN_FRAMEBUFFER_FUNCTION
192         {
193             get
194             {
195                 global::System.IntPtr cPtr = Interop.RenderTask.RenderTask_FULLSCREEN_FRAMEBUFFER_FUNCTION_get();
196                 SWIGTYPE_p_f_r_Dali__Vector2__bool ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_f_r_Dali__Vector2__bool(cPtr, false);
197                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
198                 return ret;
199             }
200         }
201
202         public static bool DEFAULT_EXCLUSIVE
203         {
204             get
205             {
206                 bool ret = Interop.RenderTask.RenderTask_DEFAULT_EXCLUSIVE_get();
207                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
208                 return ret;
209             }
210         }
211
212         public static bool DEFAULT_INPUT_ENABLED
213         {
214             get
215             {
216                 bool ret = Interop.RenderTask.RenderTask_DEFAULT_INPUT_ENABLED_get();
217                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
218                 return ret;
219             }
220         }
221
222         public static Vector4 DEFAULT_CLEAR_COLOR
223         {
224             get
225             {
226                 global::System.IntPtr cPtr = Interop.RenderTask.RenderTask_DEFAULT_CLEAR_COLOR_get();
227                 Vector4 ret = (cPtr == global::System.IntPtr.Zero) ? null : new Vector4(cPtr, false);
228                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
229                 return ret;
230             }
231         }
232
233         public static bool DEFAULT_CLEAR_ENABLED
234         {
235             get
236             {
237                 bool ret = Interop.RenderTask.RenderTask_DEFAULT_CLEAR_ENABLED_get();
238                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
239                 return ret;
240             }
241         }
242
243         public static bool DEFAULT_CULL_MODE
244         {
245             get
246             {
247                 bool ret = Interop.RenderTask.RenderTask_DEFAULT_CULL_MODE_get();
248                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
249                 return ret;
250             }
251         }
252
253         public static uint DEFAULT_REFRESH_RATE
254         {
255             get
256             {
257                 uint ret = Interop.RenderTask.RenderTask_DEFAULT_REFRESH_RATE_get();
258                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
259                 return ret;
260             }
261         }
262
263         public RenderTask() : this(Interop.RenderTask.new_RenderTask__SWIG_0(), true)
264         {
265             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
266         }
267
268         public static RenderTask DownCast(BaseHandle handle)
269         {
270             RenderTask ret =  Registry.GetManagedBaseHandleFromNativePtr(handle) as RenderTask;
271             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
272             return ret;
273         }
274
275         public RenderTask(RenderTask handle) : this(Interop.RenderTask.new_RenderTask__SWIG_1(RenderTask.getCPtr(handle)), true)
276         {
277             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
278         }
279
280         public RenderTask Assign(RenderTask rhs)
281         {
282             RenderTask ret = new RenderTask(Interop.RenderTask.RenderTask_Assign(swigCPtr, RenderTask.getCPtr(rhs)), false);
283             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
284             return ret;
285         }
286
287         public void SetSourceView(View view)
288         {
289             Interop.RenderTask.RenderTask_SetSourceActor(swigCPtr, View.getCPtr(view));
290             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
291         }
292
293         public View GetSourceView()
294         {
295             View ret = new View(Interop.RenderTask.RenderTask_GetSourceActor(swigCPtr), true);
296             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
297             return ret;
298         }
299
300         public void SetExclusive(bool exclusive)
301         {
302             Interop.RenderTask.RenderTask_SetExclusive(swigCPtr, exclusive);
303             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
304         }
305
306         public bool IsExclusive()
307         {
308             bool ret = Interop.RenderTask.RenderTask_IsExclusive(swigCPtr);
309             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
310             return ret;
311         }
312
313         public void SetInputEnabled(bool enabled)
314         {
315             Interop.RenderTask.RenderTask_SetInputEnabled(swigCPtr, enabled);
316             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
317         }
318
319         public bool GetInputEnabled()
320         {
321             bool ret = Interop.RenderTask.RenderTask_GetInputEnabled(swigCPtr);
322             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
323             return ret;
324         }
325
326         internal void SetCamera(Camera camera)
327         {
328             Interop.RenderTask.RenderTask_SetCameraActor(swigCPtr, Camera.getCPtr(camera));
329             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
330         }
331
332         internal Camera GetCamera()
333         {
334             Camera ret = new Camera(Interop.RenderTask.RenderTask_GetCameraActor(swigCPtr), true);
335             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
336             return ret;
337         }
338
339         public void SetTargetFrameBuffer(FrameBufferImage frameBuffer)
340         {
341             Interop.RenderTask.RenderTask_SetTargetFrameBuffer(swigCPtr, FrameBufferImage.getCPtr(frameBuffer));
342             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
343         }
344
345         public FrameBufferImage GetTargetFrameBuffer()
346         {
347             FrameBufferImage ret = new FrameBufferImage(Interop.RenderTask.RenderTask_GetTargetFrameBuffer(swigCPtr), true);
348             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
349             return ret;
350         }
351
352         public void SetFrameBuffer(FrameBuffer frameBuffer)
353         {
354             Interop.RenderTask.RenderTask_SetFrameBuffer(swigCPtr, FrameBuffer.getCPtr(frameBuffer));
355             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
356         }
357
358         public FrameBuffer GetFrameBuffer()
359         {
360             FrameBuffer ret = new FrameBuffer(Interop.RenderTask.RenderTask_GetFrameBuffer(swigCPtr), true);
361             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
362             return ret;
363         }
364
365         internal void SetScreenToFrameBufferFunction(SWIGTYPE_p_f_r_Dali__Vector2__bool conversionFunction)
366         {
367             Interop.RenderTask.RenderTask_SetScreenToFrameBufferFunction(swigCPtr, SWIGTYPE_p_f_r_Dali__Vector2__bool.getCPtr(conversionFunction));
368             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
369         }
370
371         internal SWIGTYPE_p_f_r_Dali__Vector2__bool GetScreenToFrameBufferFunction()
372         {
373             global::System.IntPtr cPtr = Interop.RenderTask.RenderTask_GetScreenToFrameBufferFunction(swigCPtr);
374             SWIGTYPE_p_f_r_Dali__Vector2__bool ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_f_r_Dali__Vector2__bool(cPtr, false);
375             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
376             return ret;
377         }
378
379         public void SetScreenToFrameBufferMappingView(View mappingView)
380         {
381             Interop.RenderTask.RenderTask_SetScreenToFrameBufferMappingActor(swigCPtr, View.getCPtr(mappingView));
382             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
383         }
384
385         public View GetScreenToFrameBufferMappingView()
386         {
387             View ret = new View(Interop.RenderTask.RenderTask_GetScreenToFrameBufferMappingActor(swigCPtr), true);
388             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
389             return ret;
390         }
391
392         public void SetViewportPosition(Vector2 position)
393         {
394             Interop.RenderTask.RenderTask_SetViewportPosition(swigCPtr, Vector2.getCPtr(position));
395             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
396         }
397
398         public Vector2 GetCurrentViewportPosition()
399         {
400             Vector2 ret = new Vector2(Interop.RenderTask.RenderTask_GetCurrentViewportPosition(swigCPtr), true);
401             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
402             return ret;
403         }
404
405         public void SetViewportSize(Vector2 size)
406         {
407             Interop.RenderTask.RenderTask_SetViewportSize(swigCPtr, Vector2.getCPtr(size));
408             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
409         }
410
411         public Vector2 GetCurrentViewportSize()
412         {
413             Vector2 ret = new Vector2(Interop.RenderTask.RenderTask_GetCurrentViewportSize(swigCPtr), true);
414             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
415             return ret;
416         }
417
418         public void SetViewport(Rectangle viewport)
419         {
420             Interop.RenderTask.RenderTask_SetViewport(swigCPtr, Rectangle.getCPtr(viewport));
421             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
422         }
423
424         public Rectangle GetViewport()
425         {
426             Rectangle ret = new Rectangle(Interop.RenderTask.RenderTask_GetViewport(swigCPtr), true);
427             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
428             return ret;
429         }
430
431         public void SetClearColor(Vector4 color)
432         {
433             Interop.RenderTask.RenderTask_SetClearColor(swigCPtr, Vector4.getCPtr(color));
434             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
435         }
436
437         public Vector4 GetClearColor()
438         {
439             Vector4 ret = new Vector4(Interop.RenderTask.RenderTask_GetClearColor(swigCPtr), true);
440             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
441             return ret;
442         }
443
444         public void SetClearEnabled(bool enabled)
445         {
446             Interop.RenderTask.RenderTask_SetClearEnabled(swigCPtr, enabled);
447             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
448         }
449
450         public bool GetClearEnabled()
451         {
452             bool ret = Interop.RenderTask.RenderTask_GetClearEnabled(swigCPtr);
453             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
454             return ret;
455         }
456
457         public void SetCullMode(bool cullMode)
458         {
459             Interop.RenderTask.RenderTask_SetCullMode(swigCPtr, cullMode);
460             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
461         }
462
463         public bool GetCullMode()
464         {
465             bool ret = Interop.RenderTask.RenderTask_GetCullMode(swigCPtr);
466             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
467             return ret;
468         }
469
470         public void SetRefreshRate(uint refreshRate)
471         {
472             Interop.RenderTask.RenderTask_SetRefreshRate(swigCPtr, refreshRate);
473             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
474         }
475
476         public uint GetRefreshRate()
477         {
478             uint ret = Interop.RenderTask.RenderTask_GetRefreshRate(swigCPtr);
479             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
480             return ret;
481         }
482
483         public bool WorldToViewport(Vector3 position, out float viewportX, out float viewportY)
484         {
485             bool ret = Interop.RenderTask.RenderTask_WorldToViewport(swigCPtr, Vector3.getCPtr(position), out viewportX, out viewportY);
486             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
487             return ret;
488         }
489
490         public bool ViewportToLocal(View view, float viewportX, float viewportY, out float localX, out float localY)
491         {
492             bool ret = Interop.RenderTask.RenderTask_ViewportToLocal(swigCPtr, View.getCPtr(view), viewportX, viewportY, out localX, out localY);
493             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
494             return ret;
495         }
496
497         internal RenderTaskSignal FinishedSignal()
498         {
499             RenderTaskSignal ret = new RenderTaskSignal(Interop.RenderTask.RenderTask_FinishedSignal(swigCPtr), false);
500             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
501             return ret;
502         }
503
504         /// <since_tizen> 3 </since_tizen>
505         public enum RefreshRate
506         {
507             REFRESH_ONCE = 0,
508             REFRESH_ALWAYS = 1
509         }
510
511         public Vector2 ViewportPosition
512         {
513             get
514             {
515                 Vector2 temp = new Vector2(0.0f, 0.0f);
516                 GetProperty(RenderTask.Property.VIEWPORT_POSITION).Get(temp);
517                 return temp;
518             }
519             set
520             {
521                 SetProperty(RenderTask.Property.VIEWPORT_POSITION, new Tizen.NUI.PropertyValue(value));
522             }
523         }
524         public Vector2 ViewportSize
525         {
526             get
527             {
528                 Vector2 temp = new Vector2(0.0f, 0.0f);
529                 GetProperty(RenderTask.Property.VIEWPORT_SIZE).Get(temp);
530                 return temp;
531             }
532             set
533             {
534                 SetProperty(RenderTask.Property.VIEWPORT_SIZE, new Tizen.NUI.PropertyValue(value));
535             }
536         }
537         public Vector4 ClearColor
538         {
539             get
540             {
541                 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
542                 GetProperty(RenderTask.Property.CLEAR_COLOR).Get(temp);
543                 return temp;
544             }
545             set
546             {
547                 SetProperty(RenderTask.Property.CLEAR_COLOR, new Tizen.NUI.PropertyValue(value));
548             }
549         }
550         public bool RequiresSync
551         {
552             get
553             {
554                 bool temp = false;
555                 GetProperty(RenderTask.Property.REQUIRES_SYNC).Get(out temp);
556                 return temp;
557             }
558             set
559             {
560                 SetProperty(RenderTask.Property.REQUIRES_SYNC, new Tizen.NUI.PropertyValue(value));
561             }
562         }
563
564     }
565
566 }