DALi C# binding - Write pure C# Color & Position classes and use typemaps to do the...
[platform/core/uifw/dali-toolkit.git] / plugins / dali-swig / SWIG / path.i
1 /*
2  * Copyright (c) 2016 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 %define PATH_PROPERTIES_HELPER(NameSpace, ClassName)
19 %typemap(cscode) NameSpace::ClassName %{
20
21 /* Properties earlier added by Ruby Script */
22
23   public Dali.Property.Array Points
24   {
25     get
26     {
27       Dali.Property.Array temp = new Dali.Property.Array();
28       GetProperty( Path.Property.POINTS).Get(  temp );
29       return temp;
30     }
31     set
32     {
33       SetProperty( Path.Property.POINTS, new Dali.Property.Value( value ) );
34     }
35   }
36   public Dali.Property.Array ControlPoints
37   {
38     get
39     {
40       Dali.Property.Array temp = new Dali.Property.Array();
41       GetProperty( Path.Property.CONTROL_POINTS).Get(  temp );
42       return temp;
43     }
44     set
45     {
46       SetProperty( Path.Property.CONTROL_POINTS, new Dali.Property.Value( value ) );
47     }
48   }
49
50 /* Properties ends */
51
52 %}
53 %enddef
54
55 namespace Dali
56 {
57   PATH_PROPERTIES_HELPER(Dali, Path);
58 }