5f437f89bf252c1ce09f00e478cd4b7ba4ba7868
[platform/core/uifw/dali-toolkit.git] / plugins / dali-swig / SWIG / pushButton.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 PUSHBUTTON_PROPERTIES_HELPER(NameSpace, ClassName)
19 %typemap(cscode) NameSpace::ClassName %{
20
21 /* Properties earlier added by Ruby Script */
22
23   public string UnselectedIcon
24   {
25     get
26     {
27       string temp;
28       GetProperty( PushButton.Property.UNSELECTED_ICON).Get( out temp );
29       return temp;
30     }
31     set
32     {
33       SetProperty( PushButton.Property.UNSELECTED_ICON, new Dali.Property.Value( value ) );
34     }
35   }
36   public string SelectedIcon
37   {
38     get
39     {
40       string temp;
41       GetProperty( PushButton.Property.SELECTED_ICON).Get( out temp );
42       return temp;
43     }
44     set
45     {
46       SetProperty( PushButton.Property.SELECTED_ICON, new Dali.Property.Value( value ) );
47     }
48   }
49   public string IconAlignment
50   {
51     get
52     {
53       string temp;
54       GetProperty( PushButton.Property.ICON_ALIGNMENT).Get( out temp );
55       return temp;
56     }
57     set
58     {
59       SetProperty( PushButton.Property.ICON_ALIGNMENT, new Dali.Property.Value( value ) );
60     }
61   }
62   public string LabelPadding
63   {
64     get
65     {
66       string temp;
67       GetProperty( PushButton.Property.LABEL_PADDING).Get( out temp );
68       return temp;
69     }
70     set
71     {
72       SetProperty( PushButton.Property.LABEL_PADDING, new Dali.Property.Value( value ) );
73     }
74   }
75   public string IconPadding
76   {
77     get
78     {
79       string temp;
80       GetProperty( PushButton.Property.ICON_PADDING).Get( out temp );
81       return temp;
82     }
83     set
84     {
85       SetProperty( PushButton.Property.ICON_PADDING, new Dali.Property.Value( value ) );
86     }
87   }
88
89
90 /* Properties ends */
91
92 %}
93 %enddef
94
95 namespace Dali
96 {
97   PUSHBUTTON_PROPERTIES_HELPER(Dali::Toolkit, PushButton);
98 }