2 * Copyright (c) 2016 Samsung Electronics Co., Ltd.
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
18 %define PUSHBUTTON_PROPERTIES_HELPER(NameSpace, ClassName)
19 %typemap(cscode) NameSpace::ClassName %{
21 /* Properties earlier added by Ruby Script */
23 public string UnselectedIcon
28 GetProperty( PushButton.Property.UNSELECTED_ICON).Get( out temp );
33 SetProperty( PushButton.Property.UNSELECTED_ICON, new Dali.Property.Value( value ) );
36 public string SelectedIcon
41 GetProperty( PushButton.Property.SELECTED_ICON).Get( out temp );
46 SetProperty( PushButton.Property.SELECTED_ICON, new Dali.Property.Value( value ) );
49 public string IconAlignment
54 GetProperty( PushButton.Property.ICON_ALIGNMENT).Get( out temp );
59 SetProperty( PushButton.Property.ICON_ALIGNMENT, new Dali.Property.Value( value ) );
62 public string LabelPadding
67 GetProperty( PushButton.Property.LABEL_PADDING).Get( out temp );
72 SetProperty( PushButton.Property.LABEL_PADDING, new Dali.Property.Value( value ) );
75 public string IconPadding
80 GetProperty( PushButton.Property.ICON_PADDING).Get( out temp );
85 SetProperty( PushButton.Property.ICON_PADDING, new Dali.Property.Value( value ) );
97 PUSHBUTTON_PROPERTIES_HELPER(Dali::Toolkit, PushButton);