/*
* Copyright(c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
using System.ComponentModel;
namespace Tizen.NUI.BaseComponents
{
///
/// The View layout Direction type.
///
/// 4
public enum ViewLayoutDirectionType
{
///
/// Left to right.
///
/// 4
LTR,
///
/// Right to left.
///
/// 4
RTL
}
///
/// [Draft] Available policies for layout parameters
///
/// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
[EditorBrowsable(EditorBrowsableState.Never)]
public static class LayoutParamPolicies
{
///
/// Constant which indicates child size should match parent size
///
/// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
[EditorBrowsable(EditorBrowsableState.Never)]
public const int MatchParent = -1;
///
/// Constant which indicates parent should take the smallest size possible to wrap it's children with their desired size
///
/// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
[EditorBrowsable(EditorBrowsableState.Never)]
public const int WrapContent = -2;
}
internal enum ResourceLoadingStatusType
{
Invalid = -1,
Preparing = 0,
Ready,
Failed,
}
///
/// View is the base class for all views.
///
/// 3
public partial class View
{
///
/// Enumeration for describing the states of the view.
///
/// 3
public enum States
{
///
/// The normal state.
///
[Description("NORMAL")]
Normal,
///
/// The focused state.
///
[Description("FOCUSED")]
Focused,
///
/// The disabled state.
///
[Description("DISABLED")]
Disabled
}
///
/// Describes the direction to move the focus towards.
///
/// 3
public enum FocusDirection
{
///
/// Move keyboard focus towards the left direction.
///
/// 3
Left,
///
/// Move keyboard focus towards the right direction.
///
/// 3
Right,
///
/// Move keyboard focus towards the up direction.
///
/// 3
Up,
///
/// Move keyboard focus towards the down direction.
///
/// 3
Down,
///
/// Move keyboard focus towards the previous page direction.
///
/// 3
PageUp,
///
/// Move keyboard focus towards the next page direction.
///
/// 3
PageDown
}
internal enum PropertyRange
{
PROPERTY_START_INDEX = PropertyRanges.PROPERTY_REGISTRATION_START_INDEX,
CONTROL_PROPERTY_START_INDEX = PROPERTY_START_INDEX,
CONTROL_PROPERTY_END_INDEX = CONTROL_PROPERTY_START_INDEX + 1000
}
internal class Property
{
internal static readonly int TOOLTIP = Interop.ViewProperty.View_Property_TOOLTIP_get();
internal static readonly int STATE = Interop.ViewProperty.View_Property_STATE_get();
internal static readonly int SUB_STATE = Interop.ViewProperty.View_Property_SUB_STATE_get();
internal static readonly int LEFT_FOCUSABLE_VIEW_ID = Interop.ViewProperty.View_Property_LEFT_FOCUSABLE_ACTOR_ID_get();
internal static readonly int RIGHT_FOCUSABLE_VIEW_ID = Interop.ViewProperty.View_Property_RIGHT_FOCUSABLE_ACTOR_ID_get();
internal static readonly int UP_FOCUSABLE_VIEW_ID = Interop.ViewProperty.View_Property_UP_FOCUSABLE_ACTOR_ID_get();
internal static readonly int DOWN_FOCUSABLE_VIEW_ID = Interop.ViewProperty.View_Property_DOWN_FOCUSABLE_ACTOR_ID_get();
internal static readonly int STYLE_NAME = Interop.ViewProperty.View_Property_STYLE_NAME_get();
internal static readonly int BACKGROUND = Interop.ViewProperty.View_Property_BACKGROUND_get();
internal static readonly int SIBLING_ORDER = Interop.ActorProperty.Actor_Property_SIBLING_ORDER_get();
internal static readonly int OPACITY = Interop.ActorProperty.Actor_Property_OPACITY_get();
internal static readonly int SCREEN_POSITION = Interop.ActorProperty.Actor_Property_SCREEN_POSITION_get();
internal static readonly int POSITION_USES_ANCHOR_POINT = Interop.ActorProperty.Actor_Property_POSITION_USES_ANCHOR_POINT_get();
internal static readonly int PARENT_ORIGIN = Interop.ActorProperty.Actor_Property_PARENT_ORIGIN_get();
internal static readonly int PARENT_ORIGIN_X = Interop.ActorProperty.Actor_Property_PARENT_ORIGIN_X_get();
internal static readonly int PARENT_ORIGIN_Y = Interop.ActorProperty.Actor_Property_PARENT_ORIGIN_Y_get();
internal static readonly int PARENT_ORIGIN_Z = Interop.ActorProperty.Actor_Property_PARENT_ORIGIN_Z_get();
internal static readonly int ANCHOR_POINT = Interop.ActorProperty.Actor_Property_ANCHOR_POINT_get();
internal static readonly int ANCHOR_POINT_X = Interop.ActorProperty.Actor_Property_ANCHOR_POINT_X_get();
internal static readonly int ANCHOR_POINT_Y = Interop.ActorProperty.Actor_Property_ANCHOR_POINT_Y_get();
internal static readonly int ANCHOR_POINT_Z = Interop.ActorProperty.Actor_Property_ANCHOR_POINT_Z_get();
internal static readonly int SIZE = Interop.ActorProperty.Actor_Property_SIZE_get();
internal static readonly int SIZE_WIDTH = Interop.ActorProperty.Actor_Property_SIZE_WIDTH_get();
internal static readonly int SIZE_HEIGHT = Interop.ActorProperty.Actor_Property_SIZE_HEIGHT_get();
internal static readonly int SIZE_DEPTH = Interop.ActorProperty.Actor_Property_SIZE_DEPTH_get();
internal static readonly int POSITION = Interop.ActorProperty.Actor_Property_POSITION_get();
internal static readonly int POSITION_X = Interop.ActorProperty.Actor_Property_POSITION_X_get();
internal static readonly int POSITION_Y = Interop.ActorProperty.Actor_Property_POSITION_Y_get();
internal static readonly int POSITION_Z = Interop.ActorProperty.Actor_Property_POSITION_Z_get();
internal static readonly int WORLD_POSITION = Interop.ActorProperty.Actor_Property_WORLD_POSITION_get();
internal static readonly int WORLD_POSITION_X = Interop.ActorProperty.Actor_Property_WORLD_POSITION_X_get();
internal static readonly int WORLD_POSITION_Y = Interop.ActorProperty.Actor_Property_WORLD_POSITION_Y_get();
internal static readonly int WORLD_POSITION_Z = Interop.ActorProperty.Actor_Property_WORLD_POSITION_Z_get();
internal static readonly int ORIENTATION = Interop.ActorProperty.Actor_Property_ORIENTATION_get();
internal static readonly int WORLD_ORIENTATION = Interop.ActorProperty.Actor_Property_WORLD_ORIENTATION_get();
internal static readonly int SCALE = Interop.ActorProperty.Actor_Property_SCALE_get();
internal static readonly int SCALE_X = Interop.ActorProperty.Actor_Property_SCALE_X_get();
internal static readonly int SCALE_Y = Interop.ActorProperty.Actor_Property_SCALE_Y_get();
internal static readonly int SCALE_Z = Interop.ActorProperty.Actor_Property_SCALE_Z_get();
internal static readonly int WORLD_SCALE = Interop.ActorProperty.Actor_Property_WORLD_SCALE_get();
internal static readonly int VISIBLE = Interop.ActorProperty.Actor_Property_VISIBLE_get();
internal static readonly int WORLD_COLOR = Interop.ActorProperty.Actor_Property_WORLD_COLOR_get();
internal static readonly int WORLD_MATRIX = Interop.ActorProperty.Actor_Property_WORLD_MATRIX_get();
internal static readonly int NAME = Interop.ActorProperty.Actor_Property_NAME_get();
internal static readonly int SENSITIVE = Interop.ActorProperty.Actor_Property_SENSITIVE_get();
internal static readonly int LEAVE_REQUIRED = Interop.ActorProperty.Actor_Property_LEAVE_REQUIRED_get();
internal static readonly int INHERIT_ORIENTATION = Interop.ActorProperty.Actor_Property_INHERIT_ORIENTATION_get();
internal static readonly int INHERIT_SCALE = Interop.ActorProperty.Actor_Property_INHERIT_SCALE_get();
internal static readonly int DRAW_MODE = Interop.ActorProperty.Actor_Property_DRAW_MODE_get();
internal static readonly int SIZE_MODE_FACTOR = Interop.ActorProperty.Actor_Property_SIZE_MODE_FACTOR_get();
internal static readonly int WIDTH_RESIZE_POLICY = Interop.ActorProperty.Actor_Property_WIDTH_RESIZE_POLICY_get();
internal static readonly int HEIGHT_RESIZE_POLICY = Interop.ActorProperty.Actor_Property_HEIGHT_RESIZE_POLICY_get();
internal static readonly int SIZE_SCALE_POLICY = Interop.ActorProperty.Actor_Property_SIZE_SCALE_POLICY_get();
internal static readonly int WIDTH_FOR_HEIGHT = Interop.ActorProperty.Actor_Property_WIDTH_FOR_HEIGHT_get();
internal static readonly int HEIGHT_FOR_WIDTH = Interop.ActorProperty.Actor_Property_HEIGHT_FOR_WIDTH_get();
internal static readonly int MINIMUM_SIZE = Interop.ActorProperty.Actor_Property_MINIMUM_SIZE_get();
internal static readonly int MAXIMUM_SIZE = Interop.ActorProperty.Actor_Property_MAXIMUM_SIZE_get();
internal static readonly int INHERIT_POSITION = Interop.ActorProperty.Actor_Property_INHERIT_POSITION_get();
internal static readonly int CLIPPING_MODE = Interop.ActorProperty.Actor_Property_CLIPPING_MODE_get();
internal static readonly int INHERIT_LAYOUT_DIRECTION = Interop.ActorProperty.Actor_Property_INHERIT_LAYOUT_DIRECTION_get();
internal static readonly int LAYOUT_DIRECTION = Interop.ActorProperty.Actor_Property_LAYOUT_DIRECTION_get();
internal static readonly int MARGIN = Interop.ViewProperty.View_Property_MARGIN_get();
internal static readonly int PADDING = Interop.ViewProperty.View_Property_PADDING_get();
internal static readonly int SHADOW = Interop.ViewProperty.View_Property_SHADOW_get();
}
}
}