dd930b4e53e923277a26d103f9d24692a6084cd4
[platform/core/uifw/dali-toolkit.git] / plugins / dali-swig / SWIG / linearConstrainer.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 LINEARCONSTRAINER_PROPERTIES_HELPER(NameSpace, ClassName)
19 %typemap(cscode) NameSpace::ClassName %{
20
21 /* Properties earlier added by Ruby Script */
22
23   public Dali.Property.Array Value
24   {
25     get
26     {
27       Dali.Property.Array temp = new Dali.Property.Array();
28       GetProperty( LinearConstrainer.Property.VALUE).Get(  temp );
29       return temp;
30     }
31     set
32     {
33       SetProperty( LinearConstrainer.Property.VALUE, new Dali.Property.Value( value ) );
34     }
35   }
36   public Dali.Property.Array Progress
37   {
38     get
39     {
40       Dali.Property.Array temp = new Dali.Property.Array();
41       GetProperty( LinearConstrainer.Property.PROGRESS).Get(  temp );
42       return temp;
43     }
44     set
45     {
46       SetProperty( LinearConstrainer.Property.PROGRESS, new Dali.Property.Value( value ) );
47     }
48   }
49
50
51 /* Properties ends */
52
53 %}
54 %enddef
55
56 namespace Dali
57 {
58   LINEARCONSTRAINER_PROPERTIES_HELPER(Dali, LinearConstrainer);
59 }