9cd8714ee2c0bbd7c0e8e23d76e3aac2ef388755
[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 %typemap(cscode) Dali::Actor::Property %{
19   public static readonly int BATCH_PARENT = NDalicManualPINVOKE.Actor_Property_BATCH_PARENT_get();
20   public static readonly int SIBLING_ORDER = NDalicManualPINVOKE.Actor_Property_SIBLING_ORDER_get();
21 %}
22
23 %typemap(cscode) Dali::Renderer::Property %{
24   public static readonly int BATCHING_ENABLED = NDalicManualPINVOKE.Renderer_Property_BATCHING_ENABLED_get();
25 %}
26
27 %typemap(cscode) Dali::Renderer %{
28   public bool BatchingEnabled
29   {
30     get
31     {
32       bool temp = false;
33       GetProperty( Renderer.Property.BATCHING_ENABLED).Get( ref temp );
34       return temp;
35     }
36     set
37     {
38       SetProperty( Renderer.Property.BATCHING_ENABLED, new Dali.Property.Value( value ) );
39     }
40   }
41 %}
42
43 %typemap(cscode) Dali::Toolkit::Control::Property %{
44   public static readonly int TOOLTIP = NDalicManualPINVOKE.View_Property_TOOLTIP_get();
45 %}
46
47 %typemap(cscode) Dali::Toolkit::ItemView::Property %{
48   public static readonly int LAYOUT = NDalicManualPINVOKE.ItemView_Property_LAYOUT_get();
49 %}
50
51 %typemap(cscode) Dali::Toolkit::ItemView %{
52   public Dali.Property.Array Layout
53   {
54     get
55     {
56       Dali.Property.Array temp = new Dali.Property.Array();
57       GetProperty( ItemView.Property.LAYOUT).Get( temp );
58       return temp;
59     }
60     set
61     {
62       SetProperty( ItemView.Property.LAYOUT, new Dali.Property.Value( value ) );
63     }
64   }
65 %}
66
67 %typemap(cscode) Dali::Toolkit::Button::Property %{
68   public static readonly int UNSELECTED_VISUAL = NDalicManualPINVOKE.Button_Property_UNSELECTED_VISUAL_get();
69   public static readonly int SELECTED_VISUAL = NDalicManualPINVOKE.Button_Property_SELECTED_VISUAL_get();
70   public static readonly int DISABLED_SELECTED_VISUAL = NDalicManualPINVOKE.Button_Property_DISABLED_SELECTED_VISUAL_get();
71   public static readonly int DISABLED_UNSELECTED_VISUAL = NDalicManualPINVOKE.Button_Property_DISABLED_UNSELECTED_VISUAL_get();
72   public static readonly int UNSELECTED_BACKGROUND_VISUAL = NDalicManualPINVOKE.Button_Property_UNSELECTED_BACKGROUND_VISUAL_get();
73   public static readonly int SELECTED_BACKGROUND_VISUAL = NDalicManualPINVOKE.Button_Property_SELECTED_BACKGROUND_VISUAL_get();
74   public static readonly int DISABLED_UNSELECTED_BACKGROUND_VISUAL = NDalicManualPINVOKE.Button_Property_DISABLED_UNSELECTED_BACKGROUND_VISUAL_get();
75   public static readonly int DISABLED_SELECTED_BACKGROUND_VISUAL = NDalicManualPINVOKE.Button_Property_DISABLED_SELECTED_BACKGROUND_VISUAL_get();
76   public static readonly int LABEL_RELATIVE_ALIGNMENT = NDalicManualPINVOKE.Button_Property_LABEL_RELATIVE_ALIGNMENT_get();
77   public static readonly int LABEL_PADDING = NDalicManualPINVOKE.Button_Property_LABEL_PADDING_get();
78   public static readonly int VISUAL_PADDING = NDalicManualPINVOKE.Button_Property_VISUAL_PADDING_get();
79 %}
80