1 //------------------------------------------------------------------------------
4 // This file was automatically generated by SWIG (http://www.swig.org).
7 // Do not make changes to this file unless you know what you are doing--modify
8 // the SWIG interface file instead.
9 //------------------------------------------------------------------------------
13 public class RenderTask : Handle {
14 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
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);
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;
28 public override void Dispose() {
30 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
33 NDalicPINVOKE.delete_RenderTask(swigCPtr);
35 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
37 global::System.GC.SuppressFinalize(this);
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();
48 public class Property : global::System.IDisposable {
49 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
50 protected bool swigCMemOwn;
52 internal Property(global::System.IntPtr cPtr, bool cMemoryOwn) {
53 swigCMemOwn = cMemoryOwn;
54 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
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;
65 public virtual void Dispose() {
67 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
70 NDalicPINVOKE.delete_RenderTask_Property(swigCPtr);
72 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
74 global::System.GC.SuppressFinalize(this);
78 public Property() : this(NDalicPINVOKE.new_RenderTask_Property(), true) {
79 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
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();
89 public static SWIGTYPE_p_f_r_Dali__Vector2__bool DEFAULT_SCREEN_TO_FRAMEBUFFER_FUNCTION {
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();
98 public static SWIGTYPE_p_f_r_Dali__Vector2__bool FULLSCREEN_FRAMEBUFFER_FUNCTION {
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();
107 public static bool DEFAULT_EXCLUSIVE {
109 bool ret = NDalicPINVOKE.RenderTask_DEFAULT_EXCLUSIVE_get();
110 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
115 public static bool DEFAULT_INPUT_ENABLED {
117 bool ret = NDalicPINVOKE.RenderTask_DEFAULT_INPUT_ENABLED_get();
118 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
123 public static Vector4 DEFAULT_CLEAR_COLOR {
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();
132 public static bool DEFAULT_CLEAR_ENABLED {
134 bool ret = NDalicPINVOKE.RenderTask_DEFAULT_CLEAR_ENABLED_get();
135 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
140 public static bool DEFAULT_CULL_MODE {
142 bool ret = NDalicPINVOKE.RenderTask_DEFAULT_CULL_MODE_get();
143 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
148 public static uint DEFAULT_REFRESH_RATE {
150 uint ret = NDalicPINVOKE.RenderTask_DEFAULT_REFRESH_RATE_get();
151 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
156 public RenderTask() : this(NDalicPINVOKE.new_RenderTask__SWIG_0(), true) {
157 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
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();
166 public RenderTask(RenderTask handle) : this(NDalicPINVOKE.new_RenderTask__SWIG_1(RenderTask.getCPtr(handle)), true) {
167 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
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();
176 public void SetSourceActor(Actor actor) {
177 NDalicPINVOKE.RenderTask_SetSourceActor(swigCPtr, Actor.getCPtr(actor));
178 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
181 public Actor GetSourceActor() {
182 Actor ret = new Actor(NDalicPINVOKE.RenderTask_GetSourceActor(swigCPtr), true);
183 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
187 public void SetExclusive(bool exclusive) {
188 NDalicPINVOKE.RenderTask_SetExclusive(swigCPtr, exclusive);
189 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
192 public bool IsExclusive() {
193 bool ret = NDalicPINVOKE.RenderTask_IsExclusive(swigCPtr);
194 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
198 public void SetInputEnabled(bool enabled) {
199 NDalicPINVOKE.RenderTask_SetInputEnabled(swigCPtr, enabled);
200 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
203 public bool GetInputEnabled() {
204 bool ret = NDalicPINVOKE.RenderTask_GetInputEnabled(swigCPtr);
205 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
209 public void SetCameraActor(CameraActor cameraActor) {
210 NDalicPINVOKE.RenderTask_SetCameraActor(swigCPtr, CameraActor.getCPtr(cameraActor));
211 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
214 public CameraActor GetCameraActor() {
215 CameraActor ret = new CameraActor(NDalicPINVOKE.RenderTask_GetCameraActor(swigCPtr), true);
216 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
220 public void SetTargetFrameBuffer(FrameBufferImage frameBuffer) {
221 NDalicPINVOKE.RenderTask_SetTargetFrameBuffer(swigCPtr, FrameBufferImage.getCPtr(frameBuffer));
222 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
225 public FrameBufferImage GetTargetFrameBuffer() {
226 FrameBufferImage ret = new FrameBufferImage(NDalicPINVOKE.RenderTask_GetTargetFrameBuffer(swigCPtr), true);
227 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
231 public void SetFrameBuffer(FrameBuffer frameBuffer) {
232 NDalicPINVOKE.RenderTask_SetFrameBuffer(swigCPtr, FrameBuffer.getCPtr(frameBuffer));
233 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
236 public FrameBuffer GetFrameBuffer() {
237 FrameBuffer ret = new FrameBuffer(NDalicPINVOKE.RenderTask_GetFrameBuffer(swigCPtr), true);
238 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
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();
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();
254 public void SetScreenToFrameBufferMappingActor(Actor mappingActor) {
255 NDalicPINVOKE.RenderTask_SetScreenToFrameBufferMappingActor(swigCPtr, Actor.getCPtr(mappingActor));
256 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
259 public Actor GetScreenToFrameBufferMappingActor() {
260 Actor ret = new Actor(NDalicPINVOKE.RenderTask_GetScreenToFrameBufferMappingActor(swigCPtr), true);
261 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
265 public void SetViewportPosition(Vector2 position) {
266 NDalicPINVOKE.RenderTask_SetViewportPosition(swigCPtr, Vector2.getCPtr(position));
267 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
270 public Vector2 GetCurrentViewportPosition() {
271 Vector2 ret = new Vector2(NDalicPINVOKE.RenderTask_GetCurrentViewportPosition(swigCPtr), true);
272 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
276 public void SetViewportSize(Vector2 size) {
277 NDalicPINVOKE.RenderTask_SetViewportSize(swigCPtr, Vector2.getCPtr(size));
278 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
281 public Vector2 GetCurrentViewportSize() {
282 Vector2 ret = new Vector2(NDalicPINVOKE.RenderTask_GetCurrentViewportSize(swigCPtr), true);
283 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
287 public void SetViewport(RectInteger viewport) {
288 NDalicPINVOKE.RenderTask_SetViewport(swigCPtr, RectInteger.getCPtr(viewport));
289 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
292 public RectInteger GetViewport() {
293 RectInteger ret = new RectInteger(NDalicPINVOKE.RenderTask_GetViewport(swigCPtr), true);
294 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
298 public void SetClearColor(Vector4 color) {
299 NDalicPINVOKE.RenderTask_SetClearColor(swigCPtr, Vector4.getCPtr(color));
300 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
303 public Vector4 GetClearColor() {
304 Vector4 ret = new Vector4(NDalicPINVOKE.RenderTask_GetClearColor(swigCPtr), true);
305 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
309 public void SetClearEnabled(bool enabled) {
310 NDalicPINVOKE.RenderTask_SetClearEnabled(swigCPtr, enabled);
311 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
314 public bool GetClearEnabled() {
315 bool ret = NDalicPINVOKE.RenderTask_GetClearEnabled(swigCPtr);
316 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
320 public void SetCullMode(bool cullMode) {
321 NDalicPINVOKE.RenderTask_SetCullMode(swigCPtr, cullMode);
322 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
325 public bool GetCullMode() {
326 bool ret = NDalicPINVOKE.RenderTask_GetCullMode(swigCPtr);
327 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
331 public void SetRefreshRate(uint refreshRate) {
332 NDalicPINVOKE.RenderTask_SetRefreshRate(swigCPtr, refreshRate);
333 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
336 public uint GetRefreshRate() {
337 uint ret = NDalicPINVOKE.RenderTask_GetRefreshRate(swigCPtr);
338 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
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();
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();
354 public RenderTaskSignal FinishedSignal() {
355 RenderTaskSignal ret = new RenderTaskSignal(NDalicPINVOKE.RenderTask_FinishedSignal(swigCPtr), false);
356 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
360 public enum RefreshRate {
365 public Vector2 ViewportPosition
369 Vector2 temp = new Vector2(0.0f,0.0f);
370 GetProperty( RenderTask.Property.VIEWPORT_POSITION).Get( temp );
375 SetProperty( RenderTask.Property.VIEWPORT_POSITION, new Dali.Property.Value( value ) );
378 public Vector2 ViewportSize
382 Vector2 temp = new Vector2(0.0f,0.0f);
383 GetProperty( RenderTask.Property.VIEWPORT_SIZE).Get( temp );
388 SetProperty( RenderTask.Property.VIEWPORT_SIZE, new Dali.Property.Value( value ) );
391 public Vector4 ClearColor
395 Vector4 temp = new Vector4(0.0f,0.0f,0.0f,0.0f);
396 GetProperty( RenderTask.Property.CLEAR_COLOR).Get( temp );
401 SetProperty( RenderTask.Property.CLEAR_COLOR, new Dali.Property.Value( value ) );
404 public bool RequiresSync
409 GetProperty( RenderTask.Property.REQUIRES_SYNC).Get( ref temp );
414 SetProperty( RenderTask.Property.REQUIRES_SYNC, new Dali.Property.Value( value ) );