2 * Copyright(c) 2019 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 using System.ComponentModel;
20 namespace Tizen.NUI.BaseComponents
23 /// The View layout Direction type.
25 /// <since_tizen> 4 </since_tizen>
26 public enum ViewLayoutDirectionType
31 /// <since_tizen> 4 </since_tizen>
36 /// <since_tizen> 4 </since_tizen>
41 /// [Draft] Available policies for layout parameters
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
48 /// Constant which indicates child size should match parent size
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;
54 /// Constant which indicates parent should take the smallest size possible to wrap it's children with their desired size
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;
61 internal enum ResourceLoadingStatusType
70 /// View is the base class for all views.
72 /// <since_tizen> 3 </since_tizen>
73 public partial class View
76 /// Enumeration for describing the states of the view.
78 /// <since_tizen> 3 </since_tizen>
84 [Description("NORMAL")]
87 /// The focused state.
89 [Description("FOCUSED")]
92 /// The disabled state.
94 [Description("DISABLED")]
99 /// Describes the direction to move the focus towards.
101 /// <since_tizen> 3 </since_tizen>
102 public enum FocusDirection
105 /// Move keyboard focus towards the left direction.
107 /// <since_tizen> 3 </since_tizen>
110 /// Move keyboard focus towards the right direction.
112 /// <since_tizen> 3 </since_tizen>
115 /// Move keyboard focus towards the up direction.
117 /// <since_tizen> 3 </since_tizen>
120 /// Move keyboard focus towards the down direction.
122 /// <since_tizen> 3 </since_tizen>
125 /// Move keyboard focus towards the previous page direction.
127 /// <since_tizen> 3 </since_tizen>
130 /// Move keyboard focus towards the next page direction.
132 /// <since_tizen> 3 </since_tizen>
136 internal enum PropertyRange
138 PROPERTY_START_INDEX = PropertyRanges.PROPERTY_REGISTRATION_START_INDEX,
139 CONTROL_PROPERTY_START_INDEX = PROPERTY_START_INDEX,
140 CONTROL_PROPERTY_END_INDEX = CONTROL_PROPERTY_START_INDEX + 1000
143 internal class Property
145 internal static readonly int TOOLTIP = Interop.ViewProperty.View_Property_TOOLTIP_get();
146 internal static readonly int STATE = Interop.ViewProperty.View_Property_STATE_get();
147 internal static readonly int SUB_STATE = Interop.ViewProperty.View_Property_SUB_STATE_get();
148 internal static readonly int LEFT_FOCUSABLE_VIEW_ID = Interop.ViewProperty.View_Property_LEFT_FOCUSABLE_ACTOR_ID_get();
149 internal static readonly int RIGHT_FOCUSABLE_VIEW_ID = Interop.ViewProperty.View_Property_RIGHT_FOCUSABLE_ACTOR_ID_get();
150 internal static readonly int UP_FOCUSABLE_VIEW_ID = Interop.ViewProperty.View_Property_UP_FOCUSABLE_ACTOR_ID_get();
151 internal static readonly int DOWN_FOCUSABLE_VIEW_ID = Interop.ViewProperty.View_Property_DOWN_FOCUSABLE_ACTOR_ID_get();
152 internal static readonly int STYLE_NAME = Interop.ViewProperty.View_Property_STYLE_NAME_get();
153 internal static readonly int KEY_INPUT_FOCUS = Interop.ViewProperty.View_Property_KEY_INPUT_FOCUS_get();
154 internal static readonly int BACKGROUND = Interop.ViewProperty.View_Property_BACKGROUND_get();
155 internal static readonly int SIBLING_ORDER = Interop.ActorProperty.ActorPropertySiblingOrderGet();
156 internal static readonly int OPACITY = Interop.ActorProperty.ActorPropertyOpacityGet();
157 internal static readonly int SCREEN_POSITION = Interop.ActorProperty.ActorPropertyScreenPositionGet();
158 internal static readonly int POSITION_USES_ANCHOR_POINT = Interop.ActorProperty.ActorPropertyPositionUsesAnchorPointGet();
159 internal static readonly int PARENT_ORIGIN = Interop.ActorProperty.ActorPropertyParentOriginGet();
160 internal static readonly int PARENT_ORIGIN_X = Interop.ActorProperty.ActorPropertyParentOriginXGet();
161 internal static readonly int PARENT_ORIGIN_Y = Interop.ActorProperty.ActorPropertyParentOriginYGet();
162 internal static readonly int PARENT_ORIGIN_Z = Interop.ActorProperty.ActorPropertyParentOriginZGet();
163 internal static readonly int ANCHOR_POINT = Interop.ActorProperty.ActorPropertyAnchorPointGet();
164 internal static readonly int ANCHOR_POINT_X = Interop.ActorProperty.ActorPropertyAnchorPointXGet();
165 internal static readonly int ANCHOR_POINT_Y = Interop.ActorProperty.ActorPropertyAnchorPointYGet();
166 internal static readonly int ANCHOR_POINT_Z = Interop.ActorProperty.ActorPropertyAnchorPointZGet();
167 internal static readonly int SIZE = Interop.ActorProperty.ActorPropertySizeGet();
168 internal static readonly int SIZE_WIDTH = Interop.ActorProperty.ActorPropertySizeWidthGet();
169 internal static readonly int SIZE_HEIGHT = Interop.ActorProperty.ActorPropertySizeHeightGet();
170 internal static readonly int SIZE_DEPTH = Interop.ActorProperty.ActorPropertySizeDepthGet();
171 internal static readonly int POSITION = Interop.ActorProperty.ActorPropertyPositionGet();
172 internal static readonly int POSITION_X = Interop.ActorProperty.ActorPropertyPositionXGet();
173 internal static readonly int POSITION_Y = Interop.ActorProperty.ActorPropertyPositionYGet();
174 internal static readonly int POSITION_Z = Interop.ActorProperty.ActorPropertyPositionZGet();
175 internal static readonly int WORLD_POSITION = Interop.ActorProperty.ActorPropertyWorldPositionGet();
176 internal static readonly int WORLD_POSITION_X = Interop.ActorProperty.ActorPropertyWorldPositionXGet();
177 internal static readonly int WORLD_POSITION_Y = Interop.ActorProperty.ActorPropertyWorldPositionYGet();
178 internal static readonly int WORLD_POSITION_Z = Interop.ActorProperty.ActorPropertyWorldPositionZGet();
179 internal static readonly int ORIENTATION = Interop.ActorProperty.ActorPropertyOrientationGet();
180 internal static readonly int WORLD_ORIENTATION = Interop.ActorProperty.ActorPropertyWorldOrientationGet();
181 internal static readonly int SCALE = Interop.ActorProperty.ActorPropertyScaleGet();
182 internal static readonly int SCALE_X = Interop.ActorProperty.ActorPropertyScaleXGet();
183 internal static readonly int SCALE_Y = Interop.ActorProperty.ActorPropertyScaleYGet();
184 internal static readonly int SCALE_Z = Interop.ActorProperty.ActorPropertyScaleZGet();
185 internal static readonly int WORLD_SCALE = Interop.ActorProperty.ActorPropertyWorldScaleGet();
186 internal static readonly int VISIBLE = Interop.ActorProperty.ActorPropertyVisibleGet();
187 internal static readonly int WORLD_COLOR = Interop.ActorProperty.ActorPropertyWorldColorGet();
188 internal static readonly int WORLD_MATRIX = Interop.ActorProperty.ActorPropertyWorldMatrixGet();
189 internal static readonly int NAME = Interop.ActorProperty.ActorPropertyNameGet();
190 internal static readonly int SENSITIVE = Interop.ActorProperty.ActorPropertySensitiveGet();
191 internal static readonly int LEAVE_REQUIRED = Interop.ActorProperty.ActorPropertyLeaveRequiredGet();
192 internal static readonly int INHERIT_ORIENTATION = Interop.ActorProperty.ActorPropertyInheritOrientationGet();
193 internal static readonly int INHERIT_SCALE = Interop.ActorProperty.ActorPropertyInheritScaleGet();
194 internal static readonly int DRAW_MODE = Interop.ActorProperty.ActorPropertyDrawModeGet();
195 internal static readonly int SIZE_MODE_FACTOR = Interop.ActorProperty.ActorPropertySizeModeFactorGet();
196 internal static readonly int WIDTH_RESIZE_POLICY = Interop.ActorProperty.ActorPropertyWidthResizePolicyGet();
197 internal static readonly int HEIGHT_RESIZE_POLICY = Interop.ActorProperty.ActorPropertyHeightResizePolicyGet();
198 internal static readonly int SIZE_SCALE_POLICY = Interop.ActorProperty.ActorPropertySizeScalePolicyGet();
199 internal static readonly int WIDTH_FOR_HEIGHT = Interop.ActorProperty.ActorPropertyWidthForHeightGet();
200 internal static readonly int HEIGHT_FOR_WIDTH = Interop.ActorProperty.ActorPropertyHeightForWidthGet();
201 internal static readonly int MINIMUM_SIZE = Interop.ActorProperty.ActorPropertyMinimumSizeGet();
202 internal static readonly int MAXIMUM_SIZE = Interop.ActorProperty.ActorPropertyMaximumSizeGet();
203 internal static readonly int INHERIT_POSITION = Interop.ActorProperty.ActorPropertyInheritPositionGet();
204 internal static readonly int CLIPPING_MODE = Interop.ActorProperty.ActorPropertyClippingModeGet();
205 internal static readonly int INHERIT_LAYOUT_DIRECTION = Interop.ActorProperty.ActorPropertyInheritLayoutDirectionGet();
206 internal static readonly int LAYOUT_DIRECTION = Interop.ActorProperty.ActorPropertyLayoutDirectionGet();
207 internal static readonly int MARGIN = Interop.ViewProperty.View_Property_MARGIN_get();
208 internal static readonly int PADDING = Interop.ViewProperty.View_Property_PADDING_get();
209 internal static readonly int SHADOW = Interop.ViewProperty.View_Property_SHADOW_get();
210 internal static readonly int CaptureAllTouchAfterStart = Interop.ActorProperty.ActorPropertyCaptureAllTouchAfterStartGet();