Merge "DALi Version 1.2.40" into devel/master
[platform/core/uifw/dali-toolkit.git] / plugins / dali-swig / SWIG / devel-properties.i
1 /*
2  * Copyright (c) 2017 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 %pragma(csharp) modulecode=%{
19   public static readonly int VISUAL_PROPERTY_TRANSFORM = NDalicManualPINVOKE.Visual_Property_TRANSFORM_get();
20   public static readonly int VISUAL_PROPERTY_PREMULTIPLIED_ALPHA = NDalicManualPINVOKE.Visual_Property_PREMULTIPLIED_ALPHA_get();
21   public static readonly int VISUAL_PROPERTY_MIX_COLOR = NDalicManualPINVOKE.Visual_Property_MIX_COLOR_get();
22   public static readonly int IMAGE_VISUAL_BORDER = NDalicManualPINVOKE.Image_Visual_BORDER_get();
23 %}
24
25 %typemap(cscode) Dali::Toolkit::Visual::Type %{
26   ,
27   TEXT,
28   N_PATCH,
29   SVG,
30   ANIMATED_IMAGE
31 %}
32
33 %typemap(cscode) Dali::Actor::Property %{
34   public static readonly int SIBLING_ORDER = NDalicManualPINVOKE.Actor_Property_SIBLING_ORDER_get();
35   public static readonly int OPACITY = NDalicManualPINVOKE.Actor_Property_OPACITY_get();
36   public static readonly int SCREEN_POSITION = NDalicManualPINVOKE.Actor_Property_SCREEN_POSITION_get();
37   public static readonly int POSITION_USES_ANCHOR_POINT = NDalicManualPINVOKE.Actor_Property_POSITION_USES_ANCHOR_POINT_get();
38 %}
39
40 %typemap(cscode) Dali::Toolkit::Control::Property %{
41   public static readonly int TOOLTIP = NDalicManualPINVOKE.View_Property_TOOLTIP_get();
42   public static readonly int STATE = NDalicManualPINVOKE.View_Property_STATE_get();
43   public static readonly int SUB_STATE = NDalicManualPINVOKE.View_Property_SUB_STATE_get();
44 %}
45
46 %typemap(cscode) Dali::Toolkit::ItemView::Property %{
47   public static readonly int LAYOUT = NDalicManualPINVOKE.ItemView_Property_LAYOUT_get();
48 %}
49
50 %typemap(cscode) Dali::Toolkit::ItemView %{
51   public Dali.Property.Array Layout
52   {
53     get
54     {
55       Dali.Property.Array temp = new Dali.Property.Array();
56       GetProperty( ItemView.Property.LAYOUT).Get( temp );
57       return temp;
58     }
59     set
60     {
61       SetProperty( ItemView.Property.LAYOUT, new Dali.Property.Value( value ) );
62     }
63   }
64 %}
65
66 %typemap(cscode) Dali::Toolkit::Button::Property %{
67   public static readonly int UNSELECTED_VISUAL = NDalicManualPINVOKE.Button_Property_UNSELECTED_VISUAL_get();
68   public static readonly int SELECTED_VISUAL = NDalicManualPINVOKE.Button_Property_SELECTED_VISUAL_get();
69   public static readonly int DISABLED_SELECTED_VISUAL = NDalicManualPINVOKE.Button_Property_DISABLED_SELECTED_VISUAL_get();
70   public static readonly int DISABLED_UNSELECTED_VISUAL = NDalicManualPINVOKE.Button_Property_DISABLED_UNSELECTED_VISUAL_get();
71   public static readonly int UNSELECTED_BACKGROUND_VISUAL = NDalicManualPINVOKE.Button_Property_UNSELECTED_BACKGROUND_VISUAL_get();
72   public static readonly int SELECTED_BACKGROUND_VISUAL = NDalicManualPINVOKE.Button_Property_SELECTED_BACKGROUND_VISUAL_get();
73   public static readonly int DISABLED_UNSELECTED_BACKGROUND_VISUAL = NDalicManualPINVOKE.Button_Property_DISABLED_UNSELECTED_BACKGROUND_VISUAL_get();
74   public static readonly int DISABLED_SELECTED_BACKGROUND_VISUAL = NDalicManualPINVOKE.Button_Property_DISABLED_SELECTED_BACKGROUND_VISUAL_get();
75   public static readonly int LABEL_RELATIVE_ALIGNMENT = NDalicManualPINVOKE.Button_Property_LABEL_RELATIVE_ALIGNMENT_get();
76   public static readonly int LABEL_PADDING = NDalicManualPINVOKE.Button_Property_LABEL_PADDING_get();
77   public static readonly int VISUAL_PADDING = NDalicManualPINVOKE.Button_Property_VISUAL_PADDING_get();
78 %}
79