Merge "Add SetProperty and GetProperty to Visuals." into devel/master
[platform/core/uifw/dali-toolkit.git] / plugins / dali-swig / automatic / csharp / Renderer.cs
1 /** Copyright (c) 2016 Samsung Electronics Co., Ltd.
2 *
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 * http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 *
15 */
16 // This File has been auto-generated by SWIG and then modified using DALi Ruby Scripts
17 //------------------------------------------------------------------------------
18 // <auto-generated />
19 //
20 // This file was automatically generated by SWIG (http://www.swig.org).
21 // Version 3.0.9
22 //
23 // Do not make changes to this file unless you know what you are doing--modify
24 // the SWIG interface file instead.
25 //------------------------------------------------------------------------------
26
27 namespace Dali {
28
29 public class Renderer : Handle {
30   private global::System.Runtime.InteropServices.HandleRef swigCPtr;
31
32   internal Renderer(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.Renderer_SWIGUpcast(cPtr), cMemoryOwn) {
33     swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
34   }
35
36   internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Renderer obj) {
37     return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
38   }
39
40   ~Renderer() {
41     Dispose();
42   }
43
44   public override void Dispose() {
45     lock(this) {
46       if (swigCPtr.Handle != global::System.IntPtr.Zero) {
47         if (swigCMemOwn) {
48           swigCMemOwn = false;
49           NDalicPINVOKE.delete_Renderer(swigCPtr);
50         }
51         swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
52       }
53       global::System.GC.SuppressFinalize(this);
54       base.Dispose();
55     }
56   }
57
58   public class Property : global::System.IDisposable {
59     private global::System.Runtime.InteropServices.HandleRef swigCPtr;
60     protected bool swigCMemOwn;
61   
62     internal Property(global::System.IntPtr cPtr, bool cMemoryOwn) {
63       swigCMemOwn = cMemoryOwn;
64       swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
65     }
66   
67     internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Property obj) {
68       return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
69     }
70   
71     ~Property() {
72       Dispose();
73     }
74   
75     public virtual void Dispose() {
76       lock(this) {
77         if (swigCPtr.Handle != global::System.IntPtr.Zero) {
78           if (swigCMemOwn) {
79             swigCMemOwn = false;
80             NDalicPINVOKE.delete_Renderer_Property(swigCPtr);
81           }
82           swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
83         }
84         global::System.GC.SuppressFinalize(this);
85       }
86     }
87   
88     public Property() : this(NDalicPINVOKE.new_Renderer_Property(), true) {
89       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
90     }
91   
92     public static readonly int DEPTH_INDEX = NDalicPINVOKE.Renderer_Property_DEPTH_INDEX_get();
93     public static readonly int FACE_CULLING_MODE = NDalicPINVOKE.Renderer_Property_FACE_CULLING_MODE_get();
94     public static readonly int BLEND_MODE = NDalicPINVOKE.Renderer_Property_BLEND_MODE_get();
95     public static readonly int BLEND_EQUATION_RGB = NDalicPINVOKE.Renderer_Property_BLEND_EQUATION_RGB_get();
96     public static readonly int BLEND_EQUATION_ALPHA = NDalicPINVOKE.Renderer_Property_BLEND_EQUATION_ALPHA_get();
97     public static readonly int BLEND_FACTOR_SRC_RGB = NDalicPINVOKE.Renderer_Property_BLEND_FACTOR_SRC_RGB_get();
98     public static readonly int BLEND_FACTOR_DEST_RGB = NDalicPINVOKE.Renderer_Property_BLEND_FACTOR_DEST_RGB_get();
99     public static readonly int BLEND_FACTOR_SRC_ALPHA = NDalicPINVOKE.Renderer_Property_BLEND_FACTOR_SRC_ALPHA_get();
100     public static readonly int BLEND_FACTOR_DEST_ALPHA = NDalicPINVOKE.Renderer_Property_BLEND_FACTOR_DEST_ALPHA_get();
101     public static readonly int BLEND_COLOR = NDalicPINVOKE.Renderer_Property_BLEND_COLOR_get();
102     public static readonly int BLEND_PRE_MULTIPLIED_ALPHA = NDalicPINVOKE.Renderer_Property_BLEND_PRE_MULTIPLIED_ALPHA_get();
103     public static readonly int INDEX_RANGE_FIRST = NDalicPINVOKE.Renderer_Property_INDEX_RANGE_FIRST_get();
104     public static readonly int INDEX_RANGE_COUNT = NDalicPINVOKE.Renderer_Property_INDEX_RANGE_COUNT_get();
105     public static readonly int DEPTH_WRITE_MODE = NDalicPINVOKE.Renderer_Property_DEPTH_WRITE_MODE_get();
106     public static readonly int DEPTH_FUNCTION = NDalicPINVOKE.Renderer_Property_DEPTH_FUNCTION_get();
107     public static readonly int DEPTH_TEST_MODE = NDalicPINVOKE.Renderer_Property_DEPTH_TEST_MODE_get();
108     public static readonly int RENDER_MODE = NDalicPINVOKE.Renderer_Property_RENDER_MODE_get();
109     public static readonly int STENCIL_FUNCTION = NDalicPINVOKE.Renderer_Property_STENCIL_FUNCTION_get();
110     public static readonly int STENCIL_FUNCTION_MASK = NDalicPINVOKE.Renderer_Property_STENCIL_FUNCTION_MASK_get();
111     public static readonly int STENCIL_FUNCTION_REFERENCE = NDalicPINVOKE.Renderer_Property_STENCIL_FUNCTION_REFERENCE_get();
112     public static readonly int STENCIL_MASK = NDalicPINVOKE.Renderer_Property_STENCIL_MASK_get();
113     public static readonly int STENCIL_OPERATION_ON_FAIL = NDalicPINVOKE.Renderer_Property_STENCIL_OPERATION_ON_FAIL_get();
114     public static readonly int STENCIL_OPERATION_ON_Z_FAIL = NDalicPINVOKE.Renderer_Property_STENCIL_OPERATION_ON_Z_FAIL_get();
115     public static readonly int STENCIL_OPERATION_ON_Z_PASS = NDalicPINVOKE.Renderer_Property_STENCIL_OPERATION_ON_Z_PASS_get();
116     public static readonly int BATCHING_ENABLED = NDalicPINVOKE.Renderer_Property_BATCHING_ENABLED_get();
117   
118   }
119
120   public Renderer (Geometry geometry, Shader shader) : this (NDalicPINVOKE.Renderer_New(Geometry.getCPtr(geometry), Shader.getCPtr(shader)), true) {
121       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
122
123   }
124   public Renderer(Renderer handle) : this(NDalicPINVOKE.new_Renderer__SWIG_1(Renderer.getCPtr(handle)), true) {
125     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
126   }
127
128   public new static Renderer DownCast(BaseHandle handle) {
129     Renderer ret = new Renderer(NDalicPINVOKE.Renderer_DownCast(BaseHandle.getCPtr(handle)), true);
130     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
131     return ret;
132   }
133
134   public Renderer Assign(Renderer handle) {
135     Renderer ret = new Renderer(NDalicPINVOKE.Renderer_Assign(swigCPtr, Renderer.getCPtr(handle)), false);
136     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
137     return ret;
138   }
139
140   public void SetGeometry(Geometry geometry) {
141     NDalicPINVOKE.Renderer_SetGeometry(swigCPtr, Geometry.getCPtr(geometry));
142     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
143   }
144
145   public Geometry GetGeometry() {
146     Geometry ret = new Geometry(NDalicPINVOKE.Renderer_GetGeometry(swigCPtr), true);
147     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
148     return ret;
149   }
150
151   public void SetIndexRange(int firstElement, int elementsCount) {
152     NDalicPINVOKE.Renderer_SetIndexRange(swigCPtr, firstElement, elementsCount);
153     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
154   }
155
156   public void SetTextures(TextureSet textureSet) {
157     NDalicPINVOKE.Renderer_SetTextures(swigCPtr, TextureSet.getCPtr(textureSet));
158     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
159   }
160
161   public TextureSet GetTextures() {
162     TextureSet ret = new TextureSet(NDalicPINVOKE.Renderer_GetTextures(swigCPtr), true);
163     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
164     return ret;
165   }
166
167   public void SetShader(Shader shader) {
168     NDalicPINVOKE.Renderer_SetShader(swigCPtr, Shader.getCPtr(shader));
169     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
170   }
171
172   public Shader GetShader() {
173     Shader ret = new Shader(NDalicPINVOKE.Renderer_GetShader(swigCPtr), true);
174     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
175     return ret;
176   }
177
178   public int DepthIndex 
179   { 
180     get 
181     {
182       int temp = 0;
183       GetProperty( Renderer.Property.DEPTH_INDEX).Get( ref temp );
184       return temp;
185     }
186     set 
187     { 
188       SetProperty( Renderer.Property.DEPTH_INDEX, new Dali.Property.Value( value ) );
189     }
190   }
191   public int FaceCullingMode 
192   { 
193     get 
194     {
195       int temp = 0;
196       GetProperty( Renderer.Property.FACE_CULLING_MODE).Get( ref temp );
197       return temp;
198     }
199     set 
200     { 
201       SetProperty( Renderer.Property.FACE_CULLING_MODE, new Dali.Property.Value( value ) );
202     }
203   }
204   public int BlendMode 
205   { 
206     get 
207     {
208       int temp = 0;
209       GetProperty( Renderer.Property.BLEND_MODE).Get( ref temp );
210       return temp;
211     }
212     set 
213     { 
214       SetProperty( Renderer.Property.BLEND_MODE, new Dali.Property.Value( value ) );
215     }
216   }
217   public int BlendEquationRgb 
218   { 
219     get 
220     {
221       int temp = 0;
222       GetProperty( Renderer.Property.BLEND_EQUATION_RGB).Get( ref temp );
223       return temp;
224     }
225     set 
226     { 
227       SetProperty( Renderer.Property.BLEND_EQUATION_RGB, new Dali.Property.Value( value ) );
228     }
229   }
230   public int BlendEquationAlpha 
231   { 
232     get 
233     {
234       int temp = 0;
235       GetProperty( Renderer.Property.BLEND_EQUATION_ALPHA).Get( ref temp );
236       return temp;
237     }
238     set 
239     { 
240       SetProperty( Renderer.Property.BLEND_EQUATION_ALPHA, new Dali.Property.Value( value ) );
241     }
242   }
243   public int BlendFactorSrcRgb 
244   { 
245     get 
246     {
247       int temp = 0;
248       GetProperty( Renderer.Property.BLEND_FACTOR_SRC_RGB).Get( ref temp );
249       return temp;
250     }
251     set 
252     { 
253       SetProperty( Renderer.Property.BLEND_FACTOR_SRC_RGB, new Dali.Property.Value( value ) );
254     }
255   }
256   public int BlendFactorDestRgb 
257   { 
258     get 
259     {
260       int temp = 0;
261       GetProperty( Renderer.Property.BLEND_FACTOR_DEST_RGB).Get( ref temp );
262       return temp;
263     }
264     set 
265     { 
266       SetProperty( Renderer.Property.BLEND_FACTOR_DEST_RGB, new Dali.Property.Value( value ) );
267     }
268   }
269   public int BlendFactorSrcAlpha 
270   { 
271     get 
272     {
273       int temp = 0;
274       GetProperty( Renderer.Property.BLEND_FACTOR_SRC_ALPHA).Get( ref temp );
275       return temp;
276     }
277     set 
278     { 
279       SetProperty( Renderer.Property.BLEND_FACTOR_SRC_ALPHA, new Dali.Property.Value( value ) );
280     }
281   }
282   public int BlendFactorDestAlpha 
283   { 
284     get 
285     {
286       int temp = 0;
287       GetProperty( Renderer.Property.BLEND_FACTOR_DEST_ALPHA).Get( ref temp );
288       return temp;
289     }
290     set 
291     { 
292       SetProperty( Renderer.Property.BLEND_FACTOR_DEST_ALPHA, new Dali.Property.Value( value ) );
293     }
294   }
295   public Vector4 BlendColor 
296   { 
297     get 
298     {
299       Vector4 temp = new Vector4(0.0f,0.0f,0.0f,0.0f);
300       GetProperty( Renderer.Property.BLEND_COLOR).Get(  temp );
301       return temp;
302     }
303     set 
304     { 
305       SetProperty( Renderer.Property.BLEND_COLOR, new Dali.Property.Value( value ) );
306     }
307   }
308   public bool BlendPreMultipliedAlpha 
309   { 
310     get 
311     {
312       bool temp = false;
313       GetProperty( Renderer.Property.BLEND_PRE_MULTIPLIED_ALPHA).Get( ref temp );
314       return temp;
315     }
316     set 
317     { 
318       SetProperty( Renderer.Property.BLEND_PRE_MULTIPLIED_ALPHA, new Dali.Property.Value( value ) );
319     }
320   }
321   public int IndexRangeFirst 
322   { 
323     get 
324     {
325       int temp = 0;
326       GetProperty( Renderer.Property.INDEX_RANGE_FIRST).Get( ref temp );
327       return temp;
328     }
329     set 
330     { 
331       SetProperty( Renderer.Property.INDEX_RANGE_FIRST, new Dali.Property.Value( value ) );
332     }
333   }
334   public int IndexRangeCount 
335   { 
336     get 
337     {
338       int temp = 0;
339       GetProperty( Renderer.Property.INDEX_RANGE_COUNT).Get( ref temp );
340       return temp;
341     }
342     set 
343     { 
344       SetProperty( Renderer.Property.INDEX_RANGE_COUNT, new Dali.Property.Value( value ) );
345     }
346   }
347   public int DepthWriteMode 
348   { 
349     get 
350     {
351       int temp = 0;
352       GetProperty( Renderer.Property.DEPTH_WRITE_MODE).Get( ref temp );
353       return temp;
354     }
355     set 
356     { 
357       SetProperty( Renderer.Property.DEPTH_WRITE_MODE, new Dali.Property.Value( value ) );
358     }
359   }
360   public int DepthFunction 
361   { 
362     get 
363     {
364       int temp = 0;
365       GetProperty( Renderer.Property.DEPTH_FUNCTION).Get( ref temp );
366       return temp;
367     }
368     set 
369     { 
370       SetProperty( Renderer.Property.DEPTH_FUNCTION, new Dali.Property.Value( value ) );
371     }
372   }
373   public int DepthTestMode 
374   { 
375     get 
376     {
377       int temp = 0;
378       GetProperty( Renderer.Property.DEPTH_TEST_MODE).Get( ref temp );
379       return temp;
380     }
381     set 
382     { 
383       SetProperty( Renderer.Property.DEPTH_TEST_MODE, new Dali.Property.Value( value ) );
384     }
385   }
386   public int RenderMode 
387   { 
388     get 
389     {
390       int temp = 0;
391       GetProperty( Renderer.Property.RENDER_MODE).Get( ref temp );
392       return temp;
393     }
394     set 
395     { 
396       SetProperty( Renderer.Property.RENDER_MODE, new Dali.Property.Value( value ) );
397     }
398   }
399   public int StencilFunction 
400   { 
401     get 
402     {
403       int temp = 0;
404       GetProperty( Renderer.Property.STENCIL_FUNCTION).Get( ref temp );
405       return temp;
406     }
407     set 
408     { 
409       SetProperty( Renderer.Property.STENCIL_FUNCTION, new Dali.Property.Value( value ) );
410     }
411   }
412   public int StencilFunctionMask 
413   { 
414     get 
415     {
416       int temp = 0;
417       GetProperty( Renderer.Property.STENCIL_FUNCTION_MASK).Get( ref temp );
418       return temp;
419     }
420     set 
421     { 
422       SetProperty( Renderer.Property.STENCIL_FUNCTION_MASK, new Dali.Property.Value( value ) );
423     }
424   }
425   public int StencilFunctionReference 
426   { 
427     get 
428     {
429       int temp = 0;
430       GetProperty( Renderer.Property.STENCIL_FUNCTION_REFERENCE).Get( ref temp );
431       return temp;
432     }
433     set 
434     { 
435       SetProperty( Renderer.Property.STENCIL_FUNCTION_REFERENCE, new Dali.Property.Value( value ) );
436     }
437   }
438   public int StencilMask 
439   { 
440     get 
441     {
442       int temp = 0;
443       GetProperty( Renderer.Property.STENCIL_MASK).Get( ref temp );
444       return temp;
445     }
446     set 
447     { 
448       SetProperty( Renderer.Property.STENCIL_MASK, new Dali.Property.Value( value ) );
449     }
450   }
451   public int StencilOperationOnFail 
452   { 
453     get 
454     {
455       int temp = 0;
456       GetProperty( Renderer.Property.STENCIL_OPERATION_ON_FAIL).Get( ref temp );
457       return temp;
458     }
459     set 
460     { 
461       SetProperty( Renderer.Property.STENCIL_OPERATION_ON_FAIL, new Dali.Property.Value( value ) );
462     }
463   }
464   public int StencilOperationOnZFail 
465   { 
466     get 
467     {
468       int temp = 0;
469       GetProperty( Renderer.Property.STENCIL_OPERATION_ON_Z_FAIL).Get( ref temp );
470       return temp;
471     }
472     set 
473     { 
474       SetProperty( Renderer.Property.STENCIL_OPERATION_ON_Z_FAIL, new Dali.Property.Value( value ) );
475     }
476   }
477   public int StencilOperationOnZPass 
478   { 
479     get 
480     {
481       int temp = 0;
482       GetProperty( Renderer.Property.STENCIL_OPERATION_ON_Z_PASS).Get( ref temp );
483       return temp;
484     }
485     set 
486     { 
487       SetProperty( Renderer.Property.STENCIL_OPERATION_ON_Z_PASS, new Dali.Property.Value( value ) );
488     }
489   }
490   public bool BatchingEnabled 
491   { 
492     get 
493     {
494       bool temp = false;
495       GetProperty( Renderer.Property.BATCHING_ENABLED).Get( ref temp );
496       return temp;
497     }
498     set 
499     { 
500       SetProperty( Renderer.Property.BATCHING_ENABLED, new Dali.Property.Value( value ) );
501     }
502   }
503
504 }
505
506 }