// Copyright (c) 2017 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;
using System.ComponentModel;
namespace Tizen.NUI
{
public enum ScrollModeType
{
XAxisScrollEnabled,
XAxisSnapToInterval,
XAxisScrollBoundary,
YAxisScrollEnabled,
YAxisSnapToInterval,
YAxisScrollBoundary
}
///
/// This specifies whether the Actor uses its own color, or inherits.
///
public enum ColorMode
{
///
/// Actor will use its own color.
///
UseOwnColor,
///
/// Actor will use its parent color.
///
UseParentColor,
///
/// Actor will blend its color with its parents color.
///
UseOwnMultiplyParentColor,
///
/// Actor will blend its alpha with its parents alpha. This means when parent fades in or out child does as well. This is the default.
///
UseOwnMultiplyParentAlpha
}
///
/// This specifies the dimesion of width or heigh for size negotiation.
///
public enum DimensionType
{
///
/// Width dimension
///
Width = 0x1,
///
/// Height dimension
///
Height = 0x2,
///
/// Mask to cover all flags
///
AllDimensions = 0x3
}
///
/// Enumeration for the instance of how the actor and it's children will be drawn.
///
public enum DrawModeType
{
///
/// The default draw-mode
///
Normal = 0,
///
/// Draw the actor and its children as an overlay
///
Overlay2D = 1,
///
/// Will be replaced by separate ClippingMode enum. Draw the actor and its children into the stencil buffer
///
Stencil = 3
}
///
/// Enumeration for size negotiation resize policies.
///
public enum ResizePolicyType
{
///
/// Size is fixed as set by SetSize
///
Fixed,
///
/// Size is to use the actor's natural size
///
///
UseNaturalSize,
///
/// Size is to fill up to the actor's parent's bounds. Aspect ratio is not maintained.
///
FillToParent,
///
/// The actors size will be ( ParentSize * SizeRelativeToParentFactor ).
///
SizeRelativeToParent,
///
/// The actors size will be ( ParentSize + SizeRelativeToParentFactor ).
///
SizeFixedOffsetFromParent,
///
/// Size will adjust to wrap around all children
///
FitToChildren,
///
/// One dimension is dependent on the other
///
DimensionDependency,
///
/// The size will be assigned to the actor
///
UseAssignedSize
}
///
/// Enumeration for policies to determine how an actor should resize itself when having its size set in size negotiation.
///
public enum SizeScalePolicyType
{
///
/// Use the size that was set
///
UseSizeSet,
///
/// Fit within the size set maintaining natural size aspect ratio
///
FitWithAspectRatio,
///
/// Fit within the size set maintaining natural size aspect ratio
///
FillWithAspectRatio
}
///
/// Enumeration for ClippingMode describing how this Actor's children will be clipped against it.
///
public enum ClippingModeType
{
///
/// This Actor will not clip its children.
///
Disabled,
///
/// This Actor will clip all children to within its boundaries (the actor will also be visible itself).
///
ClipChildren,
///
/// This Actor will clip all children within a screen-aligned rectangle encompassing its boundaries (the actor will also be visible itself).
///
ClipToBoundingBox
}
///
/// Enumeration for type determination of how camera operates.
///
public enum CameraType
{
///
/// Camera orientation is taken from CameraActor.
///
FreeLook,
///
/// Camera is oriented to always look at a target.
///
LookAtTarget
}
///
/// Enumeration for projection modes.
///
public enum ProjectionMode
{
///
/// Distance causes foreshortening; objects further from the camera appear smaller.
///
PerspectiveProjection,
///
/// Relative distance from the camera does not affect the size of objects.
///
OrthographicProjection
}
///
/// This specifies ccustomView behaviour types.
///
public enum CustomViewBehaviour
{
///
/// Use to provide default behaviour (size negotiation is on, event callbacks are not called)
///
ViewBehaviourDefault = 0,
///
/// True if control does not need size negotiation, i.e. it can be skipped in the algorithm
///
DisableSizeNegotiation = 1 << 0,
///
/// Use to provide key navigation support.
///
RequiresKeyboardNavigationSupport = 1 << 5,
///
/// Use to make style change event disabled.
///
DisableStyleChangeSignals = 1 << 6,
[EditorBrowsable(EditorBrowsableState.Never)]
LastViewBehaviourFlag
}
public enum DeviceClassType
{
None,
Seat,
Keyboard,
Mouse,
Touch,
Pen,
Pointer,
Gamepad
}
///
/// This specifies all the property types.
/// Enumeration for the property types supported.
///
public enum PropertyType
{
///
/// No type
///
None,
///
/// A boolean type
///
Boolean,
///
/// A float type
///
Float,
///
/// An integer type
///
Integer,
///
/// a vector array of size=2 with float precision
///
Vector2,
///
/// a vector array of size=3 with float precision
///
Vector3,
///
/// a vector array of size=4 with float precision
///
Vector4,
///
/// a 3x3 matrix
///
Matrix3,
///
/// a 4x4 matrix
///
Matrix,
///
/// an integer array of size=4
///
Rectangle,
///
/// either a quaternion or an axis angle rotation
///
Rotation,
///
/// A string type
///
String,
///
/// an array of PropertyValue
///
Array,
///
/// a string key to PropertyValue mapping
///
Map
}
///
/// This specifies the property access mode types.
/// Enumeration for the access mode for custom properties.
///
public enum PropertyAccessMode
{
///
/// if the property is read-only
///
ReadOnly,
///
/// If the property is read/writeable
///
ReadWrite,
///
/// If the property can be animated or constrained
///
Animatable,
///
/// The number of access modes
///
AccessModeCount
}
///
/// Types of style change. Enumeration for StyleChange type.
///
public enum StyleChangeType
{
///
/// Denotes that the default font has changed.
///
DefaultFontChange,
///
/// Denotes that the default font size has changed.
///
DefaultFontSizeChange,
///
/// Denotes that the theme has changed.
///
ThemeChange
}
///
/// Enumeration for horizontal alignment types.
///
public enum HorizontalAlignmentType
{
///
/// Align horizontally left
///
Left,
///
/// Align horizontally center
///
Center,
///
/// Align horizontally right
///
Right
}
///
/// Enumeration for vertical alignment types.
///
public enum VerticalAlignmentType
{
///
/// Align vertically top
///
Top,
///
/// Align vertically center
///
Center,
///
/// Align vertically bottom
///
Bottom
}
///
/// Enumeration for point state type.
///
public enum PointStateType
{
///
/// Touch or hover started
///
Started,
///
/// Touch or hover finished
///
Finished,
///
/// Screen touched
///
Down = Started,
///
/// Touch stopped
///
Up = Finished,
///
/// Finger dragged or hovered
///
Motion,
///
/// Leave the boundary of an actor
///
Leave,
///
/// No change from last event.
/// Useful when a multi-point event occurs where all points are sent but indicates that this particular point has not changed since the last time.
///
Stationary,
///
/// A system event has occurred which has interrupted the touch or hover event sequence.
///
Interrupted
}
///
/// Enumeration for the text horizontal aligning.
///
public enum HorizontalAlignment
{
///
/// Texts place at the begin of horizontal direction.
///
Begin,
///
/// Texts place at the center of horizontal direction.
///
Center,
///
/// Texts place at the end of horizontal direction.
///
End
}
///
/// Enumeration for the text horizontal aligning.
///
public enum VerticalAlignment
{
///
/// Texts place at the top of vertical direction.
///
Top,
///
/// Texts place at the center of vertical direction.
///
Center,
///
/// Texts place at the bottom of vertical direction.
///
Bottom
}
///
/// This specifies wrap mode types
/// WrapModeU and WrapModeV separately decide how the texture should be sampled when the u and v coordinate exceeds the range of 0.0 to 1.0.
///
public enum WrapModeType
{
///
/// Defualt value
///
Default = 0,
///
/// Clamp to edge
///
ClampToEdge,
///
/// Repeat
///
Repeat,
///
/// Mirrored repeat
///
MirroredRepeat
}
///
/// Specifies the Release Policy types
/// Decides if the image should be cached in different conditions
///
public enum ReleasePolicyType
{
///
/// Image is released when visual detached from scene
///
Detached = 0,
///
/// Image is only released when visual is destroyed
///
Destroyed,
///
/// Image is not released.
///
Never
}
///
/// Specifies the Load Policy types
/// Decides when the image texture should be loaded
///
public enum LoadPolicyType
{
///
/// Load texture once the image source has been provided. Even if not being used yet.
///
Immediate = 0,
///
/// Only load texture once the visual is attached, when the image needs to be shown.
///
Attached
}
///
/// The type of coordinate system for certain attributes of the points in a gradient.
///
public enum GradientVisualUnitsType
{
///
/// Uses the normals for the start, end & center points, i.e. top-left is (-0.5, -0.5) and bottom-right is (0.5, 0.5).
///
ObjectBoundingBox,
///
/// Uses the user coordinates for the start, end & center points, i.e. in a 200 by 200 control, top-left is (0, 0) and bottom-right is (200, 200).
///
UserSpace
}
///
/// This specifies SpreadMethod types.
/// SpreadMethod defines what happens if the gradient starts or ends inside the bounds of the target rectangle.
///
public enum GradientVisualSpreadMethodType
{
///
/// Uses the terminal colors of the gradient to fill the remainder of the quad.
///
Pad,
///
/// Reflect the gradient pattern start-to-end, end-to-start, start-to-end etc. until the quad is filled.
///
Reflect,
///
/// Repeat the gradient pattern start-to-end, start-to-end, start-to-end etc. until the quad is filled.
///
Repeat
}
///
/// The shading mode used by MeshVisual.
///
public enum MeshVisualShadingModeValue
{
///
/// *Simplest*. One color that is lit by ambient and diffuse lighting.
///
TexturelessWithDiffuseLighting,
///
/// Uses only the visual image textures provided with specular lighting in addition to ambient and diffuse lighting.
///
TexturedWithSpecularLighting,
///
/// Uses all textures provided including a gloss, normal and texture map along with specular, ambient and diffuse lighting.
///
TexturedWithDetailedSpecularLighting
}
///
/// The primitive shape to render as a PrimitiveVisual.
///
public enum PrimitiveVisualShapeType
{
///
/// A perfectly round geometrical object in three-dimensional space.
///
Sphere,
///
/// The area bound between two circles, i.e. a cone with the tip removed.
///
ConicalFrustrum,
///
/// Equivalent to a conical frustrum with top radius of zero.
/// Equivalent to a conical frustrum with top radius of zero.
Cone,
///
/// Equivalent to a conical frustrum with top radius of zero.
///
Cylinder,
///
/// Equivalent to a conical frustrum with equal radii for the top and bottom circles.
///
Cube,
///
/// Equivalent to a bevelled cube with a bevel percentage of zero.
///
Octahedron,
///
/// Equivalent to a bevelled cube with a bevel percentage of one.
///
BevelledCube
}
///
/// This specifies fitting mode types. Fitting options, used when resizing images to fit desired dimensions.
/// A fitting mode controls the region of a loaded image to be mapped to the desired image rectangle.
/// All fitting modes preserve the aspect ratio of the image contents.
///
public enum FittingModeType
{
///
/// Full-screen image display: Limit loaded image resolution to device resolution using ShrinkToFit mode.
///
ShrinkToFit,
///
/// Thumbnail gallery grid: Limit loaded image resolution to screen tile using ScaleToFill mode.
///
ScaleToFill,
///
/// Image columns: Limit loaded image resolution to column width using FitWidth mode.
///
FitWidth,
///
/// Image rows: Limit loaded image resolution to row height using FitHeight mode.
///
FitHeight
}
///
/// This specifies sampling mode types. Filtering options, used when resizing images to sample original pixels.
/// A SamplingMode controls how pixels in an input image are sampled and combined to generate each pixel of a destination image during a scaling.
/// NoFilter and Box modes do not guarantee that the output pixel array exactly matches the rectangle specified by the desired dimensions and FittingMode,
/// but all other filter modes do if the desired dimensions are `<=` the raw dimensions of the input image file.
///
public enum SamplingModeType
{
///
/// Iteratively box filter to generate an image of 1/2, 1/4, 1/8, etc width and height and approximately the desired size.
/// This is the default.
///
Box,
///
/// For each output pixel, read one input pixel.
///
Nearest,
///
/// For each output pixel, read a quad of four input pixels and write a weighted average of them.
///
Linear,
///
/// Iteratively box filter to generate an image of 1/2, 1/4, 1/8 etc width and height and approximately the desired size,
/// then for each output pixel, read one pixel from the last level of box filtering.
///
BoxThenNearest,
///
/// Iteratively box filter to almost the right size, then for each output pixel, read four pixels from the last level of box filtering and write their weighted average.
///
BoxThenLinear,
///
/// No filtering is performed. If the SCALE_TO_FILL scaling mode is enabled, the borders of the image may be trimmed to match the aspect ratio of the desired dimensions.
///
NoFilter,
///
/// For caching algorithms where a client strongly prefers a cache-hit to reuse a cached image.
///
DontCare
}
///
/// This specifies policy types that could be used by the transform for the offset or size.
///
public enum VisualTransformPolicyType
{
///
/// Relative to the control (percentage [0.0f to 1.0f] of the control).
///
Relative = 0,
///
/// Absolute value in world units.
///
Absolute = 1
}
///
/// This specifies all the transform property types.
///
public enum VisualTransformPropertyType
{
///
/// Offset of the visual, which can be either relative (percentage [0.0f to 1.0f] of the parent) or absolute (in world units).
///
Offset,
///
/// Size of the visual, which can be either relative (percentage [0.0f to 1.0f] of the parent) or absolute (in world units).
///
Size,
///
/// The origin of the visual within its control area.
///
Origin,
///
/// The anchor-point of the visual
///
AnchorPoint,
///
/// Whether the x or y OFFSET values are relative (percentage [0.0f to 1.0f] of the control) or absolute (in world units).
///
OffsetPolicy,
///
/// Whether the width or height SIZE values are relative (percentage [0.0f to 1.0f] of the control) or absolute (in world units).
///
SizePolicy
}
///
/// This specifies visual types.
///
public struct Visual
{
///
/// The index for the visual type.
///
public enum Type
{
///
/// Renders a solid color as an internal border to the control's quad.
///
Border,
///
/// Renders a solid color to the control's quad.
///
Color,
///
/// Renders a smooth transition of colors to the control's quad.
///
Gradient,
///
/// Renders an image into the control's quad.
///
Image,
///
/// Renders a mesh using an "obj" file, optionally with textures provided by an "mtl" file.
///
Mesh,
///
/// Renders a simple 3D shape, such as a cube or sphere.
///
Primitive,
///
/// Renders a simple wire-frame outlining a quad.
///
Wireframe,
///
/// Renders text.
///
Text,
///
/// Renders an n-patch image.
///
NPatch,
///
/// Renders an SVG image.
///
SVG,
///
/// Renders a animated image. (Animated GIF)
///
AnimatedImage
}
///
/// This specifies visual properties.
///
public struct Property
{
public static readonly int Type = NDalic.VISUAL_PROPERTY_TYPE;
public static readonly int Shader = NDalic.VISUAL_PROPERTY_SHADER;
public static readonly int Transform = NDalic.VISUAL_PROPERTY_TRANSFORM;
public static readonly int PremultipliedAlpha = NDalic.VISUAL_PROPERTY_PREMULTIPLIED_ALPHA;
public static readonly int MixColor = NDalic.VISUAL_PROPERTY_MIX_COLOR;
public static readonly int Opacity = NDalic.VISUAL_PROPERTY_MIX_COLOR + 1;
}
///
/// This specifies shader properties.
///
public struct ShaderProperty
{
public static readonly int VertexShader = NDalic.VISUAL_SHADER_VERTEX;
public static readonly int FragmentShader = NDalic.VISUAL_SHADER_FRAGMENT;
public static readonly int ShaderSubdivideGridX = NDalic.VISUAL_SHADER_SUBDIVIDE_GRID_X;
public static readonly int ShaderSubdivideGridY = NDalic.VISUAL_SHADER_SUBDIVIDE_GRID_Y;
public static readonly int ShaderHints = NDalic.VISUAL_SHADER_HINTS;
}
///
/// This specifies Visaul align types.
///
public enum AlignType
{
TopBegin = 0,
TopCenter,
TopEnd,
CenterBegin,
Center,
CenterEnd,
BottomBegin,
BottomCenter,
BottomEnd
}
}
///
/// This specifies properties of BorderVisual.
///
public struct BorderVisualProperty
{
public static readonly int Color = NDalic.BORDER_VISUAL_COLOR;
public static readonly int Size = NDalic.BORDER_VISUAL_SIZE;
public static readonly int AntiAliasing = NDalic.BORDER_VISUAL_ANTI_ALIASING;
}
///
/// This specifies properties of ColorVisual.
///
public struct ColorVisualProperty
{
public static readonly int MixColor = NDalic.COLOR_VISUAL_MIX_COLOR;
}
///
/// This specifies properties of GradientVisual.
///
public struct GradientVisualProperty
{
public static readonly int StartPosition = NDalic.GRADIENT_VISUAL_START_POSITION;
public static readonly int EndPosition = NDalic.GRADIENT_VISUAL_END_POSITION;
public static readonly int Center = NDalic.GRADIENT_VISUAL_CENTER;
public static readonly int Radius = NDalic.GRADIENT_VISUAL_RADIUS;
public static readonly int StopOffset = NDalic.GRADIENT_VISUAL_STOP_OFFSET;
public static readonly int StopColor = NDalic.GRADIENT_VISUAL_STOP_COLOR;
public static readonly int Units = NDalic.GRADIENT_VISUAL_UNITS;
public static readonly int SpreadMethod = NDalic.GRADIENT_VISUAL_SPREAD_METHOD;
}
///
/// This specifies properties of ImageVisual.
///
public struct ImageVisualProperty
{
public static readonly int URL = NDalic.IMAGE_VISUAL_URL;
public static readonly int AlphaMaskURL = NDalic.IMAGE_VISUAL_ALPHA_MASK_URL;
public static readonly int FittingMode = NDalic.IMAGE_VISUAL_FITTING_MODE;
public static readonly int SamplingMode = NDalic.IMAGE_VISUAL_SAMPLING_MODE;
public static readonly int DesiredWidth = NDalic.IMAGE_VISUAL_DESIRED_WIDTH;
public static readonly int DesiredHeight = NDalic.IMAGE_VISUAL_DESIRED_HEIGHT;
public static readonly int SynchronousLoading = NDalic.IMAGE_VISUAL_SYNCHRONOUS_LOADING;
public static readonly int BorderOnly = NDalic.IMAGE_VISUAL_BORDER_ONLY;
public static readonly int PixelArea = NDalic.IMAGE_VISUAL_PIXEL_AREA;
public static readonly int WrapModeU = NDalic.IMAGE_VISUAL_WRAP_MODE_U;
public static readonly int WrapModeV = NDalic.IMAGE_VISUAL_WRAP_MODE_V;
public static readonly int Border = NDalic.IMAGE_VISUAL_BORDER;
public static readonly int MaskContentScale = NDalic.IMAGE_VISUAL_MASK_CONTENT_SCALE;
public static readonly int CropToMask = NDalic.IMAGE_VISUAL_CROP_TO_MASK;
public static readonly int BatchSize = NDalic.IMAGE_VISUAL_BATCH_SIZE;
public static readonly int CacheSize = NDalic.IMAGE_VISUAL_CACHE_SIZE;
public static readonly int FrameDelay = NDalic.IMAGE_VISUAL_FRAME_DELAY;
public static readonly int ReleasePolicy = NDalic.IMAGE_VISUAL_RELEASE_POLICY;
public static readonly int LoadPolicy = NDalic.IMAGE_VISUAL_LOAD_POLICY;
public static readonly int OrientationCorrection = NDalic.IMAGE_VISUAL_ORIENTATION_CORRECTION;
}
///
/// This specifies properties of MeshVisual.
///
public struct MeshVisualProperty
{
public static readonly int ObjectURL = NDalic.MESH_VISUAL_OBJECT_URL;
public static readonly int MaterialtURL = NDalic.MESH_VISUAL_MATERIAL_URL;
public static readonly int TexturesPath = NDalic.MESH_VISUAL_TEXTURES_PATH;
public static readonly int ShadingMode = NDalic.MESH_VISUAL_SHADING_MODE;
public static readonly int UseMipmapping = NDalic.MESH_VISUAL_USE_MIPMAPPING;
public static readonly int UseSoftNormals = NDalic.MESH_VISUAL_USE_SOFT_NORMALS;
public static readonly int LightPosition = NDalic.MESH_VISUAL_LIGHT_POSITION;
}
///
/// This specifies properties of PrimitiveVisual.
///
public struct PrimitiveVisualProperty
{
public static readonly int Shape = NDalic.PRIMITIVE_VISUAL_SHAPE;
public static readonly int MixColor = NDalic.PRIMITIVE_VISUAL_MIX_COLOR;
public static readonly int Slices = NDalic.PRIMITIVE_VISUAL_SLICES;
public static readonly int Stacks = NDalic.PRIMITIVE_VISUAL_STACKS;
public static readonly int ScaleTopRadius = NDalic.PRIMITIVE_VISUAL_SCALE_TOP_RADIUS;
public static readonly int ScaleBottomRadius = NDalic.PRIMITIVE_VISUAL_SCALE_BOTTOM_RADIUS;
public static readonly int ScaleHeight = NDalic.PRIMITIVE_VISUAL_SCALE_HEIGHT;
public static readonly int ScaleRadius = NDalic.PRIMITIVE_VISUAL_SCALE_RADIUS;
public static readonly int ScaleDimensions = NDalic.PRIMITIVE_VISUAL_SCALE_DIMENSIONS;
public static readonly int BevelPercentage = NDalic.PRIMITIVE_VISUAL_BEVEL_PERCENTAGE;
public static readonly int BevelSmoothness = NDalic.PRIMITIVE_VISUAL_BEVEL_SMOOTHNESS;
public static readonly int LightPosition = NDalic.PRIMITIVE_VISUAL_LIGHT_POSITION;
}
///
/// This specifies properties of TextVisual.
///
public struct TextVisualProperty
{
public static readonly int Text = NDalic.TEXT_VISUAL_TEXT;
public static readonly int FontFamily = NDalic.TEXT_VISUAL_FONT_FAMILY;
public static readonly int FontStyle = NDalic.TEXT_VISUAL_FONT_STYLE;
public static readonly int PointSize = NDalic.TEXT_VISUAL_POINT_SIZE;
public static readonly int MultiLine = NDalic.TEXT_VISUAL_MULTI_LINE;
public static readonly int HorizontalAlignment = NDalic.TEXT_VISUAL_HORIZONTAL_ALIGNMENT;
public static readonly int VerticalAlignment = NDalic.TEXT_VISUAL_VERTICAL_ALIGNMENT;
public static readonly int TextColor = NDalic.TEXT_VISUAL_TEXT_COLOR;
public static readonly int EnableMarkup = NDalic.TEXT_VISUAL_ENABLE_MARKUP;
}
///
/// This specifies properties of NpatchImageVisual.
///
public struct NpatchImageVisualProperty
{
public static readonly int URL = NDalic.IMAGE_VISUAL_URL;
public static readonly int FittingMode = NDalic.IMAGE_VISUAL_FITTING_MODE;
public static readonly int SamplingMode = NDalic.IMAGE_VISUAL_SAMPLING_MODE;
public static readonly int DesiredWidth = NDalic.IMAGE_VISUAL_DESIRED_WIDTH;
public static readonly int DesiredHeight = NDalic.IMAGE_VISUAL_DESIRED_HEIGHT;
public static readonly int SynchronousLoading = NDalic.IMAGE_VISUAL_SYNCHRONOUS_LOADING;
public static readonly int BorderOnly = NDalic.IMAGE_VISUAL_BORDER_ONLY;
public static readonly int PixelArea = NDalic.IMAGE_VISUAL_PIXEL_AREA;
public static readonly int WrapModeU = NDalic.IMAGE_VISUAL_WRAP_MODE_U;
public static readonly int WrapModeV = NDalic.IMAGE_VISUAL_WRAP_MODE_V;
public static readonly int Border = NDalic.IMAGE_VISUAL_WRAP_MODE_V + 1;
}
///
/// HiddenInput Property.
///
public struct HiddenInputProperty
{
public static readonly int Mode = NDalicManualPINVOKE.HIDDENINPUT_PROPERTY_MODE_get();
public static readonly int SubstituteCharacter = NDalicManualPINVOKE.HIDDENINPUT_PROPERTY_SUBSTITUTE_CHARACTER_get();
public static readonly int SubstituteCount = NDalicManualPINVOKE.HIDDENINPUT_PROPERTY_SUBSTITUTE_COUNT_get();
public static readonly int ShowLastCharacterDuration = NDalicManualPINVOKE.HIDDENINPUT_PROPERTY_SHOW_LAST_CHARACTER_DURATION_get();
}
///
/// The type for HiddenInput mode.
///
public enum HiddenInputModeType
{
///
/// Don't hide text.
///
HideNone,
///
/// Hide all the input text.
///
HideAll,
///
/// Hide n characters from start.
///
HideCount,
///
/// Show n characters from start.
///
ShowCount,
///
/// Show last character for the duration(use ShowLastCharacterDuration property to modify duration).
///
ShowLastCharacter
}
///
/// ParentOrigin constants.
///
public struct ParentOrigin
{
public static float Top
{
get
{
float ret = NDalicPINVOKE.ParentOriginTop_get();
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
}
public static float Bottom
{
get
{
float ret = NDalicPINVOKE.ParentOriginBottom_get();
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
}
public static float Left
{
get
{
float ret = NDalicPINVOKE.ParentOriginLeft_get();
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
}
public static float Right
{
get
{
float ret = NDalicPINVOKE.ParentOriginRight_get();
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
}
public static float Middle
{
get
{
float ret = NDalicPINVOKE.ParentOriginMiddle_get();
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
}
public static Position TopLeft
{
get
{
global::System.IntPtr cPtr = NDalicPINVOKE.ParentOriginTopLeft_get();
Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
}
public static Position TopCenter
{
get
{
global::System.IntPtr cPtr = NDalicPINVOKE.ParentOriginTopCenter_get();
Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
}
public static Position TopRight
{
get
{
global::System.IntPtr cPtr = NDalicPINVOKE.ParentOriginTopRight_get();
Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
}
public static Position CenterLeft
{
get
{
global::System.IntPtr cPtr = NDalicPINVOKE.ParentOriginCenterLeft_get();
Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
}
public static Position Center
{
get
{
global::System.IntPtr cPtr = NDalicPINVOKE.ParentOriginCenter_get();
Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
}
public static Position CenterRight
{
get
{
global::System.IntPtr cPtr = NDalicPINVOKE.ParentOriginCenterRight_get();
Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
}
public static Position BottomLeft
{
get
{
global::System.IntPtr cPtr = NDalicPINVOKE.ParentOriginBottomLeft_get();
Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
}
public static Position BottomCenter
{
get
{
global::System.IntPtr cPtr = NDalicPINVOKE.ParentOriginBottomCenter_get();
Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
}
public static Position BottomRight
{
get
{
global::System.IntPtr cPtr = NDalicPINVOKE.ParentOriginBottomRight_get();
Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
}
}
///
/// PivotPoint constants.
///
public struct PivotPoint
{
public static float Top
{
get
{
float ret = NDalicPINVOKE.AnchorPointTop_get();
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
}
public static float Bottom
{
get
{
float ret = NDalicPINVOKE.AnchorPointBottom_get();
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
}
public static float Left
{
get
{
float ret = NDalicPINVOKE.AnchorPointLeft_get();
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
}
public static float Right
{
get
{
float ret = NDalicPINVOKE.AnchorPointRight_get();
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
}
public static float Middle
{
get
{
float ret = NDalicPINVOKE.AnchorPointMiddle_get();
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
}
public static Position TopLeft
{
get
{
global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointTopLeft_get();
Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
}
public static Position TopCenter
{
get
{
global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointTopCenter_get();
Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
}
public static Position TopRight
{
get
{
global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointTopRight_get();
Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
}
public static Position CenterLeft
{
get
{
global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointCenterLeft_get();
Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
}
public static Position Center
{
get
{
global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointCenter_get();
Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
}
public static Position CenterRight
{
get
{
global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointCenterRight_get();
Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
}
public static Position BottomLeft
{
get
{
global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointBottomLeft_get();
Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
}
public static Position BottomCenter
{
get
{
global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointBottomCenter_get();
Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
}
public static Position BottomRight
{
get
{
global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointBottomRight_get();
Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
}
}
///
/// PositionAxis constants.
///
public struct PositionAxis
{
public static Position X
{
get
{
global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_XAXIS_get();
Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
}
public static Position Y
{
get
{
global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_YAXIS_get();
Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
}
public static Position Z
{
get
{
global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_ZAXIS_get();
Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
}
public static Position NegativeX
{
get
{
global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_NEGATIVE_XAXIS_get();
Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
}
public static Position NegativeY
{
get
{
global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_NEGATIVE_YAXIS_get();
Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
}
public static Position NegativeZ
{
get
{
global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_NEGATIVE_ZAXIS_get();
Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
}
}
///
/// Auto scrolling stop behaviour.
///
public enum AutoScrollStopMode
{
///
/// Stop animation after current loop finished.
///
FinishLoop,
///
/// Stop animation immediatly and reset position.
///
Immediate
}
///
/// An enum of screen mode.
///
public enum ScreenOffMode {
///
/// The mode which turns the screen off after a timeout.
///
Timout,
///
/// The mode which keeps the screen turned on.
///
Never
}
///
/// An enum of notification window's priority level.
///
public enum NotificationLevel {
///
/// No notification level.
/// Default level.
/// This value makes the notification window place in the layer of the normal window.
///
None = -1,
///
/// Base nofitication level.
///
Base = 10,
///
/// Medium notification level than base.
///
Medium = 20,
///
/// Higher notification level than medium.
///
High = 30,
///
/// The highest notification level.
///
Top = 40
}
///
/// An enum of Window types.
///
public enum WindowType {
///
/// A default window type.
/// Indicates a normal, top-level window.
/// Almost every window will be created with this type.
///
Normal,
///
/// A notification window, like a warning about battery life or a new E-Mail received.
///
Notification,
///
/// A persistent utility window, like a toolbox or palette.
///
Utility,
///
/// Used for simple dialog windows.
///
Dialog
}
public enum DisposeTypes
{
Explicit, //Called By User
Implicit, //Called by DisposeQueue
}
[Obsolete("Please do not use! this will be deprecated")]
public struct AnchorPoint
{
public static float Top
{
get
{
float ret = NDalicPINVOKE.AnchorPointTop_get();
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
}
public static float Bottom
{
get
{
float ret = NDalicPINVOKE.AnchorPointBottom_get();
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
}
public static float Left
{
get
{
float ret = NDalicPINVOKE.AnchorPointLeft_get();
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
}
public static float Right
{
get
{
float ret = NDalicPINVOKE.AnchorPointRight_get();
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
}
public static float Middle
{
get
{
float ret = NDalicPINVOKE.AnchorPointMiddle_get();
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
}
public static Position TopLeft
{
get
{
global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointTopLeft_get();
Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
}
public static Position TopCenter
{
get
{
global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointTopCenter_get();
Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
}
public static Position TopRight
{
get
{
global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointTopRight_get();
Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
}
public static Position CenterLeft
{
get
{
global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointCenterLeft_get();
Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
}
public static Position Center
{
get
{
global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointCenter_get();
Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
}
public static Position CenterRight
{
get
{
global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointCenterRight_get();
Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
}
public static Position BottomLeft
{
get
{
global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointBottomLeft_get();
Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
}
public static Position BottomCenter
{
get
{
global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointBottomCenter_get();
Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
}
public static Position BottomRight
{
get
{
global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointBottomRight_get();
Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
}
}
///
/// An enum of scroll state of text eidtor.
///
public enum ScrollState
{
///
/// Scrolling is started.
///
Started,
///
/// Scrolling is finished.
///
Finished
}
///
/// An enum of line wrap mode of text controls.
///
public enum LineWrapMode
{
///
/// Word mode will move word to next line
///
Word,
///
/// character will move character by character to next line
///
Character
}
}