[NUI] Split large files (#1081)
[platform/core/csapi/tizenfx.git] / src / Tizen.NUI / src / public / BaseComponents / ViewEnum.cs
1 /*
2  * Copyright(c) 2019 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 using System.ComponentModel;
19
20 namespace Tizen.NUI.BaseComponents
21 {
22     /// <summary>
23     /// The View layout Direction type.
24     /// </summary>
25     /// <since_tizen> 4 </since_tizen>
26     public enum ViewLayoutDirectionType
27     {
28         /// <summary>
29         /// Left to right.
30         /// </summary>
31         /// <since_tizen> 4 </since_tizen>
32         LTR,
33         /// <summary>
34         /// Right to left.
35         /// </summary>
36         /// <since_tizen> 4 </since_tizen>
37         RTL
38     }
39
40     /// <summary>
41     /// [Draft] Available policies for layout parameters
42     /// </summary>
43     /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
44     [EditorBrowsable(EditorBrowsableState.Never)]
45     public static class LayoutParamPolicies
46     {
47         /// <summary>
48         /// Constant which indicates child size should match parent size
49         /// </summary>
50        /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
51        [EditorBrowsable(EditorBrowsableState.Never)]
52         public const int MatchParent = -1;
53         /// <summary>
54         /// Constant which indicates parent should take the smallest size possible to wrap it's children with their desired size
55         /// </summary>
56         /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
57         [EditorBrowsable(EditorBrowsableState.Never)]
58         public const int WrapContent = -2;
59     }
60
61     internal enum ResourceLoadingStatusType
62     {
63         Invalid = -1,
64         Preparing = 0,
65         Ready,
66         Failed,
67     }
68
69     /// <summary>
70     /// View is the base class for all views.
71     /// </summary>
72     /// <since_tizen> 3 </since_tizen>
73     public partial class View
74     {
75         /// <summary>
76         /// Enumeration for describing the states of the view.
77         /// </summary>
78         /// <since_tizen> 3 </since_tizen>
79         public enum States
80         {
81             /// <summary>
82             /// The normal state.
83             /// </summary>
84             Normal,
85             /// <summary>
86             /// The focused state.
87             /// </summary>
88             Focused,
89             /// <summary>
90             /// The disabled state.
91             /// </summary>
92             Disabled
93         }
94
95         /// <summary>
96         /// Describes the direction to move the focus towards.
97         /// </summary>
98         /// <since_tizen> 3 </since_tizen>
99         public enum FocusDirection
100         {
101             /// <summary>
102             /// Move keyboard focus towards the left direction.
103             /// </summary>
104             /// <since_tizen> 3 </since_tizen>
105             Left,
106             /// <summary>
107             /// Move keyboard focus towards the right direction.
108             /// </summary>
109             /// <since_tizen> 3 </since_tizen>
110             Right,
111             /// <summary>
112             /// Move keyboard focus towards the up direction.
113             /// </summary>
114             /// <since_tizen> 3 </since_tizen>
115             Up,
116             /// <summary>
117             /// Move keyboard focus towards the down direction.
118             /// </summary>
119             /// <since_tizen> 3 </since_tizen>
120             Down,
121             /// <summary>
122             /// Move keyboard focus towards the previous page direction.
123             /// </summary>
124             /// <since_tizen> 3 </since_tizen>
125             PageUp,
126             /// <summary>
127             /// Move keyboard focus towards the next page direction.
128             /// </summary>
129             /// <since_tizen> 3 </since_tizen>
130             PageDown
131         }
132
133         internal enum PropertyRange
134         {
135             PROPERTY_START_INDEX = PropertyRanges.PROPERTY_REGISTRATION_START_INDEX,
136             CONTROL_PROPERTY_START_INDEX = PROPERTY_START_INDEX,
137             CONTROL_PROPERTY_END_INDEX = CONTROL_PROPERTY_START_INDEX + 1000
138         }
139
140         internal class Property
141         {
142             internal static readonly int TOOLTIP = Interop.ViewProperty.View_Property_TOOLTIP_get();
143             internal static readonly int STATE = Interop.ViewProperty.View_Property_STATE_get();
144             internal static readonly int SUB_STATE = Interop.ViewProperty.View_Property_SUB_STATE_get();
145             internal static readonly int LEFT_FOCUSABLE_VIEW_ID = Interop.ViewProperty.View_Property_LEFT_FOCUSABLE_ACTOR_ID_get();
146             internal static readonly int RIGHT_FOCUSABLE_VIEW_ID = Interop.ViewProperty.View_Property_RIGHT_FOCUSABLE_ACTOR_ID_get();
147             internal static readonly int UP_FOCUSABLE_VIEW_ID = Interop.ViewProperty.View_Property_UP_FOCUSABLE_ACTOR_ID_get();
148             internal static readonly int DOWN_FOCUSABLE_VIEW_ID = Interop.ViewProperty.View_Property_DOWN_FOCUSABLE_ACTOR_ID_get();
149             internal static readonly int STYLE_NAME = Interop.ViewProperty.View_Property_STYLE_NAME_get();
150             internal static readonly int BACKGROUND = Interop.ViewProperty.View_Property_BACKGROUND_get();
151             internal static readonly int SIBLING_ORDER = Interop.ActorProperty.Actor_Property_SIBLING_ORDER_get();
152             internal static readonly int OPACITY = Interop.ActorProperty.Actor_Property_OPACITY_get();
153             internal static readonly int SCREEN_POSITION = Interop.ActorProperty.Actor_Property_SCREEN_POSITION_get();
154             internal static readonly int POSITION_USES_ANCHOR_POINT = Interop.ActorProperty.Actor_Property_POSITION_USES_ANCHOR_POINT_get();
155             internal static readonly int PARENT_ORIGIN = Interop.ActorProperty.Actor_Property_PARENT_ORIGIN_get();
156             internal static readonly int PARENT_ORIGIN_X = Interop.ActorProperty.Actor_Property_PARENT_ORIGIN_X_get();
157             internal static readonly int PARENT_ORIGIN_Y = Interop.ActorProperty.Actor_Property_PARENT_ORIGIN_Y_get();
158             internal static readonly int PARENT_ORIGIN_Z = Interop.ActorProperty.Actor_Property_PARENT_ORIGIN_Z_get();
159             internal static readonly int ANCHOR_POINT = Interop.ActorProperty.Actor_Property_ANCHOR_POINT_get();
160             internal static readonly int ANCHOR_POINT_X = Interop.ActorProperty.Actor_Property_ANCHOR_POINT_X_get();
161             internal static readonly int ANCHOR_POINT_Y = Interop.ActorProperty.Actor_Property_ANCHOR_POINT_Y_get();
162             internal static readonly int ANCHOR_POINT_Z = Interop.ActorProperty.Actor_Property_ANCHOR_POINT_Z_get();
163             internal static readonly int SIZE = Interop.ActorProperty.Actor_Property_SIZE_get();
164             internal static readonly int SIZE_WIDTH = Interop.ActorProperty.Actor_Property_SIZE_WIDTH_get();
165             internal static readonly int SIZE_HEIGHT = Interop.ActorProperty.Actor_Property_SIZE_HEIGHT_get();
166             internal static readonly int SIZE_DEPTH = Interop.ActorProperty.Actor_Property_SIZE_DEPTH_get();
167             internal static readonly int POSITION = Interop.ActorProperty.Actor_Property_POSITION_get();
168             internal static readonly int POSITION_X = Interop.ActorProperty.Actor_Property_POSITION_X_get();
169             internal static readonly int POSITION_Y = Interop.ActorProperty.Actor_Property_POSITION_Y_get();
170             internal static readonly int POSITION_Z = Interop.ActorProperty.Actor_Property_POSITION_Z_get();
171             internal static readonly int WORLD_POSITION = Interop.ActorProperty.Actor_Property_WORLD_POSITION_get();
172             internal static readonly int WORLD_POSITION_X = Interop.ActorProperty.Actor_Property_WORLD_POSITION_X_get();
173             internal static readonly int WORLD_POSITION_Y = Interop.ActorProperty.Actor_Property_WORLD_POSITION_Y_get();
174             internal static readonly int WORLD_POSITION_Z = Interop.ActorProperty.Actor_Property_WORLD_POSITION_Z_get();
175             internal static readonly int ORIENTATION = Interop.ActorProperty.Actor_Property_ORIENTATION_get();
176             internal static readonly int WORLD_ORIENTATION = Interop.ActorProperty.Actor_Property_WORLD_ORIENTATION_get();
177             internal static readonly int SCALE = Interop.ActorProperty.Actor_Property_SCALE_get();
178             internal static readonly int SCALE_X = Interop.ActorProperty.Actor_Property_SCALE_X_get();
179             internal static readonly int SCALE_Y = Interop.ActorProperty.Actor_Property_SCALE_Y_get();
180             internal static readonly int SCALE_Z = Interop.ActorProperty.Actor_Property_SCALE_Z_get();
181             internal static readonly int WORLD_SCALE = Interop.ActorProperty.Actor_Property_WORLD_SCALE_get();
182             internal static readonly int VISIBLE = Interop.ActorProperty.Actor_Property_VISIBLE_get();
183             internal static readonly int WORLD_COLOR = Interop.ActorProperty.Actor_Property_WORLD_COLOR_get();
184             internal static readonly int WORLD_MATRIX = Interop.ActorProperty.Actor_Property_WORLD_MATRIX_get();
185             internal static readonly int NAME = Interop.ActorProperty.Actor_Property_NAME_get();
186             internal static readonly int SENSITIVE = Interop.ActorProperty.Actor_Property_SENSITIVE_get();
187             internal static readonly int LEAVE_REQUIRED = Interop.ActorProperty.Actor_Property_LEAVE_REQUIRED_get();
188             internal static readonly int INHERIT_ORIENTATION = Interop.ActorProperty.Actor_Property_INHERIT_ORIENTATION_get();
189             internal static readonly int INHERIT_SCALE = Interop.ActorProperty.Actor_Property_INHERIT_SCALE_get();
190             internal static readonly int DRAW_MODE = Interop.ActorProperty.Actor_Property_DRAW_MODE_get();
191             internal static readonly int SIZE_MODE_FACTOR = Interop.ActorProperty.Actor_Property_SIZE_MODE_FACTOR_get();
192             internal static readonly int WIDTH_RESIZE_POLICY = Interop.ActorProperty.Actor_Property_WIDTH_RESIZE_POLICY_get();
193             internal static readonly int HEIGHT_RESIZE_POLICY = Interop.ActorProperty.Actor_Property_HEIGHT_RESIZE_POLICY_get();
194             internal static readonly int SIZE_SCALE_POLICY = Interop.ActorProperty.Actor_Property_SIZE_SCALE_POLICY_get();
195             internal static readonly int WIDTH_FOR_HEIGHT = Interop.ActorProperty.Actor_Property_WIDTH_FOR_HEIGHT_get();
196             internal static readonly int HEIGHT_FOR_WIDTH = Interop.ActorProperty.Actor_Property_HEIGHT_FOR_WIDTH_get();
197             internal static readonly int MINIMUM_SIZE = Interop.ActorProperty.Actor_Property_MINIMUM_SIZE_get();
198             internal static readonly int MAXIMUM_SIZE = Interop.ActorProperty.Actor_Property_MAXIMUM_SIZE_get();
199             internal static readonly int INHERIT_POSITION = Interop.ActorProperty.Actor_Property_INHERIT_POSITION_get();
200             internal static readonly int CLIPPING_MODE = Interop.ActorProperty.Actor_Property_CLIPPING_MODE_get();
201             internal static readonly int INHERIT_LAYOUT_DIRECTION = Interop.ActorProperty.Actor_Property_INHERIT_LAYOUT_DIRECTION_get();
202             internal static readonly int LAYOUT_DIRECTION = Interop.ActorProperty.Actor_Property_LAYOUT_DIRECTION_get();
203             internal static readonly int MARGIN = Interop.ViewProperty.View_Property_MARGIN_get();
204             internal static readonly int PADDING = Interop.ViewProperty.View_Property_PADDING_get();
205         }
206     }
207 }