90df543fa6c1706ee862efe4559645ac4feb8776
[platform/core/uifw/dali-toolkit.git] / plugins / dali-swig / SWIG / pathConstrainer.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 PATHCONSTRAINER_PROPERTIES_HELPER(NameSpace, ClassName)
19 %typemap(cscode) NameSpace::ClassName %{
20
21 /* Properties earlier added by Ruby Script */
22
23   public Dali.CSharp.Position Forward
24   {
25     get
26     {
27       Vector3 temp = new Vector3(0.0f,0.0f,0.0f);
28       GetProperty( PathConstrainer.Property.FORWARD).Get(  temp );
29       Dali.CSharp.Position ret = new Dali.CSharp.Position(temp.x, temp.y, temp.z);
30       return ret;
31     }
32     set
33     {
34       SetProperty( PathConstrainer.Property.FORWARD, new Dali.Property.Value( value ) );
35     }
36   }
37   public Dali.Property.Array Points
38   {
39     get
40     {
41       Dali.Property.Array temp = new Dali.Property.Array();
42       GetProperty( PathConstrainer.Property.POINTS).Get(  temp );
43       return temp;
44     }
45     set
46     {
47       SetProperty( PathConstrainer.Property.POINTS, new Dali.Property.Value( value ) );
48     }
49   }
50   public Dali.Property.Array ControlPoints
51   {
52     get
53     {
54       Dali.Property.Array temp = new Dali.Property.Array();
55       GetProperty( PathConstrainer.Property.CONTROL_POINTS).Get(  temp );
56       return temp;
57     }
58     set
59     {
60       SetProperty( PathConstrainer.Property.CONTROL_POINTS, new Dali.Property.Value( value ) );
61     }
62   }
63
64 /* Properties ends */
65
66 %}
67 %enddef
68
69 namespace Dali
70 {
71   PATHCONSTRAINER_PROPERTIES_HELPER(Dali, PathConstrainer);
72 }