From 5e64883e9109a6af62dbe544d2f756940f4df004 Mon Sep 17 00:00:00 2001 From: Anton Tarasov Date: Tue, 24 Dec 2024 10:06:51 +0300 Subject: [PATCH 01/11] Gen with idlize 1.3.23 --- .../generated/ArkNavPathStackMaterialized.ts | 8 +- .../src/generated/arkoala_api_generated.h | 2 +- arkoala/framework/src/generated/EnumsImpl.ts | 12098 +++++++++++++--- arkoala/tools/peer-generator/package.json | 4 +- 4 files changed, 9987 insertions(+), 2125 deletions(-) diff --git a/arkoala-arkts/arkui/src/generated/ArkNavPathStackMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkNavPathStackMaterialized.ts index 3c9a3db88..c6e8df22e 100644 --- a/arkoala-arkts/arkui/src/generated/ArkNavPathStackMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkNavPathStackMaterialized.ts @@ -25,10 +25,11 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback } from "./peers/SerializerBase" import { NativeModule } from "#components" -import { wrapCallback } from "@koalaui/interop" +import { wrapCallback, NativeBuffer } from "@koalaui/interop" import { CallbackKind } from "./peers/CallbackKind" import { CallbackTransformer } from "./peers/CallbackTransformer" + import { int32, float32 @@ -47,10 +48,8 @@ import { pointer } from "@koalaui/interop" -import { NavPathStackExtender } from "../handwritten" export class NavPathStack implements MaterializedBase,INTERFACE_NavPathStack { - _extender = new NavPathStackExtender() peer?: Finalizable getPeer(): Finalizable | undefined { return this.peer @@ -74,7 +73,6 @@ export class NavPathStack implements MaterializedBase,INTERFACE_NavPathStack { return NativeModule._NavPathStack_getFinalizer() } pushPath(info: NavPathInfo, animated?: boolean | undefined | NavigationOptions | undefined): void { - this._extender.push(info.name, info.param) const info_type = runtimeType(info) const animated_type = runtimeType(animated) if ((((RuntimeType.OBJECT) == (info_type)) && (TypeChecker.isNavPathInfo(info, true, true, true, true))) && (((RuntimeType.BOOLEAN == animated_type)) || ((RuntimeType.UNDEFINED == animated_type)))) { @@ -90,7 +88,6 @@ export class NavPathStack implements MaterializedBase,INTERFACE_NavPathStack { throw new Error("Can not select appropriate overload") } pushDestination(info: NavPathInfo, animated?: boolean | undefined | NavigationOptions | undefined): Promise { - this._extender.push(info.name, info.param) const info_type = runtimeType(info) const animated_type = runtimeType(animated) if ((((RuntimeType.OBJECT) == (info_type)) && (TypeChecker.isNavPathInfo(info, true, true, true, true))) && (((RuntimeType.BOOLEAN == animated_type)) || ((RuntimeType.UNDEFINED == animated_type)))) { @@ -184,7 +181,6 @@ export class NavPathStack implements MaterializedBase,INTERFACE_NavPathStack { return this.removeByNavDestinationId_serialize(navDestinationId_casted) } pop(result?: Object | boolean | undefined, animated?: boolean): NavPathInfo | undefined { - this._extender.pop() const result_type = runtimeType(result) const animated_type = runtimeType(animated) if ((((RuntimeType.OBJECT == result_type))) && (((RuntimeType.BOOLEAN == animated_type)) || ((RuntimeType.UNDEFINED == animated_type)))) { diff --git a/arkoala/framework/native/src/generated/arkoala_api_generated.h b/arkoala/framework/native/src/generated/arkoala_api_generated.h index c85f62996..e2405207a 100644 --- a/arkoala/framework/native/src/generated/arkoala_api_generated.h +++ b/arkoala/framework/native/src/generated/arkoala_api_generated.h @@ -23,7 +23,7 @@ // The only include allowed in this file! Do not add anything else ever. #include -#define GENERATED_ARKUI_FULL_API_VERSION 108 +#define GENERATED_ARKUI_FULL_API_VERSION 110 #define GENERATED_ARKUI_NODE_API_VERSION GENERATED_ARKUI_FULL_API_VERSION #define GENERATED_ARKUI_BASIC_NODE_API_VERSION 1 diff --git a/arkoala/framework/src/generated/EnumsImpl.ts b/arkoala/framework/src/generated/EnumsImpl.ts index af552fa8f..8da4c2fa0 100644 --- a/arkoala/framework/src/generated/EnumsImpl.ts +++ b/arkoala/framework/src/generated/EnumsImpl.ts @@ -1,2118 +1,9984 @@ import { int32 } from "@koalaui/common" -export enum PointerStyle { - DEFAULT, - EAST = 1, - WEST = 2, - SOUTH = 3, - NORTH = 4, - WEST_EAST = 5, - NORTH_SOUTH = 6, - NORTH_EAST = 7, - NORTH_WEST = 8, - SOUTH_EAST = 9, - SOUTH_WEST = 10, - NORTH_EAST_SOUTH_WEST = 11, - NORTH_WEST_SOUTH_EAST = 12, - CROSS = 13, - CURSOR_COPY = 14, - CURSOR_FORBID = 15, - COLOR_SUCKER = 16, - HAND_GRABBING = 17, - HAND_OPEN = 18, - HAND_POINTING = 19, - HELP = 20, - MOVE = 21, - RESIZE_LEFT_RIGHT = 22, - RESIZE_UP_DOWN = 23, - SCREENSHOT_CHOOSE = 24, - SCREENSHOT_CURSOR = 25, - TEXT_CURSOR = 26, - ZOOM_IN = 27, - ZOOM_OUT = 28, - MIDDLE_BTN_EAST = 29, - MIDDLE_BTN_WEST = 30, - MIDDLE_BTN_SOUTH = 31, - MIDDLE_BTN_NORTH = 32, - MIDDLE_BTN_NORTH_SOUTH = 33, - MIDDLE_BTN_NORTH_EAST = 34, - MIDDLE_BTN_NORTH_WEST = 35, - MIDDLE_BTN_SOUTH_EAST = 36, - MIDDLE_BTN_SOUTH_WEST = 37, - MIDDLE_BTN_NORTH_SOUTH_WEST_EAST = 38, - HORIZONTAL_TEXT_CURSOR = 39, - CURSOR_CROSS = 40, - CURSOR_CIRCLE = 41, - LOADING = 42, - RUNNING = 43, -} -export enum RectWidthStyle { - TIGHT, - MAX = 1, -} -export enum RectHeightStyle { - TIGHT, - MAX = 1, - INCLUDE_LINE_SPACE_MIDDLE = 2, - INCLUDE_LINE_SPACE_TOP = 3, - INCLUDE_LINE_SPACE_BOTTOM = 4, - STRUT = 5, -} -export enum LengthUnit { - PX, - VP = 1, - FP = 2, - PERCENT = 3, - LPX = 4, -} -export enum DialogAlignment { - TOP, - Top = TOP, - CENTER = 1, - Center = CENTER, - BOTTOM = 2, - Bottom = BOTTOM, - DEFAULT = 3, - Default = DEFAULT, - TOP_START = 4, - TopStart = TOP_START, - TOP_END = 5, - TopEnd = TOP_END, - CENTER_START = 6, - CenterStart = CENTER_START, - CENTER_END = 7, - CenterEnd = CENTER_END, - BOTTOM_START = 8, - BottomStart = BOTTOM_START, - BOTTOM_END = 9, - BottomEnd = BOTTOM_END, -} -export enum DialogButtonDirection { - AUTO, - HORIZONTAL = 1, - VERTICAL = 2, -} -export enum IndexerAlign { - LEFT, - Left = LEFT, - RIGHT = 1, - Right = RIGHT, - START = 2, - END = 3, -} -export enum BadgePosition { - RIGHT_TOP, - RightTop = RIGHT_TOP, - RIGHT = 1, - Right = RIGHT, - LEFT = 2, - Left = LEFT, -} -export enum ButtonType { - CAPSULE, - Capsule = CAPSULE, - CIRCLE = 1, - Circle = CIRCLE, - NORMAL = 2, - Normal = NORMAL, - ROUNDED_RECTANGLE = 3, -} -export enum ButtonStyleMode { - NORMAL, - EMPHASIZED = 1, - TEXTUAL = 2, -} -export enum ButtonRole { - NORMAL, - ERROR = 1, -} -export enum ControlSize { - SMALL = "small", - NORMAL = "normal", -} -export enum CalendarAlign { - START, - CENTER = 1, - END = 2, -} -export enum SelectStatus { - ALL, - All = ALL, - PART = 1, - Part = PART, - NONE = 2, - None = NONE, -} -export enum FinishCallbackType { - REMOVED, - LOGICALLY = 1, -} -export enum TouchTestStrategy { - DEFAULT, - FORWARD_COMPETITION = 1, - FORWARD = 2, -} -export enum TransitionHierarchyStrategy { - NONE, - ADAPTIVE = 1, -} -export enum ChainStyle { - SPREAD, - SPREAD_INSIDE = 1, - PACKED = 2, -} -export enum TransitionEdge { - TOP, - BOTTOM = 1, - START = 2, - END = 3, -} -export enum EffectType { - DEFAULT, - WINDOW_EFFECT = 1, -} -export enum PreDragStatus { - ACTION_DETECTING_STATUS, - READY_TO_TRIGGER_DRAG_ACTION = 1, - PREVIEW_LIFT_STARTED = 2, - PREVIEW_LIFT_FINISHED = 3, - PREVIEW_LANDING_STARTED = 4, - PREVIEW_LANDING_FINISHED = 5, - ACTION_CANCELED_BEFORE_DRAG = 6, -} -export enum SourceType { - UNKNOWN, - Unknown = UNKNOWN, - MOUSE = 1, - Mouse = MOUSE, - TOUCH_SCREEN = 2, - TouchScreen = TOUCH_SCREEN, -} -export enum SourceTool { - UNKNOWN, - Unknown = UNKNOWN, - FINGER = 1, - Finger = FINGER, - PEN = 2, - Pen = PEN, - MOUSE = 3, - TOUCHPAD = 4, - JOYSTICK = 5, -} -export enum RepeatMode { - REPEAT, - Repeat = REPEAT, - STRETCH = 1, - Stretch = STRETCH, - ROUND = 2, - Round = ROUND, - SPACE = 3, - Space = SPACE, -} -export enum BlurStyle { - THIN, - Thin = THIN, - REGULAR = 1, - Regular = REGULAR, - THICK = 2, - Thick = THICK, - BACKGROUND_THIN = 3, - BACKGROUND_REGULAR = 4, - BACKGROUND_THICK = 5, - BACKGROUND_ULTRA_THICK = 6, - NONE = 7, - COMPONENT_ULTRA_THIN = 8, - COMPONENT_THIN = 9, - COMPONENT_REGULAR = 10, - COMPONENT_THICK = 11, - COMPONENT_ULTRA_THICK = 12, -} -export enum BlurStyleActivePolicy { - FOLLOWS_WINDOW_ACTIVE_STATE, - ALWAYS_ACTIVE = 1, - ALWAYS_INACTIVE = 2, -} -export enum ThemeColorMode { - SYSTEM, - LIGHT = 1, - DARK = 2, -} -export enum AdaptiveColor { - DEFAULT, - AVERAGE = 1, -} -export enum ModalTransition { - DEFAULT, - NONE = 1, - ALPHA = 2, -} -export enum ShadowType { - COLOR, - BLUR = 1, -} -export enum ShadowStyle { - OUTER_DEFAULT_XS, - OUTER_DEFAULT_SM = 1, - OUTER_DEFAULT_MD = 2, - OUTER_DEFAULT_LG = 3, - OUTER_FLOATING_SM = 4, - OUTER_FLOATING_MD = 5, -} -export enum SafeAreaType { - SYSTEM, - CUTOUT = 1, - KEYBOARD = 2, -} -export enum SafeAreaEdge { - TOP, - BOTTOM = 1, - START = 2, - END = 3, -} -export enum LayoutSafeAreaType { - SYSTEM, -} -export enum LayoutSafeAreaEdge { - TOP, - BOTTOM = 1, -} -export enum SheetSize { - MEDIUM, - LARGE = 1, - FIT_CONTENT = 2, -} -export enum DragBehavior { - COPY, - MOVE = 1, -} -export enum DragResult { - DRAG_SUCCESSFUL, - DRAG_FAILED = 1, - DRAG_CANCELED = 2, - DROP_ENABLED = 3, - DROP_DISABLED = 4, -} -export enum BlendMode { - NONE, - CLEAR = 1, - SRC = 2, - DST = 3, - SRC_OVER = 4, - DST_OVER = 5, - SRC_IN = 6, - DST_IN = 7, - SRC_OUT = 8, - DST_OUT = 9, - SRC_ATOP = 10, - DST_ATOP = 11, - XOR = 12, - PLUS = 13, - MODULATE = 14, - SCREEN = 15, - OVERLAY = 16, - DARKEN = 17, - LIGHTEN = 18, - COLOR_DODGE = 19, - COLOR_BURN = 20, - HARD_LIGHT = 21, - SOFT_LIGHT = 22, - DIFFERENCE = 23, - EXCLUSION = 24, - MULTIPLY = 25, - HUE = 26, - SATURATION = 27, - COLOR = 28, - LUMINOSITY = 29, -} -export enum BlendApplyType { - FAST, - OFFSCREEN = 1, -} -export enum SheetType { - BOTTOM, - CENTER = 1, - POPUP = 2, -} -export enum SheetMode { - OVERLAY, - EMBEDDED = 1, -} -export enum ScrollSizeMode { - FOLLOW_DETENT, - CONTINUOUS = 1, -} -export enum SheetKeyboardAvoidMode { - NONE, - TRANSLATE_AND_RESIZE = 1, - RESIZE_ONLY = 2, - TRANSLATE_AND_SCROLL = 3, -} -export enum DismissReason { - PRESS_BACK, - TOUCH_OUTSIDE = 1, - CLOSE_BUTTON = 2, - SLIDE_DOWN = 3, -} -export enum MenuPreviewMode { - NONE, - IMAGE = 1, -} -export enum OutlineStyle { - SOLID, - DASHED = 1, - DOTTED = 2, -} -export enum DragPreviewMode { - AUTO = 1, - DISABLE_SCALE = 2, - ENABLE_DEFAULT_SHADOW = 3, - ENABLE_DEFAULT_RADIUS = 4, -} -export enum MenuPolicy { - DEFAULT, - HIDE = 1, - SHOW = 2, -} -export enum ContentClipMode { - CONTENT_ONLY, - BOUNDARY = 1, - SAFE_AREA = 2, -} -export enum KeyboardAvoidMode { - DEFAULT, - NONE = 1, -} -export enum HoverModeAreaType { - TOP_SCREEN, - BOTTOM_SCREEN = 1, -} -export enum ModelType { - TEXTURE, - SURFACE = 1, -} -export enum DataPanelType { - LINE, - Line = LINE, - CIRCLE = 1, - Circle = CIRCLE, -} -export enum CheckBoxShape { - CIRCLE, - ROUNDED_SQUARE = 1, -} -export enum Color { - WHITE, - White = WHITE, - BLACK = 1, - Black = BLACK, - BLUE = 2, - Blue = BLUE, - BROWN = 3, - Brown = BROWN, - GRAY = 4, - Gray = GRAY, - GREEN = 5, - Green = GREEN, - GREY = 6, - Grey = GREY, - ORANGE = 7, - Orange = ORANGE, - PINK = 8, - Pink = PINK, - RED = 9, - Red = RED, - YELLOW = 10, - Yellow = YELLOW, - TRANSPARENT = 11, - Transparent = TRANSPARENT, -} -export enum ColoringStrategy { - INVERT = "invert", - AVERAGE = "average", - PRIMARY = "primary", -} -export enum ImageFit { - CONTAIN, - Contain = CONTAIN, - COVER = 1, - Cover = COVER, - AUTO = 2, - Auto = AUTO, - FILL = 3, - Fill = FILL, - SCALE_DOWN = 4, - ScaleDown = SCALE_DOWN, - NONE = 5, - None = NONE, - TOP_START = 7, - TOP = 8, - TOP_END = 9, - START = 10, - CENTER = 11, - END = 12, - BOTTOM_START = 13, - BOTTOM = 14, - BOTTOM_END = 15, -} -export enum BorderStyle { - DOTTED, - Dotted = DOTTED, - DASHED = 1, - Dashed = DASHED, - SOLID = 2, - Solid = SOLID, -} -export enum LineJoinStyle { - MITER, - Miter = MITER, - ROUND = 1, - Round = ROUND, - BEVEL = 2, - Bevel = BEVEL, -} -export enum TouchType { - DOWN, - Down = DOWN, - UP = 1, - Up = UP, - MOVE = 2, - Move = MOVE, - CANCEL = 3, - Cancel = CANCEL, -} -export enum MouseButton { - LEFT, - Left = LEFT, - RIGHT = 1, - Right = RIGHT, - MIDDLE = 2, - Middle = MIDDLE, - BACK = 3, - Back = BACK, - FORWARD = 4, - Forward = FORWARD, - NONE = 5, - None = NONE, -} -export enum MouseAction { - PRESS, - Press = PRESS, - RELEASE = 1, - Release = RELEASE, - MOVE = 2, - Move = MOVE, - HOVER = 3, - Hover = HOVER, -} -export enum AnimationStatus { - INITIAL, - Initial = INITIAL, - RUNNING = 1, - Running = RUNNING, - PAUSED = 2, - Paused = PAUSED, - STOPPED = 3, - Stopped = STOPPED, -} -export enum Curve { - LINEAR, - Linear = LINEAR, - EASE = 1, - Ease = EASE, - EASE_IN = 2, - EaseIn = EASE_IN, - EASE_OUT = 3, - EaseOut = EASE_OUT, - EASE_IN_OUT = 4, - EaseInOut = EASE_IN_OUT, - FAST_OUT_SLOW_IN = 5, - FastOutSlowIn = FAST_OUT_SLOW_IN, - LINEAR_OUT_SLOW_IN = 6, - LinearOutSlowIn = LINEAR_OUT_SLOW_IN, - FAST_OUT_LINEAR_IN = 7, - FastOutLinearIn = FAST_OUT_LINEAR_IN, - EXTREME_DECELERATION = 8, - ExtremeDeceleration = EXTREME_DECELERATION, - SHARP = 9, - Sharp = SHARP, - RHYTHM = 10, - Rhythm = RHYTHM, - SMOOTH = 11, - Smooth = SMOOTH, - FRICTION = 12, - Friction = FRICTION, -} -export enum FillMode { - NONE, - None = NONE, - FORWARDS = 1, - Forwards = FORWARDS, - BACKWARDS = 2, - Backwards = BACKWARDS, - BOTH = 3, - Both = BOTH, -} -export enum PlayMode { - NORMAL, - Normal = NORMAL, - REVERSE = 1, - Reverse = REVERSE, - ALTERNATE = 2, - Alternate = ALTERNATE, - ALTERNATE_REVERSE = 3, - AlternateReverse = ALTERNATE_REVERSE, -} -export enum KeyType { - DOWN, - Down = DOWN, - UP = 1, - Up = UP, -} -export enum KeySource { - UNKNOWN, - Unknown = UNKNOWN, - KEYBOARD = 1, - Keyboard = KEYBOARD, -} -export enum Edge { - TOP, - Top = TOP, - CENTER = 1, - Center = CENTER, - BOTTOM = 2, - Bottom = BOTTOM, - BASELINE = 3, - Baseline = BASELINE, - START = 4, - Start = START, - MIDDLE = 5, - Middle = MIDDLE, - END = 6, - End = END, -} -export enum Week { - MON, - Mon = MON, - TUE = 1, - Tue = TUE, - WED = 2, - Wed = WED, - THUR = 3, - Thur = THUR, - FRI = 4, - Fri = FRI, - SAT = 5, - Sat = SAT, - SUN = 6, - Sun = SUN, -} -export enum Direction { - LTR, - Ltr = LTR, - RTL = 1, - Rtl = RTL, - AUTO = 2, - Auto = AUTO, -} -export enum BarState { - OFF, - Off = OFF, - AUTO = 1, - Auto = AUTO, - ON = 2, - On = ON, -} -export enum EdgeEffect { - SPRING, - Spring = SPRING, - FADE = 1, - Fade = FADE, - NONE = 2, - None = NONE, -} -export enum Alignment { - TOP_START, - TopStart = TOP_START, - TOP = 1, - Top = TOP, - TOP_END = 2, - TopEnd = TOP_END, - START = 3, - Start = START, - CENTER = 4, - Center = CENTER, - END = 5, - End = END, - BOTTOM_START = 6, - BottomStart = BOTTOM_START, - BOTTOM = 7, - Bottom = BOTTOM, - BOTTOM_END = 8, - BottomEnd = BOTTOM_END, -} -export enum TransitionType { - ALL, - All = ALL, - INSERT = 1, - Insert = INSERT, - DELETE = 2, - Delete = DELETE, -} -export enum RelateType { - FILL, - FIT = 1, -} -export enum Visibility { - VISIBLE, - Visible = VISIBLE, - HIDDEN = 1, - Hidden = HIDDEN, - NONE = 2, - None = NONE, -} -export enum LineCapStyle { - BUTT, - Butt = BUTT, - ROUND = 1, - Round = ROUND, - SQUARE = 2, - Square = SQUARE, -} -export enum Axis { - VERTICAL, - Vertical = VERTICAL, - HORIZONTAL = 1, - Horizontal = HORIZONTAL, -} -export enum HorizontalAlign { - START, - Start = START, - CENTER = 1, - Center = CENTER, - END = 2, - End = END, -} -export enum FlexAlign { - START, - Start = START, - CENTER = 1, - Center = CENTER, - END = 2, - End = END, - SPACE_BETWEEN = 3, - SpaceBetween = SPACE_BETWEEN, - SPACE_AROUND = 4, - SpaceAround = SPACE_AROUND, - SPACE_EVENLY = 5, - SpaceEvenly = SPACE_EVENLY, -} -export enum ItemAlign { - AUTO, - Auto = AUTO, - START = 1, - Start = START, - CENTER = 2, - Center = CENTER, - END = 3, - End = END, - BASELINE = 4, - Baseline = BASELINE, - STRETCH = 5, - Stretch = STRETCH, -} -export enum FlexDirection { - ROW, - Row = ROW, - COLUMN = 1, - Column = COLUMN, - ROW_REVERSE = 2, - RowReverse = ROW_REVERSE, - COLUMN_REVERSE = 3, - ColumnReverse = COLUMN_REVERSE, -} -export enum PixelRoundCalcPolicy { - NO_FORCE_ROUND, - FORCE_CEIL = 1, - FORCE_FLOOR = 2, -} -export enum FlexWrap { - NO_WRAP, - NoWrap = NO_WRAP, - WRAP = 1, - Wrap = WRAP, - WRAP_REVERSE = 2, - WrapReverse = WRAP_REVERSE, -} -export enum VerticalAlign { - TOP, - Top = TOP, - CENTER = 1, - Center = CENTER, - BOTTOM = 2, - Bottom = BOTTOM, -} -export enum ImageRepeat { - NO_REPEAT, - NoRepeat = NO_REPEAT, - X = 1, - Y = 2, - XY = 3, -} -export enum ImageSize { - AUTO, - Auto = AUTO, - COVER = 1, - Cover = COVER, - CONTAIN = 2, - Contain = CONTAIN, - FILL = 3, -} -export enum GradientDirection { - LEFT, - Left = LEFT, - TOP = 1, - Top = TOP, - RIGHT = 2, - Right = RIGHT, - BOTTOM = 3, - Bottom = BOTTOM, - LEFT_TOP = 4, - LeftTop = LEFT_TOP, - LEFT_BOTTOM = 5, - LeftBottom = LEFT_BOTTOM, - RIGHT_TOP = 6, - RightTop = RIGHT_TOP, - RIGHT_BOTTOM = 7, - RightBottom = RIGHT_BOTTOM, - NONE = 8, - None = NONE, -} -export enum SharedTransitionEffectType { - STATIC, - Static = STATIC, - EXCHANGE = 1, - Exchange = EXCHANGE, -} -export enum FontStyle { - NORMAL, - Normal = NORMAL, - ITALIC = 1, - Italic = ITALIC, -} -export enum FontWeight { - LIGHTER, - Lighter = LIGHTER, - NORMAL = 1, - Normal = NORMAL, - REGULAR = 2, - Regular = REGULAR, - MEDIUM = 3, - Medium = MEDIUM, - BOLD = 4, - Bold = BOLD, - BOLDER = 5, - Bolder = BOLDER, -} -export enum TextAlign { - CENTER, - Center = CENTER, - START = 1, - Start = START, - END = 2, - End = END, - JUSTIFY = 3, -} -export enum TextOverflow { - NONE, - None = NONE, - CLIP = 1, - Clip = CLIP, - ELLIPSIS = 2, - Ellipsis = ELLIPSIS, - MARQUEE = 3, -} -export enum TextDecorationType { - NONE, - None = NONE, - UNDERLINE = 1, - Underline = UNDERLINE, - OVERLINE = 2, - Overline = OVERLINE, - LINE_THROUGH = 3, - LineThrough = LINE_THROUGH, -} -export enum TextCase { - NORMAL, - Normal = NORMAL, - LOWER_CASE = 1, - LowerCase = LOWER_CASE, - UPPER_CASE = 2, - UpperCase = UPPER_CASE, -} -export enum TextHeightAdaptivePolicy { - MAX_LINES_FIRST, - MIN_FONT_SIZE_FIRST = 1, - LAYOUT_CONSTRAINT_FIRST = 2, -} -export enum ResponseType { - RIGHT_CLICK, - RightClick = RIGHT_CLICK, - LONG_PRESS = 1, - LongPress = LONG_PRESS, -} -export enum HoverEffect { - AUTO, - Auto = AUTO, - SCALE = 1, - Scale = SCALE, - HIGHLIGHT = 2, - Highlight = HIGHLIGHT, - NONE = 3, - None = NONE, -} -export enum Placement { - LEFT, - Left = LEFT, - RIGHT = 1, - Right = RIGHT, - TOP = 2, - Top = TOP, - BOTTOM = 3, - Bottom = BOTTOM, - TOP_LEFT = 4, - TopLeft = TOP_LEFT, - TOP_RIGHT = 5, - TopRight = TOP_RIGHT, - BOTTOM_LEFT = 6, - BottomLeft = BOTTOM_LEFT, - BOTTOM_RIGHT = 7, - BottomRight = BOTTOM_RIGHT, - LEFT_TOP = 8, - LeftTop = LEFT_TOP, - LEFT_BOTTOM = 9, - LeftBottom = LEFT_BOTTOM, - RIGHT_TOP = 10, - RightTop = RIGHT_TOP, - RIGHT_BOTTOM = 11, - RightBottom = RIGHT_BOTTOM, -} -export enum ArrowPointPosition { - START = "Start", - CENTER = "Center", - END = "End", -} -export enum CopyOptions { - NONE, - None = NONE, - IN_APP = 1, - InApp = IN_APP, - LOCAL_DEVICE = 2, - LocalDevice = LOCAL_DEVICE, - CROSS_DEVICE = 3, -} -export enum HitTestMode { - DEFAULT, - Default = DEFAULT, - BLOCK = 1, - Block = BLOCK, - TRANSPARENT = 2, - Transparent = TRANSPARENT, - NONE = 3, - None = NONE, -} -export enum TitleHeight { - MAIN_ONLY, - MainOnly = MAIN_ONLY, - MAIN_WITH_SUB = 1, - MainWithSub = MAIN_WITH_SUB, -} -export enum ModifierKey { - CTRL, - SHIFT = 1, - ALT = 2, -} -export enum FunctionKey { - ESC, - F1 = 1, - F2 = 2, - F3 = 3, - F4 = 4, - F5 = 5, - F6 = 6, - F7 = 7, - F8 = 8, - F9 = 9, - F10 = 10, - F11 = 11, - F12 = 12, - TAB = 13, - DPAD_UP = 14, - DPAD_DOWN = 15, - DPAD_LEFT = 16, - DPAD_RIGHT = 17, -} -export enum ImageSpanAlignment { - BASELINE, - BOTTOM = 1, - CENTER = 2, - TOP = 3, -} -export enum ObscuredReasons { - PLACEHOLDER, -} -export enum TextContentStyle { - DEFAULT, - INLINE = 1, -} -export enum ClickEffectLevel { - LIGHT, - MIDDLE = 1, - HEAVY = 2, -} -export enum XComponentType { - SURFACE, - COMPONENT = 1, - TEXTURE = 2, - NODE = 3, -} -export enum NestedScrollMode { - SELF_ONLY, - SELF_FIRST = 1, - PARENT_FIRST = 2, - PARALLEL = 3, -} -export enum ScrollSource { - DRAG, - FLING = 1, - EDGE_EFFECT = 2, - OTHER_USER_INPUT = 3, - SCROLL_BAR = 4, - SCROLL_BAR_FLING = 5, - SCROLLER = 6, - SCROLLER_ANIMATION = 7, -} -export enum RenderFit { - CENTER, - TOP = 1, - BOTTOM = 2, - LEFT = 3, - RIGHT = 4, - TOP_LEFT = 5, - TOP_RIGHT = 6, - BOTTOM_LEFT = 7, - BOTTOM_RIGHT = 8, - RESIZE_FILL = 9, - RESIZE_CONTAIN = 10, - RESIZE_CONTAIN_TOP_LEFT = 11, - RESIZE_CONTAIN_BOTTOM_RIGHT = 12, - RESIZE_COVER = 13, - RESIZE_COVER_TOP_LEFT = 14, - RESIZE_COVER_BOTTOM_RIGHT = 15, -} -export enum DialogButtonStyle { - DEFAULT, - HIGHLIGHT = 1, -} -export enum WordBreak { - NORMAL, - BREAK_ALL = 1, - BREAK_WORD = 2, -} -export enum LineBreakStrategy { - GREEDY, - HIGH_QUALITY = 1, - BALANCED = 2, -} -export enum EllipsisMode { - START, - CENTER = 1, - END = 2, -} -export enum OptionWidthMode { - FIT_CONTENT = "fit_content", - FIT_TRIGGER = "fit_trigger", -} -export enum IlluminatedType { - NONE, - BORDER = 1, - CONTENT = 2, - BORDER_CONTENT = 3, - BLOOM_BORDER = 4, - BLOOM_BORDER_CONTENT = 5, -} -export enum FoldStatus { - FOLD_STATUS_UNKNOWN, - FOLD_STATUS_EXPANDED = 1, - FOLD_STATUS_FOLDED = 2, - FOLD_STATUS_HALF_FOLDED = 3, -} -export enum AppRotation { - ROTATION_0, - ROTATION_90 = 1, - ROTATION_180 = 2, - ROTATION_270 = 3, -} -export enum EmbeddedType { - EMBEDDED_UI_EXTENSION, -} -export enum MarqueeUpdateStrategy { - DEFAULT, - PRESERVE_POSITION = 1, -} -export enum TextDecorationStyle { - SOLID, - DOUBLE = 1, - DOTTED = 2, - DASHED = 3, - WAVY = 4, -} -export enum TextSelectableMode { - SELECTABLE_UNFOCUSABLE, - SELECTABLE_FOCUSABLE = 1, - UNSELECTABLE = 2, -} -export enum AccessibilityHoverType { - HOVER_ENTER, - HOVER_MOVE = 1, - HOVER_EXIT = 2, - HOVER_CANCEL = 3, -} -export enum WidthBreakpoint { - WIDTH_XS, - WIDTH_SM = 1, - WIDTH_MD = 2, - WIDTH_LG = 3, - WIDTH_XL = 4, -} -export enum HeightBreakpoint { - HEIGHT_SM, - HEIGHT_MD = 1, - HEIGHT_LG = 2, -} -export enum FocusPriority { - AUTO, - PRIOR = 2000, - PREVIOUS = 3000, -} -export enum FormDimension { - DIMENSION_1_2, - Dimension_1_2 = DIMENSION_1_2, - DIMENSION_2_2 = 1, - Dimension_2_2 = DIMENSION_2_2, - DIMENSION_2_4 = 2, - Dimension_2_4 = DIMENSION_2_4, - DIMENSION_4_4 = 3, - Dimension_4_4 = DIMENSION_4_4, - DIMENSION_2_1 = 4, - Dimension_2_1 = DIMENSION_2_1, - DIMENSION_1_1 = 6, - DIMENSION_6_4 = 7, -} -export enum FormRenderingMode { - FULL_COLOR, - SINGLE_COLOR = 1, -} -export enum FormShape { - RECT = 1, - CIRCLE = 2, -} -export enum PanDirection { - NONE, - None = NONE, - HORIZONTAL = 1, - Horizontal = HORIZONTAL, - LEFT = 2, - Left = LEFT, - RIGHT = 3, - Right = RIGHT, - VERTICAL = 4, - Vertical = VERTICAL, - UP = 5, - Up = UP, - DOWN = 6, - Down = DOWN, - ALL = 7, - All = ALL, -} -export enum SwipeDirection { - NONE, - None = NONE, - HORIZONTAL = 1, - Horizontal = HORIZONTAL, - VERTICAL = 2, - Vertical = VERTICAL, - ALL = 3, - All = ALL, -} -export enum GestureMode { - SEQUENCE, - Sequence = SEQUENCE, - PARALLEL = 1, - Parallel = PARALLEL, - EXCLUSIVE = 2, - Exclusive = EXCLUSIVE, -} -export enum GestureMask { - NORMAL, - Normal = NORMAL, - IGNORE_INTERNAL = 1, - IgnoreInternal = IGNORE_INTERNAL, -} -export enum GestureJudgeResult { - CONTINUE, - REJECT = 1, -} -export namespace GestureControl { - export enum GestureType { - TAP_GESTURE, - LONG_PRESS_GESTURE = 1, - PAN_GESTURE = 2, - PINCH_GESTURE = 3, - SWIPE_GESTURE = 4, - ROTATION_GESTURE = 5, - DRAG = 6, - CLICK = 7, - } -} -export enum GesturePriority { - NORMAL, - PRIORITY = 1, -} -export enum GestureRecognizerState { - READY, - DETECTING = 1, - PENDING = 2, - BLOCKED = 3, - SUCCESSFUL = 4, - FAILED = 5, -} -export enum GridDirection { - ROW, - Row = ROW, - COLUMN = 1, - Column = COLUMN, - ROW_REVERSE = 2, - RowReverse = ROW_REVERSE, - COLUMN_REVERSE = 3, - ColumnReverse = COLUMN_REVERSE, -} -export enum GridItemAlignment { - DEFAULT, - STRETCH = 1, -} -export enum GridItemStyle { - NONE, - PLAIN = 1, -} -export enum SizeType { - AUTO, - Auto = AUTO, - XS = 1, - SM = 2, - MD = 3, - LG = 4, -} -export enum BreakpointsReference { - WINDOW_SIZE, - WindowSize = WINDOW_SIZE, - COMPONENT_SIZE = 1, - ComponentSize = COMPONENT_SIZE, -} -export enum GridRowDirection { - ROW, - Row = ROW, - ROW_REVERSE = 1, - RowReverse = ROW_REVERSE, -} -export enum ImageRenderMode { - ORIGINAL, - Original = ORIGINAL, - TEMPLATE = 1, - Template = TEMPLATE, -} -export enum ImageContent { - EMPTY, -} -export enum DynamicRangeMode { - HIGH, - CONSTRAINT = 1, - STANDARD = 2, -} -export enum ImageInterpolation { - NONE, - None = NONE, - LOW = 1, - Low = LOW, - MEDIUM = 2, - Medium = MEDIUM, - HIGH = 3, - High = HIGH, -} -export enum ImageAnalyzerType { - SUBJECT, - TEXT = 1, - OBJECT_LOOKUP = 2, -} -export enum DataOperationType { - ADD = "add", - DELETE = "delete", - EXCHANGE = "exchange", - MOVE = "move", - CHANGE = "change", - RELOAD = "reload", -} -export enum ScrollState { - IDLE, - Idle = IDLE, - SCROLL = 1, - Scroll = SCROLL, - FLING = 2, - Fling = FLING, -} -export enum ListItemAlign { - START, - Start = START, - CENTER = 1, - Center = CENTER, - END = 2, - End = END, -} -export enum ListItemGroupArea { - NONE, - IN_LIST_ITEM_AREA = 1, - IN_HEADER_AREA = 2, - IN_FOOTER_AREA = 3, -} -export enum StickyStyle { - NONE, - None = NONE, - HEADER = 1, - Header = HEADER, - FOOTER = 2, - Footer = FOOTER, -} -export enum ChainEdgeEffect { - DEFAULT, - STRETCH = 1, -} -export enum ScrollSnapAlign { - NONE, - START = 1, - CENTER = 2, - END = 3, -} -export enum Sticky { - NONE, - None = NONE, - NORMAL = 1, - Normal = NORMAL, - OPACITY = 2, - Opacity = OPACITY, -} -export enum EditMode { - NONE, - None = NONE, - DELETABLE = 1, - Deletable = DELETABLE, - MOVABLE = 2, - Movable = MOVABLE, -} -export enum SwipeEdgeEffect { - SPRING, - Spring = SPRING, - NONE = 1, - None = NONE, -} -export enum SwipeActionState { - COLLAPSED, - EXPANDED = 1, - ACTIONING = 2, -} -export enum ListItemStyle { - NONE, - CARD = 1, -} -export enum ListItemGroupStyle { - NONE, - CARD = 1, -} -export enum LoadingProgressStyle { - DEFAULT, - Default = DEFAULT, - CIRCULAR = 1, - Circular = CIRCULAR, - ORBITAL = 2, - Orbital = ORBITAL, -} -export enum LocationIconStyle { - FULL_FILLED, - LINES = 1, -} -export enum LocationDescription { - CURRENT_LOCATION, - ADD_LOCATION = 1, - SELECT_LOCATION = 2, - SHARE_LOCATION = 3, - SEND_LOCATION = 4, - LOCATING = 5, - LOCATION = 6, - SEND_CURRENT_LOCATION = 7, - RELOCATION = 8, - PUNCH_IN = 9, - CURRENT_POSITION = 10, -} -export enum LocationButtonOnClickResult { - SUCCESS, - TEMPORARY_AUTHORIZATION_FAILED = 1, -} -export enum SubMenuExpandingMode { - SIDE_EXPAND, - EMBEDDED_EXPAND = 1, - STACK_EXPAND = 2, -} -export enum NavigationSystemTransitionType { - DEFAULT, - NONE = 1, - TITLE = 2, - CONTENT = 3, -} -export enum NavDestinationMode { - STANDARD, - DIALOG = 1, -} -export enum NavRouteMode { - PUSH_WITH_RECREATE, - PUSH = 1, - REPLACE = 2, -} -export enum NavigationMode { - STACK, - Stack = STACK, - SPLIT = 1, - Split = SPLIT, - AUTO = 2, - Auto = AUTO, -} -export enum NavBarPosition { - START, - Start = START, - END = 1, - End = END, -} -export enum NavigationTitleMode { - FREE, - Free = FREE, - FULL = 1, - Full = FULL, - MINI = 2, - Mini = MINI, -} -export enum LaunchMode { - STANDARD, - MOVE_TO_TOP_SINGLETON = 1, - POP_TO_SINGLETON = 2, - NEW_INSTANCE = 3, -} -export enum ToolbarItemStatus { - NORMAL, - DISABLED = 1, - ACTIVE = 2, -} -export enum NavigationOperation { - PUSH = 1, - POP = 2, - REPLACE = 3, -} -export enum BarStyle { - STANDARD, - STACK = 1, - SAFE_AREA_PADDING = 2, -} -export enum NavigationType { - PUSH, - Push = PUSH, - BACK = 1, - Back = BACK, - REPLACE = 2, - Replace = REPLACE, -} -export enum RouteType { - NONE, - None = NONE, - PUSH = 1, - Push = PUSH, - POP = 2, - Pop = POP, -} -export enum SlideEffect { - LEFT, - Left = LEFT, - RIGHT = 1, - Right = RIGHT, - TOP = 2, - Top = TOP, - BOTTOM = 3, - Bottom = BOTTOM, - START = 5, - END = 6, -} -export enum PanelMode { - MINI, - Mini = MINI, - HALF = 1, - Half = HALF, - FULL = 2, - Full = FULL, -} -export enum PanelType { - MINIBAR, - Minibar = MINIBAR, - FOLDABLE = 1, - Foldable = FOLDABLE, - TEMPORARY = 2, - Temporary = TEMPORARY, - CUSTOM = 3, -} -export enum PanelHeight { - WRAP_CONTENT = "wrapContent", -} -export enum ParticleType { - POINT = "point", - IMAGE = "image", -} -export enum ParticleEmitterShape { - RECTANGLE = "rectangle", - CIRCLE = "circle", - ELLIPSE = "ellipse", -} -export enum DistributionType { - UNIFORM, - GAUSSIAN = 1, -} -export enum ParticleUpdater { - NONE = "none", - RANDOM = "random", - CURVE = "curve", -} -export enum DisturbanceFieldShape { - RECT, - CIRCLE = 1, - ELLIPSE = 2, -} -export enum PasteIconStyle { - LINES, -} -export enum PasteDescription { - PASTE, -} -export enum PasteButtonOnClickResult { - SUCCESS, - TEMPORARY_AUTHORIZATION_FAILED = 1, -} -export enum PatternLockChallengeResult { - CORRECT = 1, - WRONG = 2, -} -export enum ProgressType { - LINEAR, - Linear = LINEAR, - RING = 1, - Ring = RING, - ECLIPSE = 2, - Eclipse = ECLIPSE, - SCALE_RING = 3, - ScaleRing = SCALE_RING, - CAPSULE = 4, - Capsule = CAPSULE, -} -export enum ProgressStatus { - LOADING, - PROGRESSING = 1, -} -export enum ProgressStyle { - LINEAR, - Linear = LINEAR, - RING = 1, - Ring = RING, - ECLIPSE = 2, - Eclipse = ECLIPSE, - SCALE_RING = 3, - ScaleRing = SCALE_RING, - CAPSULE = 4, - Capsule = CAPSULE, -} -export enum RadioIndicatorType { - TICK, - DOT = 1, - CUSTOM = 2, -} -export enum RefreshStatus { - INACTIVE, - Inactive = INACTIVE, - DRAG = 1, - Drag = DRAG, - OVER_DRAG = 2, - OverDrag = OVER_DRAG, - REFRESH = 3, - Refresh = REFRESH, - DONE = 4, - Done = DONE, -} -export enum BarrierDirection { - LEFT, - RIGHT = 1, - TOP = 2, - BOTTOM = 3, -} -export enum LocalizedBarrierDirection { - START, - END = 1, - TOP = 2, - BOTTOM = 3, -} -export enum RichEditorDeleteDirection { - BACKWARD, - FORWARD = 1, -} -export enum RichEditorSpanType { - TEXT, - IMAGE = 1, - MIXED = 2, - BUILDER = 3, -} -export enum RichEditorResponseType { - RIGHT_CLICK, - LONG_PRESS = 1, - SELECT = 2, -} -export enum SaveIconStyle { - FULL_FILLED, - LINES = 1, - PICTURE = 2, -} -export enum SaveDescription { - DOWNLOAD, - DOWNLOAD_FILE = 1, - SAVE = 2, - SAVE_IMAGE = 3, - SAVE_FILE = 4, - DOWNLOAD_AND_SHARE = 5, - RECEIVE = 6, - CONTINUE_TO_RECEIVE = 7, - SAVE_TO_GALLERY = 8, - EXPORT_TO_GALLERY = 9, - QUICK_SAVE_TO_GALLERY = 10, - RESAVE_TO_GALLERY = 11, -} -export enum SaveButtonOnClickResult { - SUCCESS, - TEMPORARY_AUTHORIZATION_FAILED = 1, -} -export enum ScrollDirection { - VERTICAL, - Vertical = VERTICAL, - HORIZONTAL = 1, - Horizontal = HORIZONTAL, - FREE = 2, - Free = FREE, - NONE = 3, - None = NONE, -} -export enum ScrollAlign { - START, - CENTER = 1, - END = 2, - AUTO = 3, -} -export enum ScrollBarDirection { - VERTICAL, - Vertical = VERTICAL, - HORIZONTAL = 1, - Horizontal = HORIZONTAL, -} -export enum CancelButtonStyle { - CONSTANT, - INVISIBLE = 1, - INPUT = 2, -} -export enum SearchType { - NORMAL, - NUMBER = 2, - PHONE_NUMBER = 3, - EMAIL = 5, - NUMBER_DECIMAL = 12, - URL = 13, -} -export enum SecurityComponentLayoutDirection { - HORIZONTAL, - VERTICAL = 1, -} -export enum ArrowPosition { - END, - START = 1, -} -export enum MenuAlignType { - START, - CENTER = 1, - END = 2, -} -export enum SliderStyle { - OUT_SET, - OutSet = OUT_SET, - IN_SET = 1, - InSet = IN_SET, - NONE = 2, -} -export enum SliderChangeMode { - BEGIN, - Begin = BEGIN, - MOVING = 1, - Moving = MOVING, - END = 2, - End = END, - CLICK = 3, - Click = CLICK, -} -export enum SliderInteraction { - SLIDE_AND_CLICK, - SLIDE_ONLY = 1, - SLIDE_AND_CLICK_UP = 2, -} -export enum SliderBlockType { - DEFAULT, - IMAGE = 1, - SHAPE = 2, -} -export enum ColorMode { - LIGHT, - DARK = 1, -} -export enum LayoutDirection { - LTR, - RTL = 1, - AUTO = 2, - Auto = AUTO, -} -export enum ItemState { - NORMAL, - Normal = NORMAL, - DISABLED = 1, - Disabled = DISABLED, - WAITING = 2, - Waiting = WAITING, - SKIP = 3, - Skip = SKIP, -} -export enum SwiperDisplayMode { - LEGACY_STRETCH, - Stretch = LEGACY_STRETCH, - LEGACY_AUTO_LINEAR = 1, - AutoLinear = LEGACY_AUTO_LINEAR, - STRETCH = 2, - AUTO_LINEAR = 3, -} -export enum SwiperNestedScrollMode { - SELF_ONLY, - SELF_FIRST = 1, -} -export enum SymbolRenderingStrategy { - SINGLE, - MULTIPLE_COLOR = 1, - MULTIPLE_OPACITY = 2, -} -export enum SymbolEffectStrategy { - NONE, - SCALE = 1, - HIERARCHICAL = 2, -} -export enum EffectDirection { - DOWN, - UP = 1, -} -export enum EffectScope { - LAYER, - WHOLE = 1, -} -export enum EffectFillStyle { - CUMULATIVE, - ITERATIVE = 1, -} -export enum BarMode { - SCROLLABLE, - Scrollable = SCROLLABLE, - FIXED = 1, - Fixed = FIXED, -} -export enum AnimationMode { - CONTENT_FIRST, - ACTION_FIRST = 1, - NO_ANIMATION = 2, -} -export enum BarPosition { - START, - Start = START, - END = 1, - End = END, -} -export enum LayoutStyle { - ALWAYS_CENTER, - ALWAYS_AVERAGE_SPLIT = 1, - SPACE_BETWEEN_OR_CENTER = 2, -} -export enum SelectedMode { - INDICATOR, - BOARD = 1, -} -export enum LayoutMode { - AUTO, - VERTICAL = 1, - HORIZONTAL = 2, -} -export enum TextSpanType { - TEXT, - IMAGE = 1, - MIXED = 2, -} -export enum TextResponseType { - RIGHT_CLICK, - LONG_PRESS = 1, - SELECT = 2, -} -export enum TextAreaType { - NORMAL, - NUMBER = 2, - PHONE_NUMBER = 3, - EMAIL = 5, - NUMBER_DECIMAL = 12, - URL = 13, -} -export enum ContentType { - USER_NAME, - PASSWORD = 1, - NEW_PASSWORD = 2, - FULL_STREET_ADDRESS = 3, - HOUSE_NUMBER = 4, - DISTRICT_ADDRESS = 5, - CITY_ADDRESS = 6, - PROVINCE_ADDRESS = 7, - COUNTRY_ADDRESS = 8, - PERSON_FULL_NAME = 9, - PERSON_LAST_NAME = 10, - PERSON_FIRST_NAME = 11, - PHONE_NUMBER = 12, - PHONE_COUNTRY_CODE = 13, - FULL_PHONE_NUMBER = 14, - EMAIL_ADDRESS = 15, - BANK_CARD_NUMBER = 16, - ID_CARD_NUMBER = 17, - NICKNAME = 23, - DETAIL_INFO_WITHOUT_STREET = 24, - FORMAT_ADDRESS = 25, -} -export enum TextDataDetectorType { - PHONE_NUMBER, - URL = 1, - EMAIL = 2, - ADDRESS = 3, - DATE_TIME = 4, -} -export enum TextDeleteDirection { - BACKWARD, - FORWARD = 1, -} -export enum MenuType { - SELECTION_MENU, - PREVIEW_MENU = 1, -} -export enum InputType { - NORMAL, - Normal = NORMAL, - NUMBER = 1, - Number = NUMBER, - PHONE_NUMBER = 2, - PhoneNumber = PHONE_NUMBER, - EMAIL = 3, - Email = EMAIL, - PASSWORD = 4, - Password = PASSWORD, - NUMBER_PASSWORD = 8, - SCREEN_LOCK_PASSWORD = 9, - USER_NAME = 10, - NEW_PASSWORD = 11, - NUMBER_DECIMAL = 12, - URL = 13, -} -export enum EnterKeyType { - GO = 2, - Go = GO, - SEARCH = 3, - Search = SEARCH, - SEND = 4, - Send = SEND, - NEXT = 5, - Next = NEXT, - DONE = 6, - Done = DONE, - PREVIOUS = 7, - NEW_LINE = 8, -} -export enum TextInputStyle { - DEFAULT, - Default = DEFAULT, - INLINE = 1, - Inline = INLINE, -} -export enum TimePickerFormat { - HOUR_MINUTE, - HOUR_MINUTE_SECOND = 1, -} -export enum ToggleType { - CHECKBOX, - Checkbox = CHECKBOX, - SWITCH = 1, - Switch = SWITCH, - BUTTON = 2, - Button = BUTTON, -} -export enum SeekMode { - PREVIOUS_KEYFRAME, - PreviousKeyframe = PREVIOUS_KEYFRAME, - NEXT_KEYFRAME = 1, - NextKeyframe = NEXT_KEYFRAME, - CLOSEST_KEYFRAME = 2, - ClosestKeyframe = CLOSEST_KEYFRAME, - ACCURATE = 3, - Accurate = ACCURATE, -} -export enum PlaybackSpeed { - SPEED_FORWARD_0_75_X, - Speed_Forward_0_75_X = SPEED_FORWARD_0_75_X, - SPEED_FORWARD_1_00_X = 1, - Speed_Forward_1_00_X = SPEED_FORWARD_1_00_X, - SPEED_FORWARD_1_25_X = 2, - Speed_Forward_1_25_X = SPEED_FORWARD_1_25_X, - SPEED_FORWARD_1_75_X = 3, - Speed_Forward_1_75_X = SPEED_FORWARD_1_75_X, - SPEED_FORWARD_2_00_X = 4, - Speed_Forward_2_00_X = SPEED_FORWARD_2_00_X, -} -export enum MessageLevel { - DEBUG, - Debug = DEBUG, - ERROR = 1, - Error = ERROR, - INFO = 2, - Info = INFO, - LOG = 3, - Log = LOG, - WARN = 4, - Warn = WARN, -} -export enum MixedMode { - ALL, - All = ALL, - COMPATIBLE = 1, - Compatible = COMPATIBLE, - NONE = 2, - None = NONE, -} -export enum HitTestType { - EDIT_TEXT, - EditText = EDIT_TEXT, - EMAIL = 1, - Email = EMAIL, - HTTP_ANCHOR = 2, - HttpAnchor = HTTP_ANCHOR, - HTTP_ANCHOR_IMG = 3, - HttpAnchorImg = HTTP_ANCHOR_IMG, - IMG = 4, - Img = IMG, - MAP = 5, - Map = MAP, - PHONE = 6, - Phone = PHONE, - UNKNOWN = 7, - Unknown = UNKNOWN, -} -export enum CacheMode { - DEFAULT, - Default = DEFAULT, - NONE = 1, - None = NONE, - ONLINE = 2, - Online = ONLINE, - ONLY = 3, - Only = ONLY, -} -export enum OverScrollMode { - NEVER, - ALWAYS = 1, -} -export enum WebDarkMode { - OFF, - Off = OFF, - ON = 1, - On = ON, - AUTO = 2, - Auto = AUTO, -} -export enum WebCaptureMode { - HOME_SCREEN, -} -export enum ThreatType { - THREAT_ILLEGAL, - THREAT_FRAUD = 1, - THREAT_RISK = 2, - THREAT_WARNING = 3, -} -export enum RenderExitReason { - PROCESS_ABNORMAL_TERMINATION, - ProcessAbnormalTermination = PROCESS_ABNORMAL_TERMINATION, - PROCESS_WAS_KILLED = 1, - ProcessWasKilled = PROCESS_WAS_KILLED, - PROCESS_CRASHED = 2, - ProcessCrashed = PROCESS_CRASHED, - PROCESS_OOM = 3, - ProcessOom = PROCESS_OOM, - PROCESS_EXIT_UNKNOWN = 4, - ProcessExitUnknown = PROCESS_EXIT_UNKNOWN, -} -export enum SslError { - INVALID, - Invalid = INVALID, - HOST_MISMATCH = 1, - HostMismatch = HOST_MISMATCH, - DATE_INVALID = 2, - DateInvalid = DATE_INVALID, - UNTRUSTED = 3, - Untrusted = UNTRUSTED, -} -export enum FileSelectorMode { - FILE_OPEN_MODE, - FileOpenMode = FILE_OPEN_MODE, - FILE_OPEN_MULTIPLE_MODE = 1, - FileOpenMultipleMode = FILE_OPEN_MULTIPLE_MODE, - FILE_OPEN_FOLDER_MODE = 2, - FileOpenFolderMode = FILE_OPEN_FOLDER_MODE, - FILE_SAVE_MODE = 3, - FileSaveMode = FILE_SAVE_MODE, -} -export enum WebLayoutMode { - NONE, - FIT_CONTENT = 1, -} -export enum RenderProcessNotRespondingReason { - INPUT_TIMEOUT, - NAVIGATION_COMMIT_TIMEOUT = 1, -} -export enum ProtectedResourceType { - MIDI_SYSEX = "TYPE_MIDI_SYSEX", - MidiSysex = MIDI_SYSEX, - VIDEO_CAPTURE = "TYPE_VIDEO_CAPTURE", - AUDIO_CAPTURE = "TYPE_AUDIO_CAPTURE", - SENSOR = "TYPE_SENSOR", -} -export enum ContextMenuSourceType { - NONE, - None = NONE, - MOUSE = 1, - Mouse = MOUSE, - LONG_PRESS = 2, - LongPress = LONG_PRESS, -} -export enum ContextMenuMediaType { - NONE, - None = NONE, - IMAGE = 1, - Image = IMAGE, -} -export enum ContextMenuInputFieldType { - NONE, - None = NONE, - PLAIN_TEXT = 1, - PlainText = PLAIN_TEXT, - PASSWORD = 2, - Password = PASSWORD, - NUMBER = 3, - Number = NUMBER, - TELEPHONE = 4, - Telephone = TELEPHONE, - OTHER = 5, - Other = OTHER, -} -export enum NativeEmbedStatus { - CREATE, - UPDATE = 1, - DESTROY = 2, - ENTER_BFCACHE = 3, - LEAVE_BFCACHE = 4, -} -export enum ContextMenuEditStateFlags { - NONE, - CAN_CUT = 1, - CAN_COPY = 2, - CAN_PASTE = 4, - CAN_SELECT_ALL = 8, -} -export enum WebNavigationType { - UNKNOWN, - MAIN_FRAME_NEW_ENTRY = 1, - MAIN_FRAME_EXISTING_ENTRY = 2, - NAVIGATION_TYPE_NEW_SUBFRAME = 4, - NAVIGATION_TYPE_AUTO_SUBFRAME = 5, -} -export enum RenderMode { - ASYNC_RENDER, - SYNC_RENDER = 1, -} -export enum ViewportFit { - AUTO, - CONTAINS = 1, - COVER = 2, -} -export enum WebKeyboardAvoidMode { - RESIZE_VISUAL, - RESIZE_CONTENT = 1, - OVERLAYS_CONTENT = 2, -} -export enum WebElementType { - IMAGE = 1, -} -export enum WebResponseType { - LONG_PRESS = 1, -} -export enum SideBarContainerType { - EMBED, - Embed = EMBED, - OVERLAY = 1, - Overlay = OVERLAY, - AUTO = 2, -} -export enum SideBarPosition { - START, - Start = START, - END = 1, - End = END, -} -export enum WaterFlowLayoutMode { - ALWAYS_TOP_DOWN, - SLIDING_WINDOW = 1, -} -export enum DpiFollowStrategy { - FOLLOW_HOST_DPI, - FOLLOW_UI_EXTENSION_ABILITY_DPI = 1, -} -export enum StyledStringKey { - FONT, - DECORATION = 1, - BASELINE_OFFSET = 2, - LETTER_SPACING = 3, - TEXT_SHADOW = 4, - LINE_HEIGHT = 5, - BACKGROUND_COLOR = 6, - URL = 7, - GESTURE = 100, - PARAGRAPH_STYLE = 200, - IMAGE = 300, - CUSTOM_SPAN = 400, - USER_DATA = 500, +export class PointerStyle { + static readonly DEFAULT: PointerStyle = new PointerStyle(0,0) + static readonly EAST: PointerStyle = new PointerStyle(1,1) + static readonly WEST: PointerStyle = new PointerStyle(2,2) + static readonly SOUTH: PointerStyle = new PointerStyle(3,3) + static readonly NORTH: PointerStyle = new PointerStyle(4,4) + static readonly WEST_EAST: PointerStyle = new PointerStyle(5,5) + static readonly NORTH_SOUTH: PointerStyle = new PointerStyle(6,6) + static readonly NORTH_EAST: PointerStyle = new PointerStyle(7,7) + static readonly NORTH_WEST: PointerStyle = new PointerStyle(8,8) + static readonly SOUTH_EAST: PointerStyle = new PointerStyle(9,9) + static readonly SOUTH_WEST: PointerStyle = new PointerStyle(10,10) + static readonly NORTH_EAST_SOUTH_WEST: PointerStyle = new PointerStyle(11,11) + static readonly NORTH_WEST_SOUTH_EAST: PointerStyle = new PointerStyle(12,12) + static readonly CROSS: PointerStyle = new PointerStyle(13,13) + static readonly CURSOR_COPY: PointerStyle = new PointerStyle(14,14) + static readonly CURSOR_FORBID: PointerStyle = new PointerStyle(15,15) + static readonly COLOR_SUCKER: PointerStyle = new PointerStyle(16,16) + static readonly HAND_GRABBING: PointerStyle = new PointerStyle(17,17) + static readonly HAND_OPEN: PointerStyle = new PointerStyle(18,18) + static readonly HAND_POINTING: PointerStyle = new PointerStyle(19,19) + static readonly HELP: PointerStyle = new PointerStyle(20,20) + static readonly MOVE: PointerStyle = new PointerStyle(21,21) + static readonly RESIZE_LEFT_RIGHT: PointerStyle = new PointerStyle(22,22) + static readonly RESIZE_UP_DOWN: PointerStyle = new PointerStyle(23,23) + static readonly SCREENSHOT_CHOOSE: PointerStyle = new PointerStyle(24,24) + static readonly SCREENSHOT_CURSOR: PointerStyle = new PointerStyle(25,25) + static readonly TEXT_CURSOR: PointerStyle = new PointerStyle(26,26) + static readonly ZOOM_IN: PointerStyle = new PointerStyle(27,27) + static readonly ZOOM_OUT: PointerStyle = new PointerStyle(28,28) + static readonly MIDDLE_BTN_EAST: PointerStyle = new PointerStyle(29,29) + static readonly MIDDLE_BTN_WEST: PointerStyle = new PointerStyle(30,30) + static readonly MIDDLE_BTN_SOUTH: PointerStyle = new PointerStyle(31,31) + static readonly MIDDLE_BTN_NORTH: PointerStyle = new PointerStyle(32,32) + static readonly MIDDLE_BTN_NORTH_SOUTH: PointerStyle = new PointerStyle(33,33) + static readonly MIDDLE_BTN_NORTH_EAST: PointerStyle = new PointerStyle(34,34) + static readonly MIDDLE_BTN_NORTH_WEST: PointerStyle = new PointerStyle(35,35) + static readonly MIDDLE_BTN_SOUTH_EAST: PointerStyle = new PointerStyle(36,36) + static readonly MIDDLE_BTN_SOUTH_WEST: PointerStyle = new PointerStyle(37,37) + static readonly MIDDLE_BTN_NORTH_SOUTH_WEST_EAST: PointerStyle = new PointerStyle(38,38) + static readonly HORIZONTAL_TEXT_CURSOR: PointerStyle = new PointerStyle(39,39) + static readonly CURSOR_CROSS: PointerStyle = new PointerStyle(40,40) + static readonly CURSOR_CIRCLE: PointerStyle = new PointerStyle(41,41) + static readonly LOADING: PointerStyle = new PointerStyle(42,42) + static readonly RUNNING: PointerStyle = new PointerStyle(43,43) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): PointerStyle { + if ((arg0) == (PointerStyle.DEFAULT.value)) + return PointerStyle.DEFAULT + if ((arg0) == (PointerStyle.EAST.value)) + return PointerStyle.EAST + if ((arg0) == (PointerStyle.WEST.value)) + return PointerStyle.WEST + if ((arg0) == (PointerStyle.SOUTH.value)) + return PointerStyle.SOUTH + if ((arg0) == (PointerStyle.NORTH.value)) + return PointerStyle.NORTH + if ((arg0) == (PointerStyle.WEST_EAST.value)) + return PointerStyle.WEST_EAST + if ((arg0) == (PointerStyle.NORTH_SOUTH.value)) + return PointerStyle.NORTH_SOUTH + if ((arg0) == (PointerStyle.NORTH_EAST.value)) + return PointerStyle.NORTH_EAST + if ((arg0) == (PointerStyle.NORTH_WEST.value)) + return PointerStyle.NORTH_WEST + if ((arg0) == (PointerStyle.SOUTH_EAST.value)) + return PointerStyle.SOUTH_EAST + if ((arg0) == (PointerStyle.SOUTH_WEST.value)) + return PointerStyle.SOUTH_WEST + if ((arg0) == (PointerStyle.NORTH_EAST_SOUTH_WEST.value)) + return PointerStyle.NORTH_EAST_SOUTH_WEST + if ((arg0) == (PointerStyle.NORTH_WEST_SOUTH_EAST.value)) + return PointerStyle.NORTH_WEST_SOUTH_EAST + if ((arg0) == (PointerStyle.CROSS.value)) + return PointerStyle.CROSS + if ((arg0) == (PointerStyle.CURSOR_COPY.value)) + return PointerStyle.CURSOR_COPY + if ((arg0) == (PointerStyle.CURSOR_FORBID.value)) + return PointerStyle.CURSOR_FORBID + if ((arg0) == (PointerStyle.COLOR_SUCKER.value)) + return PointerStyle.COLOR_SUCKER + if ((arg0) == (PointerStyle.HAND_GRABBING.value)) + return PointerStyle.HAND_GRABBING + if ((arg0) == (PointerStyle.HAND_OPEN.value)) + return PointerStyle.HAND_OPEN + if ((arg0) == (PointerStyle.HAND_POINTING.value)) + return PointerStyle.HAND_POINTING + if ((arg0) == (PointerStyle.HELP.value)) + return PointerStyle.HELP + if ((arg0) == (PointerStyle.MOVE.value)) + return PointerStyle.MOVE + if ((arg0) == (PointerStyle.RESIZE_LEFT_RIGHT.value)) + return PointerStyle.RESIZE_LEFT_RIGHT + if ((arg0) == (PointerStyle.RESIZE_UP_DOWN.value)) + return PointerStyle.RESIZE_UP_DOWN + if ((arg0) == (PointerStyle.SCREENSHOT_CHOOSE.value)) + return PointerStyle.SCREENSHOT_CHOOSE + if ((arg0) == (PointerStyle.SCREENSHOT_CURSOR.value)) + return PointerStyle.SCREENSHOT_CURSOR + if ((arg0) == (PointerStyle.TEXT_CURSOR.value)) + return PointerStyle.TEXT_CURSOR + if ((arg0) == (PointerStyle.ZOOM_IN.value)) + return PointerStyle.ZOOM_IN + if ((arg0) == (PointerStyle.ZOOM_OUT.value)) + return PointerStyle.ZOOM_OUT + if ((arg0) == (PointerStyle.MIDDLE_BTN_EAST.value)) + return PointerStyle.MIDDLE_BTN_EAST + if ((arg0) == (PointerStyle.MIDDLE_BTN_WEST.value)) + return PointerStyle.MIDDLE_BTN_WEST + if ((arg0) == (PointerStyle.MIDDLE_BTN_SOUTH.value)) + return PointerStyle.MIDDLE_BTN_SOUTH + if ((arg0) == (PointerStyle.MIDDLE_BTN_NORTH.value)) + return PointerStyle.MIDDLE_BTN_NORTH + if ((arg0) == (PointerStyle.MIDDLE_BTN_NORTH_SOUTH.value)) + return PointerStyle.MIDDLE_BTN_NORTH_SOUTH + if ((arg0) == (PointerStyle.MIDDLE_BTN_NORTH_EAST.value)) + return PointerStyle.MIDDLE_BTN_NORTH_EAST + if ((arg0) == (PointerStyle.MIDDLE_BTN_NORTH_WEST.value)) + return PointerStyle.MIDDLE_BTN_NORTH_WEST + if ((arg0) == (PointerStyle.MIDDLE_BTN_SOUTH_EAST.value)) + return PointerStyle.MIDDLE_BTN_SOUTH_EAST + if ((arg0) == (PointerStyle.MIDDLE_BTN_SOUTH_WEST.value)) + return PointerStyle.MIDDLE_BTN_SOUTH_WEST + if ((arg0) == (PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST.value)) + return PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST + if ((arg0) == (PointerStyle.HORIZONTAL_TEXT_CURSOR.value)) + return PointerStyle.HORIZONTAL_TEXT_CURSOR + if ((arg0) == (PointerStyle.CURSOR_CROSS.value)) + return PointerStyle.CURSOR_CROSS + if ((arg0) == (PointerStyle.CURSOR_CIRCLE.value)) + return PointerStyle.CURSOR_CIRCLE + if ((arg0) == (PointerStyle.LOADING.value)) + return PointerStyle.LOADING + if ((arg0) == (PointerStyle.RUNNING.value)) + return PointerStyle.RUNNING + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): PointerStyle { + if ((arg0) == (PointerStyle.DEFAULT.ordinal)) + return PointerStyle.DEFAULT + if ((arg0) == (PointerStyle.EAST.ordinal)) + return PointerStyle.EAST + if ((arg0) == (PointerStyle.WEST.ordinal)) + return PointerStyle.WEST + if ((arg0) == (PointerStyle.SOUTH.ordinal)) + return PointerStyle.SOUTH + if ((arg0) == (PointerStyle.NORTH.ordinal)) + return PointerStyle.NORTH + if ((arg0) == (PointerStyle.WEST_EAST.ordinal)) + return PointerStyle.WEST_EAST + if ((arg0) == (PointerStyle.NORTH_SOUTH.ordinal)) + return PointerStyle.NORTH_SOUTH + if ((arg0) == (PointerStyle.NORTH_EAST.ordinal)) + return PointerStyle.NORTH_EAST + if ((arg0) == (PointerStyle.NORTH_WEST.ordinal)) + return PointerStyle.NORTH_WEST + if ((arg0) == (PointerStyle.SOUTH_EAST.ordinal)) + return PointerStyle.SOUTH_EAST + if ((arg0) == (PointerStyle.SOUTH_WEST.ordinal)) + return PointerStyle.SOUTH_WEST + if ((arg0) == (PointerStyle.NORTH_EAST_SOUTH_WEST.ordinal)) + return PointerStyle.NORTH_EAST_SOUTH_WEST + if ((arg0) == (PointerStyle.NORTH_WEST_SOUTH_EAST.ordinal)) + return PointerStyle.NORTH_WEST_SOUTH_EAST + if ((arg0) == (PointerStyle.CROSS.ordinal)) + return PointerStyle.CROSS + if ((arg0) == (PointerStyle.CURSOR_COPY.ordinal)) + return PointerStyle.CURSOR_COPY + if ((arg0) == (PointerStyle.CURSOR_FORBID.ordinal)) + return PointerStyle.CURSOR_FORBID + if ((arg0) == (PointerStyle.COLOR_SUCKER.ordinal)) + return PointerStyle.COLOR_SUCKER + if ((arg0) == (PointerStyle.HAND_GRABBING.ordinal)) + return PointerStyle.HAND_GRABBING + if ((arg0) == (PointerStyle.HAND_OPEN.ordinal)) + return PointerStyle.HAND_OPEN + if ((arg0) == (PointerStyle.HAND_POINTING.ordinal)) + return PointerStyle.HAND_POINTING + if ((arg0) == (PointerStyle.HELP.ordinal)) + return PointerStyle.HELP + if ((arg0) == (PointerStyle.MOVE.ordinal)) + return PointerStyle.MOVE + if ((arg0) == (PointerStyle.RESIZE_LEFT_RIGHT.ordinal)) + return PointerStyle.RESIZE_LEFT_RIGHT + if ((arg0) == (PointerStyle.RESIZE_UP_DOWN.ordinal)) + return PointerStyle.RESIZE_UP_DOWN + if ((arg0) == (PointerStyle.SCREENSHOT_CHOOSE.ordinal)) + return PointerStyle.SCREENSHOT_CHOOSE + if ((arg0) == (PointerStyle.SCREENSHOT_CURSOR.ordinal)) + return PointerStyle.SCREENSHOT_CURSOR + if ((arg0) == (PointerStyle.TEXT_CURSOR.ordinal)) + return PointerStyle.TEXT_CURSOR + if ((arg0) == (PointerStyle.ZOOM_IN.ordinal)) + return PointerStyle.ZOOM_IN + if ((arg0) == (PointerStyle.ZOOM_OUT.ordinal)) + return PointerStyle.ZOOM_OUT + if ((arg0) == (PointerStyle.MIDDLE_BTN_EAST.ordinal)) + return PointerStyle.MIDDLE_BTN_EAST + if ((arg0) == (PointerStyle.MIDDLE_BTN_WEST.ordinal)) + return PointerStyle.MIDDLE_BTN_WEST + if ((arg0) == (PointerStyle.MIDDLE_BTN_SOUTH.ordinal)) + return PointerStyle.MIDDLE_BTN_SOUTH + if ((arg0) == (PointerStyle.MIDDLE_BTN_NORTH.ordinal)) + return PointerStyle.MIDDLE_BTN_NORTH + if ((arg0) == (PointerStyle.MIDDLE_BTN_NORTH_SOUTH.ordinal)) + return PointerStyle.MIDDLE_BTN_NORTH_SOUTH + if ((arg0) == (PointerStyle.MIDDLE_BTN_NORTH_EAST.ordinal)) + return PointerStyle.MIDDLE_BTN_NORTH_EAST + if ((arg0) == (PointerStyle.MIDDLE_BTN_NORTH_WEST.ordinal)) + return PointerStyle.MIDDLE_BTN_NORTH_WEST + if ((arg0) == (PointerStyle.MIDDLE_BTN_SOUTH_EAST.ordinal)) + return PointerStyle.MIDDLE_BTN_SOUTH_EAST + if ((arg0) == (PointerStyle.MIDDLE_BTN_SOUTH_WEST.ordinal)) + return PointerStyle.MIDDLE_BTN_SOUTH_WEST + if ((arg0) == (PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST.ordinal)) + return PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST + if ((arg0) == (PointerStyle.HORIZONTAL_TEXT_CURSOR.ordinal)) + return PointerStyle.HORIZONTAL_TEXT_CURSOR + if ((arg0) == (PointerStyle.CURSOR_CROSS.ordinal)) + return PointerStyle.CURSOR_CROSS + if ((arg0) == (PointerStyle.CURSOR_CIRCLE.ordinal)) + return PointerStyle.CURSOR_CIRCLE + if ((arg0) == (PointerStyle.LOADING.ordinal)) + return PointerStyle.LOADING + if ((arg0) == (PointerStyle.RUNNING.ordinal)) + return PointerStyle.RUNNING + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class RectWidthStyle { + static readonly TIGHT: RectWidthStyle = new RectWidthStyle(0,0) + static readonly MAX: RectWidthStyle = new RectWidthStyle(1,1) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): RectWidthStyle { + if ((arg0) == (RectWidthStyle.TIGHT.value)) + return RectWidthStyle.TIGHT + if ((arg0) == (RectWidthStyle.MAX.value)) + return RectWidthStyle.MAX + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): RectWidthStyle { + if ((arg0) == (RectWidthStyle.TIGHT.ordinal)) + return RectWidthStyle.TIGHT + if ((arg0) == (RectWidthStyle.MAX.ordinal)) + return RectWidthStyle.MAX + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class RectHeightStyle { + static readonly TIGHT: RectHeightStyle = new RectHeightStyle(0,0) + static readonly MAX: RectHeightStyle = new RectHeightStyle(1,1) + static readonly INCLUDE_LINE_SPACE_MIDDLE: RectHeightStyle = new RectHeightStyle(2,2) + static readonly INCLUDE_LINE_SPACE_TOP: RectHeightStyle = new RectHeightStyle(3,3) + static readonly INCLUDE_LINE_SPACE_BOTTOM: RectHeightStyle = new RectHeightStyle(4,4) + static readonly STRUT: RectHeightStyle = new RectHeightStyle(5,5) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): RectHeightStyle { + if ((arg0) == (RectHeightStyle.TIGHT.value)) + return RectHeightStyle.TIGHT + if ((arg0) == (RectHeightStyle.MAX.value)) + return RectHeightStyle.MAX + if ((arg0) == (RectHeightStyle.INCLUDE_LINE_SPACE_MIDDLE.value)) + return RectHeightStyle.INCLUDE_LINE_SPACE_MIDDLE + if ((arg0) == (RectHeightStyle.INCLUDE_LINE_SPACE_TOP.value)) + return RectHeightStyle.INCLUDE_LINE_SPACE_TOP + if ((arg0) == (RectHeightStyle.INCLUDE_LINE_SPACE_BOTTOM.value)) + return RectHeightStyle.INCLUDE_LINE_SPACE_BOTTOM + if ((arg0) == (RectHeightStyle.STRUT.value)) + return RectHeightStyle.STRUT + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): RectHeightStyle { + if ((arg0) == (RectHeightStyle.TIGHT.ordinal)) + return RectHeightStyle.TIGHT + if ((arg0) == (RectHeightStyle.MAX.ordinal)) + return RectHeightStyle.MAX + if ((arg0) == (RectHeightStyle.INCLUDE_LINE_SPACE_MIDDLE.ordinal)) + return RectHeightStyle.INCLUDE_LINE_SPACE_MIDDLE + if ((arg0) == (RectHeightStyle.INCLUDE_LINE_SPACE_TOP.ordinal)) + return RectHeightStyle.INCLUDE_LINE_SPACE_TOP + if ((arg0) == (RectHeightStyle.INCLUDE_LINE_SPACE_BOTTOM.ordinal)) + return RectHeightStyle.INCLUDE_LINE_SPACE_BOTTOM + if ((arg0) == (RectHeightStyle.STRUT.ordinal)) + return RectHeightStyle.STRUT + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class LengthUnit { + static readonly PX: LengthUnit = new LengthUnit(0,0) + static readonly VP: LengthUnit = new LengthUnit(1,1) + static readonly FP: LengthUnit = new LengthUnit(2,2) + static readonly PERCENT: LengthUnit = new LengthUnit(3,3) + static readonly LPX: LengthUnit = new LengthUnit(4,4) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): LengthUnit { + if ((arg0) == (LengthUnit.PX.value)) + return LengthUnit.PX + if ((arg0) == (LengthUnit.VP.value)) + return LengthUnit.VP + if ((arg0) == (LengthUnit.FP.value)) + return LengthUnit.FP + if ((arg0) == (LengthUnit.PERCENT.value)) + return LengthUnit.PERCENT + if ((arg0) == (LengthUnit.LPX.value)) + return LengthUnit.LPX + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): LengthUnit { + if ((arg0) == (LengthUnit.PX.ordinal)) + return LengthUnit.PX + if ((arg0) == (LengthUnit.VP.ordinal)) + return LengthUnit.VP + if ((arg0) == (LengthUnit.FP.ordinal)) + return LengthUnit.FP + if ((arg0) == (LengthUnit.PERCENT.ordinal)) + return LengthUnit.PERCENT + if ((arg0) == (LengthUnit.LPX.ordinal)) + return LengthUnit.LPX + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class DialogAlignment { + static readonly TOP: DialogAlignment = new DialogAlignment(0,0) + static readonly Top: DialogAlignment = DialogAlignment.TOP + static readonly CENTER: DialogAlignment = new DialogAlignment(1,1) + static readonly Center: DialogAlignment = DialogAlignment.CENTER + static readonly BOTTOM: DialogAlignment = new DialogAlignment(2,2) + static readonly Bottom: DialogAlignment = DialogAlignment.BOTTOM + static readonly DEFAULT: DialogAlignment = new DialogAlignment(3,3) + static readonly Default: DialogAlignment = DialogAlignment.DEFAULT + static readonly TOP_START: DialogAlignment = new DialogAlignment(4,4) + static readonly TopStart: DialogAlignment = DialogAlignment.TOP_START + static readonly TOP_END: DialogAlignment = new DialogAlignment(5,5) + static readonly TopEnd: DialogAlignment = DialogAlignment.TOP_END + static readonly CENTER_START: DialogAlignment = new DialogAlignment(6,6) + static readonly CenterStart: DialogAlignment = DialogAlignment.CENTER_START + static readonly CENTER_END: DialogAlignment = new DialogAlignment(7,7) + static readonly CenterEnd: DialogAlignment = DialogAlignment.CENTER_END + static readonly BOTTOM_START: DialogAlignment = new DialogAlignment(8,8) + static readonly BottomStart: DialogAlignment = DialogAlignment.BOTTOM_START + static readonly BOTTOM_END: DialogAlignment = new DialogAlignment(9,9) + static readonly BottomEnd: DialogAlignment = DialogAlignment.BOTTOM_END + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): DialogAlignment { + if ((arg0) == (DialogAlignment.TOP.value)) + return DialogAlignment.TOP + if ((arg0) == (DialogAlignment.CENTER.value)) + return DialogAlignment.CENTER + if ((arg0) == (DialogAlignment.BOTTOM.value)) + return DialogAlignment.BOTTOM + if ((arg0) == (DialogAlignment.DEFAULT.value)) + return DialogAlignment.DEFAULT + if ((arg0) == (DialogAlignment.TOP_START.value)) + return DialogAlignment.TOP_START + if ((arg0) == (DialogAlignment.TOP_END.value)) + return DialogAlignment.TOP_END + if ((arg0) == (DialogAlignment.CENTER_START.value)) + return DialogAlignment.CENTER_START + if ((arg0) == (DialogAlignment.CENTER_END.value)) + return DialogAlignment.CENTER_END + if ((arg0) == (DialogAlignment.BOTTOM_START.value)) + return DialogAlignment.BOTTOM_START + if ((arg0) == (DialogAlignment.BOTTOM_END.value)) + return DialogAlignment.BOTTOM_END + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): DialogAlignment { + if ((arg0) == (DialogAlignment.TOP.ordinal)) + return DialogAlignment.TOP + if ((arg0) == (DialogAlignment.CENTER.ordinal)) + return DialogAlignment.CENTER + if ((arg0) == (DialogAlignment.BOTTOM.ordinal)) + return DialogAlignment.BOTTOM + if ((arg0) == (DialogAlignment.DEFAULT.ordinal)) + return DialogAlignment.DEFAULT + if ((arg0) == (DialogAlignment.TOP_START.ordinal)) + return DialogAlignment.TOP_START + if ((arg0) == (DialogAlignment.TOP_END.ordinal)) + return DialogAlignment.TOP_END + if ((arg0) == (DialogAlignment.CENTER_START.ordinal)) + return DialogAlignment.CENTER_START + if ((arg0) == (DialogAlignment.CENTER_END.ordinal)) + return DialogAlignment.CENTER_END + if ((arg0) == (DialogAlignment.BOTTOM_START.ordinal)) + return DialogAlignment.BOTTOM_START + if ((arg0) == (DialogAlignment.BOTTOM_END.ordinal)) + return DialogAlignment.BOTTOM_END + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class DialogButtonDirection { + static readonly AUTO: DialogButtonDirection = new DialogButtonDirection(0,0) + static readonly HORIZONTAL: DialogButtonDirection = new DialogButtonDirection(1,1) + static readonly VERTICAL: DialogButtonDirection = new DialogButtonDirection(2,2) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): DialogButtonDirection { + if ((arg0) == (DialogButtonDirection.AUTO.value)) + return DialogButtonDirection.AUTO + if ((arg0) == (DialogButtonDirection.HORIZONTAL.value)) + return DialogButtonDirection.HORIZONTAL + if ((arg0) == (DialogButtonDirection.VERTICAL.value)) + return DialogButtonDirection.VERTICAL + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): DialogButtonDirection { + if ((arg0) == (DialogButtonDirection.AUTO.ordinal)) + return DialogButtonDirection.AUTO + if ((arg0) == (DialogButtonDirection.HORIZONTAL.ordinal)) + return DialogButtonDirection.HORIZONTAL + if ((arg0) == (DialogButtonDirection.VERTICAL.ordinal)) + return DialogButtonDirection.VERTICAL + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class IndexerAlign { + static readonly LEFT: IndexerAlign = new IndexerAlign(0,0) + static readonly Left: IndexerAlign = IndexerAlign.LEFT + static readonly RIGHT: IndexerAlign = new IndexerAlign(1,1) + static readonly Right: IndexerAlign = IndexerAlign.RIGHT + static readonly START: IndexerAlign = new IndexerAlign(2,2) + static readonly END: IndexerAlign = new IndexerAlign(3,3) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): IndexerAlign { + if ((arg0) == (IndexerAlign.LEFT.value)) + return IndexerAlign.LEFT + if ((arg0) == (IndexerAlign.RIGHT.value)) + return IndexerAlign.RIGHT + if ((arg0) == (IndexerAlign.START.value)) + return IndexerAlign.START + if ((arg0) == (IndexerAlign.END.value)) + return IndexerAlign.END + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): IndexerAlign { + if ((arg0) == (IndexerAlign.LEFT.ordinal)) + return IndexerAlign.LEFT + if ((arg0) == (IndexerAlign.RIGHT.ordinal)) + return IndexerAlign.RIGHT + if ((arg0) == (IndexerAlign.START.ordinal)) + return IndexerAlign.START + if ((arg0) == (IndexerAlign.END.ordinal)) + return IndexerAlign.END + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class BadgePosition { + static readonly RIGHT_TOP: BadgePosition = new BadgePosition(0,0) + static readonly RightTop: BadgePosition = BadgePosition.RIGHT_TOP + static readonly RIGHT: BadgePosition = new BadgePosition(1,1) + static readonly Right: BadgePosition = BadgePosition.RIGHT + static readonly LEFT: BadgePosition = new BadgePosition(2,2) + static readonly Left: BadgePosition = BadgePosition.LEFT + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): BadgePosition { + if ((arg0) == (BadgePosition.RIGHT_TOP.value)) + return BadgePosition.RIGHT_TOP + if ((arg0) == (BadgePosition.RIGHT.value)) + return BadgePosition.RIGHT + if ((arg0) == (BadgePosition.LEFT.value)) + return BadgePosition.LEFT + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): BadgePosition { + if ((arg0) == (BadgePosition.RIGHT_TOP.ordinal)) + return BadgePosition.RIGHT_TOP + if ((arg0) == (BadgePosition.RIGHT.ordinal)) + return BadgePosition.RIGHT + if ((arg0) == (BadgePosition.LEFT.ordinal)) + return BadgePosition.LEFT + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class ButtonType { + static readonly CAPSULE: ButtonType = new ButtonType(0,0) + static readonly Capsule: ButtonType = ButtonType.CAPSULE + static readonly CIRCLE: ButtonType = new ButtonType(1,1) + static readonly Circle: ButtonType = ButtonType.CIRCLE + static readonly NORMAL: ButtonType = new ButtonType(2,2) + static readonly Normal: ButtonType = ButtonType.NORMAL + static readonly ROUNDED_RECTANGLE: ButtonType = new ButtonType(3,3) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): ButtonType { + if ((arg0) == (ButtonType.CAPSULE.value)) + return ButtonType.CAPSULE + if ((arg0) == (ButtonType.CIRCLE.value)) + return ButtonType.CIRCLE + if ((arg0) == (ButtonType.NORMAL.value)) + return ButtonType.NORMAL + if ((arg0) == (ButtonType.ROUNDED_RECTANGLE.value)) + return ButtonType.ROUNDED_RECTANGLE + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): ButtonType { + if ((arg0) == (ButtonType.CAPSULE.ordinal)) + return ButtonType.CAPSULE + if ((arg0) == (ButtonType.CIRCLE.ordinal)) + return ButtonType.CIRCLE + if ((arg0) == (ButtonType.NORMAL.ordinal)) + return ButtonType.NORMAL + if ((arg0) == (ButtonType.ROUNDED_RECTANGLE.ordinal)) + return ButtonType.ROUNDED_RECTANGLE + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class ButtonStyleMode { + static readonly NORMAL: ButtonStyleMode = new ButtonStyleMode(0,0) + static readonly EMPHASIZED: ButtonStyleMode = new ButtonStyleMode(1,1) + static readonly TEXTUAL: ButtonStyleMode = new ButtonStyleMode(2,2) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): ButtonStyleMode { + if ((arg0) == (ButtonStyleMode.NORMAL.value)) + return ButtonStyleMode.NORMAL + if ((arg0) == (ButtonStyleMode.EMPHASIZED.value)) + return ButtonStyleMode.EMPHASIZED + if ((arg0) == (ButtonStyleMode.TEXTUAL.value)) + return ButtonStyleMode.TEXTUAL + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): ButtonStyleMode { + if ((arg0) == (ButtonStyleMode.NORMAL.ordinal)) + return ButtonStyleMode.NORMAL + if ((arg0) == (ButtonStyleMode.EMPHASIZED.ordinal)) + return ButtonStyleMode.EMPHASIZED + if ((arg0) == (ButtonStyleMode.TEXTUAL.ordinal)) + return ButtonStyleMode.TEXTUAL + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class ButtonRole { + static readonly NORMAL: ButtonRole = new ButtonRole(0,0) + static readonly ERROR: ButtonRole = new ButtonRole(1,1) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): ButtonRole { + if ((arg0) == (ButtonRole.NORMAL.value)) + return ButtonRole.NORMAL + if ((arg0) == (ButtonRole.ERROR.value)) + return ButtonRole.ERROR + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): ButtonRole { + if ((arg0) == (ButtonRole.NORMAL.ordinal)) + return ButtonRole.NORMAL + if ((arg0) == (ButtonRole.ERROR.ordinal)) + return ButtonRole.ERROR + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class ControlSize { + static readonly SMALL: ControlSize = new ControlSize("small",0) + static readonly NORMAL: ControlSize = new ControlSize("normal",1) + constructor(value: string, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: string + public readonly ordinal: int32 + public static of(arg0: string): ControlSize { + if ((arg0) == (ControlSize.SMALL.value)) + return ControlSize.SMALL + if ((arg0) == (ControlSize.NORMAL.value)) + return ControlSize.NORMAL + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): ControlSize { + if ((arg0) == (ControlSize.SMALL.ordinal)) + return ControlSize.SMALL + if ((arg0) == (ControlSize.NORMAL.ordinal)) + return ControlSize.NORMAL + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class CalendarAlign { + static readonly START: CalendarAlign = new CalendarAlign(0,0) + static readonly CENTER: CalendarAlign = new CalendarAlign(1,1) + static readonly END: CalendarAlign = new CalendarAlign(2,2) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): CalendarAlign { + if ((arg0) == (CalendarAlign.START.value)) + return CalendarAlign.START + if ((arg0) == (CalendarAlign.CENTER.value)) + return CalendarAlign.CENTER + if ((arg0) == (CalendarAlign.END.value)) + return CalendarAlign.END + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): CalendarAlign { + if ((arg0) == (CalendarAlign.START.ordinal)) + return CalendarAlign.START + if ((arg0) == (CalendarAlign.CENTER.ordinal)) + return CalendarAlign.CENTER + if ((arg0) == (CalendarAlign.END.ordinal)) + return CalendarAlign.END + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class SelectStatus { + static readonly ALL: SelectStatus = new SelectStatus(0,0) + static readonly All: SelectStatus = SelectStatus.ALL + static readonly PART: SelectStatus = new SelectStatus(1,1) + static readonly Part: SelectStatus = SelectStatus.PART + static readonly NONE: SelectStatus = new SelectStatus(2,2) + static readonly None: SelectStatus = SelectStatus.NONE + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): SelectStatus { + if ((arg0) == (SelectStatus.ALL.value)) + return SelectStatus.ALL + if ((arg0) == (SelectStatus.PART.value)) + return SelectStatus.PART + if ((arg0) == (SelectStatus.NONE.value)) + return SelectStatus.NONE + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): SelectStatus { + if ((arg0) == (SelectStatus.ALL.ordinal)) + return SelectStatus.ALL + if ((arg0) == (SelectStatus.PART.ordinal)) + return SelectStatus.PART + if ((arg0) == (SelectStatus.NONE.ordinal)) + return SelectStatus.NONE + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class FinishCallbackType { + static readonly REMOVED: FinishCallbackType = new FinishCallbackType(0,0) + static readonly LOGICALLY: FinishCallbackType = new FinishCallbackType(1,1) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): FinishCallbackType { + if ((arg0) == (FinishCallbackType.REMOVED.value)) + return FinishCallbackType.REMOVED + if ((arg0) == (FinishCallbackType.LOGICALLY.value)) + return FinishCallbackType.LOGICALLY + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): FinishCallbackType { + if ((arg0) == (FinishCallbackType.REMOVED.ordinal)) + return FinishCallbackType.REMOVED + if ((arg0) == (FinishCallbackType.LOGICALLY.ordinal)) + return FinishCallbackType.LOGICALLY + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class TouchTestStrategy { + static readonly DEFAULT: TouchTestStrategy = new TouchTestStrategy(0,0) + static readonly FORWARD_COMPETITION: TouchTestStrategy = new TouchTestStrategy(1,1) + static readonly FORWARD: TouchTestStrategy = new TouchTestStrategy(2,2) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): TouchTestStrategy { + if ((arg0) == (TouchTestStrategy.DEFAULT.value)) + return TouchTestStrategy.DEFAULT + if ((arg0) == (TouchTestStrategy.FORWARD_COMPETITION.value)) + return TouchTestStrategy.FORWARD_COMPETITION + if ((arg0) == (TouchTestStrategy.FORWARD.value)) + return TouchTestStrategy.FORWARD + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): TouchTestStrategy { + if ((arg0) == (TouchTestStrategy.DEFAULT.ordinal)) + return TouchTestStrategy.DEFAULT + if ((arg0) == (TouchTestStrategy.FORWARD_COMPETITION.ordinal)) + return TouchTestStrategy.FORWARD_COMPETITION + if ((arg0) == (TouchTestStrategy.FORWARD.ordinal)) + return TouchTestStrategy.FORWARD + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class TransitionHierarchyStrategy { + static readonly NONE: TransitionHierarchyStrategy = new TransitionHierarchyStrategy(0,0) + static readonly ADAPTIVE: TransitionHierarchyStrategy = new TransitionHierarchyStrategy(1,1) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): TransitionHierarchyStrategy { + if ((arg0) == (TransitionHierarchyStrategy.NONE.value)) + return TransitionHierarchyStrategy.NONE + if ((arg0) == (TransitionHierarchyStrategy.ADAPTIVE.value)) + return TransitionHierarchyStrategy.ADAPTIVE + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): TransitionHierarchyStrategy { + if ((arg0) == (TransitionHierarchyStrategy.NONE.ordinal)) + return TransitionHierarchyStrategy.NONE + if ((arg0) == (TransitionHierarchyStrategy.ADAPTIVE.ordinal)) + return TransitionHierarchyStrategy.ADAPTIVE + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class ChainStyle { + static readonly SPREAD: ChainStyle = new ChainStyle(0,0) + static readonly SPREAD_INSIDE: ChainStyle = new ChainStyle(1,1) + static readonly PACKED: ChainStyle = new ChainStyle(2,2) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): ChainStyle { + if ((arg0) == (ChainStyle.SPREAD.value)) + return ChainStyle.SPREAD + if ((arg0) == (ChainStyle.SPREAD_INSIDE.value)) + return ChainStyle.SPREAD_INSIDE + if ((arg0) == (ChainStyle.PACKED.value)) + return ChainStyle.PACKED + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): ChainStyle { + if ((arg0) == (ChainStyle.SPREAD.ordinal)) + return ChainStyle.SPREAD + if ((arg0) == (ChainStyle.SPREAD_INSIDE.ordinal)) + return ChainStyle.SPREAD_INSIDE + if ((arg0) == (ChainStyle.PACKED.ordinal)) + return ChainStyle.PACKED + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class TransitionEdge { + static readonly TOP: TransitionEdge = new TransitionEdge(0,0) + static readonly BOTTOM: TransitionEdge = new TransitionEdge(1,1) + static readonly START: TransitionEdge = new TransitionEdge(2,2) + static readonly END: TransitionEdge = new TransitionEdge(3,3) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): TransitionEdge { + if ((arg0) == (TransitionEdge.TOP.value)) + return TransitionEdge.TOP + if ((arg0) == (TransitionEdge.BOTTOM.value)) + return TransitionEdge.BOTTOM + if ((arg0) == (TransitionEdge.START.value)) + return TransitionEdge.START + if ((arg0) == (TransitionEdge.END.value)) + return TransitionEdge.END + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): TransitionEdge { + if ((arg0) == (TransitionEdge.TOP.ordinal)) + return TransitionEdge.TOP + if ((arg0) == (TransitionEdge.BOTTOM.ordinal)) + return TransitionEdge.BOTTOM + if ((arg0) == (TransitionEdge.START.ordinal)) + return TransitionEdge.START + if ((arg0) == (TransitionEdge.END.ordinal)) + return TransitionEdge.END + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class EffectType { + static readonly DEFAULT: EffectType = new EffectType(0,0) + static readonly WINDOW_EFFECT: EffectType = new EffectType(1,1) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): EffectType { + if ((arg0) == (EffectType.DEFAULT.value)) + return EffectType.DEFAULT + if ((arg0) == (EffectType.WINDOW_EFFECT.value)) + return EffectType.WINDOW_EFFECT + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): EffectType { + if ((arg0) == (EffectType.DEFAULT.ordinal)) + return EffectType.DEFAULT + if ((arg0) == (EffectType.WINDOW_EFFECT.ordinal)) + return EffectType.WINDOW_EFFECT + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class PreDragStatus { + static readonly ACTION_DETECTING_STATUS: PreDragStatus = new PreDragStatus(0,0) + static readonly READY_TO_TRIGGER_DRAG_ACTION: PreDragStatus = new PreDragStatus(1,1) + static readonly PREVIEW_LIFT_STARTED: PreDragStatus = new PreDragStatus(2,2) + static readonly PREVIEW_LIFT_FINISHED: PreDragStatus = new PreDragStatus(3,3) + static readonly PREVIEW_LANDING_STARTED: PreDragStatus = new PreDragStatus(4,4) + static readonly PREVIEW_LANDING_FINISHED: PreDragStatus = new PreDragStatus(5,5) + static readonly ACTION_CANCELED_BEFORE_DRAG: PreDragStatus = new PreDragStatus(6,6) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): PreDragStatus { + if ((arg0) == (PreDragStatus.ACTION_DETECTING_STATUS.value)) + return PreDragStatus.ACTION_DETECTING_STATUS + if ((arg0) == (PreDragStatus.READY_TO_TRIGGER_DRAG_ACTION.value)) + return PreDragStatus.READY_TO_TRIGGER_DRAG_ACTION + if ((arg0) == (PreDragStatus.PREVIEW_LIFT_STARTED.value)) + return PreDragStatus.PREVIEW_LIFT_STARTED + if ((arg0) == (PreDragStatus.PREVIEW_LIFT_FINISHED.value)) + return PreDragStatus.PREVIEW_LIFT_FINISHED + if ((arg0) == (PreDragStatus.PREVIEW_LANDING_STARTED.value)) + return PreDragStatus.PREVIEW_LANDING_STARTED + if ((arg0) == (PreDragStatus.PREVIEW_LANDING_FINISHED.value)) + return PreDragStatus.PREVIEW_LANDING_FINISHED + if ((arg0) == (PreDragStatus.ACTION_CANCELED_BEFORE_DRAG.value)) + return PreDragStatus.ACTION_CANCELED_BEFORE_DRAG + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): PreDragStatus { + if ((arg0) == (PreDragStatus.ACTION_DETECTING_STATUS.ordinal)) + return PreDragStatus.ACTION_DETECTING_STATUS + if ((arg0) == (PreDragStatus.READY_TO_TRIGGER_DRAG_ACTION.ordinal)) + return PreDragStatus.READY_TO_TRIGGER_DRAG_ACTION + if ((arg0) == (PreDragStatus.PREVIEW_LIFT_STARTED.ordinal)) + return PreDragStatus.PREVIEW_LIFT_STARTED + if ((arg0) == (PreDragStatus.PREVIEW_LIFT_FINISHED.ordinal)) + return PreDragStatus.PREVIEW_LIFT_FINISHED + if ((arg0) == (PreDragStatus.PREVIEW_LANDING_STARTED.ordinal)) + return PreDragStatus.PREVIEW_LANDING_STARTED + if ((arg0) == (PreDragStatus.PREVIEW_LANDING_FINISHED.ordinal)) + return PreDragStatus.PREVIEW_LANDING_FINISHED + if ((arg0) == (PreDragStatus.ACTION_CANCELED_BEFORE_DRAG.ordinal)) + return PreDragStatus.ACTION_CANCELED_BEFORE_DRAG + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class SourceType { + static readonly UNKNOWN: SourceType = new SourceType(0,0) + static readonly Unknown: SourceType = SourceType.UNKNOWN + static readonly MOUSE: SourceType = new SourceType(1,1) + static readonly Mouse: SourceType = SourceType.MOUSE + static readonly TOUCH_SCREEN: SourceType = new SourceType(2,2) + static readonly TouchScreen: SourceType = SourceType.TOUCH_SCREEN + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): SourceType { + if ((arg0) == (SourceType.UNKNOWN.value)) + return SourceType.UNKNOWN + if ((arg0) == (SourceType.MOUSE.value)) + return SourceType.MOUSE + if ((arg0) == (SourceType.TOUCH_SCREEN.value)) + return SourceType.TOUCH_SCREEN + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): SourceType { + if ((arg0) == (SourceType.UNKNOWN.ordinal)) + return SourceType.UNKNOWN + if ((arg0) == (SourceType.MOUSE.ordinal)) + return SourceType.MOUSE + if ((arg0) == (SourceType.TOUCH_SCREEN.ordinal)) + return SourceType.TOUCH_SCREEN + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class SourceTool { + static readonly UNKNOWN: SourceTool = new SourceTool(0,0) + static readonly Unknown: SourceTool = SourceTool.UNKNOWN + static readonly FINGER: SourceTool = new SourceTool(1,1) + static readonly Finger: SourceTool = SourceTool.FINGER + static readonly PEN: SourceTool = new SourceTool(2,2) + static readonly Pen: SourceTool = SourceTool.PEN + static readonly MOUSE: SourceTool = new SourceTool(3,3) + static readonly TOUCHPAD: SourceTool = new SourceTool(4,4) + static readonly JOYSTICK: SourceTool = new SourceTool(5,5) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): SourceTool { + if ((arg0) == (SourceTool.UNKNOWN.value)) + return SourceTool.UNKNOWN + if ((arg0) == (SourceTool.FINGER.value)) + return SourceTool.FINGER + if ((arg0) == (SourceTool.PEN.value)) + return SourceTool.PEN + if ((arg0) == (SourceTool.MOUSE.value)) + return SourceTool.MOUSE + if ((arg0) == (SourceTool.TOUCHPAD.value)) + return SourceTool.TOUCHPAD + if ((arg0) == (SourceTool.JOYSTICK.value)) + return SourceTool.JOYSTICK + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): SourceTool { + if ((arg0) == (SourceTool.UNKNOWN.ordinal)) + return SourceTool.UNKNOWN + if ((arg0) == (SourceTool.FINGER.ordinal)) + return SourceTool.FINGER + if ((arg0) == (SourceTool.PEN.ordinal)) + return SourceTool.PEN + if ((arg0) == (SourceTool.MOUSE.ordinal)) + return SourceTool.MOUSE + if ((arg0) == (SourceTool.TOUCHPAD.ordinal)) + return SourceTool.TOUCHPAD + if ((arg0) == (SourceTool.JOYSTICK.ordinal)) + return SourceTool.JOYSTICK + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class RepeatMode { + static readonly REPEAT: RepeatMode = new RepeatMode(0,0) + static readonly Repeat: RepeatMode = RepeatMode.REPEAT + static readonly STRETCH: RepeatMode = new RepeatMode(1,1) + static readonly Stretch: RepeatMode = RepeatMode.STRETCH + static readonly ROUND: RepeatMode = new RepeatMode(2,2) + static readonly Round: RepeatMode = RepeatMode.ROUND + static readonly SPACE: RepeatMode = new RepeatMode(3,3) + static readonly Space: RepeatMode = RepeatMode.SPACE + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): RepeatMode { + if ((arg0) == (RepeatMode.REPEAT.value)) + return RepeatMode.REPEAT + if ((arg0) == (RepeatMode.STRETCH.value)) + return RepeatMode.STRETCH + if ((arg0) == (RepeatMode.ROUND.value)) + return RepeatMode.ROUND + if ((arg0) == (RepeatMode.SPACE.value)) + return RepeatMode.SPACE + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): RepeatMode { + if ((arg0) == (RepeatMode.REPEAT.ordinal)) + return RepeatMode.REPEAT + if ((arg0) == (RepeatMode.STRETCH.ordinal)) + return RepeatMode.STRETCH + if ((arg0) == (RepeatMode.ROUND.ordinal)) + return RepeatMode.ROUND + if ((arg0) == (RepeatMode.SPACE.ordinal)) + return RepeatMode.SPACE + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class BlurStyle { + static readonly THIN: BlurStyle = new BlurStyle(0,0) + static readonly Thin: BlurStyle = BlurStyle.THIN + static readonly REGULAR: BlurStyle = new BlurStyle(1,1) + static readonly Regular: BlurStyle = BlurStyle.REGULAR + static readonly THICK: BlurStyle = new BlurStyle(2,2) + static readonly Thick: BlurStyle = BlurStyle.THICK + static readonly BACKGROUND_THIN: BlurStyle = new BlurStyle(3,3) + static readonly BACKGROUND_REGULAR: BlurStyle = new BlurStyle(4,4) + static readonly BACKGROUND_THICK: BlurStyle = new BlurStyle(5,5) + static readonly BACKGROUND_ULTRA_THICK: BlurStyle = new BlurStyle(6,6) + static readonly NONE: BlurStyle = new BlurStyle(7,7) + static readonly COMPONENT_ULTRA_THIN: BlurStyle = new BlurStyle(8,8) + static readonly COMPONENT_THIN: BlurStyle = new BlurStyle(9,9) + static readonly COMPONENT_REGULAR: BlurStyle = new BlurStyle(10,10) + static readonly COMPONENT_THICK: BlurStyle = new BlurStyle(11,11) + static readonly COMPONENT_ULTRA_THICK: BlurStyle = new BlurStyle(12,12) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): BlurStyle { + if ((arg0) == (BlurStyle.THIN.value)) + return BlurStyle.THIN + if ((arg0) == (BlurStyle.REGULAR.value)) + return BlurStyle.REGULAR + if ((arg0) == (BlurStyle.THICK.value)) + return BlurStyle.THICK + if ((arg0) == (BlurStyle.BACKGROUND_THIN.value)) + return BlurStyle.BACKGROUND_THIN + if ((arg0) == (BlurStyle.BACKGROUND_REGULAR.value)) + return BlurStyle.BACKGROUND_REGULAR + if ((arg0) == (BlurStyle.BACKGROUND_THICK.value)) + return BlurStyle.BACKGROUND_THICK + if ((arg0) == (BlurStyle.BACKGROUND_ULTRA_THICK.value)) + return BlurStyle.BACKGROUND_ULTRA_THICK + if ((arg0) == (BlurStyle.NONE.value)) + return BlurStyle.NONE + if ((arg0) == (BlurStyle.COMPONENT_ULTRA_THIN.value)) + return BlurStyle.COMPONENT_ULTRA_THIN + if ((arg0) == (BlurStyle.COMPONENT_THIN.value)) + return BlurStyle.COMPONENT_THIN + if ((arg0) == (BlurStyle.COMPONENT_REGULAR.value)) + return BlurStyle.COMPONENT_REGULAR + if ((arg0) == (BlurStyle.COMPONENT_THICK.value)) + return BlurStyle.COMPONENT_THICK + if ((arg0) == (BlurStyle.COMPONENT_ULTRA_THICK.value)) + return BlurStyle.COMPONENT_ULTRA_THICK + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): BlurStyle { + if ((arg0) == (BlurStyle.THIN.ordinal)) + return BlurStyle.THIN + if ((arg0) == (BlurStyle.REGULAR.ordinal)) + return BlurStyle.REGULAR + if ((arg0) == (BlurStyle.THICK.ordinal)) + return BlurStyle.THICK + if ((arg0) == (BlurStyle.BACKGROUND_THIN.ordinal)) + return BlurStyle.BACKGROUND_THIN + if ((arg0) == (BlurStyle.BACKGROUND_REGULAR.ordinal)) + return BlurStyle.BACKGROUND_REGULAR + if ((arg0) == (BlurStyle.BACKGROUND_THICK.ordinal)) + return BlurStyle.BACKGROUND_THICK + if ((arg0) == (BlurStyle.BACKGROUND_ULTRA_THICK.ordinal)) + return BlurStyle.BACKGROUND_ULTRA_THICK + if ((arg0) == (BlurStyle.NONE.ordinal)) + return BlurStyle.NONE + if ((arg0) == (BlurStyle.COMPONENT_ULTRA_THIN.ordinal)) + return BlurStyle.COMPONENT_ULTRA_THIN + if ((arg0) == (BlurStyle.COMPONENT_THIN.ordinal)) + return BlurStyle.COMPONENT_THIN + if ((arg0) == (BlurStyle.COMPONENT_REGULAR.ordinal)) + return BlurStyle.COMPONENT_REGULAR + if ((arg0) == (BlurStyle.COMPONENT_THICK.ordinal)) + return BlurStyle.COMPONENT_THICK + if ((arg0) == (BlurStyle.COMPONENT_ULTRA_THICK.ordinal)) + return BlurStyle.COMPONENT_ULTRA_THICK + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class BlurStyleActivePolicy { + static readonly FOLLOWS_WINDOW_ACTIVE_STATE: BlurStyleActivePolicy = new BlurStyleActivePolicy(0,0) + static readonly ALWAYS_ACTIVE: BlurStyleActivePolicy = new BlurStyleActivePolicy(1,1) + static readonly ALWAYS_INACTIVE: BlurStyleActivePolicy = new BlurStyleActivePolicy(2,2) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): BlurStyleActivePolicy { + if ((arg0) == (BlurStyleActivePolicy.FOLLOWS_WINDOW_ACTIVE_STATE.value)) + return BlurStyleActivePolicy.FOLLOWS_WINDOW_ACTIVE_STATE + if ((arg0) == (BlurStyleActivePolicy.ALWAYS_ACTIVE.value)) + return BlurStyleActivePolicy.ALWAYS_ACTIVE + if ((arg0) == (BlurStyleActivePolicy.ALWAYS_INACTIVE.value)) + return BlurStyleActivePolicy.ALWAYS_INACTIVE + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): BlurStyleActivePolicy { + if ((arg0) == (BlurStyleActivePolicy.FOLLOWS_WINDOW_ACTIVE_STATE.ordinal)) + return BlurStyleActivePolicy.FOLLOWS_WINDOW_ACTIVE_STATE + if ((arg0) == (BlurStyleActivePolicy.ALWAYS_ACTIVE.ordinal)) + return BlurStyleActivePolicy.ALWAYS_ACTIVE + if ((arg0) == (BlurStyleActivePolicy.ALWAYS_INACTIVE.ordinal)) + return BlurStyleActivePolicy.ALWAYS_INACTIVE + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class ThemeColorMode { + static readonly SYSTEM: ThemeColorMode = new ThemeColorMode(0,0) + static readonly LIGHT: ThemeColorMode = new ThemeColorMode(1,1) + static readonly DARK: ThemeColorMode = new ThemeColorMode(2,2) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): ThemeColorMode { + if ((arg0) == (ThemeColorMode.SYSTEM.value)) + return ThemeColorMode.SYSTEM + if ((arg0) == (ThemeColorMode.LIGHT.value)) + return ThemeColorMode.LIGHT + if ((arg0) == (ThemeColorMode.DARK.value)) + return ThemeColorMode.DARK + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): ThemeColorMode { + if ((arg0) == (ThemeColorMode.SYSTEM.ordinal)) + return ThemeColorMode.SYSTEM + if ((arg0) == (ThemeColorMode.LIGHT.ordinal)) + return ThemeColorMode.LIGHT + if ((arg0) == (ThemeColorMode.DARK.ordinal)) + return ThemeColorMode.DARK + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class AdaptiveColor { + static readonly DEFAULT: AdaptiveColor = new AdaptiveColor(0,0) + static readonly AVERAGE: AdaptiveColor = new AdaptiveColor(1,1) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): AdaptiveColor { + if ((arg0) == (AdaptiveColor.DEFAULT.value)) + return AdaptiveColor.DEFAULT + if ((arg0) == (AdaptiveColor.AVERAGE.value)) + return AdaptiveColor.AVERAGE + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): AdaptiveColor { + if ((arg0) == (AdaptiveColor.DEFAULT.ordinal)) + return AdaptiveColor.DEFAULT + if ((arg0) == (AdaptiveColor.AVERAGE.ordinal)) + return AdaptiveColor.AVERAGE + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class ModalTransition { + static readonly DEFAULT: ModalTransition = new ModalTransition(0,0) + static readonly NONE: ModalTransition = new ModalTransition(1,1) + static readonly ALPHA: ModalTransition = new ModalTransition(2,2) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): ModalTransition { + if ((arg0) == (ModalTransition.DEFAULT.value)) + return ModalTransition.DEFAULT + if ((arg0) == (ModalTransition.NONE.value)) + return ModalTransition.NONE + if ((arg0) == (ModalTransition.ALPHA.value)) + return ModalTransition.ALPHA + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): ModalTransition { + if ((arg0) == (ModalTransition.DEFAULT.ordinal)) + return ModalTransition.DEFAULT + if ((arg0) == (ModalTransition.NONE.ordinal)) + return ModalTransition.NONE + if ((arg0) == (ModalTransition.ALPHA.ordinal)) + return ModalTransition.ALPHA + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class ShadowType { + static readonly COLOR: ShadowType = new ShadowType(0,0) + static readonly BLUR: ShadowType = new ShadowType(1,1) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): ShadowType { + if ((arg0) == (ShadowType.COLOR.value)) + return ShadowType.COLOR + if ((arg0) == (ShadowType.BLUR.value)) + return ShadowType.BLUR + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): ShadowType { + if ((arg0) == (ShadowType.COLOR.ordinal)) + return ShadowType.COLOR + if ((arg0) == (ShadowType.BLUR.ordinal)) + return ShadowType.BLUR + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class ShadowStyle { + static readonly OUTER_DEFAULT_XS: ShadowStyle = new ShadowStyle(0,0) + static readonly OUTER_DEFAULT_SM: ShadowStyle = new ShadowStyle(1,1) + static readonly OUTER_DEFAULT_MD: ShadowStyle = new ShadowStyle(2,2) + static readonly OUTER_DEFAULT_LG: ShadowStyle = new ShadowStyle(3,3) + static readonly OUTER_FLOATING_SM: ShadowStyle = new ShadowStyle(4,4) + static readonly OUTER_FLOATING_MD: ShadowStyle = new ShadowStyle(5,5) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): ShadowStyle { + if ((arg0) == (ShadowStyle.OUTER_DEFAULT_XS.value)) + return ShadowStyle.OUTER_DEFAULT_XS + if ((arg0) == (ShadowStyle.OUTER_DEFAULT_SM.value)) + return ShadowStyle.OUTER_DEFAULT_SM + if ((arg0) == (ShadowStyle.OUTER_DEFAULT_MD.value)) + return ShadowStyle.OUTER_DEFAULT_MD + if ((arg0) == (ShadowStyle.OUTER_DEFAULT_LG.value)) + return ShadowStyle.OUTER_DEFAULT_LG + if ((arg0) == (ShadowStyle.OUTER_FLOATING_SM.value)) + return ShadowStyle.OUTER_FLOATING_SM + if ((arg0) == (ShadowStyle.OUTER_FLOATING_MD.value)) + return ShadowStyle.OUTER_FLOATING_MD + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): ShadowStyle { + if ((arg0) == (ShadowStyle.OUTER_DEFAULT_XS.ordinal)) + return ShadowStyle.OUTER_DEFAULT_XS + if ((arg0) == (ShadowStyle.OUTER_DEFAULT_SM.ordinal)) + return ShadowStyle.OUTER_DEFAULT_SM + if ((arg0) == (ShadowStyle.OUTER_DEFAULT_MD.ordinal)) + return ShadowStyle.OUTER_DEFAULT_MD + if ((arg0) == (ShadowStyle.OUTER_DEFAULT_LG.ordinal)) + return ShadowStyle.OUTER_DEFAULT_LG + if ((arg0) == (ShadowStyle.OUTER_FLOATING_SM.ordinal)) + return ShadowStyle.OUTER_FLOATING_SM + if ((arg0) == (ShadowStyle.OUTER_FLOATING_MD.ordinal)) + return ShadowStyle.OUTER_FLOATING_MD + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class SafeAreaType { + static readonly SYSTEM: SafeAreaType = new SafeAreaType(0,0) + static readonly CUTOUT: SafeAreaType = new SafeAreaType(1,1) + static readonly KEYBOARD: SafeAreaType = new SafeAreaType(2,2) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): SafeAreaType { + if ((arg0) == (SafeAreaType.SYSTEM.value)) + return SafeAreaType.SYSTEM + if ((arg0) == (SafeAreaType.CUTOUT.value)) + return SafeAreaType.CUTOUT + if ((arg0) == (SafeAreaType.KEYBOARD.value)) + return SafeAreaType.KEYBOARD + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): SafeAreaType { + if ((arg0) == (SafeAreaType.SYSTEM.ordinal)) + return SafeAreaType.SYSTEM + if ((arg0) == (SafeAreaType.CUTOUT.ordinal)) + return SafeAreaType.CUTOUT + if ((arg0) == (SafeAreaType.KEYBOARD.ordinal)) + return SafeAreaType.KEYBOARD + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class SafeAreaEdge { + static readonly TOP: SafeAreaEdge = new SafeAreaEdge(0,0) + static readonly BOTTOM: SafeAreaEdge = new SafeAreaEdge(1,1) + static readonly START: SafeAreaEdge = new SafeAreaEdge(2,2) + static readonly END: SafeAreaEdge = new SafeAreaEdge(3,3) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): SafeAreaEdge { + if ((arg0) == (SafeAreaEdge.TOP.value)) + return SafeAreaEdge.TOP + if ((arg0) == (SafeAreaEdge.BOTTOM.value)) + return SafeAreaEdge.BOTTOM + if ((arg0) == (SafeAreaEdge.START.value)) + return SafeAreaEdge.START + if ((arg0) == (SafeAreaEdge.END.value)) + return SafeAreaEdge.END + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): SafeAreaEdge { + if ((arg0) == (SafeAreaEdge.TOP.ordinal)) + return SafeAreaEdge.TOP + if ((arg0) == (SafeAreaEdge.BOTTOM.ordinal)) + return SafeAreaEdge.BOTTOM + if ((arg0) == (SafeAreaEdge.START.ordinal)) + return SafeAreaEdge.START + if ((arg0) == (SafeAreaEdge.END.ordinal)) + return SafeAreaEdge.END + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class LayoutSafeAreaType { + static readonly SYSTEM: LayoutSafeAreaType = new LayoutSafeAreaType(0,0) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): LayoutSafeAreaType { + if ((arg0) == (LayoutSafeAreaType.SYSTEM.value)) + return LayoutSafeAreaType.SYSTEM + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): LayoutSafeAreaType { + if ((arg0) == (LayoutSafeAreaType.SYSTEM.ordinal)) + return LayoutSafeAreaType.SYSTEM + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class LayoutSafeAreaEdge { + static readonly TOP: LayoutSafeAreaEdge = new LayoutSafeAreaEdge(0,0) + static readonly BOTTOM: LayoutSafeAreaEdge = new LayoutSafeAreaEdge(1,1) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): LayoutSafeAreaEdge { + if ((arg0) == (LayoutSafeAreaEdge.TOP.value)) + return LayoutSafeAreaEdge.TOP + if ((arg0) == (LayoutSafeAreaEdge.BOTTOM.value)) + return LayoutSafeAreaEdge.BOTTOM + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): LayoutSafeAreaEdge { + if ((arg0) == (LayoutSafeAreaEdge.TOP.ordinal)) + return LayoutSafeAreaEdge.TOP + if ((arg0) == (LayoutSafeAreaEdge.BOTTOM.ordinal)) + return LayoutSafeAreaEdge.BOTTOM + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class SheetSize { + static readonly MEDIUM: SheetSize = new SheetSize(0,0) + static readonly LARGE: SheetSize = new SheetSize(1,1) + static readonly FIT_CONTENT: SheetSize = new SheetSize(2,2) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): SheetSize { + if ((arg0) == (SheetSize.MEDIUM.value)) + return SheetSize.MEDIUM + if ((arg0) == (SheetSize.LARGE.value)) + return SheetSize.LARGE + if ((arg0) == (SheetSize.FIT_CONTENT.value)) + return SheetSize.FIT_CONTENT + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): SheetSize { + if ((arg0) == (SheetSize.MEDIUM.ordinal)) + return SheetSize.MEDIUM + if ((arg0) == (SheetSize.LARGE.ordinal)) + return SheetSize.LARGE + if ((arg0) == (SheetSize.FIT_CONTENT.ordinal)) + return SheetSize.FIT_CONTENT + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class DragBehavior { + static readonly COPY: DragBehavior = new DragBehavior(0,0) + static readonly MOVE: DragBehavior = new DragBehavior(1,1) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): DragBehavior { + if ((arg0) == (DragBehavior.COPY.value)) + return DragBehavior.COPY + if ((arg0) == (DragBehavior.MOVE.value)) + return DragBehavior.MOVE + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): DragBehavior { + if ((arg0) == (DragBehavior.COPY.ordinal)) + return DragBehavior.COPY + if ((arg0) == (DragBehavior.MOVE.ordinal)) + return DragBehavior.MOVE + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class DragResult { + static readonly DRAG_SUCCESSFUL: DragResult = new DragResult(0,0) + static readonly DRAG_FAILED: DragResult = new DragResult(1,1) + static readonly DRAG_CANCELED: DragResult = new DragResult(2,2) + static readonly DROP_ENABLED: DragResult = new DragResult(3,3) + static readonly DROP_DISABLED: DragResult = new DragResult(4,4) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): DragResult { + if ((arg0) == (DragResult.DRAG_SUCCESSFUL.value)) + return DragResult.DRAG_SUCCESSFUL + if ((arg0) == (DragResult.DRAG_FAILED.value)) + return DragResult.DRAG_FAILED + if ((arg0) == (DragResult.DRAG_CANCELED.value)) + return DragResult.DRAG_CANCELED + if ((arg0) == (DragResult.DROP_ENABLED.value)) + return DragResult.DROP_ENABLED + if ((arg0) == (DragResult.DROP_DISABLED.value)) + return DragResult.DROP_DISABLED + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): DragResult { + if ((arg0) == (DragResult.DRAG_SUCCESSFUL.ordinal)) + return DragResult.DRAG_SUCCESSFUL + if ((arg0) == (DragResult.DRAG_FAILED.ordinal)) + return DragResult.DRAG_FAILED + if ((arg0) == (DragResult.DRAG_CANCELED.ordinal)) + return DragResult.DRAG_CANCELED + if ((arg0) == (DragResult.DROP_ENABLED.ordinal)) + return DragResult.DROP_ENABLED + if ((arg0) == (DragResult.DROP_DISABLED.ordinal)) + return DragResult.DROP_DISABLED + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class BlendMode { + static readonly NONE: BlendMode = new BlendMode(0,0) + static readonly CLEAR: BlendMode = new BlendMode(1,1) + static readonly SRC: BlendMode = new BlendMode(2,2) + static readonly DST: BlendMode = new BlendMode(3,3) + static readonly SRC_OVER: BlendMode = new BlendMode(4,4) + static readonly DST_OVER: BlendMode = new BlendMode(5,5) + static readonly SRC_IN: BlendMode = new BlendMode(6,6) + static readonly DST_IN: BlendMode = new BlendMode(7,7) + static readonly SRC_OUT: BlendMode = new BlendMode(8,8) + static readonly DST_OUT: BlendMode = new BlendMode(9,9) + static readonly SRC_ATOP: BlendMode = new BlendMode(10,10) + static readonly DST_ATOP: BlendMode = new BlendMode(11,11) + static readonly XOR: BlendMode = new BlendMode(12,12) + static readonly PLUS: BlendMode = new BlendMode(13,13) + static readonly MODULATE: BlendMode = new BlendMode(14,14) + static readonly SCREEN: BlendMode = new BlendMode(15,15) + static readonly OVERLAY: BlendMode = new BlendMode(16,16) + static readonly DARKEN: BlendMode = new BlendMode(17,17) + static readonly LIGHTEN: BlendMode = new BlendMode(18,18) + static readonly COLOR_DODGE: BlendMode = new BlendMode(19,19) + static readonly COLOR_BURN: BlendMode = new BlendMode(20,20) + static readonly HARD_LIGHT: BlendMode = new BlendMode(21,21) + static readonly SOFT_LIGHT: BlendMode = new BlendMode(22,22) + static readonly DIFFERENCE: BlendMode = new BlendMode(23,23) + static readonly EXCLUSION: BlendMode = new BlendMode(24,24) + static readonly MULTIPLY: BlendMode = new BlendMode(25,25) + static readonly HUE: BlendMode = new BlendMode(26,26) + static readonly SATURATION: BlendMode = new BlendMode(27,27) + static readonly COLOR: BlendMode = new BlendMode(28,28) + static readonly LUMINOSITY: BlendMode = new BlendMode(29,29) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): BlendMode { + if ((arg0) == (BlendMode.NONE.value)) + return BlendMode.NONE + if ((arg0) == (BlendMode.CLEAR.value)) + return BlendMode.CLEAR + if ((arg0) == (BlendMode.SRC.value)) + return BlendMode.SRC + if ((arg0) == (BlendMode.DST.value)) + return BlendMode.DST + if ((arg0) == (BlendMode.SRC_OVER.value)) + return BlendMode.SRC_OVER + if ((arg0) == (BlendMode.DST_OVER.value)) + return BlendMode.DST_OVER + if ((arg0) == (BlendMode.SRC_IN.value)) + return BlendMode.SRC_IN + if ((arg0) == (BlendMode.DST_IN.value)) + return BlendMode.DST_IN + if ((arg0) == (BlendMode.SRC_OUT.value)) + return BlendMode.SRC_OUT + if ((arg0) == (BlendMode.DST_OUT.value)) + return BlendMode.DST_OUT + if ((arg0) == (BlendMode.SRC_ATOP.value)) + return BlendMode.SRC_ATOP + if ((arg0) == (BlendMode.DST_ATOP.value)) + return BlendMode.DST_ATOP + if ((arg0) == (BlendMode.XOR.value)) + return BlendMode.XOR + if ((arg0) == (BlendMode.PLUS.value)) + return BlendMode.PLUS + if ((arg0) == (BlendMode.MODULATE.value)) + return BlendMode.MODULATE + if ((arg0) == (BlendMode.SCREEN.value)) + return BlendMode.SCREEN + if ((arg0) == (BlendMode.OVERLAY.value)) + return BlendMode.OVERLAY + if ((arg0) == (BlendMode.DARKEN.value)) + return BlendMode.DARKEN + if ((arg0) == (BlendMode.LIGHTEN.value)) + return BlendMode.LIGHTEN + if ((arg0) == (BlendMode.COLOR_DODGE.value)) + return BlendMode.COLOR_DODGE + if ((arg0) == (BlendMode.COLOR_BURN.value)) + return BlendMode.COLOR_BURN + if ((arg0) == (BlendMode.HARD_LIGHT.value)) + return BlendMode.HARD_LIGHT + if ((arg0) == (BlendMode.SOFT_LIGHT.value)) + return BlendMode.SOFT_LIGHT + if ((arg0) == (BlendMode.DIFFERENCE.value)) + return BlendMode.DIFFERENCE + if ((arg0) == (BlendMode.EXCLUSION.value)) + return BlendMode.EXCLUSION + if ((arg0) == (BlendMode.MULTIPLY.value)) + return BlendMode.MULTIPLY + if ((arg0) == (BlendMode.HUE.value)) + return BlendMode.HUE + if ((arg0) == (BlendMode.SATURATION.value)) + return BlendMode.SATURATION + if ((arg0) == (BlendMode.COLOR.value)) + return BlendMode.COLOR + if ((arg0) == (BlendMode.LUMINOSITY.value)) + return BlendMode.LUMINOSITY + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): BlendMode { + if ((arg0) == (BlendMode.NONE.ordinal)) + return BlendMode.NONE + if ((arg0) == (BlendMode.CLEAR.ordinal)) + return BlendMode.CLEAR + if ((arg0) == (BlendMode.SRC.ordinal)) + return BlendMode.SRC + if ((arg0) == (BlendMode.DST.ordinal)) + return BlendMode.DST + if ((arg0) == (BlendMode.SRC_OVER.ordinal)) + return BlendMode.SRC_OVER + if ((arg0) == (BlendMode.DST_OVER.ordinal)) + return BlendMode.DST_OVER + if ((arg0) == (BlendMode.SRC_IN.ordinal)) + return BlendMode.SRC_IN + if ((arg0) == (BlendMode.DST_IN.ordinal)) + return BlendMode.DST_IN + if ((arg0) == (BlendMode.SRC_OUT.ordinal)) + return BlendMode.SRC_OUT + if ((arg0) == (BlendMode.DST_OUT.ordinal)) + return BlendMode.DST_OUT + if ((arg0) == (BlendMode.SRC_ATOP.ordinal)) + return BlendMode.SRC_ATOP + if ((arg0) == (BlendMode.DST_ATOP.ordinal)) + return BlendMode.DST_ATOP + if ((arg0) == (BlendMode.XOR.ordinal)) + return BlendMode.XOR + if ((arg0) == (BlendMode.PLUS.ordinal)) + return BlendMode.PLUS + if ((arg0) == (BlendMode.MODULATE.ordinal)) + return BlendMode.MODULATE + if ((arg0) == (BlendMode.SCREEN.ordinal)) + return BlendMode.SCREEN + if ((arg0) == (BlendMode.OVERLAY.ordinal)) + return BlendMode.OVERLAY + if ((arg0) == (BlendMode.DARKEN.ordinal)) + return BlendMode.DARKEN + if ((arg0) == (BlendMode.LIGHTEN.ordinal)) + return BlendMode.LIGHTEN + if ((arg0) == (BlendMode.COLOR_DODGE.ordinal)) + return BlendMode.COLOR_DODGE + if ((arg0) == (BlendMode.COLOR_BURN.ordinal)) + return BlendMode.COLOR_BURN + if ((arg0) == (BlendMode.HARD_LIGHT.ordinal)) + return BlendMode.HARD_LIGHT + if ((arg0) == (BlendMode.SOFT_LIGHT.ordinal)) + return BlendMode.SOFT_LIGHT + if ((arg0) == (BlendMode.DIFFERENCE.ordinal)) + return BlendMode.DIFFERENCE + if ((arg0) == (BlendMode.EXCLUSION.ordinal)) + return BlendMode.EXCLUSION + if ((arg0) == (BlendMode.MULTIPLY.ordinal)) + return BlendMode.MULTIPLY + if ((arg0) == (BlendMode.HUE.ordinal)) + return BlendMode.HUE + if ((arg0) == (BlendMode.SATURATION.ordinal)) + return BlendMode.SATURATION + if ((arg0) == (BlendMode.COLOR.ordinal)) + return BlendMode.COLOR + if ((arg0) == (BlendMode.LUMINOSITY.ordinal)) + return BlendMode.LUMINOSITY + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class BlendApplyType { + static readonly FAST: BlendApplyType = new BlendApplyType(0,0) + static readonly OFFSCREEN: BlendApplyType = new BlendApplyType(1,1) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): BlendApplyType { + if ((arg0) == (BlendApplyType.FAST.value)) + return BlendApplyType.FAST + if ((arg0) == (BlendApplyType.OFFSCREEN.value)) + return BlendApplyType.OFFSCREEN + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): BlendApplyType { + if ((arg0) == (BlendApplyType.FAST.ordinal)) + return BlendApplyType.FAST + if ((arg0) == (BlendApplyType.OFFSCREEN.ordinal)) + return BlendApplyType.OFFSCREEN + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class SheetType { + static readonly BOTTOM: SheetType = new SheetType(0,0) + static readonly CENTER: SheetType = new SheetType(1,1) + static readonly POPUP: SheetType = new SheetType(2,2) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): SheetType { + if ((arg0) == (SheetType.BOTTOM.value)) + return SheetType.BOTTOM + if ((arg0) == (SheetType.CENTER.value)) + return SheetType.CENTER + if ((arg0) == (SheetType.POPUP.value)) + return SheetType.POPUP + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): SheetType { + if ((arg0) == (SheetType.BOTTOM.ordinal)) + return SheetType.BOTTOM + if ((arg0) == (SheetType.CENTER.ordinal)) + return SheetType.CENTER + if ((arg0) == (SheetType.POPUP.ordinal)) + return SheetType.POPUP + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class SheetMode { + static readonly OVERLAY: SheetMode = new SheetMode(0,0) + static readonly EMBEDDED: SheetMode = new SheetMode(1,1) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): SheetMode { + if ((arg0) == (SheetMode.OVERLAY.value)) + return SheetMode.OVERLAY + if ((arg0) == (SheetMode.EMBEDDED.value)) + return SheetMode.EMBEDDED + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): SheetMode { + if ((arg0) == (SheetMode.OVERLAY.ordinal)) + return SheetMode.OVERLAY + if ((arg0) == (SheetMode.EMBEDDED.ordinal)) + return SheetMode.EMBEDDED + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class ScrollSizeMode { + static readonly FOLLOW_DETENT: ScrollSizeMode = new ScrollSizeMode(0,0) + static readonly CONTINUOUS: ScrollSizeMode = new ScrollSizeMode(1,1) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): ScrollSizeMode { + if ((arg0) == (ScrollSizeMode.FOLLOW_DETENT.value)) + return ScrollSizeMode.FOLLOW_DETENT + if ((arg0) == (ScrollSizeMode.CONTINUOUS.value)) + return ScrollSizeMode.CONTINUOUS + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): ScrollSizeMode { + if ((arg0) == (ScrollSizeMode.FOLLOW_DETENT.ordinal)) + return ScrollSizeMode.FOLLOW_DETENT + if ((arg0) == (ScrollSizeMode.CONTINUOUS.ordinal)) + return ScrollSizeMode.CONTINUOUS + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class SheetKeyboardAvoidMode { + static readonly NONE: SheetKeyboardAvoidMode = new SheetKeyboardAvoidMode(0,0) + static readonly TRANSLATE_AND_RESIZE: SheetKeyboardAvoidMode = new SheetKeyboardAvoidMode(1,1) + static readonly RESIZE_ONLY: SheetKeyboardAvoidMode = new SheetKeyboardAvoidMode(2,2) + static readonly TRANSLATE_AND_SCROLL: SheetKeyboardAvoidMode = new SheetKeyboardAvoidMode(3,3) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): SheetKeyboardAvoidMode { + if ((arg0) == (SheetKeyboardAvoidMode.NONE.value)) + return SheetKeyboardAvoidMode.NONE + if ((arg0) == (SheetKeyboardAvoidMode.TRANSLATE_AND_RESIZE.value)) + return SheetKeyboardAvoidMode.TRANSLATE_AND_RESIZE + if ((arg0) == (SheetKeyboardAvoidMode.RESIZE_ONLY.value)) + return SheetKeyboardAvoidMode.RESIZE_ONLY + if ((arg0) == (SheetKeyboardAvoidMode.TRANSLATE_AND_SCROLL.value)) + return SheetKeyboardAvoidMode.TRANSLATE_AND_SCROLL + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): SheetKeyboardAvoidMode { + if ((arg0) == (SheetKeyboardAvoidMode.NONE.ordinal)) + return SheetKeyboardAvoidMode.NONE + if ((arg0) == (SheetKeyboardAvoidMode.TRANSLATE_AND_RESIZE.ordinal)) + return SheetKeyboardAvoidMode.TRANSLATE_AND_RESIZE + if ((arg0) == (SheetKeyboardAvoidMode.RESIZE_ONLY.ordinal)) + return SheetKeyboardAvoidMode.RESIZE_ONLY + if ((arg0) == (SheetKeyboardAvoidMode.TRANSLATE_AND_SCROLL.ordinal)) + return SheetKeyboardAvoidMode.TRANSLATE_AND_SCROLL + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class DismissReason { + static readonly PRESS_BACK: DismissReason = new DismissReason(0,0) + static readonly TOUCH_OUTSIDE: DismissReason = new DismissReason(1,1) + static readonly CLOSE_BUTTON: DismissReason = new DismissReason(2,2) + static readonly SLIDE_DOWN: DismissReason = new DismissReason(3,3) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): DismissReason { + if ((arg0) == (DismissReason.PRESS_BACK.value)) + return DismissReason.PRESS_BACK + if ((arg0) == (DismissReason.TOUCH_OUTSIDE.value)) + return DismissReason.TOUCH_OUTSIDE + if ((arg0) == (DismissReason.CLOSE_BUTTON.value)) + return DismissReason.CLOSE_BUTTON + if ((arg0) == (DismissReason.SLIDE_DOWN.value)) + return DismissReason.SLIDE_DOWN + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): DismissReason { + if ((arg0) == (DismissReason.PRESS_BACK.ordinal)) + return DismissReason.PRESS_BACK + if ((arg0) == (DismissReason.TOUCH_OUTSIDE.ordinal)) + return DismissReason.TOUCH_OUTSIDE + if ((arg0) == (DismissReason.CLOSE_BUTTON.ordinal)) + return DismissReason.CLOSE_BUTTON + if ((arg0) == (DismissReason.SLIDE_DOWN.ordinal)) + return DismissReason.SLIDE_DOWN + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class MenuPreviewMode { + static readonly NONE: MenuPreviewMode = new MenuPreviewMode(0,0) + static readonly IMAGE: MenuPreviewMode = new MenuPreviewMode(1,1) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): MenuPreviewMode { + if ((arg0) == (MenuPreviewMode.NONE.value)) + return MenuPreviewMode.NONE + if ((arg0) == (MenuPreviewMode.IMAGE.value)) + return MenuPreviewMode.IMAGE + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): MenuPreviewMode { + if ((arg0) == (MenuPreviewMode.NONE.ordinal)) + return MenuPreviewMode.NONE + if ((arg0) == (MenuPreviewMode.IMAGE.ordinal)) + return MenuPreviewMode.IMAGE + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class OutlineStyle { + static readonly SOLID: OutlineStyle = new OutlineStyle(0,0) + static readonly DASHED: OutlineStyle = new OutlineStyle(1,1) + static readonly DOTTED: OutlineStyle = new OutlineStyle(2,2) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): OutlineStyle { + if ((arg0) == (OutlineStyle.SOLID.value)) + return OutlineStyle.SOLID + if ((arg0) == (OutlineStyle.DASHED.value)) + return OutlineStyle.DASHED + if ((arg0) == (OutlineStyle.DOTTED.value)) + return OutlineStyle.DOTTED + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): OutlineStyle { + if ((arg0) == (OutlineStyle.SOLID.ordinal)) + return OutlineStyle.SOLID + if ((arg0) == (OutlineStyle.DASHED.ordinal)) + return OutlineStyle.DASHED + if ((arg0) == (OutlineStyle.DOTTED.ordinal)) + return OutlineStyle.DOTTED + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class DragPreviewMode { + static readonly AUTO: DragPreviewMode = new DragPreviewMode(1,0) + static readonly DISABLE_SCALE: DragPreviewMode = new DragPreviewMode(2,1) + static readonly ENABLE_DEFAULT_SHADOW: DragPreviewMode = new DragPreviewMode(3,2) + static readonly ENABLE_DEFAULT_RADIUS: DragPreviewMode = new DragPreviewMode(4,3) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): DragPreviewMode { + if ((arg0) == (DragPreviewMode.AUTO.value)) + return DragPreviewMode.AUTO + if ((arg0) == (DragPreviewMode.DISABLE_SCALE.value)) + return DragPreviewMode.DISABLE_SCALE + if ((arg0) == (DragPreviewMode.ENABLE_DEFAULT_SHADOW.value)) + return DragPreviewMode.ENABLE_DEFAULT_SHADOW + if ((arg0) == (DragPreviewMode.ENABLE_DEFAULT_RADIUS.value)) + return DragPreviewMode.ENABLE_DEFAULT_RADIUS + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): DragPreviewMode { + if ((arg0) == (DragPreviewMode.AUTO.ordinal)) + return DragPreviewMode.AUTO + if ((arg0) == (DragPreviewMode.DISABLE_SCALE.ordinal)) + return DragPreviewMode.DISABLE_SCALE + if ((arg0) == (DragPreviewMode.ENABLE_DEFAULT_SHADOW.ordinal)) + return DragPreviewMode.ENABLE_DEFAULT_SHADOW + if ((arg0) == (DragPreviewMode.ENABLE_DEFAULT_RADIUS.ordinal)) + return DragPreviewMode.ENABLE_DEFAULT_RADIUS + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class MenuPolicy { + static readonly DEFAULT: MenuPolicy = new MenuPolicy(0,0) + static readonly HIDE: MenuPolicy = new MenuPolicy(1,1) + static readonly SHOW: MenuPolicy = new MenuPolicy(2,2) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): MenuPolicy { + if ((arg0) == (MenuPolicy.DEFAULT.value)) + return MenuPolicy.DEFAULT + if ((arg0) == (MenuPolicy.HIDE.value)) + return MenuPolicy.HIDE + if ((arg0) == (MenuPolicy.SHOW.value)) + return MenuPolicy.SHOW + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): MenuPolicy { + if ((arg0) == (MenuPolicy.DEFAULT.ordinal)) + return MenuPolicy.DEFAULT + if ((arg0) == (MenuPolicy.HIDE.ordinal)) + return MenuPolicy.HIDE + if ((arg0) == (MenuPolicy.SHOW.ordinal)) + return MenuPolicy.SHOW + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class ContentClipMode { + static readonly CONTENT_ONLY: ContentClipMode = new ContentClipMode(0,0) + static readonly BOUNDARY: ContentClipMode = new ContentClipMode(1,1) + static readonly SAFE_AREA: ContentClipMode = new ContentClipMode(2,2) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): ContentClipMode { + if ((arg0) == (ContentClipMode.CONTENT_ONLY.value)) + return ContentClipMode.CONTENT_ONLY + if ((arg0) == (ContentClipMode.BOUNDARY.value)) + return ContentClipMode.BOUNDARY + if ((arg0) == (ContentClipMode.SAFE_AREA.value)) + return ContentClipMode.SAFE_AREA + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): ContentClipMode { + if ((arg0) == (ContentClipMode.CONTENT_ONLY.ordinal)) + return ContentClipMode.CONTENT_ONLY + if ((arg0) == (ContentClipMode.BOUNDARY.ordinal)) + return ContentClipMode.BOUNDARY + if ((arg0) == (ContentClipMode.SAFE_AREA.ordinal)) + return ContentClipMode.SAFE_AREA + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class KeyboardAvoidMode { + static readonly DEFAULT: KeyboardAvoidMode = new KeyboardAvoidMode(0,0) + static readonly NONE: KeyboardAvoidMode = new KeyboardAvoidMode(1,1) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): KeyboardAvoidMode { + if ((arg0) == (KeyboardAvoidMode.DEFAULT.value)) + return KeyboardAvoidMode.DEFAULT + if ((arg0) == (KeyboardAvoidMode.NONE.value)) + return KeyboardAvoidMode.NONE + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): KeyboardAvoidMode { + if ((arg0) == (KeyboardAvoidMode.DEFAULT.ordinal)) + return KeyboardAvoidMode.DEFAULT + if ((arg0) == (KeyboardAvoidMode.NONE.ordinal)) + return KeyboardAvoidMode.NONE + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class HoverModeAreaType { + static readonly TOP_SCREEN: HoverModeAreaType = new HoverModeAreaType(0,0) + static readonly BOTTOM_SCREEN: HoverModeAreaType = new HoverModeAreaType(1,1) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): HoverModeAreaType { + if ((arg0) == (HoverModeAreaType.TOP_SCREEN.value)) + return HoverModeAreaType.TOP_SCREEN + if ((arg0) == (HoverModeAreaType.BOTTOM_SCREEN.value)) + return HoverModeAreaType.BOTTOM_SCREEN + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): HoverModeAreaType { + if ((arg0) == (HoverModeAreaType.TOP_SCREEN.ordinal)) + return HoverModeAreaType.TOP_SCREEN + if ((arg0) == (HoverModeAreaType.BOTTOM_SCREEN.ordinal)) + return HoverModeAreaType.BOTTOM_SCREEN + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class ModelType { + static readonly TEXTURE: ModelType = new ModelType(0,0) + static readonly SURFACE: ModelType = new ModelType(1,1) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): ModelType { + if ((arg0) == (ModelType.TEXTURE.value)) + return ModelType.TEXTURE + if ((arg0) == (ModelType.SURFACE.value)) + return ModelType.SURFACE + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): ModelType { + if ((arg0) == (ModelType.TEXTURE.ordinal)) + return ModelType.TEXTURE + if ((arg0) == (ModelType.SURFACE.ordinal)) + return ModelType.SURFACE + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class DataPanelType { + static readonly LINE: DataPanelType = new DataPanelType(0,0) + static readonly Line: DataPanelType = DataPanelType.LINE + static readonly CIRCLE: DataPanelType = new DataPanelType(1,1) + static readonly Circle: DataPanelType = DataPanelType.CIRCLE + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): DataPanelType { + if ((arg0) == (DataPanelType.LINE.value)) + return DataPanelType.LINE + if ((arg0) == (DataPanelType.CIRCLE.value)) + return DataPanelType.CIRCLE + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): DataPanelType { + if ((arg0) == (DataPanelType.LINE.ordinal)) + return DataPanelType.LINE + if ((arg0) == (DataPanelType.CIRCLE.ordinal)) + return DataPanelType.CIRCLE + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class CheckBoxShape { + static readonly CIRCLE: CheckBoxShape = new CheckBoxShape(0,0) + static readonly ROUNDED_SQUARE: CheckBoxShape = new CheckBoxShape(1,1) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): CheckBoxShape { + if ((arg0) == (CheckBoxShape.CIRCLE.value)) + return CheckBoxShape.CIRCLE + if ((arg0) == (CheckBoxShape.ROUNDED_SQUARE.value)) + return CheckBoxShape.ROUNDED_SQUARE + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): CheckBoxShape { + if ((arg0) == (CheckBoxShape.CIRCLE.ordinal)) + return CheckBoxShape.CIRCLE + if ((arg0) == (CheckBoxShape.ROUNDED_SQUARE.ordinal)) + return CheckBoxShape.ROUNDED_SQUARE + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class Color { + static readonly WHITE: Color = new Color(0,0) + static readonly White: Color = Color.WHITE + static readonly BLACK: Color = new Color(1,1) + static readonly Black: Color = Color.BLACK + static readonly BLUE: Color = new Color(2,2) + static readonly Blue: Color = Color.BLUE + static readonly BROWN: Color = new Color(3,3) + static readonly Brown: Color = Color.BROWN + static readonly GRAY: Color = new Color(4,4) + static readonly Gray: Color = Color.GRAY + static readonly GREEN: Color = new Color(5,5) + static readonly Green: Color = Color.GREEN + static readonly GREY: Color = new Color(6,6) + static readonly Grey: Color = Color.GREY + static readonly ORANGE: Color = new Color(7,7) + static readonly Orange: Color = Color.ORANGE + static readonly PINK: Color = new Color(8,8) + static readonly Pink: Color = Color.PINK + static readonly RED: Color = new Color(9,9) + static readonly Red: Color = Color.RED + static readonly YELLOW: Color = new Color(10,10) + static readonly Yellow: Color = Color.YELLOW + static readonly TRANSPARENT: Color = new Color(11,11) + static readonly Transparent: Color = Color.TRANSPARENT + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): Color { + if ((arg0) == (Color.WHITE.value)) + return Color.WHITE + if ((arg0) == (Color.BLACK.value)) + return Color.BLACK + if ((arg0) == (Color.BLUE.value)) + return Color.BLUE + if ((arg0) == (Color.BROWN.value)) + return Color.BROWN + if ((arg0) == (Color.GRAY.value)) + return Color.GRAY + if ((arg0) == (Color.GREEN.value)) + return Color.GREEN + if ((arg0) == (Color.GREY.value)) + return Color.GREY + if ((arg0) == (Color.ORANGE.value)) + return Color.ORANGE + if ((arg0) == (Color.PINK.value)) + return Color.PINK + if ((arg0) == (Color.RED.value)) + return Color.RED + if ((arg0) == (Color.YELLOW.value)) + return Color.YELLOW + if ((arg0) == (Color.TRANSPARENT.value)) + return Color.TRANSPARENT + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): Color { + if ((arg0) == (Color.WHITE.ordinal)) + return Color.WHITE + if ((arg0) == (Color.BLACK.ordinal)) + return Color.BLACK + if ((arg0) == (Color.BLUE.ordinal)) + return Color.BLUE + if ((arg0) == (Color.BROWN.ordinal)) + return Color.BROWN + if ((arg0) == (Color.GRAY.ordinal)) + return Color.GRAY + if ((arg0) == (Color.GREEN.ordinal)) + return Color.GREEN + if ((arg0) == (Color.GREY.ordinal)) + return Color.GREY + if ((arg0) == (Color.ORANGE.ordinal)) + return Color.ORANGE + if ((arg0) == (Color.PINK.ordinal)) + return Color.PINK + if ((arg0) == (Color.RED.ordinal)) + return Color.RED + if ((arg0) == (Color.YELLOW.ordinal)) + return Color.YELLOW + if ((arg0) == (Color.TRANSPARENT.ordinal)) + return Color.TRANSPARENT + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class ColoringStrategy { + static readonly INVERT: ColoringStrategy = new ColoringStrategy("invert",0) + static readonly AVERAGE: ColoringStrategy = new ColoringStrategy("average",1) + static readonly PRIMARY: ColoringStrategy = new ColoringStrategy("primary",2) + constructor(value: string, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: string + public readonly ordinal: int32 + public static of(arg0: string): ColoringStrategy { + if ((arg0) == (ColoringStrategy.INVERT.value)) + return ColoringStrategy.INVERT + if ((arg0) == (ColoringStrategy.AVERAGE.value)) + return ColoringStrategy.AVERAGE + if ((arg0) == (ColoringStrategy.PRIMARY.value)) + return ColoringStrategy.PRIMARY + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): ColoringStrategy { + if ((arg0) == (ColoringStrategy.INVERT.ordinal)) + return ColoringStrategy.INVERT + if ((arg0) == (ColoringStrategy.AVERAGE.ordinal)) + return ColoringStrategy.AVERAGE + if ((arg0) == (ColoringStrategy.PRIMARY.ordinal)) + return ColoringStrategy.PRIMARY + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class ImageFit { + static readonly CONTAIN: ImageFit = new ImageFit(0,0) + static readonly Contain: ImageFit = ImageFit.CONTAIN + static readonly COVER: ImageFit = new ImageFit(1,1) + static readonly Cover: ImageFit = ImageFit.COVER + static readonly AUTO: ImageFit = new ImageFit(2,2) + static readonly Auto: ImageFit = ImageFit.AUTO + static readonly FILL: ImageFit = new ImageFit(3,3) + static readonly Fill: ImageFit = ImageFit.FILL + static readonly SCALE_DOWN: ImageFit = new ImageFit(4,4) + static readonly ScaleDown: ImageFit = ImageFit.SCALE_DOWN + static readonly NONE: ImageFit = new ImageFit(5,5) + static readonly None: ImageFit = ImageFit.NONE + static readonly TOP_START: ImageFit = new ImageFit(7,6) + static readonly TOP: ImageFit = new ImageFit(8,7) + static readonly TOP_END: ImageFit = new ImageFit(9,8) + static readonly START: ImageFit = new ImageFit(10,9) + static readonly CENTER: ImageFit = new ImageFit(11,10) + static readonly END: ImageFit = new ImageFit(12,11) + static readonly BOTTOM_START: ImageFit = new ImageFit(13,12) + static readonly BOTTOM: ImageFit = new ImageFit(14,13) + static readonly BOTTOM_END: ImageFit = new ImageFit(15,14) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): ImageFit { + if ((arg0) == (ImageFit.CONTAIN.value)) + return ImageFit.CONTAIN + if ((arg0) == (ImageFit.COVER.value)) + return ImageFit.COVER + if ((arg0) == (ImageFit.AUTO.value)) + return ImageFit.AUTO + if ((arg0) == (ImageFit.FILL.value)) + return ImageFit.FILL + if ((arg0) == (ImageFit.SCALE_DOWN.value)) + return ImageFit.SCALE_DOWN + if ((arg0) == (ImageFit.NONE.value)) + return ImageFit.NONE + if ((arg0) == (ImageFit.TOP_START.value)) + return ImageFit.TOP_START + if ((arg0) == (ImageFit.TOP.value)) + return ImageFit.TOP + if ((arg0) == (ImageFit.TOP_END.value)) + return ImageFit.TOP_END + if ((arg0) == (ImageFit.START.value)) + return ImageFit.START + if ((arg0) == (ImageFit.CENTER.value)) + return ImageFit.CENTER + if ((arg0) == (ImageFit.END.value)) + return ImageFit.END + if ((arg0) == (ImageFit.BOTTOM_START.value)) + return ImageFit.BOTTOM_START + if ((arg0) == (ImageFit.BOTTOM.value)) + return ImageFit.BOTTOM + if ((arg0) == (ImageFit.BOTTOM_END.value)) + return ImageFit.BOTTOM_END + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): ImageFit { + if ((arg0) == (ImageFit.CONTAIN.ordinal)) + return ImageFit.CONTAIN + if ((arg0) == (ImageFit.COVER.ordinal)) + return ImageFit.COVER + if ((arg0) == (ImageFit.AUTO.ordinal)) + return ImageFit.AUTO + if ((arg0) == (ImageFit.FILL.ordinal)) + return ImageFit.FILL + if ((arg0) == (ImageFit.SCALE_DOWN.ordinal)) + return ImageFit.SCALE_DOWN + if ((arg0) == (ImageFit.NONE.ordinal)) + return ImageFit.NONE + if ((arg0) == (ImageFit.TOP_START.ordinal)) + return ImageFit.TOP_START + if ((arg0) == (ImageFit.TOP.ordinal)) + return ImageFit.TOP + if ((arg0) == (ImageFit.TOP_END.ordinal)) + return ImageFit.TOP_END + if ((arg0) == (ImageFit.START.ordinal)) + return ImageFit.START + if ((arg0) == (ImageFit.CENTER.ordinal)) + return ImageFit.CENTER + if ((arg0) == (ImageFit.END.ordinal)) + return ImageFit.END + if ((arg0) == (ImageFit.BOTTOM_START.ordinal)) + return ImageFit.BOTTOM_START + if ((arg0) == (ImageFit.BOTTOM.ordinal)) + return ImageFit.BOTTOM + if ((arg0) == (ImageFit.BOTTOM_END.ordinal)) + return ImageFit.BOTTOM_END + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class BorderStyle { + static readonly DOTTED: BorderStyle = new BorderStyle(0,0) + static readonly Dotted: BorderStyle = BorderStyle.DOTTED + static readonly DASHED: BorderStyle = new BorderStyle(1,1) + static readonly Dashed: BorderStyle = BorderStyle.DASHED + static readonly SOLID: BorderStyle = new BorderStyle(2,2) + static readonly Solid: BorderStyle = BorderStyle.SOLID + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): BorderStyle { + if ((arg0) == (BorderStyle.DOTTED.value)) + return BorderStyle.DOTTED + if ((arg0) == (BorderStyle.DASHED.value)) + return BorderStyle.DASHED + if ((arg0) == (BorderStyle.SOLID.value)) + return BorderStyle.SOLID + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): BorderStyle { + if ((arg0) == (BorderStyle.DOTTED.ordinal)) + return BorderStyle.DOTTED + if ((arg0) == (BorderStyle.DASHED.ordinal)) + return BorderStyle.DASHED + if ((arg0) == (BorderStyle.SOLID.ordinal)) + return BorderStyle.SOLID + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class LineJoinStyle { + static readonly MITER: LineJoinStyle = new LineJoinStyle(0,0) + static readonly Miter: LineJoinStyle = LineJoinStyle.MITER + static readonly ROUND: LineJoinStyle = new LineJoinStyle(1,1) + static readonly Round: LineJoinStyle = LineJoinStyle.ROUND + static readonly BEVEL: LineJoinStyle = new LineJoinStyle(2,2) + static readonly Bevel: LineJoinStyle = LineJoinStyle.BEVEL + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): LineJoinStyle { + if ((arg0) == (LineJoinStyle.MITER.value)) + return LineJoinStyle.MITER + if ((arg0) == (LineJoinStyle.ROUND.value)) + return LineJoinStyle.ROUND + if ((arg0) == (LineJoinStyle.BEVEL.value)) + return LineJoinStyle.BEVEL + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): LineJoinStyle { + if ((arg0) == (LineJoinStyle.MITER.ordinal)) + return LineJoinStyle.MITER + if ((arg0) == (LineJoinStyle.ROUND.ordinal)) + return LineJoinStyle.ROUND + if ((arg0) == (LineJoinStyle.BEVEL.ordinal)) + return LineJoinStyle.BEVEL + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class TouchType { + static readonly DOWN: TouchType = new TouchType(0,0) + static readonly Down: TouchType = TouchType.DOWN + static readonly UP: TouchType = new TouchType(1,1) + static readonly Up: TouchType = TouchType.UP + static readonly MOVE: TouchType = new TouchType(2,2) + static readonly Move: TouchType = TouchType.MOVE + static readonly CANCEL: TouchType = new TouchType(3,3) + static readonly Cancel: TouchType = TouchType.CANCEL + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): TouchType { + if ((arg0) == (TouchType.DOWN.value)) + return TouchType.DOWN + if ((arg0) == (TouchType.UP.value)) + return TouchType.UP + if ((arg0) == (TouchType.MOVE.value)) + return TouchType.MOVE + if ((arg0) == (TouchType.CANCEL.value)) + return TouchType.CANCEL + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): TouchType { + if ((arg0) == (TouchType.DOWN.ordinal)) + return TouchType.DOWN + if ((arg0) == (TouchType.UP.ordinal)) + return TouchType.UP + if ((arg0) == (TouchType.MOVE.ordinal)) + return TouchType.MOVE + if ((arg0) == (TouchType.CANCEL.ordinal)) + return TouchType.CANCEL + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class MouseButton { + static readonly LEFT: MouseButton = new MouseButton(0,0) + static readonly Left: MouseButton = MouseButton.LEFT + static readonly RIGHT: MouseButton = new MouseButton(1,1) + static readonly Right: MouseButton = MouseButton.RIGHT + static readonly MIDDLE: MouseButton = new MouseButton(2,2) + static readonly Middle: MouseButton = MouseButton.MIDDLE + static readonly BACK: MouseButton = new MouseButton(3,3) + static readonly Back: MouseButton = MouseButton.BACK + static readonly FORWARD: MouseButton = new MouseButton(4,4) + static readonly Forward: MouseButton = MouseButton.FORWARD + static readonly NONE: MouseButton = new MouseButton(5,5) + static readonly None: MouseButton = MouseButton.NONE + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): MouseButton { + if ((arg0) == (MouseButton.LEFT.value)) + return MouseButton.LEFT + if ((arg0) == (MouseButton.RIGHT.value)) + return MouseButton.RIGHT + if ((arg0) == (MouseButton.MIDDLE.value)) + return MouseButton.MIDDLE + if ((arg0) == (MouseButton.BACK.value)) + return MouseButton.BACK + if ((arg0) == (MouseButton.FORWARD.value)) + return MouseButton.FORWARD + if ((arg0) == (MouseButton.NONE.value)) + return MouseButton.NONE + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): MouseButton { + if ((arg0) == (MouseButton.LEFT.ordinal)) + return MouseButton.LEFT + if ((arg0) == (MouseButton.RIGHT.ordinal)) + return MouseButton.RIGHT + if ((arg0) == (MouseButton.MIDDLE.ordinal)) + return MouseButton.MIDDLE + if ((arg0) == (MouseButton.BACK.ordinal)) + return MouseButton.BACK + if ((arg0) == (MouseButton.FORWARD.ordinal)) + return MouseButton.FORWARD + if ((arg0) == (MouseButton.NONE.ordinal)) + return MouseButton.NONE + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class MouseAction { + static readonly PRESS: MouseAction = new MouseAction(0,0) + static readonly Press: MouseAction = MouseAction.PRESS + static readonly RELEASE: MouseAction = new MouseAction(1,1) + static readonly Release: MouseAction = MouseAction.RELEASE + static readonly MOVE: MouseAction = new MouseAction(2,2) + static readonly Move: MouseAction = MouseAction.MOVE + static readonly HOVER: MouseAction = new MouseAction(3,3) + static readonly Hover: MouseAction = MouseAction.HOVER + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): MouseAction { + if ((arg0) == (MouseAction.PRESS.value)) + return MouseAction.PRESS + if ((arg0) == (MouseAction.RELEASE.value)) + return MouseAction.RELEASE + if ((arg0) == (MouseAction.MOVE.value)) + return MouseAction.MOVE + if ((arg0) == (MouseAction.HOVER.value)) + return MouseAction.HOVER + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): MouseAction { + if ((arg0) == (MouseAction.PRESS.ordinal)) + return MouseAction.PRESS + if ((arg0) == (MouseAction.RELEASE.ordinal)) + return MouseAction.RELEASE + if ((arg0) == (MouseAction.MOVE.ordinal)) + return MouseAction.MOVE + if ((arg0) == (MouseAction.HOVER.ordinal)) + return MouseAction.HOVER + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class AnimationStatus { + static readonly INITIAL: AnimationStatus = new AnimationStatus(0,0) + static readonly Initial: AnimationStatus = AnimationStatus.INITIAL + static readonly RUNNING: AnimationStatus = new AnimationStatus(1,1) + static readonly Running: AnimationStatus = AnimationStatus.RUNNING + static readonly PAUSED: AnimationStatus = new AnimationStatus(2,2) + static readonly Paused: AnimationStatus = AnimationStatus.PAUSED + static readonly STOPPED: AnimationStatus = new AnimationStatus(3,3) + static readonly Stopped: AnimationStatus = AnimationStatus.STOPPED + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): AnimationStatus { + if ((arg0) == (AnimationStatus.INITIAL.value)) + return AnimationStatus.INITIAL + if ((arg0) == (AnimationStatus.RUNNING.value)) + return AnimationStatus.RUNNING + if ((arg0) == (AnimationStatus.PAUSED.value)) + return AnimationStatus.PAUSED + if ((arg0) == (AnimationStatus.STOPPED.value)) + return AnimationStatus.STOPPED + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): AnimationStatus { + if ((arg0) == (AnimationStatus.INITIAL.ordinal)) + return AnimationStatus.INITIAL + if ((arg0) == (AnimationStatus.RUNNING.ordinal)) + return AnimationStatus.RUNNING + if ((arg0) == (AnimationStatus.PAUSED.ordinal)) + return AnimationStatus.PAUSED + if ((arg0) == (AnimationStatus.STOPPED.ordinal)) + return AnimationStatus.STOPPED + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class Curve { + static readonly LINEAR: Curve = new Curve(0,0) + static readonly Linear: Curve = Curve.LINEAR + static readonly EASE: Curve = new Curve(1,1) + static readonly Ease: Curve = Curve.EASE + static readonly EASE_IN: Curve = new Curve(2,2) + static readonly EaseIn: Curve = Curve.EASE_IN + static readonly EASE_OUT: Curve = new Curve(3,3) + static readonly EaseOut: Curve = Curve.EASE_OUT + static readonly EASE_IN_OUT: Curve = new Curve(4,4) + static readonly EaseInOut: Curve = Curve.EASE_IN_OUT + static readonly FAST_OUT_SLOW_IN: Curve = new Curve(5,5) + static readonly FastOutSlowIn: Curve = Curve.FAST_OUT_SLOW_IN + static readonly LINEAR_OUT_SLOW_IN: Curve = new Curve(6,6) + static readonly LinearOutSlowIn: Curve = Curve.LINEAR_OUT_SLOW_IN + static readonly FAST_OUT_LINEAR_IN: Curve = new Curve(7,7) + static readonly FastOutLinearIn: Curve = Curve.FAST_OUT_LINEAR_IN + static readonly EXTREME_DECELERATION: Curve = new Curve(8,8) + static readonly ExtremeDeceleration: Curve = Curve.EXTREME_DECELERATION + static readonly SHARP: Curve = new Curve(9,9) + static readonly Sharp: Curve = Curve.SHARP + static readonly RHYTHM: Curve = new Curve(10,10) + static readonly Rhythm: Curve = Curve.RHYTHM + static readonly SMOOTH: Curve = new Curve(11,11) + static readonly Smooth: Curve = Curve.SMOOTH + static readonly FRICTION: Curve = new Curve(12,12) + static readonly Friction: Curve = Curve.FRICTION + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): Curve { + if ((arg0) == (Curve.LINEAR.value)) + return Curve.LINEAR + if ((arg0) == (Curve.EASE.value)) + return Curve.EASE + if ((arg0) == (Curve.EASE_IN.value)) + return Curve.EASE_IN + if ((arg0) == (Curve.EASE_OUT.value)) + return Curve.EASE_OUT + if ((arg0) == (Curve.EASE_IN_OUT.value)) + return Curve.EASE_IN_OUT + if ((arg0) == (Curve.FAST_OUT_SLOW_IN.value)) + return Curve.FAST_OUT_SLOW_IN + if ((arg0) == (Curve.LINEAR_OUT_SLOW_IN.value)) + return Curve.LINEAR_OUT_SLOW_IN + if ((arg0) == (Curve.FAST_OUT_LINEAR_IN.value)) + return Curve.FAST_OUT_LINEAR_IN + if ((arg0) == (Curve.EXTREME_DECELERATION.value)) + return Curve.EXTREME_DECELERATION + if ((arg0) == (Curve.SHARP.value)) + return Curve.SHARP + if ((arg0) == (Curve.RHYTHM.value)) + return Curve.RHYTHM + if ((arg0) == (Curve.SMOOTH.value)) + return Curve.SMOOTH + if ((arg0) == (Curve.FRICTION.value)) + return Curve.FRICTION + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): Curve { + if ((arg0) == (Curve.LINEAR.ordinal)) + return Curve.LINEAR + if ((arg0) == (Curve.EASE.ordinal)) + return Curve.EASE + if ((arg0) == (Curve.EASE_IN.ordinal)) + return Curve.EASE_IN + if ((arg0) == (Curve.EASE_OUT.ordinal)) + return Curve.EASE_OUT + if ((arg0) == (Curve.EASE_IN_OUT.ordinal)) + return Curve.EASE_IN_OUT + if ((arg0) == (Curve.FAST_OUT_SLOW_IN.ordinal)) + return Curve.FAST_OUT_SLOW_IN + if ((arg0) == (Curve.LINEAR_OUT_SLOW_IN.ordinal)) + return Curve.LINEAR_OUT_SLOW_IN + if ((arg0) == (Curve.FAST_OUT_LINEAR_IN.ordinal)) + return Curve.FAST_OUT_LINEAR_IN + if ((arg0) == (Curve.EXTREME_DECELERATION.ordinal)) + return Curve.EXTREME_DECELERATION + if ((arg0) == (Curve.SHARP.ordinal)) + return Curve.SHARP + if ((arg0) == (Curve.RHYTHM.ordinal)) + return Curve.RHYTHM + if ((arg0) == (Curve.SMOOTH.ordinal)) + return Curve.SMOOTH + if ((arg0) == (Curve.FRICTION.ordinal)) + return Curve.FRICTION + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class FillMode { + static readonly NONE: FillMode = new FillMode(0,0) + static readonly None: FillMode = FillMode.NONE + static readonly FORWARDS: FillMode = new FillMode(1,1) + static readonly Forwards: FillMode = FillMode.FORWARDS + static readonly BACKWARDS: FillMode = new FillMode(2,2) + static readonly Backwards: FillMode = FillMode.BACKWARDS + static readonly BOTH: FillMode = new FillMode(3,3) + static readonly Both: FillMode = FillMode.BOTH + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): FillMode { + if ((arg0) == (FillMode.NONE.value)) + return FillMode.NONE + if ((arg0) == (FillMode.FORWARDS.value)) + return FillMode.FORWARDS + if ((arg0) == (FillMode.BACKWARDS.value)) + return FillMode.BACKWARDS + if ((arg0) == (FillMode.BOTH.value)) + return FillMode.BOTH + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): FillMode { + if ((arg0) == (FillMode.NONE.ordinal)) + return FillMode.NONE + if ((arg0) == (FillMode.FORWARDS.ordinal)) + return FillMode.FORWARDS + if ((arg0) == (FillMode.BACKWARDS.ordinal)) + return FillMode.BACKWARDS + if ((arg0) == (FillMode.BOTH.ordinal)) + return FillMode.BOTH + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class PlayMode { + static readonly NORMAL: PlayMode = new PlayMode(0,0) + static readonly Normal: PlayMode = PlayMode.NORMAL + static readonly REVERSE: PlayMode = new PlayMode(1,1) + static readonly Reverse: PlayMode = PlayMode.REVERSE + static readonly ALTERNATE: PlayMode = new PlayMode(2,2) + static readonly Alternate: PlayMode = PlayMode.ALTERNATE + static readonly ALTERNATE_REVERSE: PlayMode = new PlayMode(3,3) + static readonly AlternateReverse: PlayMode = PlayMode.ALTERNATE_REVERSE + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): PlayMode { + if ((arg0) == (PlayMode.NORMAL.value)) + return PlayMode.NORMAL + if ((arg0) == (PlayMode.REVERSE.value)) + return PlayMode.REVERSE + if ((arg0) == (PlayMode.ALTERNATE.value)) + return PlayMode.ALTERNATE + if ((arg0) == (PlayMode.ALTERNATE_REVERSE.value)) + return PlayMode.ALTERNATE_REVERSE + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): PlayMode { + if ((arg0) == (PlayMode.NORMAL.ordinal)) + return PlayMode.NORMAL + if ((arg0) == (PlayMode.REVERSE.ordinal)) + return PlayMode.REVERSE + if ((arg0) == (PlayMode.ALTERNATE.ordinal)) + return PlayMode.ALTERNATE + if ((arg0) == (PlayMode.ALTERNATE_REVERSE.ordinal)) + return PlayMode.ALTERNATE_REVERSE + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class KeyType { + static readonly DOWN: KeyType = new KeyType(0,0) + static readonly Down: KeyType = KeyType.DOWN + static readonly UP: KeyType = new KeyType(1,1) + static readonly Up: KeyType = KeyType.UP + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): KeyType { + if ((arg0) == (KeyType.DOWN.value)) + return KeyType.DOWN + if ((arg0) == (KeyType.UP.value)) + return KeyType.UP + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): KeyType { + if ((arg0) == (KeyType.DOWN.ordinal)) + return KeyType.DOWN + if ((arg0) == (KeyType.UP.ordinal)) + return KeyType.UP + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class KeySource { + static readonly UNKNOWN: KeySource = new KeySource(0,0) + static readonly Unknown: KeySource = KeySource.UNKNOWN + static readonly KEYBOARD: KeySource = new KeySource(1,1) + static readonly Keyboard: KeySource = KeySource.KEYBOARD + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): KeySource { + if ((arg0) == (KeySource.UNKNOWN.value)) + return KeySource.UNKNOWN + if ((arg0) == (KeySource.KEYBOARD.value)) + return KeySource.KEYBOARD + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): KeySource { + if ((arg0) == (KeySource.UNKNOWN.ordinal)) + return KeySource.UNKNOWN + if ((arg0) == (KeySource.KEYBOARD.ordinal)) + return KeySource.KEYBOARD + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class Edge { + static readonly TOP: Edge = new Edge(0,0) + static readonly Top: Edge = Edge.TOP + static readonly CENTER: Edge = new Edge(1,1) + static readonly Center: Edge = Edge.CENTER + static readonly BOTTOM: Edge = new Edge(2,2) + static readonly Bottom: Edge = Edge.BOTTOM + static readonly BASELINE: Edge = new Edge(3,3) + static readonly Baseline: Edge = Edge.BASELINE + static readonly START: Edge = new Edge(4,4) + static readonly Start: Edge = Edge.START + static readonly MIDDLE: Edge = new Edge(5,5) + static readonly Middle: Edge = Edge.MIDDLE + static readonly END: Edge = new Edge(6,6) + static readonly End: Edge = Edge.END + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): Edge { + if ((arg0) == (Edge.TOP.value)) + return Edge.TOP + if ((arg0) == (Edge.CENTER.value)) + return Edge.CENTER + if ((arg0) == (Edge.BOTTOM.value)) + return Edge.BOTTOM + if ((arg0) == (Edge.BASELINE.value)) + return Edge.BASELINE + if ((arg0) == (Edge.START.value)) + return Edge.START + if ((arg0) == (Edge.MIDDLE.value)) + return Edge.MIDDLE + if ((arg0) == (Edge.END.value)) + return Edge.END + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): Edge { + if ((arg0) == (Edge.TOP.ordinal)) + return Edge.TOP + if ((arg0) == (Edge.CENTER.ordinal)) + return Edge.CENTER + if ((arg0) == (Edge.BOTTOM.ordinal)) + return Edge.BOTTOM + if ((arg0) == (Edge.BASELINE.ordinal)) + return Edge.BASELINE + if ((arg0) == (Edge.START.ordinal)) + return Edge.START + if ((arg0) == (Edge.MIDDLE.ordinal)) + return Edge.MIDDLE + if ((arg0) == (Edge.END.ordinal)) + return Edge.END + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class Week { + static readonly MON: Week = new Week(0,0) + static readonly Mon: Week = Week.MON + static readonly TUE: Week = new Week(1,1) + static readonly Tue: Week = Week.TUE + static readonly WED: Week = new Week(2,2) + static readonly Wed: Week = Week.WED + static readonly THUR: Week = new Week(3,3) + static readonly Thur: Week = Week.THUR + static readonly FRI: Week = new Week(4,4) + static readonly Fri: Week = Week.FRI + static readonly SAT: Week = new Week(5,5) + static readonly Sat: Week = Week.SAT + static readonly SUN: Week = new Week(6,6) + static readonly Sun: Week = Week.SUN + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): Week { + if ((arg0) == (Week.MON.value)) + return Week.MON + if ((arg0) == (Week.TUE.value)) + return Week.TUE + if ((arg0) == (Week.WED.value)) + return Week.WED + if ((arg0) == (Week.THUR.value)) + return Week.THUR + if ((arg0) == (Week.FRI.value)) + return Week.FRI + if ((arg0) == (Week.SAT.value)) + return Week.SAT + if ((arg0) == (Week.SUN.value)) + return Week.SUN + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): Week { + if ((arg0) == (Week.MON.ordinal)) + return Week.MON + if ((arg0) == (Week.TUE.ordinal)) + return Week.TUE + if ((arg0) == (Week.WED.ordinal)) + return Week.WED + if ((arg0) == (Week.THUR.ordinal)) + return Week.THUR + if ((arg0) == (Week.FRI.ordinal)) + return Week.FRI + if ((arg0) == (Week.SAT.ordinal)) + return Week.SAT + if ((arg0) == (Week.SUN.ordinal)) + return Week.SUN + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class Direction { + static readonly LTR: Direction = new Direction(0,0) + static readonly Ltr: Direction = Direction.LTR + static readonly RTL: Direction = new Direction(1,1) + static readonly Rtl: Direction = Direction.RTL + static readonly AUTO: Direction = new Direction(2,2) + static readonly Auto: Direction = Direction.AUTO + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): Direction { + if ((arg0) == (Direction.LTR.value)) + return Direction.LTR + if ((arg0) == (Direction.RTL.value)) + return Direction.RTL + if ((arg0) == (Direction.AUTO.value)) + return Direction.AUTO + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): Direction { + if ((arg0) == (Direction.LTR.ordinal)) + return Direction.LTR + if ((arg0) == (Direction.RTL.ordinal)) + return Direction.RTL + if ((arg0) == (Direction.AUTO.ordinal)) + return Direction.AUTO + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class BarState { + static readonly OFF: BarState = new BarState(0,0) + static readonly Off: BarState = BarState.OFF + static readonly AUTO: BarState = new BarState(1,1) + static readonly Auto: BarState = BarState.AUTO + static readonly ON: BarState = new BarState(2,2) + static readonly On: BarState = BarState.ON + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): BarState { + if ((arg0) == (BarState.OFF.value)) + return BarState.OFF + if ((arg0) == (BarState.AUTO.value)) + return BarState.AUTO + if ((arg0) == (BarState.ON.value)) + return BarState.ON + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): BarState { + if ((arg0) == (BarState.OFF.ordinal)) + return BarState.OFF + if ((arg0) == (BarState.AUTO.ordinal)) + return BarState.AUTO + if ((arg0) == (BarState.ON.ordinal)) + return BarState.ON + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class EdgeEffect { + static readonly SPRING: EdgeEffect = new EdgeEffect(0,0) + static readonly Spring: EdgeEffect = EdgeEffect.SPRING + static readonly FADE: EdgeEffect = new EdgeEffect(1,1) + static readonly Fade: EdgeEffect = EdgeEffect.FADE + static readonly NONE: EdgeEffect = new EdgeEffect(2,2) + static readonly None: EdgeEffect = EdgeEffect.NONE + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): EdgeEffect { + if ((arg0) == (EdgeEffect.SPRING.value)) + return EdgeEffect.SPRING + if ((arg0) == (EdgeEffect.FADE.value)) + return EdgeEffect.FADE + if ((arg0) == (EdgeEffect.NONE.value)) + return EdgeEffect.NONE + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): EdgeEffect { + if ((arg0) == (EdgeEffect.SPRING.ordinal)) + return EdgeEffect.SPRING + if ((arg0) == (EdgeEffect.FADE.ordinal)) + return EdgeEffect.FADE + if ((arg0) == (EdgeEffect.NONE.ordinal)) + return EdgeEffect.NONE + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class Alignment { + static readonly TOP_START: Alignment = new Alignment(0,0) + static readonly TopStart: Alignment = Alignment.TOP_START + static readonly TOP: Alignment = new Alignment(1,1) + static readonly Top: Alignment = Alignment.TOP + static readonly TOP_END: Alignment = new Alignment(2,2) + static readonly TopEnd: Alignment = Alignment.TOP_END + static readonly START: Alignment = new Alignment(3,3) + static readonly Start: Alignment = Alignment.START + static readonly CENTER: Alignment = new Alignment(4,4) + static readonly Center: Alignment = Alignment.CENTER + static readonly END: Alignment = new Alignment(5,5) + static readonly End: Alignment = Alignment.END + static readonly BOTTOM_START: Alignment = new Alignment(6,6) + static readonly BottomStart: Alignment = Alignment.BOTTOM_START + static readonly BOTTOM: Alignment = new Alignment(7,7) + static readonly Bottom: Alignment = Alignment.BOTTOM + static readonly BOTTOM_END: Alignment = new Alignment(8,8) + static readonly BottomEnd: Alignment = Alignment.BOTTOM_END + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): Alignment { + if ((arg0) == (Alignment.TOP_START.value)) + return Alignment.TOP_START + if ((arg0) == (Alignment.TOP.value)) + return Alignment.TOP + if ((arg0) == (Alignment.TOP_END.value)) + return Alignment.TOP_END + if ((arg0) == (Alignment.START.value)) + return Alignment.START + if ((arg0) == (Alignment.CENTER.value)) + return Alignment.CENTER + if ((arg0) == (Alignment.END.value)) + return Alignment.END + if ((arg0) == (Alignment.BOTTOM_START.value)) + return Alignment.BOTTOM_START + if ((arg0) == (Alignment.BOTTOM.value)) + return Alignment.BOTTOM + if ((arg0) == (Alignment.BOTTOM_END.value)) + return Alignment.BOTTOM_END + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): Alignment { + if ((arg0) == (Alignment.TOP_START.ordinal)) + return Alignment.TOP_START + if ((arg0) == (Alignment.TOP.ordinal)) + return Alignment.TOP + if ((arg0) == (Alignment.TOP_END.ordinal)) + return Alignment.TOP_END + if ((arg0) == (Alignment.START.ordinal)) + return Alignment.START + if ((arg0) == (Alignment.CENTER.ordinal)) + return Alignment.CENTER + if ((arg0) == (Alignment.END.ordinal)) + return Alignment.END + if ((arg0) == (Alignment.BOTTOM_START.ordinal)) + return Alignment.BOTTOM_START + if ((arg0) == (Alignment.BOTTOM.ordinal)) + return Alignment.BOTTOM + if ((arg0) == (Alignment.BOTTOM_END.ordinal)) + return Alignment.BOTTOM_END + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class TransitionType { + static readonly ALL: TransitionType = new TransitionType(0,0) + static readonly All: TransitionType = TransitionType.ALL + static readonly INSERT: TransitionType = new TransitionType(1,1) + static readonly Insert: TransitionType = TransitionType.INSERT + static readonly DELETE: TransitionType = new TransitionType(2,2) + static readonly Delete: TransitionType = TransitionType.DELETE + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): TransitionType { + if ((arg0) == (TransitionType.ALL.value)) + return TransitionType.ALL + if ((arg0) == (TransitionType.INSERT.value)) + return TransitionType.INSERT + if ((arg0) == (TransitionType.DELETE.value)) + return TransitionType.DELETE + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): TransitionType { + if ((arg0) == (TransitionType.ALL.ordinal)) + return TransitionType.ALL + if ((arg0) == (TransitionType.INSERT.ordinal)) + return TransitionType.INSERT + if ((arg0) == (TransitionType.DELETE.ordinal)) + return TransitionType.DELETE + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class RelateType { + static readonly FILL: RelateType = new RelateType(0,0) + static readonly FIT: RelateType = new RelateType(1,1) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): RelateType { + if ((arg0) == (RelateType.FILL.value)) + return RelateType.FILL + if ((arg0) == (RelateType.FIT.value)) + return RelateType.FIT + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): RelateType { + if ((arg0) == (RelateType.FILL.ordinal)) + return RelateType.FILL + if ((arg0) == (RelateType.FIT.ordinal)) + return RelateType.FIT + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class Visibility { + static readonly VISIBLE: Visibility = new Visibility(0,0) + static readonly Visible: Visibility = Visibility.VISIBLE + static readonly HIDDEN: Visibility = new Visibility(1,1) + static readonly Hidden: Visibility = Visibility.HIDDEN + static readonly NONE: Visibility = new Visibility(2,2) + static readonly None: Visibility = Visibility.NONE + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): Visibility { + if ((arg0) == (Visibility.VISIBLE.value)) + return Visibility.VISIBLE + if ((arg0) == (Visibility.HIDDEN.value)) + return Visibility.HIDDEN + if ((arg0) == (Visibility.NONE.value)) + return Visibility.NONE + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): Visibility { + if ((arg0) == (Visibility.VISIBLE.ordinal)) + return Visibility.VISIBLE + if ((arg0) == (Visibility.HIDDEN.ordinal)) + return Visibility.HIDDEN + if ((arg0) == (Visibility.NONE.ordinal)) + return Visibility.NONE + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class LineCapStyle { + static readonly BUTT: LineCapStyle = new LineCapStyle(0,0) + static readonly Butt: LineCapStyle = LineCapStyle.BUTT + static readonly ROUND: LineCapStyle = new LineCapStyle(1,1) + static readonly Round: LineCapStyle = LineCapStyle.ROUND + static readonly SQUARE: LineCapStyle = new LineCapStyle(2,2) + static readonly Square: LineCapStyle = LineCapStyle.SQUARE + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): LineCapStyle { + if ((arg0) == (LineCapStyle.BUTT.value)) + return LineCapStyle.BUTT + if ((arg0) == (LineCapStyle.ROUND.value)) + return LineCapStyle.ROUND + if ((arg0) == (LineCapStyle.SQUARE.value)) + return LineCapStyle.SQUARE + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): LineCapStyle { + if ((arg0) == (LineCapStyle.BUTT.ordinal)) + return LineCapStyle.BUTT + if ((arg0) == (LineCapStyle.ROUND.ordinal)) + return LineCapStyle.ROUND + if ((arg0) == (LineCapStyle.SQUARE.ordinal)) + return LineCapStyle.SQUARE + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class Axis { + static readonly VERTICAL: Axis = new Axis(0,0) + static readonly Vertical: Axis = Axis.VERTICAL + static readonly HORIZONTAL: Axis = new Axis(1,1) + static readonly Horizontal: Axis = Axis.HORIZONTAL + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): Axis { + if ((arg0) == (Axis.VERTICAL.value)) + return Axis.VERTICAL + if ((arg0) == (Axis.HORIZONTAL.value)) + return Axis.HORIZONTAL + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): Axis { + if ((arg0) == (Axis.VERTICAL.ordinal)) + return Axis.VERTICAL + if ((arg0) == (Axis.HORIZONTAL.ordinal)) + return Axis.HORIZONTAL + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class HorizontalAlign { + static readonly START: HorizontalAlign = new HorizontalAlign(0,0) + static readonly Start: HorizontalAlign = HorizontalAlign.START + static readonly CENTER: HorizontalAlign = new HorizontalAlign(1,1) + static readonly Center: HorizontalAlign = HorizontalAlign.CENTER + static readonly END: HorizontalAlign = new HorizontalAlign(2,2) + static readonly End: HorizontalAlign = HorizontalAlign.END + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): HorizontalAlign { + if ((arg0) == (HorizontalAlign.START.value)) + return HorizontalAlign.START + if ((arg0) == (HorizontalAlign.CENTER.value)) + return HorizontalAlign.CENTER + if ((arg0) == (HorizontalAlign.END.value)) + return HorizontalAlign.END + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): HorizontalAlign { + if ((arg0) == (HorizontalAlign.START.ordinal)) + return HorizontalAlign.START + if ((arg0) == (HorizontalAlign.CENTER.ordinal)) + return HorizontalAlign.CENTER + if ((arg0) == (HorizontalAlign.END.ordinal)) + return HorizontalAlign.END + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class FlexAlign { + static readonly START: FlexAlign = new FlexAlign(0,0) + static readonly Start: FlexAlign = FlexAlign.START + static readonly CENTER: FlexAlign = new FlexAlign(1,1) + static readonly Center: FlexAlign = FlexAlign.CENTER + static readonly END: FlexAlign = new FlexAlign(2,2) + static readonly End: FlexAlign = FlexAlign.END + static readonly SPACE_BETWEEN: FlexAlign = new FlexAlign(3,3) + static readonly SpaceBetween: FlexAlign = FlexAlign.SPACE_BETWEEN + static readonly SPACE_AROUND: FlexAlign = new FlexAlign(4,4) + static readonly SpaceAround: FlexAlign = FlexAlign.SPACE_AROUND + static readonly SPACE_EVENLY: FlexAlign = new FlexAlign(5,5) + static readonly SpaceEvenly: FlexAlign = FlexAlign.SPACE_EVENLY + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): FlexAlign { + if ((arg0) == (FlexAlign.START.value)) + return FlexAlign.START + if ((arg0) == (FlexAlign.CENTER.value)) + return FlexAlign.CENTER + if ((arg0) == (FlexAlign.END.value)) + return FlexAlign.END + if ((arg0) == (FlexAlign.SPACE_BETWEEN.value)) + return FlexAlign.SPACE_BETWEEN + if ((arg0) == (FlexAlign.SPACE_AROUND.value)) + return FlexAlign.SPACE_AROUND + if ((arg0) == (FlexAlign.SPACE_EVENLY.value)) + return FlexAlign.SPACE_EVENLY + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): FlexAlign { + if ((arg0) == (FlexAlign.START.ordinal)) + return FlexAlign.START + if ((arg0) == (FlexAlign.CENTER.ordinal)) + return FlexAlign.CENTER + if ((arg0) == (FlexAlign.END.ordinal)) + return FlexAlign.END + if ((arg0) == (FlexAlign.SPACE_BETWEEN.ordinal)) + return FlexAlign.SPACE_BETWEEN + if ((arg0) == (FlexAlign.SPACE_AROUND.ordinal)) + return FlexAlign.SPACE_AROUND + if ((arg0) == (FlexAlign.SPACE_EVENLY.ordinal)) + return FlexAlign.SPACE_EVENLY + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class ItemAlign { + static readonly AUTO: ItemAlign = new ItemAlign(0,0) + static readonly Auto: ItemAlign = ItemAlign.AUTO + static readonly START: ItemAlign = new ItemAlign(1,1) + static readonly Start: ItemAlign = ItemAlign.START + static readonly CENTER: ItemAlign = new ItemAlign(2,2) + static readonly Center: ItemAlign = ItemAlign.CENTER + static readonly END: ItemAlign = new ItemAlign(3,3) + static readonly End: ItemAlign = ItemAlign.END + static readonly BASELINE: ItemAlign = new ItemAlign(4,4) + static readonly Baseline: ItemAlign = ItemAlign.BASELINE + static readonly STRETCH: ItemAlign = new ItemAlign(5,5) + static readonly Stretch: ItemAlign = ItemAlign.STRETCH + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): ItemAlign { + if ((arg0) == (ItemAlign.AUTO.value)) + return ItemAlign.AUTO + if ((arg0) == (ItemAlign.START.value)) + return ItemAlign.START + if ((arg0) == (ItemAlign.CENTER.value)) + return ItemAlign.CENTER + if ((arg0) == (ItemAlign.END.value)) + return ItemAlign.END + if ((arg0) == (ItemAlign.BASELINE.value)) + return ItemAlign.BASELINE + if ((arg0) == (ItemAlign.STRETCH.value)) + return ItemAlign.STRETCH + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): ItemAlign { + if ((arg0) == (ItemAlign.AUTO.ordinal)) + return ItemAlign.AUTO + if ((arg0) == (ItemAlign.START.ordinal)) + return ItemAlign.START + if ((arg0) == (ItemAlign.CENTER.ordinal)) + return ItemAlign.CENTER + if ((arg0) == (ItemAlign.END.ordinal)) + return ItemAlign.END + if ((arg0) == (ItemAlign.BASELINE.ordinal)) + return ItemAlign.BASELINE + if ((arg0) == (ItemAlign.STRETCH.ordinal)) + return ItemAlign.STRETCH + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class FlexDirection { + static readonly ROW: FlexDirection = new FlexDirection(0,0) + static readonly Row: FlexDirection = FlexDirection.ROW + static readonly COLUMN: FlexDirection = new FlexDirection(1,1) + static readonly Column: FlexDirection = FlexDirection.COLUMN + static readonly ROW_REVERSE: FlexDirection = new FlexDirection(2,2) + static readonly RowReverse: FlexDirection = FlexDirection.ROW_REVERSE + static readonly COLUMN_REVERSE: FlexDirection = new FlexDirection(3,3) + static readonly ColumnReverse: FlexDirection = FlexDirection.COLUMN_REVERSE + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): FlexDirection { + if ((arg0) == (FlexDirection.ROW.value)) + return FlexDirection.ROW + if ((arg0) == (FlexDirection.COLUMN.value)) + return FlexDirection.COLUMN + if ((arg0) == (FlexDirection.ROW_REVERSE.value)) + return FlexDirection.ROW_REVERSE + if ((arg0) == (FlexDirection.COLUMN_REVERSE.value)) + return FlexDirection.COLUMN_REVERSE + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): FlexDirection { + if ((arg0) == (FlexDirection.ROW.ordinal)) + return FlexDirection.ROW + if ((arg0) == (FlexDirection.COLUMN.ordinal)) + return FlexDirection.COLUMN + if ((arg0) == (FlexDirection.ROW_REVERSE.ordinal)) + return FlexDirection.ROW_REVERSE + if ((arg0) == (FlexDirection.COLUMN_REVERSE.ordinal)) + return FlexDirection.COLUMN_REVERSE + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class PixelRoundCalcPolicy { + static readonly NO_FORCE_ROUND: PixelRoundCalcPolicy = new PixelRoundCalcPolicy(0,0) + static readonly FORCE_CEIL: PixelRoundCalcPolicy = new PixelRoundCalcPolicy(1,1) + static readonly FORCE_FLOOR: PixelRoundCalcPolicy = new PixelRoundCalcPolicy(2,2) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): PixelRoundCalcPolicy { + if ((arg0) == (PixelRoundCalcPolicy.NO_FORCE_ROUND.value)) + return PixelRoundCalcPolicy.NO_FORCE_ROUND + if ((arg0) == (PixelRoundCalcPolicy.FORCE_CEIL.value)) + return PixelRoundCalcPolicy.FORCE_CEIL + if ((arg0) == (PixelRoundCalcPolicy.FORCE_FLOOR.value)) + return PixelRoundCalcPolicy.FORCE_FLOOR + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): PixelRoundCalcPolicy { + if ((arg0) == (PixelRoundCalcPolicy.NO_FORCE_ROUND.ordinal)) + return PixelRoundCalcPolicy.NO_FORCE_ROUND + if ((arg0) == (PixelRoundCalcPolicy.FORCE_CEIL.ordinal)) + return PixelRoundCalcPolicy.FORCE_CEIL + if ((arg0) == (PixelRoundCalcPolicy.FORCE_FLOOR.ordinal)) + return PixelRoundCalcPolicy.FORCE_FLOOR + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class FlexWrap { + static readonly NO_WRAP: FlexWrap = new FlexWrap(0,0) + static readonly NoWrap: FlexWrap = FlexWrap.NO_WRAP + static readonly WRAP: FlexWrap = new FlexWrap(1,1) + static readonly Wrap: FlexWrap = FlexWrap.WRAP + static readonly WRAP_REVERSE: FlexWrap = new FlexWrap(2,2) + static readonly WrapReverse: FlexWrap = FlexWrap.WRAP_REVERSE + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): FlexWrap { + if ((arg0) == (FlexWrap.NO_WRAP.value)) + return FlexWrap.NO_WRAP + if ((arg0) == (FlexWrap.WRAP.value)) + return FlexWrap.WRAP + if ((arg0) == (FlexWrap.WRAP_REVERSE.value)) + return FlexWrap.WRAP_REVERSE + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): FlexWrap { + if ((arg0) == (FlexWrap.NO_WRAP.ordinal)) + return FlexWrap.NO_WRAP + if ((arg0) == (FlexWrap.WRAP.ordinal)) + return FlexWrap.WRAP + if ((arg0) == (FlexWrap.WRAP_REVERSE.ordinal)) + return FlexWrap.WRAP_REVERSE + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class VerticalAlign { + static readonly TOP: VerticalAlign = new VerticalAlign(0,0) + static readonly Top: VerticalAlign = VerticalAlign.TOP + static readonly CENTER: VerticalAlign = new VerticalAlign(1,1) + static readonly Center: VerticalAlign = VerticalAlign.CENTER + static readonly BOTTOM: VerticalAlign = new VerticalAlign(2,2) + static readonly Bottom: VerticalAlign = VerticalAlign.BOTTOM + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): VerticalAlign { + if ((arg0) == (VerticalAlign.TOP.value)) + return VerticalAlign.TOP + if ((arg0) == (VerticalAlign.CENTER.value)) + return VerticalAlign.CENTER + if ((arg0) == (VerticalAlign.BOTTOM.value)) + return VerticalAlign.BOTTOM + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): VerticalAlign { + if ((arg0) == (VerticalAlign.TOP.ordinal)) + return VerticalAlign.TOP + if ((arg0) == (VerticalAlign.CENTER.ordinal)) + return VerticalAlign.CENTER + if ((arg0) == (VerticalAlign.BOTTOM.ordinal)) + return VerticalAlign.BOTTOM + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class ImageRepeat { + static readonly NO_REPEAT: ImageRepeat = new ImageRepeat(0,0) + static readonly NoRepeat: ImageRepeat = ImageRepeat.NO_REPEAT + static readonly X: ImageRepeat = new ImageRepeat(1,1) + static readonly Y: ImageRepeat = new ImageRepeat(2,2) + static readonly XY: ImageRepeat = new ImageRepeat(3,3) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): ImageRepeat { + if ((arg0) == (ImageRepeat.NO_REPEAT.value)) + return ImageRepeat.NO_REPEAT + if ((arg0) == (ImageRepeat.X.value)) + return ImageRepeat.X + if ((arg0) == (ImageRepeat.Y.value)) + return ImageRepeat.Y + if ((arg0) == (ImageRepeat.XY.value)) + return ImageRepeat.XY + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): ImageRepeat { + if ((arg0) == (ImageRepeat.NO_REPEAT.ordinal)) + return ImageRepeat.NO_REPEAT + if ((arg0) == (ImageRepeat.X.ordinal)) + return ImageRepeat.X + if ((arg0) == (ImageRepeat.Y.ordinal)) + return ImageRepeat.Y + if ((arg0) == (ImageRepeat.XY.ordinal)) + return ImageRepeat.XY + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class ImageSize { + static readonly AUTO: ImageSize = new ImageSize(0,0) + static readonly Auto: ImageSize = ImageSize.AUTO + static readonly COVER: ImageSize = new ImageSize(1,1) + static readonly Cover: ImageSize = ImageSize.COVER + static readonly CONTAIN: ImageSize = new ImageSize(2,2) + static readonly Contain: ImageSize = ImageSize.CONTAIN + static readonly FILL: ImageSize = new ImageSize(3,3) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): ImageSize { + if ((arg0) == (ImageSize.AUTO.value)) + return ImageSize.AUTO + if ((arg0) == (ImageSize.COVER.value)) + return ImageSize.COVER + if ((arg0) == (ImageSize.CONTAIN.value)) + return ImageSize.CONTAIN + if ((arg0) == (ImageSize.FILL.value)) + return ImageSize.FILL + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): ImageSize { + if ((arg0) == (ImageSize.AUTO.ordinal)) + return ImageSize.AUTO + if ((arg0) == (ImageSize.COVER.ordinal)) + return ImageSize.COVER + if ((arg0) == (ImageSize.CONTAIN.ordinal)) + return ImageSize.CONTAIN + if ((arg0) == (ImageSize.FILL.ordinal)) + return ImageSize.FILL + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class GradientDirection { + static readonly LEFT: GradientDirection = new GradientDirection(0,0) + static readonly Left: GradientDirection = GradientDirection.LEFT + static readonly TOP: GradientDirection = new GradientDirection(1,1) + static readonly Top: GradientDirection = GradientDirection.TOP + static readonly RIGHT: GradientDirection = new GradientDirection(2,2) + static readonly Right: GradientDirection = GradientDirection.RIGHT + static readonly BOTTOM: GradientDirection = new GradientDirection(3,3) + static readonly Bottom: GradientDirection = GradientDirection.BOTTOM + static readonly LEFT_TOP: GradientDirection = new GradientDirection(4,4) + static readonly LeftTop: GradientDirection = GradientDirection.LEFT_TOP + static readonly LEFT_BOTTOM: GradientDirection = new GradientDirection(5,5) + static readonly LeftBottom: GradientDirection = GradientDirection.LEFT_BOTTOM + static readonly RIGHT_TOP: GradientDirection = new GradientDirection(6,6) + static readonly RightTop: GradientDirection = GradientDirection.RIGHT_TOP + static readonly RIGHT_BOTTOM: GradientDirection = new GradientDirection(7,7) + static readonly RightBottom: GradientDirection = GradientDirection.RIGHT_BOTTOM + static readonly NONE: GradientDirection = new GradientDirection(8,8) + static readonly None: GradientDirection = GradientDirection.NONE + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): GradientDirection { + if ((arg0) == (GradientDirection.LEFT.value)) + return GradientDirection.LEFT + if ((arg0) == (GradientDirection.TOP.value)) + return GradientDirection.TOP + if ((arg0) == (GradientDirection.RIGHT.value)) + return GradientDirection.RIGHT + if ((arg0) == (GradientDirection.BOTTOM.value)) + return GradientDirection.BOTTOM + if ((arg0) == (GradientDirection.LEFT_TOP.value)) + return GradientDirection.LEFT_TOP + if ((arg0) == (GradientDirection.LEFT_BOTTOM.value)) + return GradientDirection.LEFT_BOTTOM + if ((arg0) == (GradientDirection.RIGHT_TOP.value)) + return GradientDirection.RIGHT_TOP + if ((arg0) == (GradientDirection.RIGHT_BOTTOM.value)) + return GradientDirection.RIGHT_BOTTOM + if ((arg0) == (GradientDirection.NONE.value)) + return GradientDirection.NONE + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): GradientDirection { + if ((arg0) == (GradientDirection.LEFT.ordinal)) + return GradientDirection.LEFT + if ((arg0) == (GradientDirection.TOP.ordinal)) + return GradientDirection.TOP + if ((arg0) == (GradientDirection.RIGHT.ordinal)) + return GradientDirection.RIGHT + if ((arg0) == (GradientDirection.BOTTOM.ordinal)) + return GradientDirection.BOTTOM + if ((arg0) == (GradientDirection.LEFT_TOP.ordinal)) + return GradientDirection.LEFT_TOP + if ((arg0) == (GradientDirection.LEFT_BOTTOM.ordinal)) + return GradientDirection.LEFT_BOTTOM + if ((arg0) == (GradientDirection.RIGHT_TOP.ordinal)) + return GradientDirection.RIGHT_TOP + if ((arg0) == (GradientDirection.RIGHT_BOTTOM.ordinal)) + return GradientDirection.RIGHT_BOTTOM + if ((arg0) == (GradientDirection.NONE.ordinal)) + return GradientDirection.NONE + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class SharedTransitionEffectType { + static readonly STATIC: SharedTransitionEffectType = new SharedTransitionEffectType(0,0) + static readonly Static: SharedTransitionEffectType = SharedTransitionEffectType.STATIC + static readonly EXCHANGE: SharedTransitionEffectType = new SharedTransitionEffectType(1,1) + static readonly Exchange: SharedTransitionEffectType = SharedTransitionEffectType.EXCHANGE + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): SharedTransitionEffectType { + if ((arg0) == (SharedTransitionEffectType.STATIC.value)) + return SharedTransitionEffectType.STATIC + if ((arg0) == (SharedTransitionEffectType.EXCHANGE.value)) + return SharedTransitionEffectType.EXCHANGE + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): SharedTransitionEffectType { + if ((arg0) == (SharedTransitionEffectType.STATIC.ordinal)) + return SharedTransitionEffectType.STATIC + if ((arg0) == (SharedTransitionEffectType.EXCHANGE.ordinal)) + return SharedTransitionEffectType.EXCHANGE + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class FontStyle { + static readonly NORMAL: FontStyle = new FontStyle(0,0) + static readonly Normal: FontStyle = FontStyle.NORMAL + static readonly ITALIC: FontStyle = new FontStyle(1,1) + static readonly Italic: FontStyle = FontStyle.ITALIC + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): FontStyle { + if ((arg0) == (FontStyle.NORMAL.value)) + return FontStyle.NORMAL + if ((arg0) == (FontStyle.ITALIC.value)) + return FontStyle.ITALIC + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): FontStyle { + if ((arg0) == (FontStyle.NORMAL.ordinal)) + return FontStyle.NORMAL + if ((arg0) == (FontStyle.ITALIC.ordinal)) + return FontStyle.ITALIC + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class FontWeight { + static readonly LIGHTER: FontWeight = new FontWeight(0,0) + static readonly Lighter: FontWeight = FontWeight.LIGHTER + static readonly NORMAL: FontWeight = new FontWeight(1,1) + static readonly Normal: FontWeight = FontWeight.NORMAL + static readonly REGULAR: FontWeight = new FontWeight(2,2) + static readonly Regular: FontWeight = FontWeight.REGULAR + static readonly MEDIUM: FontWeight = new FontWeight(3,3) + static readonly Medium: FontWeight = FontWeight.MEDIUM + static readonly BOLD: FontWeight = new FontWeight(4,4) + static readonly Bold: FontWeight = FontWeight.BOLD + static readonly BOLDER: FontWeight = new FontWeight(5,5) + static readonly Bolder: FontWeight = FontWeight.BOLDER + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): FontWeight { + if ((arg0) == (FontWeight.LIGHTER.value)) + return FontWeight.LIGHTER + if ((arg0) == (FontWeight.NORMAL.value)) + return FontWeight.NORMAL + if ((arg0) == (FontWeight.REGULAR.value)) + return FontWeight.REGULAR + if ((arg0) == (FontWeight.MEDIUM.value)) + return FontWeight.MEDIUM + if ((arg0) == (FontWeight.BOLD.value)) + return FontWeight.BOLD + if ((arg0) == (FontWeight.BOLDER.value)) + return FontWeight.BOLDER + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): FontWeight { + if ((arg0) == (FontWeight.LIGHTER.ordinal)) + return FontWeight.LIGHTER + if ((arg0) == (FontWeight.NORMAL.ordinal)) + return FontWeight.NORMAL + if ((arg0) == (FontWeight.REGULAR.ordinal)) + return FontWeight.REGULAR + if ((arg0) == (FontWeight.MEDIUM.ordinal)) + return FontWeight.MEDIUM + if ((arg0) == (FontWeight.BOLD.ordinal)) + return FontWeight.BOLD + if ((arg0) == (FontWeight.BOLDER.ordinal)) + return FontWeight.BOLDER + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class TextAlign { + static readonly CENTER: TextAlign = new TextAlign(0,0) + static readonly Center: TextAlign = TextAlign.CENTER + static readonly START: TextAlign = new TextAlign(1,1) + static readonly Start: TextAlign = TextAlign.START + static readonly END: TextAlign = new TextAlign(2,2) + static readonly End: TextAlign = TextAlign.END + static readonly JUSTIFY: TextAlign = new TextAlign(3,3) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): TextAlign { + if ((arg0) == (TextAlign.CENTER.value)) + return TextAlign.CENTER + if ((arg0) == (TextAlign.START.value)) + return TextAlign.START + if ((arg0) == (TextAlign.END.value)) + return TextAlign.END + if ((arg0) == (TextAlign.JUSTIFY.value)) + return TextAlign.JUSTIFY + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): TextAlign { + if ((arg0) == (TextAlign.CENTER.ordinal)) + return TextAlign.CENTER + if ((arg0) == (TextAlign.START.ordinal)) + return TextAlign.START + if ((arg0) == (TextAlign.END.ordinal)) + return TextAlign.END + if ((arg0) == (TextAlign.JUSTIFY.ordinal)) + return TextAlign.JUSTIFY + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class TextOverflow { + static readonly NONE: TextOverflow = new TextOverflow(0,0) + static readonly None: TextOverflow = TextOverflow.NONE + static readonly CLIP: TextOverflow = new TextOverflow(1,1) + static readonly Clip: TextOverflow = TextOverflow.CLIP + static readonly ELLIPSIS: TextOverflow = new TextOverflow(2,2) + static readonly Ellipsis: TextOverflow = TextOverflow.ELLIPSIS + static readonly MARQUEE: TextOverflow = new TextOverflow(3,3) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): TextOverflow { + if ((arg0) == (TextOverflow.NONE.value)) + return TextOverflow.NONE + if ((arg0) == (TextOverflow.CLIP.value)) + return TextOverflow.CLIP + if ((arg0) == (TextOverflow.ELLIPSIS.value)) + return TextOverflow.ELLIPSIS + if ((arg0) == (TextOverflow.MARQUEE.value)) + return TextOverflow.MARQUEE + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): TextOverflow { + if ((arg0) == (TextOverflow.NONE.ordinal)) + return TextOverflow.NONE + if ((arg0) == (TextOverflow.CLIP.ordinal)) + return TextOverflow.CLIP + if ((arg0) == (TextOverflow.ELLIPSIS.ordinal)) + return TextOverflow.ELLIPSIS + if ((arg0) == (TextOverflow.MARQUEE.ordinal)) + return TextOverflow.MARQUEE + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class TextDecorationType { + static readonly NONE: TextDecorationType = new TextDecorationType(0,0) + static readonly None: TextDecorationType = TextDecorationType.NONE + static readonly UNDERLINE: TextDecorationType = new TextDecorationType(1,1) + static readonly Underline: TextDecorationType = TextDecorationType.UNDERLINE + static readonly OVERLINE: TextDecorationType = new TextDecorationType(2,2) + static readonly Overline: TextDecorationType = TextDecorationType.OVERLINE + static readonly LINE_THROUGH: TextDecorationType = new TextDecorationType(3,3) + static readonly LineThrough: TextDecorationType = TextDecorationType.LINE_THROUGH + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): TextDecorationType { + if ((arg0) == (TextDecorationType.NONE.value)) + return TextDecorationType.NONE + if ((arg0) == (TextDecorationType.UNDERLINE.value)) + return TextDecorationType.UNDERLINE + if ((arg0) == (TextDecorationType.OVERLINE.value)) + return TextDecorationType.OVERLINE + if ((arg0) == (TextDecorationType.LINE_THROUGH.value)) + return TextDecorationType.LINE_THROUGH + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): TextDecorationType { + if ((arg0) == (TextDecorationType.NONE.ordinal)) + return TextDecorationType.NONE + if ((arg0) == (TextDecorationType.UNDERLINE.ordinal)) + return TextDecorationType.UNDERLINE + if ((arg0) == (TextDecorationType.OVERLINE.ordinal)) + return TextDecorationType.OVERLINE + if ((arg0) == (TextDecorationType.LINE_THROUGH.ordinal)) + return TextDecorationType.LINE_THROUGH + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class TextCase { + static readonly NORMAL: TextCase = new TextCase(0,0) + static readonly Normal: TextCase = TextCase.NORMAL + static readonly LOWER_CASE: TextCase = new TextCase(1,1) + static readonly LowerCase: TextCase = TextCase.LOWER_CASE + static readonly UPPER_CASE: TextCase = new TextCase(2,2) + static readonly UpperCase: TextCase = TextCase.UPPER_CASE + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): TextCase { + if ((arg0) == (TextCase.NORMAL.value)) + return TextCase.NORMAL + if ((arg0) == (TextCase.LOWER_CASE.value)) + return TextCase.LOWER_CASE + if ((arg0) == (TextCase.UPPER_CASE.value)) + return TextCase.UPPER_CASE + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): TextCase { + if ((arg0) == (TextCase.NORMAL.ordinal)) + return TextCase.NORMAL + if ((arg0) == (TextCase.LOWER_CASE.ordinal)) + return TextCase.LOWER_CASE + if ((arg0) == (TextCase.UPPER_CASE.ordinal)) + return TextCase.UPPER_CASE + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class TextHeightAdaptivePolicy { + static readonly MAX_LINES_FIRST: TextHeightAdaptivePolicy = new TextHeightAdaptivePolicy(0,0) + static readonly MIN_FONT_SIZE_FIRST: TextHeightAdaptivePolicy = new TextHeightAdaptivePolicy(1,1) + static readonly LAYOUT_CONSTRAINT_FIRST: TextHeightAdaptivePolicy = new TextHeightAdaptivePolicy(2,2) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): TextHeightAdaptivePolicy { + if ((arg0) == (TextHeightAdaptivePolicy.MAX_LINES_FIRST.value)) + return TextHeightAdaptivePolicy.MAX_LINES_FIRST + if ((arg0) == (TextHeightAdaptivePolicy.MIN_FONT_SIZE_FIRST.value)) + return TextHeightAdaptivePolicy.MIN_FONT_SIZE_FIRST + if ((arg0) == (TextHeightAdaptivePolicy.LAYOUT_CONSTRAINT_FIRST.value)) + return TextHeightAdaptivePolicy.LAYOUT_CONSTRAINT_FIRST + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): TextHeightAdaptivePolicy { + if ((arg0) == (TextHeightAdaptivePolicy.MAX_LINES_FIRST.ordinal)) + return TextHeightAdaptivePolicy.MAX_LINES_FIRST + if ((arg0) == (TextHeightAdaptivePolicy.MIN_FONT_SIZE_FIRST.ordinal)) + return TextHeightAdaptivePolicy.MIN_FONT_SIZE_FIRST + if ((arg0) == (TextHeightAdaptivePolicy.LAYOUT_CONSTRAINT_FIRST.ordinal)) + return TextHeightAdaptivePolicy.LAYOUT_CONSTRAINT_FIRST + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class ResponseType { + static readonly RIGHT_CLICK: ResponseType = new ResponseType(0,0) + static readonly RightClick: ResponseType = ResponseType.RIGHT_CLICK + static readonly LONG_PRESS: ResponseType = new ResponseType(1,1) + static readonly LongPress: ResponseType = ResponseType.LONG_PRESS + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): ResponseType { + if ((arg0) == (ResponseType.RIGHT_CLICK.value)) + return ResponseType.RIGHT_CLICK + if ((arg0) == (ResponseType.LONG_PRESS.value)) + return ResponseType.LONG_PRESS + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): ResponseType { + if ((arg0) == (ResponseType.RIGHT_CLICK.ordinal)) + return ResponseType.RIGHT_CLICK + if ((arg0) == (ResponseType.LONG_PRESS.ordinal)) + return ResponseType.LONG_PRESS + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class HoverEffect { + static readonly AUTO: HoverEffect = new HoverEffect(0,0) + static readonly Auto: HoverEffect = HoverEffect.AUTO + static readonly SCALE: HoverEffect = new HoverEffect(1,1) + static readonly Scale: HoverEffect = HoverEffect.SCALE + static readonly HIGHLIGHT: HoverEffect = new HoverEffect(2,2) + static readonly Highlight: HoverEffect = HoverEffect.HIGHLIGHT + static readonly NONE: HoverEffect = new HoverEffect(3,3) + static readonly None: HoverEffect = HoverEffect.NONE + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): HoverEffect { + if ((arg0) == (HoverEffect.AUTO.value)) + return HoverEffect.AUTO + if ((arg0) == (HoverEffect.SCALE.value)) + return HoverEffect.SCALE + if ((arg0) == (HoverEffect.HIGHLIGHT.value)) + return HoverEffect.HIGHLIGHT + if ((arg0) == (HoverEffect.NONE.value)) + return HoverEffect.NONE + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): HoverEffect { + if ((arg0) == (HoverEffect.AUTO.ordinal)) + return HoverEffect.AUTO + if ((arg0) == (HoverEffect.SCALE.ordinal)) + return HoverEffect.SCALE + if ((arg0) == (HoverEffect.HIGHLIGHT.ordinal)) + return HoverEffect.HIGHLIGHT + if ((arg0) == (HoverEffect.NONE.ordinal)) + return HoverEffect.NONE + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class Placement { + static readonly LEFT: Placement = new Placement(0,0) + static readonly Left: Placement = Placement.LEFT + static readonly RIGHT: Placement = new Placement(1,1) + static readonly Right: Placement = Placement.RIGHT + static readonly TOP: Placement = new Placement(2,2) + static readonly Top: Placement = Placement.TOP + static readonly BOTTOM: Placement = new Placement(3,3) + static readonly Bottom: Placement = Placement.BOTTOM + static readonly TOP_LEFT: Placement = new Placement(4,4) + static readonly TopLeft: Placement = Placement.TOP_LEFT + static readonly TOP_RIGHT: Placement = new Placement(5,5) + static readonly TopRight: Placement = Placement.TOP_RIGHT + static readonly BOTTOM_LEFT: Placement = new Placement(6,6) + static readonly BottomLeft: Placement = Placement.BOTTOM_LEFT + static readonly BOTTOM_RIGHT: Placement = new Placement(7,7) + static readonly BottomRight: Placement = Placement.BOTTOM_RIGHT + static readonly LEFT_TOP: Placement = new Placement(8,8) + static readonly LeftTop: Placement = Placement.LEFT_TOP + static readonly LEFT_BOTTOM: Placement = new Placement(9,9) + static readonly LeftBottom: Placement = Placement.LEFT_BOTTOM + static readonly RIGHT_TOP: Placement = new Placement(10,10) + static readonly RightTop: Placement = Placement.RIGHT_TOP + static readonly RIGHT_BOTTOM: Placement = new Placement(11,11) + static readonly RightBottom: Placement = Placement.RIGHT_BOTTOM + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): Placement { + if ((arg0) == (Placement.LEFT.value)) + return Placement.LEFT + if ((arg0) == (Placement.RIGHT.value)) + return Placement.RIGHT + if ((arg0) == (Placement.TOP.value)) + return Placement.TOP + if ((arg0) == (Placement.BOTTOM.value)) + return Placement.BOTTOM + if ((arg0) == (Placement.TOP_LEFT.value)) + return Placement.TOP_LEFT + if ((arg0) == (Placement.TOP_RIGHT.value)) + return Placement.TOP_RIGHT + if ((arg0) == (Placement.BOTTOM_LEFT.value)) + return Placement.BOTTOM_LEFT + if ((arg0) == (Placement.BOTTOM_RIGHT.value)) + return Placement.BOTTOM_RIGHT + if ((arg0) == (Placement.LEFT_TOP.value)) + return Placement.LEFT_TOP + if ((arg0) == (Placement.LEFT_BOTTOM.value)) + return Placement.LEFT_BOTTOM + if ((arg0) == (Placement.RIGHT_TOP.value)) + return Placement.RIGHT_TOP + if ((arg0) == (Placement.RIGHT_BOTTOM.value)) + return Placement.RIGHT_BOTTOM + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): Placement { + if ((arg0) == (Placement.LEFT.ordinal)) + return Placement.LEFT + if ((arg0) == (Placement.RIGHT.ordinal)) + return Placement.RIGHT + if ((arg0) == (Placement.TOP.ordinal)) + return Placement.TOP + if ((arg0) == (Placement.BOTTOM.ordinal)) + return Placement.BOTTOM + if ((arg0) == (Placement.TOP_LEFT.ordinal)) + return Placement.TOP_LEFT + if ((arg0) == (Placement.TOP_RIGHT.ordinal)) + return Placement.TOP_RIGHT + if ((arg0) == (Placement.BOTTOM_LEFT.ordinal)) + return Placement.BOTTOM_LEFT + if ((arg0) == (Placement.BOTTOM_RIGHT.ordinal)) + return Placement.BOTTOM_RIGHT + if ((arg0) == (Placement.LEFT_TOP.ordinal)) + return Placement.LEFT_TOP + if ((arg0) == (Placement.LEFT_BOTTOM.ordinal)) + return Placement.LEFT_BOTTOM + if ((arg0) == (Placement.RIGHT_TOP.ordinal)) + return Placement.RIGHT_TOP + if ((arg0) == (Placement.RIGHT_BOTTOM.ordinal)) + return Placement.RIGHT_BOTTOM + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class ArrowPointPosition { + static readonly START: ArrowPointPosition = new ArrowPointPosition("Start",0) + static readonly CENTER: ArrowPointPosition = new ArrowPointPosition("Center",1) + static readonly END: ArrowPointPosition = new ArrowPointPosition("End",2) + constructor(value: string, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: string + public readonly ordinal: int32 + public static of(arg0: string): ArrowPointPosition { + if ((arg0) == (ArrowPointPosition.START.value)) + return ArrowPointPosition.START + if ((arg0) == (ArrowPointPosition.CENTER.value)) + return ArrowPointPosition.CENTER + if ((arg0) == (ArrowPointPosition.END.value)) + return ArrowPointPosition.END + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): ArrowPointPosition { + if ((arg0) == (ArrowPointPosition.START.ordinal)) + return ArrowPointPosition.START + if ((arg0) == (ArrowPointPosition.CENTER.ordinal)) + return ArrowPointPosition.CENTER + if ((arg0) == (ArrowPointPosition.END.ordinal)) + return ArrowPointPosition.END + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class CopyOptions { + static readonly NONE: CopyOptions = new CopyOptions(0,0) + static readonly None: CopyOptions = CopyOptions.NONE + static readonly IN_APP: CopyOptions = new CopyOptions(1,1) + static readonly InApp: CopyOptions = CopyOptions.IN_APP + static readonly LOCAL_DEVICE: CopyOptions = new CopyOptions(2,2) + static readonly LocalDevice: CopyOptions = CopyOptions.LOCAL_DEVICE + static readonly CROSS_DEVICE: CopyOptions = new CopyOptions(3,3) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): CopyOptions { + if ((arg0) == (CopyOptions.NONE.value)) + return CopyOptions.NONE + if ((arg0) == (CopyOptions.IN_APP.value)) + return CopyOptions.IN_APP + if ((arg0) == (CopyOptions.LOCAL_DEVICE.value)) + return CopyOptions.LOCAL_DEVICE + if ((arg0) == (CopyOptions.CROSS_DEVICE.value)) + return CopyOptions.CROSS_DEVICE + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): CopyOptions { + if ((arg0) == (CopyOptions.NONE.ordinal)) + return CopyOptions.NONE + if ((arg0) == (CopyOptions.IN_APP.ordinal)) + return CopyOptions.IN_APP + if ((arg0) == (CopyOptions.LOCAL_DEVICE.ordinal)) + return CopyOptions.LOCAL_DEVICE + if ((arg0) == (CopyOptions.CROSS_DEVICE.ordinal)) + return CopyOptions.CROSS_DEVICE + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class HitTestMode { + static readonly DEFAULT: HitTestMode = new HitTestMode(0,0) + static readonly Default: HitTestMode = HitTestMode.DEFAULT + static readonly BLOCK: HitTestMode = new HitTestMode(1,1) + static readonly Block: HitTestMode = HitTestMode.BLOCK + static readonly TRANSPARENT: HitTestMode = new HitTestMode(2,2) + static readonly Transparent: HitTestMode = HitTestMode.TRANSPARENT + static readonly NONE: HitTestMode = new HitTestMode(3,3) + static readonly None: HitTestMode = HitTestMode.NONE + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): HitTestMode { + if ((arg0) == (HitTestMode.DEFAULT.value)) + return HitTestMode.DEFAULT + if ((arg0) == (HitTestMode.BLOCK.value)) + return HitTestMode.BLOCK + if ((arg0) == (HitTestMode.TRANSPARENT.value)) + return HitTestMode.TRANSPARENT + if ((arg0) == (HitTestMode.NONE.value)) + return HitTestMode.NONE + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): HitTestMode { + if ((arg0) == (HitTestMode.DEFAULT.ordinal)) + return HitTestMode.DEFAULT + if ((arg0) == (HitTestMode.BLOCK.ordinal)) + return HitTestMode.BLOCK + if ((arg0) == (HitTestMode.TRANSPARENT.ordinal)) + return HitTestMode.TRANSPARENT + if ((arg0) == (HitTestMode.NONE.ordinal)) + return HitTestMode.NONE + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class TitleHeight { + static readonly MAIN_ONLY: TitleHeight = new TitleHeight(0,0) + static readonly MainOnly: TitleHeight = TitleHeight.MAIN_ONLY + static readonly MAIN_WITH_SUB: TitleHeight = new TitleHeight(1,1) + static readonly MainWithSub: TitleHeight = TitleHeight.MAIN_WITH_SUB + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): TitleHeight { + if ((arg0) == (TitleHeight.MAIN_ONLY.value)) + return TitleHeight.MAIN_ONLY + if ((arg0) == (TitleHeight.MAIN_WITH_SUB.value)) + return TitleHeight.MAIN_WITH_SUB + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): TitleHeight { + if ((arg0) == (TitleHeight.MAIN_ONLY.ordinal)) + return TitleHeight.MAIN_ONLY + if ((arg0) == (TitleHeight.MAIN_WITH_SUB.ordinal)) + return TitleHeight.MAIN_WITH_SUB + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class ModifierKey { + static readonly CTRL: ModifierKey = new ModifierKey(0,0) + static readonly SHIFT: ModifierKey = new ModifierKey(1,1) + static readonly ALT: ModifierKey = new ModifierKey(2,2) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): ModifierKey { + if ((arg0) == (ModifierKey.CTRL.value)) + return ModifierKey.CTRL + if ((arg0) == (ModifierKey.SHIFT.value)) + return ModifierKey.SHIFT + if ((arg0) == (ModifierKey.ALT.value)) + return ModifierKey.ALT + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): ModifierKey { + if ((arg0) == (ModifierKey.CTRL.ordinal)) + return ModifierKey.CTRL + if ((arg0) == (ModifierKey.SHIFT.ordinal)) + return ModifierKey.SHIFT + if ((arg0) == (ModifierKey.ALT.ordinal)) + return ModifierKey.ALT + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class FunctionKey { + static readonly ESC: FunctionKey = new FunctionKey(0,0) + static readonly F1: FunctionKey = new FunctionKey(1,1) + static readonly F2: FunctionKey = new FunctionKey(2,2) + static readonly F3: FunctionKey = new FunctionKey(3,3) + static readonly F4: FunctionKey = new FunctionKey(4,4) + static readonly F5: FunctionKey = new FunctionKey(5,5) + static readonly F6: FunctionKey = new FunctionKey(6,6) + static readonly F7: FunctionKey = new FunctionKey(7,7) + static readonly F8: FunctionKey = new FunctionKey(8,8) + static readonly F9: FunctionKey = new FunctionKey(9,9) + static readonly F10: FunctionKey = new FunctionKey(10,10) + static readonly F11: FunctionKey = new FunctionKey(11,11) + static readonly F12: FunctionKey = new FunctionKey(12,12) + static readonly TAB: FunctionKey = new FunctionKey(13,13) + static readonly DPAD_UP: FunctionKey = new FunctionKey(14,14) + static readonly DPAD_DOWN: FunctionKey = new FunctionKey(15,15) + static readonly DPAD_LEFT: FunctionKey = new FunctionKey(16,16) + static readonly DPAD_RIGHT: FunctionKey = new FunctionKey(17,17) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): FunctionKey { + if ((arg0) == (FunctionKey.ESC.value)) + return FunctionKey.ESC + if ((arg0) == (FunctionKey.F1.value)) + return FunctionKey.F1 + if ((arg0) == (FunctionKey.F2.value)) + return FunctionKey.F2 + if ((arg0) == (FunctionKey.F3.value)) + return FunctionKey.F3 + if ((arg0) == (FunctionKey.F4.value)) + return FunctionKey.F4 + if ((arg0) == (FunctionKey.F5.value)) + return FunctionKey.F5 + if ((arg0) == (FunctionKey.F6.value)) + return FunctionKey.F6 + if ((arg0) == (FunctionKey.F7.value)) + return FunctionKey.F7 + if ((arg0) == (FunctionKey.F8.value)) + return FunctionKey.F8 + if ((arg0) == (FunctionKey.F9.value)) + return FunctionKey.F9 + if ((arg0) == (FunctionKey.F10.value)) + return FunctionKey.F10 + if ((arg0) == (FunctionKey.F11.value)) + return FunctionKey.F11 + if ((arg0) == (FunctionKey.F12.value)) + return FunctionKey.F12 + if ((arg0) == (FunctionKey.TAB.value)) + return FunctionKey.TAB + if ((arg0) == (FunctionKey.DPAD_UP.value)) + return FunctionKey.DPAD_UP + if ((arg0) == (FunctionKey.DPAD_DOWN.value)) + return FunctionKey.DPAD_DOWN + if ((arg0) == (FunctionKey.DPAD_LEFT.value)) + return FunctionKey.DPAD_LEFT + if ((arg0) == (FunctionKey.DPAD_RIGHT.value)) + return FunctionKey.DPAD_RIGHT + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): FunctionKey { + if ((arg0) == (FunctionKey.ESC.ordinal)) + return FunctionKey.ESC + if ((arg0) == (FunctionKey.F1.ordinal)) + return FunctionKey.F1 + if ((arg0) == (FunctionKey.F2.ordinal)) + return FunctionKey.F2 + if ((arg0) == (FunctionKey.F3.ordinal)) + return FunctionKey.F3 + if ((arg0) == (FunctionKey.F4.ordinal)) + return FunctionKey.F4 + if ((arg0) == (FunctionKey.F5.ordinal)) + return FunctionKey.F5 + if ((arg0) == (FunctionKey.F6.ordinal)) + return FunctionKey.F6 + if ((arg0) == (FunctionKey.F7.ordinal)) + return FunctionKey.F7 + if ((arg0) == (FunctionKey.F8.ordinal)) + return FunctionKey.F8 + if ((arg0) == (FunctionKey.F9.ordinal)) + return FunctionKey.F9 + if ((arg0) == (FunctionKey.F10.ordinal)) + return FunctionKey.F10 + if ((arg0) == (FunctionKey.F11.ordinal)) + return FunctionKey.F11 + if ((arg0) == (FunctionKey.F12.ordinal)) + return FunctionKey.F12 + if ((arg0) == (FunctionKey.TAB.ordinal)) + return FunctionKey.TAB + if ((arg0) == (FunctionKey.DPAD_UP.ordinal)) + return FunctionKey.DPAD_UP + if ((arg0) == (FunctionKey.DPAD_DOWN.ordinal)) + return FunctionKey.DPAD_DOWN + if ((arg0) == (FunctionKey.DPAD_LEFT.ordinal)) + return FunctionKey.DPAD_LEFT + if ((arg0) == (FunctionKey.DPAD_RIGHT.ordinal)) + return FunctionKey.DPAD_RIGHT + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class ImageSpanAlignment { + static readonly BASELINE: ImageSpanAlignment = new ImageSpanAlignment(0,0) + static readonly BOTTOM: ImageSpanAlignment = new ImageSpanAlignment(1,1) + static readonly CENTER: ImageSpanAlignment = new ImageSpanAlignment(2,2) + static readonly TOP: ImageSpanAlignment = new ImageSpanAlignment(3,3) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): ImageSpanAlignment { + if ((arg0) == (ImageSpanAlignment.BASELINE.value)) + return ImageSpanAlignment.BASELINE + if ((arg0) == (ImageSpanAlignment.BOTTOM.value)) + return ImageSpanAlignment.BOTTOM + if ((arg0) == (ImageSpanAlignment.CENTER.value)) + return ImageSpanAlignment.CENTER + if ((arg0) == (ImageSpanAlignment.TOP.value)) + return ImageSpanAlignment.TOP + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): ImageSpanAlignment { + if ((arg0) == (ImageSpanAlignment.BASELINE.ordinal)) + return ImageSpanAlignment.BASELINE + if ((arg0) == (ImageSpanAlignment.BOTTOM.ordinal)) + return ImageSpanAlignment.BOTTOM + if ((arg0) == (ImageSpanAlignment.CENTER.ordinal)) + return ImageSpanAlignment.CENTER + if ((arg0) == (ImageSpanAlignment.TOP.ordinal)) + return ImageSpanAlignment.TOP + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class ObscuredReasons { + static readonly PLACEHOLDER: ObscuredReasons = new ObscuredReasons(0,0) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): ObscuredReasons { + if ((arg0) == (ObscuredReasons.PLACEHOLDER.value)) + return ObscuredReasons.PLACEHOLDER + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): ObscuredReasons { + if ((arg0) == (ObscuredReasons.PLACEHOLDER.ordinal)) + return ObscuredReasons.PLACEHOLDER + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class TextContentStyle { + static readonly DEFAULT: TextContentStyle = new TextContentStyle(0,0) + static readonly INLINE: TextContentStyle = new TextContentStyle(1,1) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): TextContentStyle { + if ((arg0) == (TextContentStyle.DEFAULT.value)) + return TextContentStyle.DEFAULT + if ((arg0) == (TextContentStyle.INLINE.value)) + return TextContentStyle.INLINE + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): TextContentStyle { + if ((arg0) == (TextContentStyle.DEFAULT.ordinal)) + return TextContentStyle.DEFAULT + if ((arg0) == (TextContentStyle.INLINE.ordinal)) + return TextContentStyle.INLINE + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class ClickEffectLevel { + static readonly LIGHT: ClickEffectLevel = new ClickEffectLevel(0,0) + static readonly MIDDLE: ClickEffectLevel = new ClickEffectLevel(1,1) + static readonly HEAVY: ClickEffectLevel = new ClickEffectLevel(2,2) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): ClickEffectLevel { + if ((arg0) == (ClickEffectLevel.LIGHT.value)) + return ClickEffectLevel.LIGHT + if ((arg0) == (ClickEffectLevel.MIDDLE.value)) + return ClickEffectLevel.MIDDLE + if ((arg0) == (ClickEffectLevel.HEAVY.value)) + return ClickEffectLevel.HEAVY + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): ClickEffectLevel { + if ((arg0) == (ClickEffectLevel.LIGHT.ordinal)) + return ClickEffectLevel.LIGHT + if ((arg0) == (ClickEffectLevel.MIDDLE.ordinal)) + return ClickEffectLevel.MIDDLE + if ((arg0) == (ClickEffectLevel.HEAVY.ordinal)) + return ClickEffectLevel.HEAVY + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class XComponentType { + static readonly SURFACE: XComponentType = new XComponentType(0,0) + static readonly COMPONENT: XComponentType = new XComponentType(1,1) + static readonly TEXTURE: XComponentType = new XComponentType(2,2) + static readonly NODE: XComponentType = new XComponentType(3,3) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): XComponentType { + if ((arg0) == (XComponentType.SURFACE.value)) + return XComponentType.SURFACE + if ((arg0) == (XComponentType.COMPONENT.value)) + return XComponentType.COMPONENT + if ((arg0) == (XComponentType.TEXTURE.value)) + return XComponentType.TEXTURE + if ((arg0) == (XComponentType.NODE.value)) + return XComponentType.NODE + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): XComponentType { + if ((arg0) == (XComponentType.SURFACE.ordinal)) + return XComponentType.SURFACE + if ((arg0) == (XComponentType.COMPONENT.ordinal)) + return XComponentType.COMPONENT + if ((arg0) == (XComponentType.TEXTURE.ordinal)) + return XComponentType.TEXTURE + if ((arg0) == (XComponentType.NODE.ordinal)) + return XComponentType.NODE + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class NestedScrollMode { + static readonly SELF_ONLY: NestedScrollMode = new NestedScrollMode(0,0) + static readonly SELF_FIRST: NestedScrollMode = new NestedScrollMode(1,1) + static readonly PARENT_FIRST: NestedScrollMode = new NestedScrollMode(2,2) + static readonly PARALLEL: NestedScrollMode = new NestedScrollMode(3,3) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): NestedScrollMode { + if ((arg0) == (NestedScrollMode.SELF_ONLY.value)) + return NestedScrollMode.SELF_ONLY + if ((arg0) == (NestedScrollMode.SELF_FIRST.value)) + return NestedScrollMode.SELF_FIRST + if ((arg0) == (NestedScrollMode.PARENT_FIRST.value)) + return NestedScrollMode.PARENT_FIRST + if ((arg0) == (NestedScrollMode.PARALLEL.value)) + return NestedScrollMode.PARALLEL + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): NestedScrollMode { + if ((arg0) == (NestedScrollMode.SELF_ONLY.ordinal)) + return NestedScrollMode.SELF_ONLY + if ((arg0) == (NestedScrollMode.SELF_FIRST.ordinal)) + return NestedScrollMode.SELF_FIRST + if ((arg0) == (NestedScrollMode.PARENT_FIRST.ordinal)) + return NestedScrollMode.PARENT_FIRST + if ((arg0) == (NestedScrollMode.PARALLEL.ordinal)) + return NestedScrollMode.PARALLEL + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class ScrollSource { + static readonly DRAG: ScrollSource = new ScrollSource(0,0) + static readonly FLING: ScrollSource = new ScrollSource(1,1) + static readonly EDGE_EFFECT: ScrollSource = new ScrollSource(2,2) + static readonly OTHER_USER_INPUT: ScrollSource = new ScrollSource(3,3) + static readonly SCROLL_BAR: ScrollSource = new ScrollSource(4,4) + static readonly SCROLL_BAR_FLING: ScrollSource = new ScrollSource(5,5) + static readonly SCROLLER: ScrollSource = new ScrollSource(6,6) + static readonly SCROLLER_ANIMATION: ScrollSource = new ScrollSource(7,7) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): ScrollSource { + if ((arg0) == (ScrollSource.DRAG.value)) + return ScrollSource.DRAG + if ((arg0) == (ScrollSource.FLING.value)) + return ScrollSource.FLING + if ((arg0) == (ScrollSource.EDGE_EFFECT.value)) + return ScrollSource.EDGE_EFFECT + if ((arg0) == (ScrollSource.OTHER_USER_INPUT.value)) + return ScrollSource.OTHER_USER_INPUT + if ((arg0) == (ScrollSource.SCROLL_BAR.value)) + return ScrollSource.SCROLL_BAR + if ((arg0) == (ScrollSource.SCROLL_BAR_FLING.value)) + return ScrollSource.SCROLL_BAR_FLING + if ((arg0) == (ScrollSource.SCROLLER.value)) + return ScrollSource.SCROLLER + if ((arg0) == (ScrollSource.SCROLLER_ANIMATION.value)) + return ScrollSource.SCROLLER_ANIMATION + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): ScrollSource { + if ((arg0) == (ScrollSource.DRAG.ordinal)) + return ScrollSource.DRAG + if ((arg0) == (ScrollSource.FLING.ordinal)) + return ScrollSource.FLING + if ((arg0) == (ScrollSource.EDGE_EFFECT.ordinal)) + return ScrollSource.EDGE_EFFECT + if ((arg0) == (ScrollSource.OTHER_USER_INPUT.ordinal)) + return ScrollSource.OTHER_USER_INPUT + if ((arg0) == (ScrollSource.SCROLL_BAR.ordinal)) + return ScrollSource.SCROLL_BAR + if ((arg0) == (ScrollSource.SCROLL_BAR_FLING.ordinal)) + return ScrollSource.SCROLL_BAR_FLING + if ((arg0) == (ScrollSource.SCROLLER.ordinal)) + return ScrollSource.SCROLLER + if ((arg0) == (ScrollSource.SCROLLER_ANIMATION.ordinal)) + return ScrollSource.SCROLLER_ANIMATION + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class RenderFit { + static readonly CENTER: RenderFit = new RenderFit(0,0) + static readonly TOP: RenderFit = new RenderFit(1,1) + static readonly BOTTOM: RenderFit = new RenderFit(2,2) + static readonly LEFT: RenderFit = new RenderFit(3,3) + static readonly RIGHT: RenderFit = new RenderFit(4,4) + static readonly TOP_LEFT: RenderFit = new RenderFit(5,5) + static readonly TOP_RIGHT: RenderFit = new RenderFit(6,6) + static readonly BOTTOM_LEFT: RenderFit = new RenderFit(7,7) + static readonly BOTTOM_RIGHT: RenderFit = new RenderFit(8,8) + static readonly RESIZE_FILL: RenderFit = new RenderFit(9,9) + static readonly RESIZE_CONTAIN: RenderFit = new RenderFit(10,10) + static readonly RESIZE_CONTAIN_TOP_LEFT: RenderFit = new RenderFit(11,11) + static readonly RESIZE_CONTAIN_BOTTOM_RIGHT: RenderFit = new RenderFit(12,12) + static readonly RESIZE_COVER: RenderFit = new RenderFit(13,13) + static readonly RESIZE_COVER_TOP_LEFT: RenderFit = new RenderFit(14,14) + static readonly RESIZE_COVER_BOTTOM_RIGHT: RenderFit = new RenderFit(15,15) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): RenderFit { + if ((arg0) == (RenderFit.CENTER.value)) + return RenderFit.CENTER + if ((arg0) == (RenderFit.TOP.value)) + return RenderFit.TOP + if ((arg0) == (RenderFit.BOTTOM.value)) + return RenderFit.BOTTOM + if ((arg0) == (RenderFit.LEFT.value)) + return RenderFit.LEFT + if ((arg0) == (RenderFit.RIGHT.value)) + return RenderFit.RIGHT + if ((arg0) == (RenderFit.TOP_LEFT.value)) + return RenderFit.TOP_LEFT + if ((arg0) == (RenderFit.TOP_RIGHT.value)) + return RenderFit.TOP_RIGHT + if ((arg0) == (RenderFit.BOTTOM_LEFT.value)) + return RenderFit.BOTTOM_LEFT + if ((arg0) == (RenderFit.BOTTOM_RIGHT.value)) + return RenderFit.BOTTOM_RIGHT + if ((arg0) == (RenderFit.RESIZE_FILL.value)) + return RenderFit.RESIZE_FILL + if ((arg0) == (RenderFit.RESIZE_CONTAIN.value)) + return RenderFit.RESIZE_CONTAIN + if ((arg0) == (RenderFit.RESIZE_CONTAIN_TOP_LEFT.value)) + return RenderFit.RESIZE_CONTAIN_TOP_LEFT + if ((arg0) == (RenderFit.RESIZE_CONTAIN_BOTTOM_RIGHT.value)) + return RenderFit.RESIZE_CONTAIN_BOTTOM_RIGHT + if ((arg0) == (RenderFit.RESIZE_COVER.value)) + return RenderFit.RESIZE_COVER + if ((arg0) == (RenderFit.RESIZE_COVER_TOP_LEFT.value)) + return RenderFit.RESIZE_COVER_TOP_LEFT + if ((arg0) == (RenderFit.RESIZE_COVER_BOTTOM_RIGHT.value)) + return RenderFit.RESIZE_COVER_BOTTOM_RIGHT + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): RenderFit { + if ((arg0) == (RenderFit.CENTER.ordinal)) + return RenderFit.CENTER + if ((arg0) == (RenderFit.TOP.ordinal)) + return RenderFit.TOP + if ((arg0) == (RenderFit.BOTTOM.ordinal)) + return RenderFit.BOTTOM + if ((arg0) == (RenderFit.LEFT.ordinal)) + return RenderFit.LEFT + if ((arg0) == (RenderFit.RIGHT.ordinal)) + return RenderFit.RIGHT + if ((arg0) == (RenderFit.TOP_LEFT.ordinal)) + return RenderFit.TOP_LEFT + if ((arg0) == (RenderFit.TOP_RIGHT.ordinal)) + return RenderFit.TOP_RIGHT + if ((arg0) == (RenderFit.BOTTOM_LEFT.ordinal)) + return RenderFit.BOTTOM_LEFT + if ((arg0) == (RenderFit.BOTTOM_RIGHT.ordinal)) + return RenderFit.BOTTOM_RIGHT + if ((arg0) == (RenderFit.RESIZE_FILL.ordinal)) + return RenderFit.RESIZE_FILL + if ((arg0) == (RenderFit.RESIZE_CONTAIN.ordinal)) + return RenderFit.RESIZE_CONTAIN + if ((arg0) == (RenderFit.RESIZE_CONTAIN_TOP_LEFT.ordinal)) + return RenderFit.RESIZE_CONTAIN_TOP_LEFT + if ((arg0) == (RenderFit.RESIZE_CONTAIN_BOTTOM_RIGHT.ordinal)) + return RenderFit.RESIZE_CONTAIN_BOTTOM_RIGHT + if ((arg0) == (RenderFit.RESIZE_COVER.ordinal)) + return RenderFit.RESIZE_COVER + if ((arg0) == (RenderFit.RESIZE_COVER_TOP_LEFT.ordinal)) + return RenderFit.RESIZE_COVER_TOP_LEFT + if ((arg0) == (RenderFit.RESIZE_COVER_BOTTOM_RIGHT.ordinal)) + return RenderFit.RESIZE_COVER_BOTTOM_RIGHT + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class DialogButtonStyle { + static readonly DEFAULT: DialogButtonStyle = new DialogButtonStyle(0,0) + static readonly HIGHLIGHT: DialogButtonStyle = new DialogButtonStyle(1,1) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): DialogButtonStyle { + if ((arg0) == (DialogButtonStyle.DEFAULT.value)) + return DialogButtonStyle.DEFAULT + if ((arg0) == (DialogButtonStyle.HIGHLIGHT.value)) + return DialogButtonStyle.HIGHLIGHT + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): DialogButtonStyle { + if ((arg0) == (DialogButtonStyle.DEFAULT.ordinal)) + return DialogButtonStyle.DEFAULT + if ((arg0) == (DialogButtonStyle.HIGHLIGHT.ordinal)) + return DialogButtonStyle.HIGHLIGHT + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class WordBreak { + static readonly NORMAL: WordBreak = new WordBreak(0,0) + static readonly BREAK_ALL: WordBreak = new WordBreak(1,1) + static readonly BREAK_WORD: WordBreak = new WordBreak(2,2) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): WordBreak { + if ((arg0) == (WordBreak.NORMAL.value)) + return WordBreak.NORMAL + if ((arg0) == (WordBreak.BREAK_ALL.value)) + return WordBreak.BREAK_ALL + if ((arg0) == (WordBreak.BREAK_WORD.value)) + return WordBreak.BREAK_WORD + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): WordBreak { + if ((arg0) == (WordBreak.NORMAL.ordinal)) + return WordBreak.NORMAL + if ((arg0) == (WordBreak.BREAK_ALL.ordinal)) + return WordBreak.BREAK_ALL + if ((arg0) == (WordBreak.BREAK_WORD.ordinal)) + return WordBreak.BREAK_WORD + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class LineBreakStrategy { + static readonly GREEDY: LineBreakStrategy = new LineBreakStrategy(0,0) + static readonly HIGH_QUALITY: LineBreakStrategy = new LineBreakStrategy(1,1) + static readonly BALANCED: LineBreakStrategy = new LineBreakStrategy(2,2) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): LineBreakStrategy { + if ((arg0) == (LineBreakStrategy.GREEDY.value)) + return LineBreakStrategy.GREEDY + if ((arg0) == (LineBreakStrategy.HIGH_QUALITY.value)) + return LineBreakStrategy.HIGH_QUALITY + if ((arg0) == (LineBreakStrategy.BALANCED.value)) + return LineBreakStrategy.BALANCED + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): LineBreakStrategy { + if ((arg0) == (LineBreakStrategy.GREEDY.ordinal)) + return LineBreakStrategy.GREEDY + if ((arg0) == (LineBreakStrategy.HIGH_QUALITY.ordinal)) + return LineBreakStrategy.HIGH_QUALITY + if ((arg0) == (LineBreakStrategy.BALANCED.ordinal)) + return LineBreakStrategy.BALANCED + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class EllipsisMode { + static readonly START: EllipsisMode = new EllipsisMode(0,0) + static readonly CENTER: EllipsisMode = new EllipsisMode(1,1) + static readonly END: EllipsisMode = new EllipsisMode(2,2) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): EllipsisMode { + if ((arg0) == (EllipsisMode.START.value)) + return EllipsisMode.START + if ((arg0) == (EllipsisMode.CENTER.value)) + return EllipsisMode.CENTER + if ((arg0) == (EllipsisMode.END.value)) + return EllipsisMode.END + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): EllipsisMode { + if ((arg0) == (EllipsisMode.START.ordinal)) + return EllipsisMode.START + if ((arg0) == (EllipsisMode.CENTER.ordinal)) + return EllipsisMode.CENTER + if ((arg0) == (EllipsisMode.END.ordinal)) + return EllipsisMode.END + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class OptionWidthMode { + static readonly FIT_CONTENT: OptionWidthMode = new OptionWidthMode("fit_content",0) + static readonly FIT_TRIGGER: OptionWidthMode = new OptionWidthMode("fit_trigger",1) + constructor(value: string, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: string + public readonly ordinal: int32 + public static of(arg0: string): OptionWidthMode { + if ((arg0) == (OptionWidthMode.FIT_CONTENT.value)) + return OptionWidthMode.FIT_CONTENT + if ((arg0) == (OptionWidthMode.FIT_TRIGGER.value)) + return OptionWidthMode.FIT_TRIGGER + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): OptionWidthMode { + if ((arg0) == (OptionWidthMode.FIT_CONTENT.ordinal)) + return OptionWidthMode.FIT_CONTENT + if ((arg0) == (OptionWidthMode.FIT_TRIGGER.ordinal)) + return OptionWidthMode.FIT_TRIGGER + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class IlluminatedType { + static readonly NONE: IlluminatedType = new IlluminatedType(0,0) + static readonly BORDER: IlluminatedType = new IlluminatedType(1,1) + static readonly CONTENT: IlluminatedType = new IlluminatedType(2,2) + static readonly BORDER_CONTENT: IlluminatedType = new IlluminatedType(3,3) + static readonly BLOOM_BORDER: IlluminatedType = new IlluminatedType(4,4) + static readonly BLOOM_BORDER_CONTENT: IlluminatedType = new IlluminatedType(5,5) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): IlluminatedType { + if ((arg0) == (IlluminatedType.NONE.value)) + return IlluminatedType.NONE + if ((arg0) == (IlluminatedType.BORDER.value)) + return IlluminatedType.BORDER + if ((arg0) == (IlluminatedType.CONTENT.value)) + return IlluminatedType.CONTENT + if ((arg0) == (IlluminatedType.BORDER_CONTENT.value)) + return IlluminatedType.BORDER_CONTENT + if ((arg0) == (IlluminatedType.BLOOM_BORDER.value)) + return IlluminatedType.BLOOM_BORDER + if ((arg0) == (IlluminatedType.BLOOM_BORDER_CONTENT.value)) + return IlluminatedType.BLOOM_BORDER_CONTENT + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): IlluminatedType { + if ((arg0) == (IlluminatedType.NONE.ordinal)) + return IlluminatedType.NONE + if ((arg0) == (IlluminatedType.BORDER.ordinal)) + return IlluminatedType.BORDER + if ((arg0) == (IlluminatedType.CONTENT.ordinal)) + return IlluminatedType.CONTENT + if ((arg0) == (IlluminatedType.BORDER_CONTENT.ordinal)) + return IlluminatedType.BORDER_CONTENT + if ((arg0) == (IlluminatedType.BLOOM_BORDER.ordinal)) + return IlluminatedType.BLOOM_BORDER + if ((arg0) == (IlluminatedType.BLOOM_BORDER_CONTENT.ordinal)) + return IlluminatedType.BLOOM_BORDER_CONTENT + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class FoldStatus { + static readonly FOLD_STATUS_UNKNOWN: FoldStatus = new FoldStatus(0,0) + static readonly FOLD_STATUS_EXPANDED: FoldStatus = new FoldStatus(1,1) + static readonly FOLD_STATUS_FOLDED: FoldStatus = new FoldStatus(2,2) + static readonly FOLD_STATUS_HALF_FOLDED: FoldStatus = new FoldStatus(3,3) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): FoldStatus { + if ((arg0) == (FoldStatus.FOLD_STATUS_UNKNOWN.value)) + return FoldStatus.FOLD_STATUS_UNKNOWN + if ((arg0) == (FoldStatus.FOLD_STATUS_EXPANDED.value)) + return FoldStatus.FOLD_STATUS_EXPANDED + if ((arg0) == (FoldStatus.FOLD_STATUS_FOLDED.value)) + return FoldStatus.FOLD_STATUS_FOLDED + if ((arg0) == (FoldStatus.FOLD_STATUS_HALF_FOLDED.value)) + return FoldStatus.FOLD_STATUS_HALF_FOLDED + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): FoldStatus { + if ((arg0) == (FoldStatus.FOLD_STATUS_UNKNOWN.ordinal)) + return FoldStatus.FOLD_STATUS_UNKNOWN + if ((arg0) == (FoldStatus.FOLD_STATUS_EXPANDED.ordinal)) + return FoldStatus.FOLD_STATUS_EXPANDED + if ((arg0) == (FoldStatus.FOLD_STATUS_FOLDED.ordinal)) + return FoldStatus.FOLD_STATUS_FOLDED + if ((arg0) == (FoldStatus.FOLD_STATUS_HALF_FOLDED.ordinal)) + return FoldStatus.FOLD_STATUS_HALF_FOLDED + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class AppRotation { + static readonly ROTATION_0: AppRotation = new AppRotation(0,0) + static readonly ROTATION_90: AppRotation = new AppRotation(1,1) + static readonly ROTATION_180: AppRotation = new AppRotation(2,2) + static readonly ROTATION_270: AppRotation = new AppRotation(3,3) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): AppRotation { + if ((arg0) == (AppRotation.ROTATION_0.value)) + return AppRotation.ROTATION_0 + if ((arg0) == (AppRotation.ROTATION_90.value)) + return AppRotation.ROTATION_90 + if ((arg0) == (AppRotation.ROTATION_180.value)) + return AppRotation.ROTATION_180 + if ((arg0) == (AppRotation.ROTATION_270.value)) + return AppRotation.ROTATION_270 + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): AppRotation { + if ((arg0) == (AppRotation.ROTATION_0.ordinal)) + return AppRotation.ROTATION_0 + if ((arg0) == (AppRotation.ROTATION_90.ordinal)) + return AppRotation.ROTATION_90 + if ((arg0) == (AppRotation.ROTATION_180.ordinal)) + return AppRotation.ROTATION_180 + if ((arg0) == (AppRotation.ROTATION_270.ordinal)) + return AppRotation.ROTATION_270 + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class EmbeddedType { + static readonly EMBEDDED_UI_EXTENSION: EmbeddedType = new EmbeddedType(0,0) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): EmbeddedType { + if ((arg0) == (EmbeddedType.EMBEDDED_UI_EXTENSION.value)) + return EmbeddedType.EMBEDDED_UI_EXTENSION + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): EmbeddedType { + if ((arg0) == (EmbeddedType.EMBEDDED_UI_EXTENSION.ordinal)) + return EmbeddedType.EMBEDDED_UI_EXTENSION + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class MarqueeUpdateStrategy { + static readonly DEFAULT: MarqueeUpdateStrategy = new MarqueeUpdateStrategy(0,0) + static readonly PRESERVE_POSITION: MarqueeUpdateStrategy = new MarqueeUpdateStrategy(1,1) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): MarqueeUpdateStrategy { + if ((arg0) == (MarqueeUpdateStrategy.DEFAULT.value)) + return MarqueeUpdateStrategy.DEFAULT + if ((arg0) == (MarqueeUpdateStrategy.PRESERVE_POSITION.value)) + return MarqueeUpdateStrategy.PRESERVE_POSITION + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): MarqueeUpdateStrategy { + if ((arg0) == (MarqueeUpdateStrategy.DEFAULT.ordinal)) + return MarqueeUpdateStrategy.DEFAULT + if ((arg0) == (MarqueeUpdateStrategy.PRESERVE_POSITION.ordinal)) + return MarqueeUpdateStrategy.PRESERVE_POSITION + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class TextDecorationStyle { + static readonly SOLID: TextDecorationStyle = new TextDecorationStyle(0,0) + static readonly DOUBLE: TextDecorationStyle = new TextDecorationStyle(1,1) + static readonly DOTTED: TextDecorationStyle = new TextDecorationStyle(2,2) + static readonly DASHED: TextDecorationStyle = new TextDecorationStyle(3,3) + static readonly WAVY: TextDecorationStyle = new TextDecorationStyle(4,4) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): TextDecorationStyle { + if ((arg0) == (TextDecorationStyle.SOLID.value)) + return TextDecorationStyle.SOLID + if ((arg0) == (TextDecorationStyle.DOUBLE.value)) + return TextDecorationStyle.DOUBLE + if ((arg0) == (TextDecorationStyle.DOTTED.value)) + return TextDecorationStyle.DOTTED + if ((arg0) == (TextDecorationStyle.DASHED.value)) + return TextDecorationStyle.DASHED + if ((arg0) == (TextDecorationStyle.WAVY.value)) + return TextDecorationStyle.WAVY + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): TextDecorationStyle { + if ((arg0) == (TextDecorationStyle.SOLID.ordinal)) + return TextDecorationStyle.SOLID + if ((arg0) == (TextDecorationStyle.DOUBLE.ordinal)) + return TextDecorationStyle.DOUBLE + if ((arg0) == (TextDecorationStyle.DOTTED.ordinal)) + return TextDecorationStyle.DOTTED + if ((arg0) == (TextDecorationStyle.DASHED.ordinal)) + return TextDecorationStyle.DASHED + if ((arg0) == (TextDecorationStyle.WAVY.ordinal)) + return TextDecorationStyle.WAVY + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class TextSelectableMode { + static readonly SELECTABLE_UNFOCUSABLE: TextSelectableMode = new TextSelectableMode(0,0) + static readonly SELECTABLE_FOCUSABLE: TextSelectableMode = new TextSelectableMode(1,1) + static readonly UNSELECTABLE: TextSelectableMode = new TextSelectableMode(2,2) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): TextSelectableMode { + if ((arg0) == (TextSelectableMode.SELECTABLE_UNFOCUSABLE.value)) + return TextSelectableMode.SELECTABLE_UNFOCUSABLE + if ((arg0) == (TextSelectableMode.SELECTABLE_FOCUSABLE.value)) + return TextSelectableMode.SELECTABLE_FOCUSABLE + if ((arg0) == (TextSelectableMode.UNSELECTABLE.value)) + return TextSelectableMode.UNSELECTABLE + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): TextSelectableMode { + if ((arg0) == (TextSelectableMode.SELECTABLE_UNFOCUSABLE.ordinal)) + return TextSelectableMode.SELECTABLE_UNFOCUSABLE + if ((arg0) == (TextSelectableMode.SELECTABLE_FOCUSABLE.ordinal)) + return TextSelectableMode.SELECTABLE_FOCUSABLE + if ((arg0) == (TextSelectableMode.UNSELECTABLE.ordinal)) + return TextSelectableMode.UNSELECTABLE + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class AccessibilityHoverType { + static readonly HOVER_ENTER: AccessibilityHoverType = new AccessibilityHoverType(0,0) + static readonly HOVER_MOVE: AccessibilityHoverType = new AccessibilityHoverType(1,1) + static readonly HOVER_EXIT: AccessibilityHoverType = new AccessibilityHoverType(2,2) + static readonly HOVER_CANCEL: AccessibilityHoverType = new AccessibilityHoverType(3,3) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): AccessibilityHoverType { + if ((arg0) == (AccessibilityHoverType.HOVER_ENTER.value)) + return AccessibilityHoverType.HOVER_ENTER + if ((arg0) == (AccessibilityHoverType.HOVER_MOVE.value)) + return AccessibilityHoverType.HOVER_MOVE + if ((arg0) == (AccessibilityHoverType.HOVER_EXIT.value)) + return AccessibilityHoverType.HOVER_EXIT + if ((arg0) == (AccessibilityHoverType.HOVER_CANCEL.value)) + return AccessibilityHoverType.HOVER_CANCEL + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): AccessibilityHoverType { + if ((arg0) == (AccessibilityHoverType.HOVER_ENTER.ordinal)) + return AccessibilityHoverType.HOVER_ENTER + if ((arg0) == (AccessibilityHoverType.HOVER_MOVE.ordinal)) + return AccessibilityHoverType.HOVER_MOVE + if ((arg0) == (AccessibilityHoverType.HOVER_EXIT.ordinal)) + return AccessibilityHoverType.HOVER_EXIT + if ((arg0) == (AccessibilityHoverType.HOVER_CANCEL.ordinal)) + return AccessibilityHoverType.HOVER_CANCEL + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class WidthBreakpoint { + static readonly WIDTH_XS: WidthBreakpoint = new WidthBreakpoint(0,0) + static readonly WIDTH_SM: WidthBreakpoint = new WidthBreakpoint(1,1) + static readonly WIDTH_MD: WidthBreakpoint = new WidthBreakpoint(2,2) + static readonly WIDTH_LG: WidthBreakpoint = new WidthBreakpoint(3,3) + static readonly WIDTH_XL: WidthBreakpoint = new WidthBreakpoint(4,4) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): WidthBreakpoint { + if ((arg0) == (WidthBreakpoint.WIDTH_XS.value)) + return WidthBreakpoint.WIDTH_XS + if ((arg0) == (WidthBreakpoint.WIDTH_SM.value)) + return WidthBreakpoint.WIDTH_SM + if ((arg0) == (WidthBreakpoint.WIDTH_MD.value)) + return WidthBreakpoint.WIDTH_MD + if ((arg0) == (WidthBreakpoint.WIDTH_LG.value)) + return WidthBreakpoint.WIDTH_LG + if ((arg0) == (WidthBreakpoint.WIDTH_XL.value)) + return WidthBreakpoint.WIDTH_XL + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): WidthBreakpoint { + if ((arg0) == (WidthBreakpoint.WIDTH_XS.ordinal)) + return WidthBreakpoint.WIDTH_XS + if ((arg0) == (WidthBreakpoint.WIDTH_SM.ordinal)) + return WidthBreakpoint.WIDTH_SM + if ((arg0) == (WidthBreakpoint.WIDTH_MD.ordinal)) + return WidthBreakpoint.WIDTH_MD + if ((arg0) == (WidthBreakpoint.WIDTH_LG.ordinal)) + return WidthBreakpoint.WIDTH_LG + if ((arg0) == (WidthBreakpoint.WIDTH_XL.ordinal)) + return WidthBreakpoint.WIDTH_XL + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class HeightBreakpoint { + static readonly HEIGHT_SM: HeightBreakpoint = new HeightBreakpoint(0,0) + static readonly HEIGHT_MD: HeightBreakpoint = new HeightBreakpoint(1,1) + static readonly HEIGHT_LG: HeightBreakpoint = new HeightBreakpoint(2,2) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): HeightBreakpoint { + if ((arg0) == (HeightBreakpoint.HEIGHT_SM.value)) + return HeightBreakpoint.HEIGHT_SM + if ((arg0) == (HeightBreakpoint.HEIGHT_MD.value)) + return HeightBreakpoint.HEIGHT_MD + if ((arg0) == (HeightBreakpoint.HEIGHT_LG.value)) + return HeightBreakpoint.HEIGHT_LG + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): HeightBreakpoint { + if ((arg0) == (HeightBreakpoint.HEIGHT_SM.ordinal)) + return HeightBreakpoint.HEIGHT_SM + if ((arg0) == (HeightBreakpoint.HEIGHT_MD.ordinal)) + return HeightBreakpoint.HEIGHT_MD + if ((arg0) == (HeightBreakpoint.HEIGHT_LG.ordinal)) + return HeightBreakpoint.HEIGHT_LG + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class FocusPriority { + static readonly AUTO: FocusPriority = new FocusPriority(0,0) + static readonly PRIOR: FocusPriority = new FocusPriority(2000,1) + static readonly PREVIOUS: FocusPriority = new FocusPriority(3000,2) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): FocusPriority { + if ((arg0) == (FocusPriority.AUTO.value)) + return FocusPriority.AUTO + if ((arg0) == (FocusPriority.PRIOR.value)) + return FocusPriority.PRIOR + if ((arg0) == (FocusPriority.PREVIOUS.value)) + return FocusPriority.PREVIOUS + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): FocusPriority { + if ((arg0) == (FocusPriority.AUTO.ordinal)) + return FocusPriority.AUTO + if ((arg0) == (FocusPriority.PRIOR.ordinal)) + return FocusPriority.PRIOR + if ((arg0) == (FocusPriority.PREVIOUS.ordinal)) + return FocusPriority.PREVIOUS + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class FormDimension { + static readonly DIMENSION_1_2: FormDimension = new FormDimension(0,0) + static readonly Dimension_1_2: FormDimension = FormDimension.DIMENSION_1_2 + static readonly DIMENSION_2_2: FormDimension = new FormDimension(1,1) + static readonly Dimension_2_2: FormDimension = FormDimension.DIMENSION_2_2 + static readonly DIMENSION_2_4: FormDimension = new FormDimension(2,2) + static readonly Dimension_2_4: FormDimension = FormDimension.DIMENSION_2_4 + static readonly DIMENSION_4_4: FormDimension = new FormDimension(3,3) + static readonly Dimension_4_4: FormDimension = FormDimension.DIMENSION_4_4 + static readonly DIMENSION_2_1: FormDimension = new FormDimension(4,4) + static readonly Dimension_2_1: FormDimension = FormDimension.DIMENSION_2_1 + static readonly DIMENSION_1_1: FormDimension = new FormDimension(6,5) + static readonly DIMENSION_6_4: FormDimension = new FormDimension(7,6) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): FormDimension { + if ((arg0) == (FormDimension.DIMENSION_1_2.value)) + return FormDimension.DIMENSION_1_2 + if ((arg0) == (FormDimension.DIMENSION_2_2.value)) + return FormDimension.DIMENSION_2_2 + if ((arg0) == (FormDimension.DIMENSION_2_4.value)) + return FormDimension.DIMENSION_2_4 + if ((arg0) == (FormDimension.DIMENSION_4_4.value)) + return FormDimension.DIMENSION_4_4 + if ((arg0) == (FormDimension.DIMENSION_2_1.value)) + return FormDimension.DIMENSION_2_1 + if ((arg0) == (FormDimension.DIMENSION_1_1.value)) + return FormDimension.DIMENSION_1_1 + if ((arg0) == (FormDimension.DIMENSION_6_4.value)) + return FormDimension.DIMENSION_6_4 + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): FormDimension { + if ((arg0) == (FormDimension.DIMENSION_1_2.ordinal)) + return FormDimension.DIMENSION_1_2 + if ((arg0) == (FormDimension.DIMENSION_2_2.ordinal)) + return FormDimension.DIMENSION_2_2 + if ((arg0) == (FormDimension.DIMENSION_2_4.ordinal)) + return FormDimension.DIMENSION_2_4 + if ((arg0) == (FormDimension.DIMENSION_4_4.ordinal)) + return FormDimension.DIMENSION_4_4 + if ((arg0) == (FormDimension.DIMENSION_2_1.ordinal)) + return FormDimension.DIMENSION_2_1 + if ((arg0) == (FormDimension.DIMENSION_1_1.ordinal)) + return FormDimension.DIMENSION_1_1 + if ((arg0) == (FormDimension.DIMENSION_6_4.ordinal)) + return FormDimension.DIMENSION_6_4 + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class FormRenderingMode { + static readonly FULL_COLOR: FormRenderingMode = new FormRenderingMode(0,0) + static readonly SINGLE_COLOR: FormRenderingMode = new FormRenderingMode(1,1) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): FormRenderingMode { + if ((arg0) == (FormRenderingMode.FULL_COLOR.value)) + return FormRenderingMode.FULL_COLOR + if ((arg0) == (FormRenderingMode.SINGLE_COLOR.value)) + return FormRenderingMode.SINGLE_COLOR + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): FormRenderingMode { + if ((arg0) == (FormRenderingMode.FULL_COLOR.ordinal)) + return FormRenderingMode.FULL_COLOR + if ((arg0) == (FormRenderingMode.SINGLE_COLOR.ordinal)) + return FormRenderingMode.SINGLE_COLOR + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class FormShape { + static readonly RECT: FormShape = new FormShape(1,0) + static readonly CIRCLE: FormShape = new FormShape(2,1) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): FormShape { + if ((arg0) == (FormShape.RECT.value)) + return FormShape.RECT + if ((arg0) == (FormShape.CIRCLE.value)) + return FormShape.CIRCLE + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): FormShape { + if ((arg0) == (FormShape.RECT.ordinal)) + return FormShape.RECT + if ((arg0) == (FormShape.CIRCLE.ordinal)) + return FormShape.CIRCLE + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class PanDirection { + static readonly NONE: PanDirection = new PanDirection(0,0) + static readonly None: PanDirection = PanDirection.NONE + static readonly HORIZONTAL: PanDirection = new PanDirection(1,1) + static readonly Horizontal: PanDirection = PanDirection.HORIZONTAL + static readonly LEFT: PanDirection = new PanDirection(2,2) + static readonly Left: PanDirection = PanDirection.LEFT + static readonly RIGHT: PanDirection = new PanDirection(3,3) + static readonly Right: PanDirection = PanDirection.RIGHT + static readonly VERTICAL: PanDirection = new PanDirection(4,4) + static readonly Vertical: PanDirection = PanDirection.VERTICAL + static readonly UP: PanDirection = new PanDirection(5,5) + static readonly Up: PanDirection = PanDirection.UP + static readonly DOWN: PanDirection = new PanDirection(6,6) + static readonly Down: PanDirection = PanDirection.DOWN + static readonly ALL: PanDirection = new PanDirection(7,7) + static readonly All: PanDirection = PanDirection.ALL + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): PanDirection { + if ((arg0) == (PanDirection.NONE.value)) + return PanDirection.NONE + if ((arg0) == (PanDirection.HORIZONTAL.value)) + return PanDirection.HORIZONTAL + if ((arg0) == (PanDirection.LEFT.value)) + return PanDirection.LEFT + if ((arg0) == (PanDirection.RIGHT.value)) + return PanDirection.RIGHT + if ((arg0) == (PanDirection.VERTICAL.value)) + return PanDirection.VERTICAL + if ((arg0) == (PanDirection.UP.value)) + return PanDirection.UP + if ((arg0) == (PanDirection.DOWN.value)) + return PanDirection.DOWN + if ((arg0) == (PanDirection.ALL.value)) + return PanDirection.ALL + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): PanDirection { + if ((arg0) == (PanDirection.NONE.ordinal)) + return PanDirection.NONE + if ((arg0) == (PanDirection.HORIZONTAL.ordinal)) + return PanDirection.HORIZONTAL + if ((arg0) == (PanDirection.LEFT.ordinal)) + return PanDirection.LEFT + if ((arg0) == (PanDirection.RIGHT.ordinal)) + return PanDirection.RIGHT + if ((arg0) == (PanDirection.VERTICAL.ordinal)) + return PanDirection.VERTICAL + if ((arg0) == (PanDirection.UP.ordinal)) + return PanDirection.UP + if ((arg0) == (PanDirection.DOWN.ordinal)) + return PanDirection.DOWN + if ((arg0) == (PanDirection.ALL.ordinal)) + return PanDirection.ALL + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class SwipeDirection { + static readonly NONE: SwipeDirection = new SwipeDirection(0,0) + static readonly None: SwipeDirection = SwipeDirection.NONE + static readonly HORIZONTAL: SwipeDirection = new SwipeDirection(1,1) + static readonly Horizontal: SwipeDirection = SwipeDirection.HORIZONTAL + static readonly VERTICAL: SwipeDirection = new SwipeDirection(2,2) + static readonly Vertical: SwipeDirection = SwipeDirection.VERTICAL + static readonly ALL: SwipeDirection = new SwipeDirection(3,3) + static readonly All: SwipeDirection = SwipeDirection.ALL + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): SwipeDirection { + if ((arg0) == (SwipeDirection.NONE.value)) + return SwipeDirection.NONE + if ((arg0) == (SwipeDirection.HORIZONTAL.value)) + return SwipeDirection.HORIZONTAL + if ((arg0) == (SwipeDirection.VERTICAL.value)) + return SwipeDirection.VERTICAL + if ((arg0) == (SwipeDirection.ALL.value)) + return SwipeDirection.ALL + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): SwipeDirection { + if ((arg0) == (SwipeDirection.NONE.ordinal)) + return SwipeDirection.NONE + if ((arg0) == (SwipeDirection.HORIZONTAL.ordinal)) + return SwipeDirection.HORIZONTAL + if ((arg0) == (SwipeDirection.VERTICAL.ordinal)) + return SwipeDirection.VERTICAL + if ((arg0) == (SwipeDirection.ALL.ordinal)) + return SwipeDirection.ALL + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class GestureMode { + static readonly SEQUENCE: GestureMode = new GestureMode(0,0) + static readonly Sequence: GestureMode = GestureMode.SEQUENCE + static readonly PARALLEL: GestureMode = new GestureMode(1,1) + static readonly Parallel: GestureMode = GestureMode.PARALLEL + static readonly EXCLUSIVE: GestureMode = new GestureMode(2,2) + static readonly Exclusive: GestureMode = GestureMode.EXCLUSIVE + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): GestureMode { + if ((arg0) == (GestureMode.SEQUENCE.value)) + return GestureMode.SEQUENCE + if ((arg0) == (GestureMode.PARALLEL.value)) + return GestureMode.PARALLEL + if ((arg0) == (GestureMode.EXCLUSIVE.value)) + return GestureMode.EXCLUSIVE + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): GestureMode { + if ((arg0) == (GestureMode.SEQUENCE.ordinal)) + return GestureMode.SEQUENCE + if ((arg0) == (GestureMode.PARALLEL.ordinal)) + return GestureMode.PARALLEL + if ((arg0) == (GestureMode.EXCLUSIVE.ordinal)) + return GestureMode.EXCLUSIVE + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class GestureMask { + static readonly NORMAL: GestureMask = new GestureMask(0,0) + static readonly Normal: GestureMask = GestureMask.NORMAL + static readonly IGNORE_INTERNAL: GestureMask = new GestureMask(1,1) + static readonly IgnoreInternal: GestureMask = GestureMask.IGNORE_INTERNAL + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): GestureMask { + if ((arg0) == (GestureMask.NORMAL.value)) + return GestureMask.NORMAL + if ((arg0) == (GestureMask.IGNORE_INTERNAL.value)) + return GestureMask.IGNORE_INTERNAL + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): GestureMask { + if ((arg0) == (GestureMask.NORMAL.ordinal)) + return GestureMask.NORMAL + if ((arg0) == (GestureMask.IGNORE_INTERNAL.ordinal)) + return GestureMask.IGNORE_INTERNAL + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class GestureJudgeResult { + static readonly CONTINUE: GestureJudgeResult = new GestureJudgeResult(0,0) + static readonly REJECT: GestureJudgeResult = new GestureJudgeResult(1,1) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): GestureJudgeResult { + if ((arg0) == (GestureJudgeResult.CONTINUE.value)) + return GestureJudgeResult.CONTINUE + if ((arg0) == (GestureJudgeResult.REJECT.value)) + return GestureJudgeResult.REJECT + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): GestureJudgeResult { + if ((arg0) == (GestureJudgeResult.CONTINUE.ordinal)) + return GestureJudgeResult.CONTINUE + if ((arg0) == (GestureJudgeResult.REJECT.ordinal)) + return GestureJudgeResult.REJECT + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class GestureControl_GestureType { + static readonly TAP_GESTURE: GestureControl_GestureType = new GestureControl_GestureType(0,0) + static readonly LONG_PRESS_GESTURE: GestureControl_GestureType = new GestureControl_GestureType(1,1) + static readonly PAN_GESTURE: GestureControl_GestureType = new GestureControl_GestureType(2,2) + static readonly PINCH_GESTURE: GestureControl_GestureType = new GestureControl_GestureType(3,3) + static readonly SWIPE_GESTURE: GestureControl_GestureType = new GestureControl_GestureType(4,4) + static readonly ROTATION_GESTURE: GestureControl_GestureType = new GestureControl_GestureType(5,5) + static readonly DRAG: GestureControl_GestureType = new GestureControl_GestureType(6,6) + static readonly CLICK: GestureControl_GestureType = new GestureControl_GestureType(7,7) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): GestureControl_GestureType { + if ((arg0) == (GestureControl_GestureType.TAP_GESTURE.value)) + return GestureControl_GestureType.TAP_GESTURE + if ((arg0) == (GestureControl_GestureType.LONG_PRESS_GESTURE.value)) + return GestureControl_GestureType.LONG_PRESS_GESTURE + if ((arg0) == (GestureControl_GestureType.PAN_GESTURE.value)) + return GestureControl_GestureType.PAN_GESTURE + if ((arg0) == (GestureControl_GestureType.PINCH_GESTURE.value)) + return GestureControl_GestureType.PINCH_GESTURE + if ((arg0) == (GestureControl_GestureType.SWIPE_GESTURE.value)) + return GestureControl_GestureType.SWIPE_GESTURE + if ((arg0) == (GestureControl_GestureType.ROTATION_GESTURE.value)) + return GestureControl_GestureType.ROTATION_GESTURE + if ((arg0) == (GestureControl_GestureType.DRAG.value)) + return GestureControl_GestureType.DRAG + if ((arg0) == (GestureControl_GestureType.CLICK.value)) + return GestureControl_GestureType.CLICK + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): GestureControl_GestureType { + if ((arg0) == (GestureControl_GestureType.TAP_GESTURE.ordinal)) + return GestureControl_GestureType.TAP_GESTURE + if ((arg0) == (GestureControl_GestureType.LONG_PRESS_GESTURE.ordinal)) + return GestureControl_GestureType.LONG_PRESS_GESTURE + if ((arg0) == (GestureControl_GestureType.PAN_GESTURE.ordinal)) + return GestureControl_GestureType.PAN_GESTURE + if ((arg0) == (GestureControl_GestureType.PINCH_GESTURE.ordinal)) + return GestureControl_GestureType.PINCH_GESTURE + if ((arg0) == (GestureControl_GestureType.SWIPE_GESTURE.ordinal)) + return GestureControl_GestureType.SWIPE_GESTURE + if ((arg0) == (GestureControl_GestureType.ROTATION_GESTURE.ordinal)) + return GestureControl_GestureType.ROTATION_GESTURE + if ((arg0) == (GestureControl_GestureType.DRAG.ordinal)) + return GestureControl_GestureType.DRAG + if ((arg0) == (GestureControl_GestureType.CLICK.ordinal)) + return GestureControl_GestureType.CLICK + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class GesturePriority { + static readonly NORMAL: GesturePriority = new GesturePriority(0,0) + static readonly PRIORITY: GesturePriority = new GesturePriority(1,1) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): GesturePriority { + if ((arg0) == (GesturePriority.NORMAL.value)) + return GesturePriority.NORMAL + if ((arg0) == (GesturePriority.PRIORITY.value)) + return GesturePriority.PRIORITY + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): GesturePriority { + if ((arg0) == (GesturePriority.NORMAL.ordinal)) + return GesturePriority.NORMAL + if ((arg0) == (GesturePriority.PRIORITY.ordinal)) + return GesturePriority.PRIORITY + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class GestureRecognizerState { + static readonly READY: GestureRecognizerState = new GestureRecognizerState(0,0) + static readonly DETECTING: GestureRecognizerState = new GestureRecognizerState(1,1) + static readonly PENDING: GestureRecognizerState = new GestureRecognizerState(2,2) + static readonly BLOCKED: GestureRecognizerState = new GestureRecognizerState(3,3) + static readonly SUCCESSFUL: GestureRecognizerState = new GestureRecognizerState(4,4) + static readonly FAILED: GestureRecognizerState = new GestureRecognizerState(5,5) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): GestureRecognizerState { + if ((arg0) == (GestureRecognizerState.READY.value)) + return GestureRecognizerState.READY + if ((arg0) == (GestureRecognizerState.DETECTING.value)) + return GestureRecognizerState.DETECTING + if ((arg0) == (GestureRecognizerState.PENDING.value)) + return GestureRecognizerState.PENDING + if ((arg0) == (GestureRecognizerState.BLOCKED.value)) + return GestureRecognizerState.BLOCKED + if ((arg0) == (GestureRecognizerState.SUCCESSFUL.value)) + return GestureRecognizerState.SUCCESSFUL + if ((arg0) == (GestureRecognizerState.FAILED.value)) + return GestureRecognizerState.FAILED + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): GestureRecognizerState { + if ((arg0) == (GestureRecognizerState.READY.ordinal)) + return GestureRecognizerState.READY + if ((arg0) == (GestureRecognizerState.DETECTING.ordinal)) + return GestureRecognizerState.DETECTING + if ((arg0) == (GestureRecognizerState.PENDING.ordinal)) + return GestureRecognizerState.PENDING + if ((arg0) == (GestureRecognizerState.BLOCKED.ordinal)) + return GestureRecognizerState.BLOCKED + if ((arg0) == (GestureRecognizerState.SUCCESSFUL.ordinal)) + return GestureRecognizerState.SUCCESSFUL + if ((arg0) == (GestureRecognizerState.FAILED.ordinal)) + return GestureRecognizerState.FAILED + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class GridDirection { + static readonly ROW: GridDirection = new GridDirection(0,0) + static readonly Row: GridDirection = GridDirection.ROW + static readonly COLUMN: GridDirection = new GridDirection(1,1) + static readonly Column: GridDirection = GridDirection.COLUMN + static readonly ROW_REVERSE: GridDirection = new GridDirection(2,2) + static readonly RowReverse: GridDirection = GridDirection.ROW_REVERSE + static readonly COLUMN_REVERSE: GridDirection = new GridDirection(3,3) + static readonly ColumnReverse: GridDirection = GridDirection.COLUMN_REVERSE + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): GridDirection { + if ((arg0) == (GridDirection.ROW.value)) + return GridDirection.ROW + if ((arg0) == (GridDirection.COLUMN.value)) + return GridDirection.COLUMN + if ((arg0) == (GridDirection.ROW_REVERSE.value)) + return GridDirection.ROW_REVERSE + if ((arg0) == (GridDirection.COLUMN_REVERSE.value)) + return GridDirection.COLUMN_REVERSE + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): GridDirection { + if ((arg0) == (GridDirection.ROW.ordinal)) + return GridDirection.ROW + if ((arg0) == (GridDirection.COLUMN.ordinal)) + return GridDirection.COLUMN + if ((arg0) == (GridDirection.ROW_REVERSE.ordinal)) + return GridDirection.ROW_REVERSE + if ((arg0) == (GridDirection.COLUMN_REVERSE.ordinal)) + return GridDirection.COLUMN_REVERSE + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class GridItemAlignment { + static readonly DEFAULT: GridItemAlignment = new GridItemAlignment(0,0) + static readonly STRETCH: GridItemAlignment = new GridItemAlignment(1,1) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): GridItemAlignment { + if ((arg0) == (GridItemAlignment.DEFAULT.value)) + return GridItemAlignment.DEFAULT + if ((arg0) == (GridItemAlignment.STRETCH.value)) + return GridItemAlignment.STRETCH + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): GridItemAlignment { + if ((arg0) == (GridItemAlignment.DEFAULT.ordinal)) + return GridItemAlignment.DEFAULT + if ((arg0) == (GridItemAlignment.STRETCH.ordinal)) + return GridItemAlignment.STRETCH + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class GridItemStyle { + static readonly NONE: GridItemStyle = new GridItemStyle(0,0) + static readonly PLAIN: GridItemStyle = new GridItemStyle(1,1) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): GridItemStyle { + if ((arg0) == (GridItemStyle.NONE.value)) + return GridItemStyle.NONE + if ((arg0) == (GridItemStyle.PLAIN.value)) + return GridItemStyle.PLAIN + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): GridItemStyle { + if ((arg0) == (GridItemStyle.NONE.ordinal)) + return GridItemStyle.NONE + if ((arg0) == (GridItemStyle.PLAIN.ordinal)) + return GridItemStyle.PLAIN + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class SizeType { + static readonly AUTO: SizeType = new SizeType(0,0) + static readonly Auto: SizeType = SizeType.AUTO + static readonly XS: SizeType = new SizeType(1,1) + static readonly SM: SizeType = new SizeType(2,2) + static readonly MD: SizeType = new SizeType(3,3) + static readonly LG: SizeType = new SizeType(4,4) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): SizeType { + if ((arg0) == (SizeType.AUTO.value)) + return SizeType.AUTO + if ((arg0) == (SizeType.XS.value)) + return SizeType.XS + if ((arg0) == (SizeType.SM.value)) + return SizeType.SM + if ((arg0) == (SizeType.MD.value)) + return SizeType.MD + if ((arg0) == (SizeType.LG.value)) + return SizeType.LG + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): SizeType { + if ((arg0) == (SizeType.AUTO.ordinal)) + return SizeType.AUTO + if ((arg0) == (SizeType.XS.ordinal)) + return SizeType.XS + if ((arg0) == (SizeType.SM.ordinal)) + return SizeType.SM + if ((arg0) == (SizeType.MD.ordinal)) + return SizeType.MD + if ((arg0) == (SizeType.LG.ordinal)) + return SizeType.LG + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class BreakpointsReference { + static readonly WINDOW_SIZE: BreakpointsReference = new BreakpointsReference(0,0) + static readonly WindowSize: BreakpointsReference = BreakpointsReference.WINDOW_SIZE + static readonly COMPONENT_SIZE: BreakpointsReference = new BreakpointsReference(1,1) + static readonly ComponentSize: BreakpointsReference = BreakpointsReference.COMPONENT_SIZE + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): BreakpointsReference { + if ((arg0) == (BreakpointsReference.WINDOW_SIZE.value)) + return BreakpointsReference.WINDOW_SIZE + if ((arg0) == (BreakpointsReference.COMPONENT_SIZE.value)) + return BreakpointsReference.COMPONENT_SIZE + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): BreakpointsReference { + if ((arg0) == (BreakpointsReference.WINDOW_SIZE.ordinal)) + return BreakpointsReference.WINDOW_SIZE + if ((arg0) == (BreakpointsReference.COMPONENT_SIZE.ordinal)) + return BreakpointsReference.COMPONENT_SIZE + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class GridRowDirection { + static readonly ROW: GridRowDirection = new GridRowDirection(0,0) + static readonly Row: GridRowDirection = GridRowDirection.ROW + static readonly ROW_REVERSE: GridRowDirection = new GridRowDirection(1,1) + static readonly RowReverse: GridRowDirection = GridRowDirection.ROW_REVERSE + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): GridRowDirection { + if ((arg0) == (GridRowDirection.ROW.value)) + return GridRowDirection.ROW + if ((arg0) == (GridRowDirection.ROW_REVERSE.value)) + return GridRowDirection.ROW_REVERSE + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): GridRowDirection { + if ((arg0) == (GridRowDirection.ROW.ordinal)) + return GridRowDirection.ROW + if ((arg0) == (GridRowDirection.ROW_REVERSE.ordinal)) + return GridRowDirection.ROW_REVERSE + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class ImageRenderMode { + static readonly ORIGINAL: ImageRenderMode = new ImageRenderMode(0,0) + static readonly Original: ImageRenderMode = ImageRenderMode.ORIGINAL + static readonly TEMPLATE: ImageRenderMode = new ImageRenderMode(1,1) + static readonly Template: ImageRenderMode = ImageRenderMode.TEMPLATE + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): ImageRenderMode { + if ((arg0) == (ImageRenderMode.ORIGINAL.value)) + return ImageRenderMode.ORIGINAL + if ((arg0) == (ImageRenderMode.TEMPLATE.value)) + return ImageRenderMode.TEMPLATE + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): ImageRenderMode { + if ((arg0) == (ImageRenderMode.ORIGINAL.ordinal)) + return ImageRenderMode.ORIGINAL + if ((arg0) == (ImageRenderMode.TEMPLATE.ordinal)) + return ImageRenderMode.TEMPLATE + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class ImageContent { + static readonly EMPTY: ImageContent = new ImageContent(0,0) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): ImageContent { + if ((arg0) == (ImageContent.EMPTY.value)) + return ImageContent.EMPTY + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): ImageContent { + if ((arg0) == (ImageContent.EMPTY.ordinal)) + return ImageContent.EMPTY + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class DynamicRangeMode { + static readonly HIGH: DynamicRangeMode = new DynamicRangeMode(0,0) + static readonly CONSTRAINT: DynamicRangeMode = new DynamicRangeMode(1,1) + static readonly STANDARD: DynamicRangeMode = new DynamicRangeMode(2,2) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): DynamicRangeMode { + if ((arg0) == (DynamicRangeMode.HIGH.value)) + return DynamicRangeMode.HIGH + if ((arg0) == (DynamicRangeMode.CONSTRAINT.value)) + return DynamicRangeMode.CONSTRAINT + if ((arg0) == (DynamicRangeMode.STANDARD.value)) + return DynamicRangeMode.STANDARD + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): DynamicRangeMode { + if ((arg0) == (DynamicRangeMode.HIGH.ordinal)) + return DynamicRangeMode.HIGH + if ((arg0) == (DynamicRangeMode.CONSTRAINT.ordinal)) + return DynamicRangeMode.CONSTRAINT + if ((arg0) == (DynamicRangeMode.STANDARD.ordinal)) + return DynamicRangeMode.STANDARD + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class ImageInterpolation { + static readonly NONE: ImageInterpolation = new ImageInterpolation(0,0) + static readonly None: ImageInterpolation = ImageInterpolation.NONE + static readonly LOW: ImageInterpolation = new ImageInterpolation(1,1) + static readonly Low: ImageInterpolation = ImageInterpolation.LOW + static readonly MEDIUM: ImageInterpolation = new ImageInterpolation(2,2) + static readonly Medium: ImageInterpolation = ImageInterpolation.MEDIUM + static readonly HIGH: ImageInterpolation = new ImageInterpolation(3,3) + static readonly High: ImageInterpolation = ImageInterpolation.HIGH + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): ImageInterpolation { + if ((arg0) == (ImageInterpolation.NONE.value)) + return ImageInterpolation.NONE + if ((arg0) == (ImageInterpolation.LOW.value)) + return ImageInterpolation.LOW + if ((arg0) == (ImageInterpolation.MEDIUM.value)) + return ImageInterpolation.MEDIUM + if ((arg0) == (ImageInterpolation.HIGH.value)) + return ImageInterpolation.HIGH + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): ImageInterpolation { + if ((arg0) == (ImageInterpolation.NONE.ordinal)) + return ImageInterpolation.NONE + if ((arg0) == (ImageInterpolation.LOW.ordinal)) + return ImageInterpolation.LOW + if ((arg0) == (ImageInterpolation.MEDIUM.ordinal)) + return ImageInterpolation.MEDIUM + if ((arg0) == (ImageInterpolation.HIGH.ordinal)) + return ImageInterpolation.HIGH + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class ImageAnalyzerType { + static readonly SUBJECT: ImageAnalyzerType = new ImageAnalyzerType(0,0) + static readonly TEXT: ImageAnalyzerType = new ImageAnalyzerType(1,1) + static readonly OBJECT_LOOKUP: ImageAnalyzerType = new ImageAnalyzerType(2,2) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): ImageAnalyzerType { + if ((arg0) == (ImageAnalyzerType.SUBJECT.value)) + return ImageAnalyzerType.SUBJECT + if ((arg0) == (ImageAnalyzerType.TEXT.value)) + return ImageAnalyzerType.TEXT + if ((arg0) == (ImageAnalyzerType.OBJECT_LOOKUP.value)) + return ImageAnalyzerType.OBJECT_LOOKUP + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): ImageAnalyzerType { + if ((arg0) == (ImageAnalyzerType.SUBJECT.ordinal)) + return ImageAnalyzerType.SUBJECT + if ((arg0) == (ImageAnalyzerType.TEXT.ordinal)) + return ImageAnalyzerType.TEXT + if ((arg0) == (ImageAnalyzerType.OBJECT_LOOKUP.ordinal)) + return ImageAnalyzerType.OBJECT_LOOKUP + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class DataOperationType { + static readonly ADD: DataOperationType = new DataOperationType("add",0) + static readonly DELETE: DataOperationType = new DataOperationType("delete",1) + static readonly EXCHANGE: DataOperationType = new DataOperationType("exchange",2) + static readonly MOVE: DataOperationType = new DataOperationType("move",3) + static readonly CHANGE: DataOperationType = new DataOperationType("change",4) + static readonly RELOAD: DataOperationType = new DataOperationType("reload",5) + constructor(value: string, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: string + public readonly ordinal: int32 + public static of(arg0: string): DataOperationType { + if ((arg0) == (DataOperationType.ADD.value)) + return DataOperationType.ADD + if ((arg0) == (DataOperationType.DELETE.value)) + return DataOperationType.DELETE + if ((arg0) == (DataOperationType.EXCHANGE.value)) + return DataOperationType.EXCHANGE + if ((arg0) == (DataOperationType.MOVE.value)) + return DataOperationType.MOVE + if ((arg0) == (DataOperationType.CHANGE.value)) + return DataOperationType.CHANGE + if ((arg0) == (DataOperationType.RELOAD.value)) + return DataOperationType.RELOAD + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): DataOperationType { + if ((arg0) == (DataOperationType.ADD.ordinal)) + return DataOperationType.ADD + if ((arg0) == (DataOperationType.DELETE.ordinal)) + return DataOperationType.DELETE + if ((arg0) == (DataOperationType.EXCHANGE.ordinal)) + return DataOperationType.EXCHANGE + if ((arg0) == (DataOperationType.MOVE.ordinal)) + return DataOperationType.MOVE + if ((arg0) == (DataOperationType.CHANGE.ordinal)) + return DataOperationType.CHANGE + if ((arg0) == (DataOperationType.RELOAD.ordinal)) + return DataOperationType.RELOAD + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class ScrollState { + static readonly IDLE: ScrollState = new ScrollState(0,0) + static readonly Idle: ScrollState = ScrollState.IDLE + static readonly SCROLL: ScrollState = new ScrollState(1,1) + static readonly Scroll: ScrollState = ScrollState.SCROLL + static readonly FLING: ScrollState = new ScrollState(2,2) + static readonly Fling: ScrollState = ScrollState.FLING + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): ScrollState { + if ((arg0) == (ScrollState.IDLE.value)) + return ScrollState.IDLE + if ((arg0) == (ScrollState.SCROLL.value)) + return ScrollState.SCROLL + if ((arg0) == (ScrollState.FLING.value)) + return ScrollState.FLING + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): ScrollState { + if ((arg0) == (ScrollState.IDLE.ordinal)) + return ScrollState.IDLE + if ((arg0) == (ScrollState.SCROLL.ordinal)) + return ScrollState.SCROLL + if ((arg0) == (ScrollState.FLING.ordinal)) + return ScrollState.FLING + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class ListItemAlign { + static readonly START: ListItemAlign = new ListItemAlign(0,0) + static readonly Start: ListItemAlign = ListItemAlign.START + static readonly CENTER: ListItemAlign = new ListItemAlign(1,1) + static readonly Center: ListItemAlign = ListItemAlign.CENTER + static readonly END: ListItemAlign = new ListItemAlign(2,2) + static readonly End: ListItemAlign = ListItemAlign.END + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): ListItemAlign { + if ((arg0) == (ListItemAlign.START.value)) + return ListItemAlign.START + if ((arg0) == (ListItemAlign.CENTER.value)) + return ListItemAlign.CENTER + if ((arg0) == (ListItemAlign.END.value)) + return ListItemAlign.END + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): ListItemAlign { + if ((arg0) == (ListItemAlign.START.ordinal)) + return ListItemAlign.START + if ((arg0) == (ListItemAlign.CENTER.ordinal)) + return ListItemAlign.CENTER + if ((arg0) == (ListItemAlign.END.ordinal)) + return ListItemAlign.END + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class ListItemGroupArea { + static readonly NONE: ListItemGroupArea = new ListItemGroupArea(0,0) + static readonly IN_LIST_ITEM_AREA: ListItemGroupArea = new ListItemGroupArea(1,1) + static readonly IN_HEADER_AREA: ListItemGroupArea = new ListItemGroupArea(2,2) + static readonly IN_FOOTER_AREA: ListItemGroupArea = new ListItemGroupArea(3,3) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): ListItemGroupArea { + if ((arg0) == (ListItemGroupArea.NONE.value)) + return ListItemGroupArea.NONE + if ((arg0) == (ListItemGroupArea.IN_LIST_ITEM_AREA.value)) + return ListItemGroupArea.IN_LIST_ITEM_AREA + if ((arg0) == (ListItemGroupArea.IN_HEADER_AREA.value)) + return ListItemGroupArea.IN_HEADER_AREA + if ((arg0) == (ListItemGroupArea.IN_FOOTER_AREA.value)) + return ListItemGroupArea.IN_FOOTER_AREA + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): ListItemGroupArea { + if ((arg0) == (ListItemGroupArea.NONE.ordinal)) + return ListItemGroupArea.NONE + if ((arg0) == (ListItemGroupArea.IN_LIST_ITEM_AREA.ordinal)) + return ListItemGroupArea.IN_LIST_ITEM_AREA + if ((arg0) == (ListItemGroupArea.IN_HEADER_AREA.ordinal)) + return ListItemGroupArea.IN_HEADER_AREA + if ((arg0) == (ListItemGroupArea.IN_FOOTER_AREA.ordinal)) + return ListItemGroupArea.IN_FOOTER_AREA + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class StickyStyle { + static readonly NONE: StickyStyle = new StickyStyle(0,0) + static readonly None: StickyStyle = StickyStyle.NONE + static readonly HEADER: StickyStyle = new StickyStyle(1,1) + static readonly Header: StickyStyle = StickyStyle.HEADER + static readonly FOOTER: StickyStyle = new StickyStyle(2,2) + static readonly Footer: StickyStyle = StickyStyle.FOOTER + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): StickyStyle { + if ((arg0) == (StickyStyle.NONE.value)) + return StickyStyle.NONE + if ((arg0) == (StickyStyle.HEADER.value)) + return StickyStyle.HEADER + if ((arg0) == (StickyStyle.FOOTER.value)) + return StickyStyle.FOOTER + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): StickyStyle { + if ((arg0) == (StickyStyle.NONE.ordinal)) + return StickyStyle.NONE + if ((arg0) == (StickyStyle.HEADER.ordinal)) + return StickyStyle.HEADER + if ((arg0) == (StickyStyle.FOOTER.ordinal)) + return StickyStyle.FOOTER + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class ChainEdgeEffect { + static readonly DEFAULT: ChainEdgeEffect = new ChainEdgeEffect(0,0) + static readonly STRETCH: ChainEdgeEffect = new ChainEdgeEffect(1,1) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): ChainEdgeEffect { + if ((arg0) == (ChainEdgeEffect.DEFAULT.value)) + return ChainEdgeEffect.DEFAULT + if ((arg0) == (ChainEdgeEffect.STRETCH.value)) + return ChainEdgeEffect.STRETCH + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): ChainEdgeEffect { + if ((arg0) == (ChainEdgeEffect.DEFAULT.ordinal)) + return ChainEdgeEffect.DEFAULT + if ((arg0) == (ChainEdgeEffect.STRETCH.ordinal)) + return ChainEdgeEffect.STRETCH + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class ScrollSnapAlign { + static readonly NONE: ScrollSnapAlign = new ScrollSnapAlign(0,0) + static readonly START: ScrollSnapAlign = new ScrollSnapAlign(1,1) + static readonly CENTER: ScrollSnapAlign = new ScrollSnapAlign(2,2) + static readonly END: ScrollSnapAlign = new ScrollSnapAlign(3,3) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): ScrollSnapAlign { + if ((arg0) == (ScrollSnapAlign.NONE.value)) + return ScrollSnapAlign.NONE + if ((arg0) == (ScrollSnapAlign.START.value)) + return ScrollSnapAlign.START + if ((arg0) == (ScrollSnapAlign.CENTER.value)) + return ScrollSnapAlign.CENTER + if ((arg0) == (ScrollSnapAlign.END.value)) + return ScrollSnapAlign.END + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): ScrollSnapAlign { + if ((arg0) == (ScrollSnapAlign.NONE.ordinal)) + return ScrollSnapAlign.NONE + if ((arg0) == (ScrollSnapAlign.START.ordinal)) + return ScrollSnapAlign.START + if ((arg0) == (ScrollSnapAlign.CENTER.ordinal)) + return ScrollSnapAlign.CENTER + if ((arg0) == (ScrollSnapAlign.END.ordinal)) + return ScrollSnapAlign.END + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class Sticky { + static readonly NONE: Sticky = new Sticky(0,0) + static readonly None: Sticky = Sticky.NONE + static readonly NORMAL: Sticky = new Sticky(1,1) + static readonly Normal: Sticky = Sticky.NORMAL + static readonly OPACITY: Sticky = new Sticky(2,2) + static readonly Opacity: Sticky = Sticky.OPACITY + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): Sticky { + if ((arg0) == (Sticky.NONE.value)) + return Sticky.NONE + if ((arg0) == (Sticky.NORMAL.value)) + return Sticky.NORMAL + if ((arg0) == (Sticky.OPACITY.value)) + return Sticky.OPACITY + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): Sticky { + if ((arg0) == (Sticky.NONE.ordinal)) + return Sticky.NONE + if ((arg0) == (Sticky.NORMAL.ordinal)) + return Sticky.NORMAL + if ((arg0) == (Sticky.OPACITY.ordinal)) + return Sticky.OPACITY + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class EditMode { + static readonly NONE: EditMode = new EditMode(0,0) + static readonly None: EditMode = EditMode.NONE + static readonly DELETABLE: EditMode = new EditMode(1,1) + static readonly Deletable: EditMode = EditMode.DELETABLE + static readonly MOVABLE: EditMode = new EditMode(2,2) + static readonly Movable: EditMode = EditMode.MOVABLE + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): EditMode { + if ((arg0) == (EditMode.NONE.value)) + return EditMode.NONE + if ((arg0) == (EditMode.DELETABLE.value)) + return EditMode.DELETABLE + if ((arg0) == (EditMode.MOVABLE.value)) + return EditMode.MOVABLE + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): EditMode { + if ((arg0) == (EditMode.NONE.ordinal)) + return EditMode.NONE + if ((arg0) == (EditMode.DELETABLE.ordinal)) + return EditMode.DELETABLE + if ((arg0) == (EditMode.MOVABLE.ordinal)) + return EditMode.MOVABLE + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class SwipeEdgeEffect { + static readonly SPRING: SwipeEdgeEffect = new SwipeEdgeEffect(0,0) + static readonly Spring: SwipeEdgeEffect = SwipeEdgeEffect.SPRING + static readonly NONE: SwipeEdgeEffect = new SwipeEdgeEffect(1,1) + static readonly None: SwipeEdgeEffect = SwipeEdgeEffect.NONE + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): SwipeEdgeEffect { + if ((arg0) == (SwipeEdgeEffect.SPRING.value)) + return SwipeEdgeEffect.SPRING + if ((arg0) == (SwipeEdgeEffect.NONE.value)) + return SwipeEdgeEffect.NONE + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): SwipeEdgeEffect { + if ((arg0) == (SwipeEdgeEffect.SPRING.ordinal)) + return SwipeEdgeEffect.SPRING + if ((arg0) == (SwipeEdgeEffect.NONE.ordinal)) + return SwipeEdgeEffect.NONE + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class SwipeActionState { + static readonly COLLAPSED: SwipeActionState = new SwipeActionState(0,0) + static readonly EXPANDED: SwipeActionState = new SwipeActionState(1,1) + static readonly ACTIONING: SwipeActionState = new SwipeActionState(2,2) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): SwipeActionState { + if ((arg0) == (SwipeActionState.COLLAPSED.value)) + return SwipeActionState.COLLAPSED + if ((arg0) == (SwipeActionState.EXPANDED.value)) + return SwipeActionState.EXPANDED + if ((arg0) == (SwipeActionState.ACTIONING.value)) + return SwipeActionState.ACTIONING + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): SwipeActionState { + if ((arg0) == (SwipeActionState.COLLAPSED.ordinal)) + return SwipeActionState.COLLAPSED + if ((arg0) == (SwipeActionState.EXPANDED.ordinal)) + return SwipeActionState.EXPANDED + if ((arg0) == (SwipeActionState.ACTIONING.ordinal)) + return SwipeActionState.ACTIONING + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class ListItemStyle { + static readonly NONE: ListItemStyle = new ListItemStyle(0,0) + static readonly CARD: ListItemStyle = new ListItemStyle(1,1) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): ListItemStyle { + if ((arg0) == (ListItemStyle.NONE.value)) + return ListItemStyle.NONE + if ((arg0) == (ListItemStyle.CARD.value)) + return ListItemStyle.CARD + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): ListItemStyle { + if ((arg0) == (ListItemStyle.NONE.ordinal)) + return ListItemStyle.NONE + if ((arg0) == (ListItemStyle.CARD.ordinal)) + return ListItemStyle.CARD + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class ListItemGroupStyle { + static readonly NONE: ListItemGroupStyle = new ListItemGroupStyle(0,0) + static readonly CARD: ListItemGroupStyle = new ListItemGroupStyle(1,1) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): ListItemGroupStyle { + if ((arg0) == (ListItemGroupStyle.NONE.value)) + return ListItemGroupStyle.NONE + if ((arg0) == (ListItemGroupStyle.CARD.value)) + return ListItemGroupStyle.CARD + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): ListItemGroupStyle { + if ((arg0) == (ListItemGroupStyle.NONE.ordinal)) + return ListItemGroupStyle.NONE + if ((arg0) == (ListItemGroupStyle.CARD.ordinal)) + return ListItemGroupStyle.CARD + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class LoadingProgressStyle { + static readonly DEFAULT: LoadingProgressStyle = new LoadingProgressStyle(0,0) + static readonly Default: LoadingProgressStyle = LoadingProgressStyle.DEFAULT + static readonly CIRCULAR: LoadingProgressStyle = new LoadingProgressStyle(1,1) + static readonly Circular: LoadingProgressStyle = LoadingProgressStyle.CIRCULAR + static readonly ORBITAL: LoadingProgressStyle = new LoadingProgressStyle(2,2) + static readonly Orbital: LoadingProgressStyle = LoadingProgressStyle.ORBITAL + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): LoadingProgressStyle { + if ((arg0) == (LoadingProgressStyle.DEFAULT.value)) + return LoadingProgressStyle.DEFAULT + if ((arg0) == (LoadingProgressStyle.CIRCULAR.value)) + return LoadingProgressStyle.CIRCULAR + if ((arg0) == (LoadingProgressStyle.ORBITAL.value)) + return LoadingProgressStyle.ORBITAL + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): LoadingProgressStyle { + if ((arg0) == (LoadingProgressStyle.DEFAULT.ordinal)) + return LoadingProgressStyle.DEFAULT + if ((arg0) == (LoadingProgressStyle.CIRCULAR.ordinal)) + return LoadingProgressStyle.CIRCULAR + if ((arg0) == (LoadingProgressStyle.ORBITAL.ordinal)) + return LoadingProgressStyle.ORBITAL + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class LocationIconStyle { + static readonly FULL_FILLED: LocationIconStyle = new LocationIconStyle(0,0) + static readonly LINES: LocationIconStyle = new LocationIconStyle(1,1) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): LocationIconStyle { + if ((arg0) == (LocationIconStyle.FULL_FILLED.value)) + return LocationIconStyle.FULL_FILLED + if ((arg0) == (LocationIconStyle.LINES.value)) + return LocationIconStyle.LINES + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): LocationIconStyle { + if ((arg0) == (LocationIconStyle.FULL_FILLED.ordinal)) + return LocationIconStyle.FULL_FILLED + if ((arg0) == (LocationIconStyle.LINES.ordinal)) + return LocationIconStyle.LINES + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class LocationDescription { + static readonly CURRENT_LOCATION: LocationDescription = new LocationDescription(0,0) + static readonly ADD_LOCATION: LocationDescription = new LocationDescription(1,1) + static readonly SELECT_LOCATION: LocationDescription = new LocationDescription(2,2) + static readonly SHARE_LOCATION: LocationDescription = new LocationDescription(3,3) + static readonly SEND_LOCATION: LocationDescription = new LocationDescription(4,4) + static readonly LOCATING: LocationDescription = new LocationDescription(5,5) + static readonly LOCATION: LocationDescription = new LocationDescription(6,6) + static readonly SEND_CURRENT_LOCATION: LocationDescription = new LocationDescription(7,7) + static readonly RELOCATION: LocationDescription = new LocationDescription(8,8) + static readonly PUNCH_IN: LocationDescription = new LocationDescription(9,9) + static readonly CURRENT_POSITION: LocationDescription = new LocationDescription(10,10) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): LocationDescription { + if ((arg0) == (LocationDescription.CURRENT_LOCATION.value)) + return LocationDescription.CURRENT_LOCATION + if ((arg0) == (LocationDescription.ADD_LOCATION.value)) + return LocationDescription.ADD_LOCATION + if ((arg0) == (LocationDescription.SELECT_LOCATION.value)) + return LocationDescription.SELECT_LOCATION + if ((arg0) == (LocationDescription.SHARE_LOCATION.value)) + return LocationDescription.SHARE_LOCATION + if ((arg0) == (LocationDescription.SEND_LOCATION.value)) + return LocationDescription.SEND_LOCATION + if ((arg0) == (LocationDescription.LOCATING.value)) + return LocationDescription.LOCATING + if ((arg0) == (LocationDescription.LOCATION.value)) + return LocationDescription.LOCATION + if ((arg0) == (LocationDescription.SEND_CURRENT_LOCATION.value)) + return LocationDescription.SEND_CURRENT_LOCATION + if ((arg0) == (LocationDescription.RELOCATION.value)) + return LocationDescription.RELOCATION + if ((arg0) == (LocationDescription.PUNCH_IN.value)) + return LocationDescription.PUNCH_IN + if ((arg0) == (LocationDescription.CURRENT_POSITION.value)) + return LocationDescription.CURRENT_POSITION + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): LocationDescription { + if ((arg0) == (LocationDescription.CURRENT_LOCATION.ordinal)) + return LocationDescription.CURRENT_LOCATION + if ((arg0) == (LocationDescription.ADD_LOCATION.ordinal)) + return LocationDescription.ADD_LOCATION + if ((arg0) == (LocationDescription.SELECT_LOCATION.ordinal)) + return LocationDescription.SELECT_LOCATION + if ((arg0) == (LocationDescription.SHARE_LOCATION.ordinal)) + return LocationDescription.SHARE_LOCATION + if ((arg0) == (LocationDescription.SEND_LOCATION.ordinal)) + return LocationDescription.SEND_LOCATION + if ((arg0) == (LocationDescription.LOCATING.ordinal)) + return LocationDescription.LOCATING + if ((arg0) == (LocationDescription.LOCATION.ordinal)) + return LocationDescription.LOCATION + if ((arg0) == (LocationDescription.SEND_CURRENT_LOCATION.ordinal)) + return LocationDescription.SEND_CURRENT_LOCATION + if ((arg0) == (LocationDescription.RELOCATION.ordinal)) + return LocationDescription.RELOCATION + if ((arg0) == (LocationDescription.PUNCH_IN.ordinal)) + return LocationDescription.PUNCH_IN + if ((arg0) == (LocationDescription.CURRENT_POSITION.ordinal)) + return LocationDescription.CURRENT_POSITION + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class LocationButtonOnClickResult { + static readonly SUCCESS: LocationButtonOnClickResult = new LocationButtonOnClickResult(0,0) + static readonly TEMPORARY_AUTHORIZATION_FAILED: LocationButtonOnClickResult = new LocationButtonOnClickResult(1,1) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): LocationButtonOnClickResult { + if ((arg0) == (LocationButtonOnClickResult.SUCCESS.value)) + return LocationButtonOnClickResult.SUCCESS + if ((arg0) == (LocationButtonOnClickResult.TEMPORARY_AUTHORIZATION_FAILED.value)) + return LocationButtonOnClickResult.TEMPORARY_AUTHORIZATION_FAILED + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): LocationButtonOnClickResult { + if ((arg0) == (LocationButtonOnClickResult.SUCCESS.ordinal)) + return LocationButtonOnClickResult.SUCCESS + if ((arg0) == (LocationButtonOnClickResult.TEMPORARY_AUTHORIZATION_FAILED.ordinal)) + return LocationButtonOnClickResult.TEMPORARY_AUTHORIZATION_FAILED + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class SubMenuExpandingMode { + static readonly SIDE_EXPAND: SubMenuExpandingMode = new SubMenuExpandingMode(0,0) + static readonly EMBEDDED_EXPAND: SubMenuExpandingMode = new SubMenuExpandingMode(1,1) + static readonly STACK_EXPAND: SubMenuExpandingMode = new SubMenuExpandingMode(2,2) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): SubMenuExpandingMode { + if ((arg0) == (SubMenuExpandingMode.SIDE_EXPAND.value)) + return SubMenuExpandingMode.SIDE_EXPAND + if ((arg0) == (SubMenuExpandingMode.EMBEDDED_EXPAND.value)) + return SubMenuExpandingMode.EMBEDDED_EXPAND + if ((arg0) == (SubMenuExpandingMode.STACK_EXPAND.value)) + return SubMenuExpandingMode.STACK_EXPAND + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): SubMenuExpandingMode { + if ((arg0) == (SubMenuExpandingMode.SIDE_EXPAND.ordinal)) + return SubMenuExpandingMode.SIDE_EXPAND + if ((arg0) == (SubMenuExpandingMode.EMBEDDED_EXPAND.ordinal)) + return SubMenuExpandingMode.EMBEDDED_EXPAND + if ((arg0) == (SubMenuExpandingMode.STACK_EXPAND.ordinal)) + return SubMenuExpandingMode.STACK_EXPAND + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class NavigationSystemTransitionType { + static readonly DEFAULT: NavigationSystemTransitionType = new NavigationSystemTransitionType(0,0) + static readonly NONE: NavigationSystemTransitionType = new NavigationSystemTransitionType(1,1) + static readonly TITLE: NavigationSystemTransitionType = new NavigationSystemTransitionType(2,2) + static readonly CONTENT: NavigationSystemTransitionType = new NavigationSystemTransitionType(3,3) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): NavigationSystemTransitionType { + if ((arg0) == (NavigationSystemTransitionType.DEFAULT.value)) + return NavigationSystemTransitionType.DEFAULT + if ((arg0) == (NavigationSystemTransitionType.NONE.value)) + return NavigationSystemTransitionType.NONE + if ((arg0) == (NavigationSystemTransitionType.TITLE.value)) + return NavigationSystemTransitionType.TITLE + if ((arg0) == (NavigationSystemTransitionType.CONTENT.value)) + return NavigationSystemTransitionType.CONTENT + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): NavigationSystemTransitionType { + if ((arg0) == (NavigationSystemTransitionType.DEFAULT.ordinal)) + return NavigationSystemTransitionType.DEFAULT + if ((arg0) == (NavigationSystemTransitionType.NONE.ordinal)) + return NavigationSystemTransitionType.NONE + if ((arg0) == (NavigationSystemTransitionType.TITLE.ordinal)) + return NavigationSystemTransitionType.TITLE + if ((arg0) == (NavigationSystemTransitionType.CONTENT.ordinal)) + return NavigationSystemTransitionType.CONTENT + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class NavDestinationMode { + static readonly STANDARD: NavDestinationMode = new NavDestinationMode(0,0) + static readonly DIALOG: NavDestinationMode = new NavDestinationMode(1,1) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): NavDestinationMode { + if ((arg0) == (NavDestinationMode.STANDARD.value)) + return NavDestinationMode.STANDARD + if ((arg0) == (NavDestinationMode.DIALOG.value)) + return NavDestinationMode.DIALOG + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): NavDestinationMode { + if ((arg0) == (NavDestinationMode.STANDARD.ordinal)) + return NavDestinationMode.STANDARD + if ((arg0) == (NavDestinationMode.DIALOG.ordinal)) + return NavDestinationMode.DIALOG + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class NavRouteMode { + static readonly PUSH_WITH_RECREATE: NavRouteMode = new NavRouteMode(0,0) + static readonly PUSH: NavRouteMode = new NavRouteMode(1,1) + static readonly REPLACE: NavRouteMode = new NavRouteMode(2,2) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): NavRouteMode { + if ((arg0) == (NavRouteMode.PUSH_WITH_RECREATE.value)) + return NavRouteMode.PUSH_WITH_RECREATE + if ((arg0) == (NavRouteMode.PUSH.value)) + return NavRouteMode.PUSH + if ((arg0) == (NavRouteMode.REPLACE.value)) + return NavRouteMode.REPLACE + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): NavRouteMode { + if ((arg0) == (NavRouteMode.PUSH_WITH_RECREATE.ordinal)) + return NavRouteMode.PUSH_WITH_RECREATE + if ((arg0) == (NavRouteMode.PUSH.ordinal)) + return NavRouteMode.PUSH + if ((arg0) == (NavRouteMode.REPLACE.ordinal)) + return NavRouteMode.REPLACE + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class NavigationMode { + static readonly STACK: NavigationMode = new NavigationMode(0,0) + static readonly Stack: NavigationMode = NavigationMode.STACK + static readonly SPLIT: NavigationMode = new NavigationMode(1,1) + static readonly Split: NavigationMode = NavigationMode.SPLIT + static readonly AUTO: NavigationMode = new NavigationMode(2,2) + static readonly Auto: NavigationMode = NavigationMode.AUTO + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): NavigationMode { + if ((arg0) == (NavigationMode.STACK.value)) + return NavigationMode.STACK + if ((arg0) == (NavigationMode.SPLIT.value)) + return NavigationMode.SPLIT + if ((arg0) == (NavigationMode.AUTO.value)) + return NavigationMode.AUTO + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): NavigationMode { + if ((arg0) == (NavigationMode.STACK.ordinal)) + return NavigationMode.STACK + if ((arg0) == (NavigationMode.SPLIT.ordinal)) + return NavigationMode.SPLIT + if ((arg0) == (NavigationMode.AUTO.ordinal)) + return NavigationMode.AUTO + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class NavBarPosition { + static readonly START: NavBarPosition = new NavBarPosition(0,0) + static readonly Start: NavBarPosition = NavBarPosition.START + static readonly END: NavBarPosition = new NavBarPosition(1,1) + static readonly End: NavBarPosition = NavBarPosition.END + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): NavBarPosition { + if ((arg0) == (NavBarPosition.START.value)) + return NavBarPosition.START + if ((arg0) == (NavBarPosition.END.value)) + return NavBarPosition.END + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): NavBarPosition { + if ((arg0) == (NavBarPosition.START.ordinal)) + return NavBarPosition.START + if ((arg0) == (NavBarPosition.END.ordinal)) + return NavBarPosition.END + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class NavigationTitleMode { + static readonly FREE: NavigationTitleMode = new NavigationTitleMode(0,0) + static readonly Free: NavigationTitleMode = NavigationTitleMode.FREE + static readonly FULL: NavigationTitleMode = new NavigationTitleMode(1,1) + static readonly Full: NavigationTitleMode = NavigationTitleMode.FULL + static readonly MINI: NavigationTitleMode = new NavigationTitleMode(2,2) + static readonly Mini: NavigationTitleMode = NavigationTitleMode.MINI + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): NavigationTitleMode { + if ((arg0) == (NavigationTitleMode.FREE.value)) + return NavigationTitleMode.FREE + if ((arg0) == (NavigationTitleMode.FULL.value)) + return NavigationTitleMode.FULL + if ((arg0) == (NavigationTitleMode.MINI.value)) + return NavigationTitleMode.MINI + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): NavigationTitleMode { + if ((arg0) == (NavigationTitleMode.FREE.ordinal)) + return NavigationTitleMode.FREE + if ((arg0) == (NavigationTitleMode.FULL.ordinal)) + return NavigationTitleMode.FULL + if ((arg0) == (NavigationTitleMode.MINI.ordinal)) + return NavigationTitleMode.MINI + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class LaunchMode { + static readonly STANDARD: LaunchMode = new LaunchMode(0,0) + static readonly MOVE_TO_TOP_SINGLETON: LaunchMode = new LaunchMode(1,1) + static readonly POP_TO_SINGLETON: LaunchMode = new LaunchMode(2,2) + static readonly NEW_INSTANCE: LaunchMode = new LaunchMode(3,3) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): LaunchMode { + if ((arg0) == (LaunchMode.STANDARD.value)) + return LaunchMode.STANDARD + if ((arg0) == (LaunchMode.MOVE_TO_TOP_SINGLETON.value)) + return LaunchMode.MOVE_TO_TOP_SINGLETON + if ((arg0) == (LaunchMode.POP_TO_SINGLETON.value)) + return LaunchMode.POP_TO_SINGLETON + if ((arg0) == (LaunchMode.NEW_INSTANCE.value)) + return LaunchMode.NEW_INSTANCE + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): LaunchMode { + if ((arg0) == (LaunchMode.STANDARD.ordinal)) + return LaunchMode.STANDARD + if ((arg0) == (LaunchMode.MOVE_TO_TOP_SINGLETON.ordinal)) + return LaunchMode.MOVE_TO_TOP_SINGLETON + if ((arg0) == (LaunchMode.POP_TO_SINGLETON.ordinal)) + return LaunchMode.POP_TO_SINGLETON + if ((arg0) == (LaunchMode.NEW_INSTANCE.ordinal)) + return LaunchMode.NEW_INSTANCE + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class ToolbarItemStatus { + static readonly NORMAL: ToolbarItemStatus = new ToolbarItemStatus(0,0) + static readonly DISABLED: ToolbarItemStatus = new ToolbarItemStatus(1,1) + static readonly ACTIVE: ToolbarItemStatus = new ToolbarItemStatus(2,2) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): ToolbarItemStatus { + if ((arg0) == (ToolbarItemStatus.NORMAL.value)) + return ToolbarItemStatus.NORMAL + if ((arg0) == (ToolbarItemStatus.DISABLED.value)) + return ToolbarItemStatus.DISABLED + if ((arg0) == (ToolbarItemStatus.ACTIVE.value)) + return ToolbarItemStatus.ACTIVE + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): ToolbarItemStatus { + if ((arg0) == (ToolbarItemStatus.NORMAL.ordinal)) + return ToolbarItemStatus.NORMAL + if ((arg0) == (ToolbarItemStatus.DISABLED.ordinal)) + return ToolbarItemStatus.DISABLED + if ((arg0) == (ToolbarItemStatus.ACTIVE.ordinal)) + return ToolbarItemStatus.ACTIVE + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class NavigationOperation { + static readonly PUSH: NavigationOperation = new NavigationOperation(1,0) + static readonly POP: NavigationOperation = new NavigationOperation(2,1) + static readonly REPLACE: NavigationOperation = new NavigationOperation(3,2) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): NavigationOperation { + if ((arg0) == (NavigationOperation.PUSH.value)) + return NavigationOperation.PUSH + if ((arg0) == (NavigationOperation.POP.value)) + return NavigationOperation.POP + if ((arg0) == (NavigationOperation.REPLACE.value)) + return NavigationOperation.REPLACE + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): NavigationOperation { + if ((arg0) == (NavigationOperation.PUSH.ordinal)) + return NavigationOperation.PUSH + if ((arg0) == (NavigationOperation.POP.ordinal)) + return NavigationOperation.POP + if ((arg0) == (NavigationOperation.REPLACE.ordinal)) + return NavigationOperation.REPLACE + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class BarStyle { + static readonly STANDARD: BarStyle = new BarStyle(0,0) + static readonly STACK: BarStyle = new BarStyle(1,1) + static readonly SAFE_AREA_PADDING: BarStyle = new BarStyle(2,2) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): BarStyle { + if ((arg0) == (BarStyle.STANDARD.value)) + return BarStyle.STANDARD + if ((arg0) == (BarStyle.STACK.value)) + return BarStyle.STACK + if ((arg0) == (BarStyle.SAFE_AREA_PADDING.value)) + return BarStyle.SAFE_AREA_PADDING + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): BarStyle { + if ((arg0) == (BarStyle.STANDARD.ordinal)) + return BarStyle.STANDARD + if ((arg0) == (BarStyle.STACK.ordinal)) + return BarStyle.STACK + if ((arg0) == (BarStyle.SAFE_AREA_PADDING.ordinal)) + return BarStyle.SAFE_AREA_PADDING + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class NavigationType { + static readonly PUSH: NavigationType = new NavigationType(0,0) + static readonly Push: NavigationType = NavigationType.PUSH + static readonly BACK: NavigationType = new NavigationType(1,1) + static readonly Back: NavigationType = NavigationType.BACK + static readonly REPLACE: NavigationType = new NavigationType(2,2) + static readonly Replace: NavigationType = NavigationType.REPLACE + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): NavigationType { + if ((arg0) == (NavigationType.PUSH.value)) + return NavigationType.PUSH + if ((arg0) == (NavigationType.BACK.value)) + return NavigationType.BACK + if ((arg0) == (NavigationType.REPLACE.value)) + return NavigationType.REPLACE + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): NavigationType { + if ((arg0) == (NavigationType.PUSH.ordinal)) + return NavigationType.PUSH + if ((arg0) == (NavigationType.BACK.ordinal)) + return NavigationType.BACK + if ((arg0) == (NavigationType.REPLACE.ordinal)) + return NavigationType.REPLACE + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class RouteType { + static readonly NONE: RouteType = new RouteType(0,0) + static readonly None: RouteType = RouteType.NONE + static readonly PUSH: RouteType = new RouteType(1,1) + static readonly Push: RouteType = RouteType.PUSH + static readonly POP: RouteType = new RouteType(2,2) + static readonly Pop: RouteType = RouteType.POP + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): RouteType { + if ((arg0) == (RouteType.NONE.value)) + return RouteType.NONE + if ((arg0) == (RouteType.PUSH.value)) + return RouteType.PUSH + if ((arg0) == (RouteType.POP.value)) + return RouteType.POP + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): RouteType { + if ((arg0) == (RouteType.NONE.ordinal)) + return RouteType.NONE + if ((arg0) == (RouteType.PUSH.ordinal)) + return RouteType.PUSH + if ((arg0) == (RouteType.POP.ordinal)) + return RouteType.POP + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class SlideEffect { + static readonly LEFT: SlideEffect = new SlideEffect(0,0) + static readonly Left: SlideEffect = SlideEffect.LEFT + static readonly RIGHT: SlideEffect = new SlideEffect(1,1) + static readonly Right: SlideEffect = SlideEffect.RIGHT + static readonly TOP: SlideEffect = new SlideEffect(2,2) + static readonly Top: SlideEffect = SlideEffect.TOP + static readonly BOTTOM: SlideEffect = new SlideEffect(3,3) + static readonly Bottom: SlideEffect = SlideEffect.BOTTOM + static readonly START: SlideEffect = new SlideEffect(5,4) + static readonly END: SlideEffect = new SlideEffect(6,5) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): SlideEffect { + if ((arg0) == (SlideEffect.LEFT.value)) + return SlideEffect.LEFT + if ((arg0) == (SlideEffect.RIGHT.value)) + return SlideEffect.RIGHT + if ((arg0) == (SlideEffect.TOP.value)) + return SlideEffect.TOP + if ((arg0) == (SlideEffect.BOTTOM.value)) + return SlideEffect.BOTTOM + if ((arg0) == (SlideEffect.START.value)) + return SlideEffect.START + if ((arg0) == (SlideEffect.END.value)) + return SlideEffect.END + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): SlideEffect { + if ((arg0) == (SlideEffect.LEFT.ordinal)) + return SlideEffect.LEFT + if ((arg0) == (SlideEffect.RIGHT.ordinal)) + return SlideEffect.RIGHT + if ((arg0) == (SlideEffect.TOP.ordinal)) + return SlideEffect.TOP + if ((arg0) == (SlideEffect.BOTTOM.ordinal)) + return SlideEffect.BOTTOM + if ((arg0) == (SlideEffect.START.ordinal)) + return SlideEffect.START + if ((arg0) == (SlideEffect.END.ordinal)) + return SlideEffect.END + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class PanelMode { + static readonly MINI: PanelMode = new PanelMode(0,0) + static readonly Mini: PanelMode = PanelMode.MINI + static readonly HALF: PanelMode = new PanelMode(1,1) + static readonly Half: PanelMode = PanelMode.HALF + static readonly FULL: PanelMode = new PanelMode(2,2) + static readonly Full: PanelMode = PanelMode.FULL + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): PanelMode { + if ((arg0) == (PanelMode.MINI.value)) + return PanelMode.MINI + if ((arg0) == (PanelMode.HALF.value)) + return PanelMode.HALF + if ((arg0) == (PanelMode.FULL.value)) + return PanelMode.FULL + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): PanelMode { + if ((arg0) == (PanelMode.MINI.ordinal)) + return PanelMode.MINI + if ((arg0) == (PanelMode.HALF.ordinal)) + return PanelMode.HALF + if ((arg0) == (PanelMode.FULL.ordinal)) + return PanelMode.FULL + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class PanelType { + static readonly MINIBAR: PanelType = new PanelType(0,0) + static readonly Minibar: PanelType = PanelType.MINIBAR + static readonly FOLDABLE: PanelType = new PanelType(1,1) + static readonly Foldable: PanelType = PanelType.FOLDABLE + static readonly TEMPORARY: PanelType = new PanelType(2,2) + static readonly Temporary: PanelType = PanelType.TEMPORARY + static readonly CUSTOM: PanelType = new PanelType(3,3) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): PanelType { + if ((arg0) == (PanelType.MINIBAR.value)) + return PanelType.MINIBAR + if ((arg0) == (PanelType.FOLDABLE.value)) + return PanelType.FOLDABLE + if ((arg0) == (PanelType.TEMPORARY.value)) + return PanelType.TEMPORARY + if ((arg0) == (PanelType.CUSTOM.value)) + return PanelType.CUSTOM + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): PanelType { + if ((arg0) == (PanelType.MINIBAR.ordinal)) + return PanelType.MINIBAR + if ((arg0) == (PanelType.FOLDABLE.ordinal)) + return PanelType.FOLDABLE + if ((arg0) == (PanelType.TEMPORARY.ordinal)) + return PanelType.TEMPORARY + if ((arg0) == (PanelType.CUSTOM.ordinal)) + return PanelType.CUSTOM + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class PanelHeight { + static readonly WRAP_CONTENT: PanelHeight = new PanelHeight("wrapContent",0) + constructor(value: string, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: string + public readonly ordinal: int32 + public static of(arg0: string): PanelHeight { + if ((arg0) == (PanelHeight.WRAP_CONTENT.value)) + return PanelHeight.WRAP_CONTENT + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): PanelHeight { + if ((arg0) == (PanelHeight.WRAP_CONTENT.ordinal)) + return PanelHeight.WRAP_CONTENT + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class ParticleType { + static readonly POINT: ParticleType = new ParticleType("point",0) + static readonly IMAGE: ParticleType = new ParticleType("image",1) + constructor(value: string, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: string + public readonly ordinal: int32 + public static of(arg0: string): ParticleType { + if ((arg0) == (ParticleType.POINT.value)) + return ParticleType.POINT + if ((arg0) == (ParticleType.IMAGE.value)) + return ParticleType.IMAGE + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): ParticleType { + if ((arg0) == (ParticleType.POINT.ordinal)) + return ParticleType.POINT + if ((arg0) == (ParticleType.IMAGE.ordinal)) + return ParticleType.IMAGE + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class ParticleEmitterShape { + static readonly RECTANGLE: ParticleEmitterShape = new ParticleEmitterShape("rectangle",0) + static readonly CIRCLE: ParticleEmitterShape = new ParticleEmitterShape("circle",1) + static readonly ELLIPSE: ParticleEmitterShape = new ParticleEmitterShape("ellipse",2) + constructor(value: string, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: string + public readonly ordinal: int32 + public static of(arg0: string): ParticleEmitterShape { + if ((arg0) == (ParticleEmitterShape.RECTANGLE.value)) + return ParticleEmitterShape.RECTANGLE + if ((arg0) == (ParticleEmitterShape.CIRCLE.value)) + return ParticleEmitterShape.CIRCLE + if ((arg0) == (ParticleEmitterShape.ELLIPSE.value)) + return ParticleEmitterShape.ELLIPSE + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): ParticleEmitterShape { + if ((arg0) == (ParticleEmitterShape.RECTANGLE.ordinal)) + return ParticleEmitterShape.RECTANGLE + if ((arg0) == (ParticleEmitterShape.CIRCLE.ordinal)) + return ParticleEmitterShape.CIRCLE + if ((arg0) == (ParticleEmitterShape.ELLIPSE.ordinal)) + return ParticleEmitterShape.ELLIPSE + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class DistributionType { + static readonly UNIFORM: DistributionType = new DistributionType(0,0) + static readonly GAUSSIAN: DistributionType = new DistributionType(1,1) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): DistributionType { + if ((arg0) == (DistributionType.UNIFORM.value)) + return DistributionType.UNIFORM + if ((arg0) == (DistributionType.GAUSSIAN.value)) + return DistributionType.GAUSSIAN + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): DistributionType { + if ((arg0) == (DistributionType.UNIFORM.ordinal)) + return DistributionType.UNIFORM + if ((arg0) == (DistributionType.GAUSSIAN.ordinal)) + return DistributionType.GAUSSIAN + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class ParticleUpdater { + static readonly NONE: ParticleUpdater = new ParticleUpdater("none",0) + static readonly RANDOM: ParticleUpdater = new ParticleUpdater("random",1) + static readonly CURVE: ParticleUpdater = new ParticleUpdater("curve",2) + constructor(value: string, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: string + public readonly ordinal: int32 + public static of(arg0: string): ParticleUpdater { + if ((arg0) == (ParticleUpdater.NONE.value)) + return ParticleUpdater.NONE + if ((arg0) == (ParticleUpdater.RANDOM.value)) + return ParticleUpdater.RANDOM + if ((arg0) == (ParticleUpdater.CURVE.value)) + return ParticleUpdater.CURVE + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): ParticleUpdater { + if ((arg0) == (ParticleUpdater.NONE.ordinal)) + return ParticleUpdater.NONE + if ((arg0) == (ParticleUpdater.RANDOM.ordinal)) + return ParticleUpdater.RANDOM + if ((arg0) == (ParticleUpdater.CURVE.ordinal)) + return ParticleUpdater.CURVE + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class DisturbanceFieldShape { + static readonly RECT: DisturbanceFieldShape = new DisturbanceFieldShape(0,0) + static readonly CIRCLE: DisturbanceFieldShape = new DisturbanceFieldShape(1,1) + static readonly ELLIPSE: DisturbanceFieldShape = new DisturbanceFieldShape(2,2) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): DisturbanceFieldShape { + if ((arg0) == (DisturbanceFieldShape.RECT.value)) + return DisturbanceFieldShape.RECT + if ((arg0) == (DisturbanceFieldShape.CIRCLE.value)) + return DisturbanceFieldShape.CIRCLE + if ((arg0) == (DisturbanceFieldShape.ELLIPSE.value)) + return DisturbanceFieldShape.ELLIPSE + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): DisturbanceFieldShape { + if ((arg0) == (DisturbanceFieldShape.RECT.ordinal)) + return DisturbanceFieldShape.RECT + if ((arg0) == (DisturbanceFieldShape.CIRCLE.ordinal)) + return DisturbanceFieldShape.CIRCLE + if ((arg0) == (DisturbanceFieldShape.ELLIPSE.ordinal)) + return DisturbanceFieldShape.ELLIPSE + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class PasteIconStyle { + static readonly LINES: PasteIconStyle = new PasteIconStyle(0,0) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): PasteIconStyle { + if ((arg0) == (PasteIconStyle.LINES.value)) + return PasteIconStyle.LINES + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): PasteIconStyle { + if ((arg0) == (PasteIconStyle.LINES.ordinal)) + return PasteIconStyle.LINES + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class PasteDescription { + static readonly PASTE: PasteDescription = new PasteDescription(0,0) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): PasteDescription { + if ((arg0) == (PasteDescription.PASTE.value)) + return PasteDescription.PASTE + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): PasteDescription { + if ((arg0) == (PasteDescription.PASTE.ordinal)) + return PasteDescription.PASTE + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class PasteButtonOnClickResult { + static readonly SUCCESS: PasteButtonOnClickResult = new PasteButtonOnClickResult(0,0) + static readonly TEMPORARY_AUTHORIZATION_FAILED: PasteButtonOnClickResult = new PasteButtonOnClickResult(1,1) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): PasteButtonOnClickResult { + if ((arg0) == (PasteButtonOnClickResult.SUCCESS.value)) + return PasteButtonOnClickResult.SUCCESS + if ((arg0) == (PasteButtonOnClickResult.TEMPORARY_AUTHORIZATION_FAILED.value)) + return PasteButtonOnClickResult.TEMPORARY_AUTHORIZATION_FAILED + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): PasteButtonOnClickResult { + if ((arg0) == (PasteButtonOnClickResult.SUCCESS.ordinal)) + return PasteButtonOnClickResult.SUCCESS + if ((arg0) == (PasteButtonOnClickResult.TEMPORARY_AUTHORIZATION_FAILED.ordinal)) + return PasteButtonOnClickResult.TEMPORARY_AUTHORIZATION_FAILED + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class PatternLockChallengeResult { + static readonly CORRECT: PatternLockChallengeResult = new PatternLockChallengeResult(1,0) + static readonly WRONG: PatternLockChallengeResult = new PatternLockChallengeResult(2,1) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): PatternLockChallengeResult { + if ((arg0) == (PatternLockChallengeResult.CORRECT.value)) + return PatternLockChallengeResult.CORRECT + if ((arg0) == (PatternLockChallengeResult.WRONG.value)) + return PatternLockChallengeResult.WRONG + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): PatternLockChallengeResult { + if ((arg0) == (PatternLockChallengeResult.CORRECT.ordinal)) + return PatternLockChallengeResult.CORRECT + if ((arg0) == (PatternLockChallengeResult.WRONG.ordinal)) + return PatternLockChallengeResult.WRONG + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class ProgressType { + static readonly LINEAR: ProgressType = new ProgressType(0,0) + static readonly Linear: ProgressType = ProgressType.LINEAR + static readonly RING: ProgressType = new ProgressType(1,1) + static readonly Ring: ProgressType = ProgressType.RING + static readonly ECLIPSE: ProgressType = new ProgressType(2,2) + static readonly Eclipse: ProgressType = ProgressType.ECLIPSE + static readonly SCALE_RING: ProgressType = new ProgressType(3,3) + static readonly ScaleRing: ProgressType = ProgressType.SCALE_RING + static readonly CAPSULE: ProgressType = new ProgressType(4,4) + static readonly Capsule: ProgressType = ProgressType.CAPSULE + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): ProgressType { + if ((arg0) == (ProgressType.LINEAR.value)) + return ProgressType.LINEAR + if ((arg0) == (ProgressType.RING.value)) + return ProgressType.RING + if ((arg0) == (ProgressType.ECLIPSE.value)) + return ProgressType.ECLIPSE + if ((arg0) == (ProgressType.SCALE_RING.value)) + return ProgressType.SCALE_RING + if ((arg0) == (ProgressType.CAPSULE.value)) + return ProgressType.CAPSULE + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): ProgressType { + if ((arg0) == (ProgressType.LINEAR.ordinal)) + return ProgressType.LINEAR + if ((arg0) == (ProgressType.RING.ordinal)) + return ProgressType.RING + if ((arg0) == (ProgressType.ECLIPSE.ordinal)) + return ProgressType.ECLIPSE + if ((arg0) == (ProgressType.SCALE_RING.ordinal)) + return ProgressType.SCALE_RING + if ((arg0) == (ProgressType.CAPSULE.ordinal)) + return ProgressType.CAPSULE + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class ProgressStatus { + static readonly LOADING: ProgressStatus = new ProgressStatus(0,0) + static readonly PROGRESSING: ProgressStatus = new ProgressStatus(1,1) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): ProgressStatus { + if ((arg0) == (ProgressStatus.LOADING.value)) + return ProgressStatus.LOADING + if ((arg0) == (ProgressStatus.PROGRESSING.value)) + return ProgressStatus.PROGRESSING + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): ProgressStatus { + if ((arg0) == (ProgressStatus.LOADING.ordinal)) + return ProgressStatus.LOADING + if ((arg0) == (ProgressStatus.PROGRESSING.ordinal)) + return ProgressStatus.PROGRESSING + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class ProgressStyle { + static readonly LINEAR: ProgressStyle = new ProgressStyle(0,0) + static readonly Linear: ProgressStyle = ProgressStyle.LINEAR + static readonly RING: ProgressStyle = new ProgressStyle(1,1) + static readonly Ring: ProgressStyle = ProgressStyle.RING + static readonly ECLIPSE: ProgressStyle = new ProgressStyle(2,2) + static readonly Eclipse: ProgressStyle = ProgressStyle.ECLIPSE + static readonly SCALE_RING: ProgressStyle = new ProgressStyle(3,3) + static readonly ScaleRing: ProgressStyle = ProgressStyle.SCALE_RING + static readonly CAPSULE: ProgressStyle = new ProgressStyle(4,4) + static readonly Capsule: ProgressStyle = ProgressStyle.CAPSULE + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): ProgressStyle { + if ((arg0) == (ProgressStyle.LINEAR.value)) + return ProgressStyle.LINEAR + if ((arg0) == (ProgressStyle.RING.value)) + return ProgressStyle.RING + if ((arg0) == (ProgressStyle.ECLIPSE.value)) + return ProgressStyle.ECLIPSE + if ((arg0) == (ProgressStyle.SCALE_RING.value)) + return ProgressStyle.SCALE_RING + if ((arg0) == (ProgressStyle.CAPSULE.value)) + return ProgressStyle.CAPSULE + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): ProgressStyle { + if ((arg0) == (ProgressStyle.LINEAR.ordinal)) + return ProgressStyle.LINEAR + if ((arg0) == (ProgressStyle.RING.ordinal)) + return ProgressStyle.RING + if ((arg0) == (ProgressStyle.ECLIPSE.ordinal)) + return ProgressStyle.ECLIPSE + if ((arg0) == (ProgressStyle.SCALE_RING.ordinal)) + return ProgressStyle.SCALE_RING + if ((arg0) == (ProgressStyle.CAPSULE.ordinal)) + return ProgressStyle.CAPSULE + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class RadioIndicatorType { + static readonly TICK: RadioIndicatorType = new RadioIndicatorType(0,0) + static readonly DOT: RadioIndicatorType = new RadioIndicatorType(1,1) + static readonly CUSTOM: RadioIndicatorType = new RadioIndicatorType(2,2) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): RadioIndicatorType { + if ((arg0) == (RadioIndicatorType.TICK.value)) + return RadioIndicatorType.TICK + if ((arg0) == (RadioIndicatorType.DOT.value)) + return RadioIndicatorType.DOT + if ((arg0) == (RadioIndicatorType.CUSTOM.value)) + return RadioIndicatorType.CUSTOM + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): RadioIndicatorType { + if ((arg0) == (RadioIndicatorType.TICK.ordinal)) + return RadioIndicatorType.TICK + if ((arg0) == (RadioIndicatorType.DOT.ordinal)) + return RadioIndicatorType.DOT + if ((arg0) == (RadioIndicatorType.CUSTOM.ordinal)) + return RadioIndicatorType.CUSTOM + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class RefreshStatus { + static readonly INACTIVE: RefreshStatus = new RefreshStatus(0,0) + static readonly Inactive: RefreshStatus = RefreshStatus.INACTIVE + static readonly DRAG: RefreshStatus = new RefreshStatus(1,1) + static readonly Drag: RefreshStatus = RefreshStatus.DRAG + static readonly OVER_DRAG: RefreshStatus = new RefreshStatus(2,2) + static readonly OverDrag: RefreshStatus = RefreshStatus.OVER_DRAG + static readonly REFRESH: RefreshStatus = new RefreshStatus(3,3) + static readonly Refresh: RefreshStatus = RefreshStatus.REFRESH + static readonly DONE: RefreshStatus = new RefreshStatus(4,4) + static readonly Done: RefreshStatus = RefreshStatus.DONE + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): RefreshStatus { + if ((arg0) == (RefreshStatus.INACTIVE.value)) + return RefreshStatus.INACTIVE + if ((arg0) == (RefreshStatus.DRAG.value)) + return RefreshStatus.DRAG + if ((arg0) == (RefreshStatus.OVER_DRAG.value)) + return RefreshStatus.OVER_DRAG + if ((arg0) == (RefreshStatus.REFRESH.value)) + return RefreshStatus.REFRESH + if ((arg0) == (RefreshStatus.DONE.value)) + return RefreshStatus.DONE + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): RefreshStatus { + if ((arg0) == (RefreshStatus.INACTIVE.ordinal)) + return RefreshStatus.INACTIVE + if ((arg0) == (RefreshStatus.DRAG.ordinal)) + return RefreshStatus.DRAG + if ((arg0) == (RefreshStatus.OVER_DRAG.ordinal)) + return RefreshStatus.OVER_DRAG + if ((arg0) == (RefreshStatus.REFRESH.ordinal)) + return RefreshStatus.REFRESH + if ((arg0) == (RefreshStatus.DONE.ordinal)) + return RefreshStatus.DONE + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class BarrierDirection { + static readonly LEFT: BarrierDirection = new BarrierDirection(0,0) + static readonly RIGHT: BarrierDirection = new BarrierDirection(1,1) + static readonly TOP: BarrierDirection = new BarrierDirection(2,2) + static readonly BOTTOM: BarrierDirection = new BarrierDirection(3,3) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): BarrierDirection { + if ((arg0) == (BarrierDirection.LEFT.value)) + return BarrierDirection.LEFT + if ((arg0) == (BarrierDirection.RIGHT.value)) + return BarrierDirection.RIGHT + if ((arg0) == (BarrierDirection.TOP.value)) + return BarrierDirection.TOP + if ((arg0) == (BarrierDirection.BOTTOM.value)) + return BarrierDirection.BOTTOM + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): BarrierDirection { + if ((arg0) == (BarrierDirection.LEFT.ordinal)) + return BarrierDirection.LEFT + if ((arg0) == (BarrierDirection.RIGHT.ordinal)) + return BarrierDirection.RIGHT + if ((arg0) == (BarrierDirection.TOP.ordinal)) + return BarrierDirection.TOP + if ((arg0) == (BarrierDirection.BOTTOM.ordinal)) + return BarrierDirection.BOTTOM + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class LocalizedBarrierDirection { + static readonly START: LocalizedBarrierDirection = new LocalizedBarrierDirection(0,0) + static readonly END: LocalizedBarrierDirection = new LocalizedBarrierDirection(1,1) + static readonly TOP: LocalizedBarrierDirection = new LocalizedBarrierDirection(2,2) + static readonly BOTTOM: LocalizedBarrierDirection = new LocalizedBarrierDirection(3,3) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): LocalizedBarrierDirection { + if ((arg0) == (LocalizedBarrierDirection.START.value)) + return LocalizedBarrierDirection.START + if ((arg0) == (LocalizedBarrierDirection.END.value)) + return LocalizedBarrierDirection.END + if ((arg0) == (LocalizedBarrierDirection.TOP.value)) + return LocalizedBarrierDirection.TOP + if ((arg0) == (LocalizedBarrierDirection.BOTTOM.value)) + return LocalizedBarrierDirection.BOTTOM + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): LocalizedBarrierDirection { + if ((arg0) == (LocalizedBarrierDirection.START.ordinal)) + return LocalizedBarrierDirection.START + if ((arg0) == (LocalizedBarrierDirection.END.ordinal)) + return LocalizedBarrierDirection.END + if ((arg0) == (LocalizedBarrierDirection.TOP.ordinal)) + return LocalizedBarrierDirection.TOP + if ((arg0) == (LocalizedBarrierDirection.BOTTOM.ordinal)) + return LocalizedBarrierDirection.BOTTOM + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class RichEditorDeleteDirection { + static readonly BACKWARD: RichEditorDeleteDirection = new RichEditorDeleteDirection(0,0) + static readonly FORWARD: RichEditorDeleteDirection = new RichEditorDeleteDirection(1,1) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): RichEditorDeleteDirection { + if ((arg0) == (RichEditorDeleteDirection.BACKWARD.value)) + return RichEditorDeleteDirection.BACKWARD + if ((arg0) == (RichEditorDeleteDirection.FORWARD.value)) + return RichEditorDeleteDirection.FORWARD + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): RichEditorDeleteDirection { + if ((arg0) == (RichEditorDeleteDirection.BACKWARD.ordinal)) + return RichEditorDeleteDirection.BACKWARD + if ((arg0) == (RichEditorDeleteDirection.FORWARD.ordinal)) + return RichEditorDeleteDirection.FORWARD + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class RichEditorSpanType { + static readonly TEXT: RichEditorSpanType = new RichEditorSpanType(0,0) + static readonly IMAGE: RichEditorSpanType = new RichEditorSpanType(1,1) + static readonly MIXED: RichEditorSpanType = new RichEditorSpanType(2,2) + static readonly BUILDER: RichEditorSpanType = new RichEditorSpanType(3,3) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): RichEditorSpanType { + if ((arg0) == (RichEditorSpanType.TEXT.value)) + return RichEditorSpanType.TEXT + if ((arg0) == (RichEditorSpanType.IMAGE.value)) + return RichEditorSpanType.IMAGE + if ((arg0) == (RichEditorSpanType.MIXED.value)) + return RichEditorSpanType.MIXED + if ((arg0) == (RichEditorSpanType.BUILDER.value)) + return RichEditorSpanType.BUILDER + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): RichEditorSpanType { + if ((arg0) == (RichEditorSpanType.TEXT.ordinal)) + return RichEditorSpanType.TEXT + if ((arg0) == (RichEditorSpanType.IMAGE.ordinal)) + return RichEditorSpanType.IMAGE + if ((arg0) == (RichEditorSpanType.MIXED.ordinal)) + return RichEditorSpanType.MIXED + if ((arg0) == (RichEditorSpanType.BUILDER.ordinal)) + return RichEditorSpanType.BUILDER + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class RichEditorResponseType { + static readonly RIGHT_CLICK: RichEditorResponseType = new RichEditorResponseType(0,0) + static readonly LONG_PRESS: RichEditorResponseType = new RichEditorResponseType(1,1) + static readonly SELECT: RichEditorResponseType = new RichEditorResponseType(2,2) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): RichEditorResponseType { + if ((arg0) == (RichEditorResponseType.RIGHT_CLICK.value)) + return RichEditorResponseType.RIGHT_CLICK + if ((arg0) == (RichEditorResponseType.LONG_PRESS.value)) + return RichEditorResponseType.LONG_PRESS + if ((arg0) == (RichEditorResponseType.SELECT.value)) + return RichEditorResponseType.SELECT + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): RichEditorResponseType { + if ((arg0) == (RichEditorResponseType.RIGHT_CLICK.ordinal)) + return RichEditorResponseType.RIGHT_CLICK + if ((arg0) == (RichEditorResponseType.LONG_PRESS.ordinal)) + return RichEditorResponseType.LONG_PRESS + if ((arg0) == (RichEditorResponseType.SELECT.ordinal)) + return RichEditorResponseType.SELECT + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class SaveIconStyle { + static readonly FULL_FILLED: SaveIconStyle = new SaveIconStyle(0,0) + static readonly LINES: SaveIconStyle = new SaveIconStyle(1,1) + static readonly PICTURE: SaveIconStyle = new SaveIconStyle(2,2) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): SaveIconStyle { + if ((arg0) == (SaveIconStyle.FULL_FILLED.value)) + return SaveIconStyle.FULL_FILLED + if ((arg0) == (SaveIconStyle.LINES.value)) + return SaveIconStyle.LINES + if ((arg0) == (SaveIconStyle.PICTURE.value)) + return SaveIconStyle.PICTURE + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): SaveIconStyle { + if ((arg0) == (SaveIconStyle.FULL_FILLED.ordinal)) + return SaveIconStyle.FULL_FILLED + if ((arg0) == (SaveIconStyle.LINES.ordinal)) + return SaveIconStyle.LINES + if ((arg0) == (SaveIconStyle.PICTURE.ordinal)) + return SaveIconStyle.PICTURE + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class SaveDescription { + static readonly DOWNLOAD: SaveDescription = new SaveDescription(0,0) + static readonly DOWNLOAD_FILE: SaveDescription = new SaveDescription(1,1) + static readonly SAVE: SaveDescription = new SaveDescription(2,2) + static readonly SAVE_IMAGE: SaveDescription = new SaveDescription(3,3) + static readonly SAVE_FILE: SaveDescription = new SaveDescription(4,4) + static readonly DOWNLOAD_AND_SHARE: SaveDescription = new SaveDescription(5,5) + static readonly RECEIVE: SaveDescription = new SaveDescription(6,6) + static readonly CONTINUE_TO_RECEIVE: SaveDescription = new SaveDescription(7,7) + static readonly SAVE_TO_GALLERY: SaveDescription = new SaveDescription(8,8) + static readonly EXPORT_TO_GALLERY: SaveDescription = new SaveDescription(9,9) + static readonly QUICK_SAVE_TO_GALLERY: SaveDescription = new SaveDescription(10,10) + static readonly RESAVE_TO_GALLERY: SaveDescription = new SaveDescription(11,11) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): SaveDescription { + if ((arg0) == (SaveDescription.DOWNLOAD.value)) + return SaveDescription.DOWNLOAD + if ((arg0) == (SaveDescription.DOWNLOAD_FILE.value)) + return SaveDescription.DOWNLOAD_FILE + if ((arg0) == (SaveDescription.SAVE.value)) + return SaveDescription.SAVE + if ((arg0) == (SaveDescription.SAVE_IMAGE.value)) + return SaveDescription.SAVE_IMAGE + if ((arg0) == (SaveDescription.SAVE_FILE.value)) + return SaveDescription.SAVE_FILE + if ((arg0) == (SaveDescription.DOWNLOAD_AND_SHARE.value)) + return SaveDescription.DOWNLOAD_AND_SHARE + if ((arg0) == (SaveDescription.RECEIVE.value)) + return SaveDescription.RECEIVE + if ((arg0) == (SaveDescription.CONTINUE_TO_RECEIVE.value)) + return SaveDescription.CONTINUE_TO_RECEIVE + if ((arg0) == (SaveDescription.SAVE_TO_GALLERY.value)) + return SaveDescription.SAVE_TO_GALLERY + if ((arg0) == (SaveDescription.EXPORT_TO_GALLERY.value)) + return SaveDescription.EXPORT_TO_GALLERY + if ((arg0) == (SaveDescription.QUICK_SAVE_TO_GALLERY.value)) + return SaveDescription.QUICK_SAVE_TO_GALLERY + if ((arg0) == (SaveDescription.RESAVE_TO_GALLERY.value)) + return SaveDescription.RESAVE_TO_GALLERY + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): SaveDescription { + if ((arg0) == (SaveDescription.DOWNLOAD.ordinal)) + return SaveDescription.DOWNLOAD + if ((arg0) == (SaveDescription.DOWNLOAD_FILE.ordinal)) + return SaveDescription.DOWNLOAD_FILE + if ((arg0) == (SaveDescription.SAVE.ordinal)) + return SaveDescription.SAVE + if ((arg0) == (SaveDescription.SAVE_IMAGE.ordinal)) + return SaveDescription.SAVE_IMAGE + if ((arg0) == (SaveDescription.SAVE_FILE.ordinal)) + return SaveDescription.SAVE_FILE + if ((arg0) == (SaveDescription.DOWNLOAD_AND_SHARE.ordinal)) + return SaveDescription.DOWNLOAD_AND_SHARE + if ((arg0) == (SaveDescription.RECEIVE.ordinal)) + return SaveDescription.RECEIVE + if ((arg0) == (SaveDescription.CONTINUE_TO_RECEIVE.ordinal)) + return SaveDescription.CONTINUE_TO_RECEIVE + if ((arg0) == (SaveDescription.SAVE_TO_GALLERY.ordinal)) + return SaveDescription.SAVE_TO_GALLERY + if ((arg0) == (SaveDescription.EXPORT_TO_GALLERY.ordinal)) + return SaveDescription.EXPORT_TO_GALLERY + if ((arg0) == (SaveDescription.QUICK_SAVE_TO_GALLERY.ordinal)) + return SaveDescription.QUICK_SAVE_TO_GALLERY + if ((arg0) == (SaveDescription.RESAVE_TO_GALLERY.ordinal)) + return SaveDescription.RESAVE_TO_GALLERY + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class SaveButtonOnClickResult { + static readonly SUCCESS: SaveButtonOnClickResult = new SaveButtonOnClickResult(0,0) + static readonly TEMPORARY_AUTHORIZATION_FAILED: SaveButtonOnClickResult = new SaveButtonOnClickResult(1,1) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): SaveButtonOnClickResult { + if ((arg0) == (SaveButtonOnClickResult.SUCCESS.value)) + return SaveButtonOnClickResult.SUCCESS + if ((arg0) == (SaveButtonOnClickResult.TEMPORARY_AUTHORIZATION_FAILED.value)) + return SaveButtonOnClickResult.TEMPORARY_AUTHORIZATION_FAILED + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): SaveButtonOnClickResult { + if ((arg0) == (SaveButtonOnClickResult.SUCCESS.ordinal)) + return SaveButtonOnClickResult.SUCCESS + if ((arg0) == (SaveButtonOnClickResult.TEMPORARY_AUTHORIZATION_FAILED.ordinal)) + return SaveButtonOnClickResult.TEMPORARY_AUTHORIZATION_FAILED + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class ScrollDirection { + static readonly VERTICAL: ScrollDirection = new ScrollDirection(0,0) + static readonly Vertical: ScrollDirection = ScrollDirection.VERTICAL + static readonly HORIZONTAL: ScrollDirection = new ScrollDirection(1,1) + static readonly Horizontal: ScrollDirection = ScrollDirection.HORIZONTAL + static readonly FREE: ScrollDirection = new ScrollDirection(2,2) + static readonly Free: ScrollDirection = ScrollDirection.FREE + static readonly NONE: ScrollDirection = new ScrollDirection(3,3) + static readonly None: ScrollDirection = ScrollDirection.NONE + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): ScrollDirection { + if ((arg0) == (ScrollDirection.VERTICAL.value)) + return ScrollDirection.VERTICAL + if ((arg0) == (ScrollDirection.HORIZONTAL.value)) + return ScrollDirection.HORIZONTAL + if ((arg0) == (ScrollDirection.FREE.value)) + return ScrollDirection.FREE + if ((arg0) == (ScrollDirection.NONE.value)) + return ScrollDirection.NONE + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): ScrollDirection { + if ((arg0) == (ScrollDirection.VERTICAL.ordinal)) + return ScrollDirection.VERTICAL + if ((arg0) == (ScrollDirection.HORIZONTAL.ordinal)) + return ScrollDirection.HORIZONTAL + if ((arg0) == (ScrollDirection.FREE.ordinal)) + return ScrollDirection.FREE + if ((arg0) == (ScrollDirection.NONE.ordinal)) + return ScrollDirection.NONE + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class ScrollAlign { + static readonly START: ScrollAlign = new ScrollAlign(0,0) + static readonly CENTER: ScrollAlign = new ScrollAlign(1,1) + static readonly END: ScrollAlign = new ScrollAlign(2,2) + static readonly AUTO: ScrollAlign = new ScrollAlign(3,3) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): ScrollAlign { + if ((arg0) == (ScrollAlign.START.value)) + return ScrollAlign.START + if ((arg0) == (ScrollAlign.CENTER.value)) + return ScrollAlign.CENTER + if ((arg0) == (ScrollAlign.END.value)) + return ScrollAlign.END + if ((arg0) == (ScrollAlign.AUTO.value)) + return ScrollAlign.AUTO + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): ScrollAlign { + if ((arg0) == (ScrollAlign.START.ordinal)) + return ScrollAlign.START + if ((arg0) == (ScrollAlign.CENTER.ordinal)) + return ScrollAlign.CENTER + if ((arg0) == (ScrollAlign.END.ordinal)) + return ScrollAlign.END + if ((arg0) == (ScrollAlign.AUTO.ordinal)) + return ScrollAlign.AUTO + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class ScrollBarDirection { + static readonly VERTICAL: ScrollBarDirection = new ScrollBarDirection(0,0) + static readonly Vertical: ScrollBarDirection = ScrollBarDirection.VERTICAL + static readonly HORIZONTAL: ScrollBarDirection = new ScrollBarDirection(1,1) + static readonly Horizontal: ScrollBarDirection = ScrollBarDirection.HORIZONTAL + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): ScrollBarDirection { + if ((arg0) == (ScrollBarDirection.VERTICAL.value)) + return ScrollBarDirection.VERTICAL + if ((arg0) == (ScrollBarDirection.HORIZONTAL.value)) + return ScrollBarDirection.HORIZONTAL + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): ScrollBarDirection { + if ((arg0) == (ScrollBarDirection.VERTICAL.ordinal)) + return ScrollBarDirection.VERTICAL + if ((arg0) == (ScrollBarDirection.HORIZONTAL.ordinal)) + return ScrollBarDirection.HORIZONTAL + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class CancelButtonStyle { + static readonly CONSTANT: CancelButtonStyle = new CancelButtonStyle(0,0) + static readonly INVISIBLE: CancelButtonStyle = new CancelButtonStyle(1,1) + static readonly INPUT: CancelButtonStyle = new CancelButtonStyle(2,2) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): CancelButtonStyle { + if ((arg0) == (CancelButtonStyle.CONSTANT.value)) + return CancelButtonStyle.CONSTANT + if ((arg0) == (CancelButtonStyle.INVISIBLE.value)) + return CancelButtonStyle.INVISIBLE + if ((arg0) == (CancelButtonStyle.INPUT.value)) + return CancelButtonStyle.INPUT + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): CancelButtonStyle { + if ((arg0) == (CancelButtonStyle.CONSTANT.ordinal)) + return CancelButtonStyle.CONSTANT + if ((arg0) == (CancelButtonStyle.INVISIBLE.ordinal)) + return CancelButtonStyle.INVISIBLE + if ((arg0) == (CancelButtonStyle.INPUT.ordinal)) + return CancelButtonStyle.INPUT + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class SearchType { + static readonly NORMAL: SearchType = new SearchType(0,0) + static readonly NUMBER: SearchType = new SearchType(2,1) + static readonly PHONE_NUMBER: SearchType = new SearchType(3,2) + static readonly EMAIL: SearchType = new SearchType(5,3) + static readonly NUMBER_DECIMAL: SearchType = new SearchType(12,4) + static readonly URL: SearchType = new SearchType(13,5) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): SearchType { + if ((arg0) == (SearchType.NORMAL.value)) + return SearchType.NORMAL + if ((arg0) == (SearchType.NUMBER.value)) + return SearchType.NUMBER + if ((arg0) == (SearchType.PHONE_NUMBER.value)) + return SearchType.PHONE_NUMBER + if ((arg0) == (SearchType.EMAIL.value)) + return SearchType.EMAIL + if ((arg0) == (SearchType.NUMBER_DECIMAL.value)) + return SearchType.NUMBER_DECIMAL + if ((arg0) == (SearchType.URL.value)) + return SearchType.URL + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): SearchType { + if ((arg0) == (SearchType.NORMAL.ordinal)) + return SearchType.NORMAL + if ((arg0) == (SearchType.NUMBER.ordinal)) + return SearchType.NUMBER + if ((arg0) == (SearchType.PHONE_NUMBER.ordinal)) + return SearchType.PHONE_NUMBER + if ((arg0) == (SearchType.EMAIL.ordinal)) + return SearchType.EMAIL + if ((arg0) == (SearchType.NUMBER_DECIMAL.ordinal)) + return SearchType.NUMBER_DECIMAL + if ((arg0) == (SearchType.URL.ordinal)) + return SearchType.URL + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class SecurityComponentLayoutDirection { + static readonly HORIZONTAL: SecurityComponentLayoutDirection = new SecurityComponentLayoutDirection(0,0) + static readonly VERTICAL: SecurityComponentLayoutDirection = new SecurityComponentLayoutDirection(1,1) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): SecurityComponentLayoutDirection { + if ((arg0) == (SecurityComponentLayoutDirection.HORIZONTAL.value)) + return SecurityComponentLayoutDirection.HORIZONTAL + if ((arg0) == (SecurityComponentLayoutDirection.VERTICAL.value)) + return SecurityComponentLayoutDirection.VERTICAL + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): SecurityComponentLayoutDirection { + if ((arg0) == (SecurityComponentLayoutDirection.HORIZONTAL.ordinal)) + return SecurityComponentLayoutDirection.HORIZONTAL + if ((arg0) == (SecurityComponentLayoutDirection.VERTICAL.ordinal)) + return SecurityComponentLayoutDirection.VERTICAL + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class ArrowPosition { + static readonly END: ArrowPosition = new ArrowPosition(0,0) + static readonly START: ArrowPosition = new ArrowPosition(1,1) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): ArrowPosition { + if ((arg0) == (ArrowPosition.END.value)) + return ArrowPosition.END + if ((arg0) == (ArrowPosition.START.value)) + return ArrowPosition.START + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): ArrowPosition { + if ((arg0) == (ArrowPosition.END.ordinal)) + return ArrowPosition.END + if ((arg0) == (ArrowPosition.START.ordinal)) + return ArrowPosition.START + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class MenuAlignType { + static readonly START: MenuAlignType = new MenuAlignType(0,0) + static readonly CENTER: MenuAlignType = new MenuAlignType(1,1) + static readonly END: MenuAlignType = new MenuAlignType(2,2) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): MenuAlignType { + if ((arg0) == (MenuAlignType.START.value)) + return MenuAlignType.START + if ((arg0) == (MenuAlignType.CENTER.value)) + return MenuAlignType.CENTER + if ((arg0) == (MenuAlignType.END.value)) + return MenuAlignType.END + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): MenuAlignType { + if ((arg0) == (MenuAlignType.START.ordinal)) + return MenuAlignType.START + if ((arg0) == (MenuAlignType.CENTER.ordinal)) + return MenuAlignType.CENTER + if ((arg0) == (MenuAlignType.END.ordinal)) + return MenuAlignType.END + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class SliderStyle { + static readonly OUT_SET: SliderStyle = new SliderStyle(0,0) + static readonly OutSet: SliderStyle = SliderStyle.OUT_SET + static readonly IN_SET: SliderStyle = new SliderStyle(1,1) + static readonly InSet: SliderStyle = SliderStyle.IN_SET + static readonly NONE: SliderStyle = new SliderStyle(2,2) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): SliderStyle { + if ((arg0) == (SliderStyle.OUT_SET.value)) + return SliderStyle.OUT_SET + if ((arg0) == (SliderStyle.IN_SET.value)) + return SliderStyle.IN_SET + if ((arg0) == (SliderStyle.NONE.value)) + return SliderStyle.NONE + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): SliderStyle { + if ((arg0) == (SliderStyle.OUT_SET.ordinal)) + return SliderStyle.OUT_SET + if ((arg0) == (SliderStyle.IN_SET.ordinal)) + return SliderStyle.IN_SET + if ((arg0) == (SliderStyle.NONE.ordinal)) + return SliderStyle.NONE + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class SliderChangeMode { + static readonly BEGIN: SliderChangeMode = new SliderChangeMode(0,0) + static readonly Begin: SliderChangeMode = SliderChangeMode.BEGIN + static readonly MOVING: SliderChangeMode = new SliderChangeMode(1,1) + static readonly Moving: SliderChangeMode = SliderChangeMode.MOVING + static readonly END: SliderChangeMode = new SliderChangeMode(2,2) + static readonly End: SliderChangeMode = SliderChangeMode.END + static readonly CLICK: SliderChangeMode = new SliderChangeMode(3,3) + static readonly Click: SliderChangeMode = SliderChangeMode.CLICK + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): SliderChangeMode { + if ((arg0) == (SliderChangeMode.BEGIN.value)) + return SliderChangeMode.BEGIN + if ((arg0) == (SliderChangeMode.MOVING.value)) + return SliderChangeMode.MOVING + if ((arg0) == (SliderChangeMode.END.value)) + return SliderChangeMode.END + if ((arg0) == (SliderChangeMode.CLICK.value)) + return SliderChangeMode.CLICK + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): SliderChangeMode { + if ((arg0) == (SliderChangeMode.BEGIN.ordinal)) + return SliderChangeMode.BEGIN + if ((arg0) == (SliderChangeMode.MOVING.ordinal)) + return SliderChangeMode.MOVING + if ((arg0) == (SliderChangeMode.END.ordinal)) + return SliderChangeMode.END + if ((arg0) == (SliderChangeMode.CLICK.ordinal)) + return SliderChangeMode.CLICK + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class SliderInteraction { + static readonly SLIDE_AND_CLICK: SliderInteraction = new SliderInteraction(0,0) + static readonly SLIDE_ONLY: SliderInteraction = new SliderInteraction(1,1) + static readonly SLIDE_AND_CLICK_UP: SliderInteraction = new SliderInteraction(2,2) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): SliderInteraction { + if ((arg0) == (SliderInteraction.SLIDE_AND_CLICK.value)) + return SliderInteraction.SLIDE_AND_CLICK + if ((arg0) == (SliderInteraction.SLIDE_ONLY.value)) + return SliderInteraction.SLIDE_ONLY + if ((arg0) == (SliderInteraction.SLIDE_AND_CLICK_UP.value)) + return SliderInteraction.SLIDE_AND_CLICK_UP + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): SliderInteraction { + if ((arg0) == (SliderInteraction.SLIDE_AND_CLICK.ordinal)) + return SliderInteraction.SLIDE_AND_CLICK + if ((arg0) == (SliderInteraction.SLIDE_ONLY.ordinal)) + return SliderInteraction.SLIDE_ONLY + if ((arg0) == (SliderInteraction.SLIDE_AND_CLICK_UP.ordinal)) + return SliderInteraction.SLIDE_AND_CLICK_UP + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class SliderBlockType { + static readonly DEFAULT: SliderBlockType = new SliderBlockType(0,0) + static readonly IMAGE: SliderBlockType = new SliderBlockType(1,1) + static readonly SHAPE: SliderBlockType = new SliderBlockType(2,2) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): SliderBlockType { + if ((arg0) == (SliderBlockType.DEFAULT.value)) + return SliderBlockType.DEFAULT + if ((arg0) == (SliderBlockType.IMAGE.value)) + return SliderBlockType.IMAGE + if ((arg0) == (SliderBlockType.SHAPE.value)) + return SliderBlockType.SHAPE + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): SliderBlockType { + if ((arg0) == (SliderBlockType.DEFAULT.ordinal)) + return SliderBlockType.DEFAULT + if ((arg0) == (SliderBlockType.IMAGE.ordinal)) + return SliderBlockType.IMAGE + if ((arg0) == (SliderBlockType.SHAPE.ordinal)) + return SliderBlockType.SHAPE + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class ColorMode { + static readonly LIGHT: ColorMode = new ColorMode(0,0) + static readonly DARK: ColorMode = new ColorMode(1,1) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): ColorMode { + if ((arg0) == (ColorMode.LIGHT.value)) + return ColorMode.LIGHT + if ((arg0) == (ColorMode.DARK.value)) + return ColorMode.DARK + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): ColorMode { + if ((arg0) == (ColorMode.LIGHT.ordinal)) + return ColorMode.LIGHT + if ((arg0) == (ColorMode.DARK.ordinal)) + return ColorMode.DARK + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class LayoutDirection { + static readonly LTR: LayoutDirection = new LayoutDirection(0,0) + static readonly RTL: LayoutDirection = new LayoutDirection(1,1) + static readonly AUTO: LayoutDirection = new LayoutDirection(2,2) + static readonly Auto: LayoutDirection = LayoutDirection.AUTO + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): LayoutDirection { + if ((arg0) == (LayoutDirection.LTR.value)) + return LayoutDirection.LTR + if ((arg0) == (LayoutDirection.RTL.value)) + return LayoutDirection.RTL + if ((arg0) == (LayoutDirection.AUTO.value)) + return LayoutDirection.AUTO + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): LayoutDirection { + if ((arg0) == (LayoutDirection.LTR.ordinal)) + return LayoutDirection.LTR + if ((arg0) == (LayoutDirection.RTL.ordinal)) + return LayoutDirection.RTL + if ((arg0) == (LayoutDirection.AUTO.ordinal)) + return LayoutDirection.AUTO + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class ItemState { + static readonly NORMAL: ItemState = new ItemState(0,0) + static readonly Normal: ItemState = ItemState.NORMAL + static readonly DISABLED: ItemState = new ItemState(1,1) + static readonly Disabled: ItemState = ItemState.DISABLED + static readonly WAITING: ItemState = new ItemState(2,2) + static readonly Waiting: ItemState = ItemState.WAITING + static readonly SKIP: ItemState = new ItemState(3,3) + static readonly Skip: ItemState = ItemState.SKIP + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): ItemState { + if ((arg0) == (ItemState.NORMAL.value)) + return ItemState.NORMAL + if ((arg0) == (ItemState.DISABLED.value)) + return ItemState.DISABLED + if ((arg0) == (ItemState.WAITING.value)) + return ItemState.WAITING + if ((arg0) == (ItemState.SKIP.value)) + return ItemState.SKIP + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): ItemState { + if ((arg0) == (ItemState.NORMAL.ordinal)) + return ItemState.NORMAL + if ((arg0) == (ItemState.DISABLED.ordinal)) + return ItemState.DISABLED + if ((arg0) == (ItemState.WAITING.ordinal)) + return ItemState.WAITING + if ((arg0) == (ItemState.SKIP.ordinal)) + return ItemState.SKIP + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class SwiperDisplayMode { + static readonly LEGACY_STRETCH: SwiperDisplayMode = new SwiperDisplayMode(0,0) + static readonly Stretch: SwiperDisplayMode = SwiperDisplayMode.LEGACY_STRETCH + static readonly LEGACY_AUTO_LINEAR: SwiperDisplayMode = new SwiperDisplayMode(1,1) + static readonly AutoLinear: SwiperDisplayMode = SwiperDisplayMode.LEGACY_AUTO_LINEAR + static readonly STRETCH: SwiperDisplayMode = new SwiperDisplayMode(2,2) + static readonly AUTO_LINEAR: SwiperDisplayMode = new SwiperDisplayMode(3,3) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): SwiperDisplayMode { + if ((arg0) == (SwiperDisplayMode.LEGACY_STRETCH.value)) + return SwiperDisplayMode.LEGACY_STRETCH + if ((arg0) == (SwiperDisplayMode.LEGACY_AUTO_LINEAR.value)) + return SwiperDisplayMode.LEGACY_AUTO_LINEAR + if ((arg0) == (SwiperDisplayMode.STRETCH.value)) + return SwiperDisplayMode.STRETCH + if ((arg0) == (SwiperDisplayMode.AUTO_LINEAR.value)) + return SwiperDisplayMode.AUTO_LINEAR + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): SwiperDisplayMode { + if ((arg0) == (SwiperDisplayMode.LEGACY_STRETCH.ordinal)) + return SwiperDisplayMode.LEGACY_STRETCH + if ((arg0) == (SwiperDisplayMode.LEGACY_AUTO_LINEAR.ordinal)) + return SwiperDisplayMode.LEGACY_AUTO_LINEAR + if ((arg0) == (SwiperDisplayMode.STRETCH.ordinal)) + return SwiperDisplayMode.STRETCH + if ((arg0) == (SwiperDisplayMode.AUTO_LINEAR.ordinal)) + return SwiperDisplayMode.AUTO_LINEAR + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class SwiperNestedScrollMode { + static readonly SELF_ONLY: SwiperNestedScrollMode = new SwiperNestedScrollMode(0,0) + static readonly SELF_FIRST: SwiperNestedScrollMode = new SwiperNestedScrollMode(1,1) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): SwiperNestedScrollMode { + if ((arg0) == (SwiperNestedScrollMode.SELF_ONLY.value)) + return SwiperNestedScrollMode.SELF_ONLY + if ((arg0) == (SwiperNestedScrollMode.SELF_FIRST.value)) + return SwiperNestedScrollMode.SELF_FIRST + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): SwiperNestedScrollMode { + if ((arg0) == (SwiperNestedScrollMode.SELF_ONLY.ordinal)) + return SwiperNestedScrollMode.SELF_ONLY + if ((arg0) == (SwiperNestedScrollMode.SELF_FIRST.ordinal)) + return SwiperNestedScrollMode.SELF_FIRST + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class SymbolRenderingStrategy { + static readonly SINGLE: SymbolRenderingStrategy = new SymbolRenderingStrategy(0,0) + static readonly MULTIPLE_COLOR: SymbolRenderingStrategy = new SymbolRenderingStrategy(1,1) + static readonly MULTIPLE_OPACITY: SymbolRenderingStrategy = new SymbolRenderingStrategy(2,2) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): SymbolRenderingStrategy { + if ((arg0) == (SymbolRenderingStrategy.SINGLE.value)) + return SymbolRenderingStrategy.SINGLE + if ((arg0) == (SymbolRenderingStrategy.MULTIPLE_COLOR.value)) + return SymbolRenderingStrategy.MULTIPLE_COLOR + if ((arg0) == (SymbolRenderingStrategy.MULTIPLE_OPACITY.value)) + return SymbolRenderingStrategy.MULTIPLE_OPACITY + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): SymbolRenderingStrategy { + if ((arg0) == (SymbolRenderingStrategy.SINGLE.ordinal)) + return SymbolRenderingStrategy.SINGLE + if ((arg0) == (SymbolRenderingStrategy.MULTIPLE_COLOR.ordinal)) + return SymbolRenderingStrategy.MULTIPLE_COLOR + if ((arg0) == (SymbolRenderingStrategy.MULTIPLE_OPACITY.ordinal)) + return SymbolRenderingStrategy.MULTIPLE_OPACITY + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class SymbolEffectStrategy { + static readonly NONE: SymbolEffectStrategy = new SymbolEffectStrategy(0,0) + static readonly SCALE: SymbolEffectStrategy = new SymbolEffectStrategy(1,1) + static readonly HIERARCHICAL: SymbolEffectStrategy = new SymbolEffectStrategy(2,2) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): SymbolEffectStrategy { + if ((arg0) == (SymbolEffectStrategy.NONE.value)) + return SymbolEffectStrategy.NONE + if ((arg0) == (SymbolEffectStrategy.SCALE.value)) + return SymbolEffectStrategy.SCALE + if ((arg0) == (SymbolEffectStrategy.HIERARCHICAL.value)) + return SymbolEffectStrategy.HIERARCHICAL + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): SymbolEffectStrategy { + if ((arg0) == (SymbolEffectStrategy.NONE.ordinal)) + return SymbolEffectStrategy.NONE + if ((arg0) == (SymbolEffectStrategy.SCALE.ordinal)) + return SymbolEffectStrategy.SCALE + if ((arg0) == (SymbolEffectStrategy.HIERARCHICAL.ordinal)) + return SymbolEffectStrategy.HIERARCHICAL + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class EffectDirection { + static readonly DOWN: EffectDirection = new EffectDirection(0,0) + static readonly UP: EffectDirection = new EffectDirection(1,1) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): EffectDirection { + if ((arg0) == (EffectDirection.DOWN.value)) + return EffectDirection.DOWN + if ((arg0) == (EffectDirection.UP.value)) + return EffectDirection.UP + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): EffectDirection { + if ((arg0) == (EffectDirection.DOWN.ordinal)) + return EffectDirection.DOWN + if ((arg0) == (EffectDirection.UP.ordinal)) + return EffectDirection.UP + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class EffectScope { + static readonly LAYER: EffectScope = new EffectScope(0,0) + static readonly WHOLE: EffectScope = new EffectScope(1,1) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): EffectScope { + if ((arg0) == (EffectScope.LAYER.value)) + return EffectScope.LAYER + if ((arg0) == (EffectScope.WHOLE.value)) + return EffectScope.WHOLE + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): EffectScope { + if ((arg0) == (EffectScope.LAYER.ordinal)) + return EffectScope.LAYER + if ((arg0) == (EffectScope.WHOLE.ordinal)) + return EffectScope.WHOLE + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class EffectFillStyle { + static readonly CUMULATIVE: EffectFillStyle = new EffectFillStyle(0,0) + static readonly ITERATIVE: EffectFillStyle = new EffectFillStyle(1,1) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): EffectFillStyle { + if ((arg0) == (EffectFillStyle.CUMULATIVE.value)) + return EffectFillStyle.CUMULATIVE + if ((arg0) == (EffectFillStyle.ITERATIVE.value)) + return EffectFillStyle.ITERATIVE + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): EffectFillStyle { + if ((arg0) == (EffectFillStyle.CUMULATIVE.ordinal)) + return EffectFillStyle.CUMULATIVE + if ((arg0) == (EffectFillStyle.ITERATIVE.ordinal)) + return EffectFillStyle.ITERATIVE + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class BarMode { + static readonly SCROLLABLE: BarMode = new BarMode(0,0) + static readonly Scrollable: BarMode = BarMode.SCROLLABLE + static readonly FIXED: BarMode = new BarMode(1,1) + static readonly Fixed: BarMode = BarMode.FIXED + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): BarMode { + if ((arg0) == (BarMode.SCROLLABLE.value)) + return BarMode.SCROLLABLE + if ((arg0) == (BarMode.FIXED.value)) + return BarMode.FIXED + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): BarMode { + if ((arg0) == (BarMode.SCROLLABLE.ordinal)) + return BarMode.SCROLLABLE + if ((arg0) == (BarMode.FIXED.ordinal)) + return BarMode.FIXED + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class AnimationMode { + static readonly CONTENT_FIRST: AnimationMode = new AnimationMode(0,0) + static readonly ACTION_FIRST: AnimationMode = new AnimationMode(1,1) + static readonly NO_ANIMATION: AnimationMode = new AnimationMode(2,2) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): AnimationMode { + if ((arg0) == (AnimationMode.CONTENT_FIRST.value)) + return AnimationMode.CONTENT_FIRST + if ((arg0) == (AnimationMode.ACTION_FIRST.value)) + return AnimationMode.ACTION_FIRST + if ((arg0) == (AnimationMode.NO_ANIMATION.value)) + return AnimationMode.NO_ANIMATION + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): AnimationMode { + if ((arg0) == (AnimationMode.CONTENT_FIRST.ordinal)) + return AnimationMode.CONTENT_FIRST + if ((arg0) == (AnimationMode.ACTION_FIRST.ordinal)) + return AnimationMode.ACTION_FIRST + if ((arg0) == (AnimationMode.NO_ANIMATION.ordinal)) + return AnimationMode.NO_ANIMATION + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class BarPosition { + static readonly START: BarPosition = new BarPosition(0,0) + static readonly Start: BarPosition = BarPosition.START + static readonly END: BarPosition = new BarPosition(1,1) + static readonly End: BarPosition = BarPosition.END + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): BarPosition { + if ((arg0) == (BarPosition.START.value)) + return BarPosition.START + if ((arg0) == (BarPosition.END.value)) + return BarPosition.END + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): BarPosition { + if ((arg0) == (BarPosition.START.ordinal)) + return BarPosition.START + if ((arg0) == (BarPosition.END.ordinal)) + return BarPosition.END + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class LayoutStyle { + static readonly ALWAYS_CENTER: LayoutStyle = new LayoutStyle(0,0) + static readonly ALWAYS_AVERAGE_SPLIT: LayoutStyle = new LayoutStyle(1,1) + static readonly SPACE_BETWEEN_OR_CENTER: LayoutStyle = new LayoutStyle(2,2) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): LayoutStyle { + if ((arg0) == (LayoutStyle.ALWAYS_CENTER.value)) + return LayoutStyle.ALWAYS_CENTER + if ((arg0) == (LayoutStyle.ALWAYS_AVERAGE_SPLIT.value)) + return LayoutStyle.ALWAYS_AVERAGE_SPLIT + if ((arg0) == (LayoutStyle.SPACE_BETWEEN_OR_CENTER.value)) + return LayoutStyle.SPACE_BETWEEN_OR_CENTER + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): LayoutStyle { + if ((arg0) == (LayoutStyle.ALWAYS_CENTER.ordinal)) + return LayoutStyle.ALWAYS_CENTER + if ((arg0) == (LayoutStyle.ALWAYS_AVERAGE_SPLIT.ordinal)) + return LayoutStyle.ALWAYS_AVERAGE_SPLIT + if ((arg0) == (LayoutStyle.SPACE_BETWEEN_OR_CENTER.ordinal)) + return LayoutStyle.SPACE_BETWEEN_OR_CENTER + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class SelectedMode { + static readonly INDICATOR: SelectedMode = new SelectedMode(0,0) + static readonly BOARD: SelectedMode = new SelectedMode(1,1) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): SelectedMode { + if ((arg0) == (SelectedMode.INDICATOR.value)) + return SelectedMode.INDICATOR + if ((arg0) == (SelectedMode.BOARD.value)) + return SelectedMode.BOARD + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): SelectedMode { + if ((arg0) == (SelectedMode.INDICATOR.ordinal)) + return SelectedMode.INDICATOR + if ((arg0) == (SelectedMode.BOARD.ordinal)) + return SelectedMode.BOARD + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class LayoutMode { + static readonly AUTO: LayoutMode = new LayoutMode(0,0) + static readonly VERTICAL: LayoutMode = new LayoutMode(1,1) + static readonly HORIZONTAL: LayoutMode = new LayoutMode(2,2) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): LayoutMode { + if ((arg0) == (LayoutMode.AUTO.value)) + return LayoutMode.AUTO + if ((arg0) == (LayoutMode.VERTICAL.value)) + return LayoutMode.VERTICAL + if ((arg0) == (LayoutMode.HORIZONTAL.value)) + return LayoutMode.HORIZONTAL + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): LayoutMode { + if ((arg0) == (LayoutMode.AUTO.ordinal)) + return LayoutMode.AUTO + if ((arg0) == (LayoutMode.VERTICAL.ordinal)) + return LayoutMode.VERTICAL + if ((arg0) == (LayoutMode.HORIZONTAL.ordinal)) + return LayoutMode.HORIZONTAL + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class TextSpanType { + static readonly TEXT: TextSpanType = new TextSpanType(0,0) + static readonly IMAGE: TextSpanType = new TextSpanType(1,1) + static readonly MIXED: TextSpanType = new TextSpanType(2,2) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): TextSpanType { + if ((arg0) == (TextSpanType.TEXT.value)) + return TextSpanType.TEXT + if ((arg0) == (TextSpanType.IMAGE.value)) + return TextSpanType.IMAGE + if ((arg0) == (TextSpanType.MIXED.value)) + return TextSpanType.MIXED + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): TextSpanType { + if ((arg0) == (TextSpanType.TEXT.ordinal)) + return TextSpanType.TEXT + if ((arg0) == (TextSpanType.IMAGE.ordinal)) + return TextSpanType.IMAGE + if ((arg0) == (TextSpanType.MIXED.ordinal)) + return TextSpanType.MIXED + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class TextResponseType { + static readonly RIGHT_CLICK: TextResponseType = new TextResponseType(0,0) + static readonly LONG_PRESS: TextResponseType = new TextResponseType(1,1) + static readonly SELECT: TextResponseType = new TextResponseType(2,2) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): TextResponseType { + if ((arg0) == (TextResponseType.RIGHT_CLICK.value)) + return TextResponseType.RIGHT_CLICK + if ((arg0) == (TextResponseType.LONG_PRESS.value)) + return TextResponseType.LONG_PRESS + if ((arg0) == (TextResponseType.SELECT.value)) + return TextResponseType.SELECT + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): TextResponseType { + if ((arg0) == (TextResponseType.RIGHT_CLICK.ordinal)) + return TextResponseType.RIGHT_CLICK + if ((arg0) == (TextResponseType.LONG_PRESS.ordinal)) + return TextResponseType.LONG_PRESS + if ((arg0) == (TextResponseType.SELECT.ordinal)) + return TextResponseType.SELECT + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class TextAreaType { + static readonly NORMAL: TextAreaType = new TextAreaType(0,0) + static readonly NUMBER: TextAreaType = new TextAreaType(2,1) + static readonly PHONE_NUMBER: TextAreaType = new TextAreaType(3,2) + static readonly EMAIL: TextAreaType = new TextAreaType(5,3) + static readonly NUMBER_DECIMAL: TextAreaType = new TextAreaType(12,4) + static readonly URL: TextAreaType = new TextAreaType(13,5) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): TextAreaType { + if ((arg0) == (TextAreaType.NORMAL.value)) + return TextAreaType.NORMAL + if ((arg0) == (TextAreaType.NUMBER.value)) + return TextAreaType.NUMBER + if ((arg0) == (TextAreaType.PHONE_NUMBER.value)) + return TextAreaType.PHONE_NUMBER + if ((arg0) == (TextAreaType.EMAIL.value)) + return TextAreaType.EMAIL + if ((arg0) == (TextAreaType.NUMBER_DECIMAL.value)) + return TextAreaType.NUMBER_DECIMAL + if ((arg0) == (TextAreaType.URL.value)) + return TextAreaType.URL + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): TextAreaType { + if ((arg0) == (TextAreaType.NORMAL.ordinal)) + return TextAreaType.NORMAL + if ((arg0) == (TextAreaType.NUMBER.ordinal)) + return TextAreaType.NUMBER + if ((arg0) == (TextAreaType.PHONE_NUMBER.ordinal)) + return TextAreaType.PHONE_NUMBER + if ((arg0) == (TextAreaType.EMAIL.ordinal)) + return TextAreaType.EMAIL + if ((arg0) == (TextAreaType.NUMBER_DECIMAL.ordinal)) + return TextAreaType.NUMBER_DECIMAL + if ((arg0) == (TextAreaType.URL.ordinal)) + return TextAreaType.URL + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class ContentType { + static readonly USER_NAME: ContentType = new ContentType(0,0) + static readonly PASSWORD: ContentType = new ContentType(1,1) + static readonly NEW_PASSWORD: ContentType = new ContentType(2,2) + static readonly FULL_STREET_ADDRESS: ContentType = new ContentType(3,3) + static readonly HOUSE_NUMBER: ContentType = new ContentType(4,4) + static readonly DISTRICT_ADDRESS: ContentType = new ContentType(5,5) + static readonly CITY_ADDRESS: ContentType = new ContentType(6,6) + static readonly PROVINCE_ADDRESS: ContentType = new ContentType(7,7) + static readonly COUNTRY_ADDRESS: ContentType = new ContentType(8,8) + static readonly PERSON_FULL_NAME: ContentType = new ContentType(9,9) + static readonly PERSON_LAST_NAME: ContentType = new ContentType(10,10) + static readonly PERSON_FIRST_NAME: ContentType = new ContentType(11,11) + static readonly PHONE_NUMBER: ContentType = new ContentType(12,12) + static readonly PHONE_COUNTRY_CODE: ContentType = new ContentType(13,13) + static readonly FULL_PHONE_NUMBER: ContentType = new ContentType(14,14) + static readonly EMAIL_ADDRESS: ContentType = new ContentType(15,15) + static readonly BANK_CARD_NUMBER: ContentType = new ContentType(16,16) + static readonly ID_CARD_NUMBER: ContentType = new ContentType(17,17) + static readonly NICKNAME: ContentType = new ContentType(23,18) + static readonly DETAIL_INFO_WITHOUT_STREET: ContentType = new ContentType(24,19) + static readonly FORMAT_ADDRESS: ContentType = new ContentType(25,20) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): ContentType { + if ((arg0) == (ContentType.USER_NAME.value)) + return ContentType.USER_NAME + if ((arg0) == (ContentType.PASSWORD.value)) + return ContentType.PASSWORD + if ((arg0) == (ContentType.NEW_PASSWORD.value)) + return ContentType.NEW_PASSWORD + if ((arg0) == (ContentType.FULL_STREET_ADDRESS.value)) + return ContentType.FULL_STREET_ADDRESS + if ((arg0) == (ContentType.HOUSE_NUMBER.value)) + return ContentType.HOUSE_NUMBER + if ((arg0) == (ContentType.DISTRICT_ADDRESS.value)) + return ContentType.DISTRICT_ADDRESS + if ((arg0) == (ContentType.CITY_ADDRESS.value)) + return ContentType.CITY_ADDRESS + if ((arg0) == (ContentType.PROVINCE_ADDRESS.value)) + return ContentType.PROVINCE_ADDRESS + if ((arg0) == (ContentType.COUNTRY_ADDRESS.value)) + return ContentType.COUNTRY_ADDRESS + if ((arg0) == (ContentType.PERSON_FULL_NAME.value)) + return ContentType.PERSON_FULL_NAME + if ((arg0) == (ContentType.PERSON_LAST_NAME.value)) + return ContentType.PERSON_LAST_NAME + if ((arg0) == (ContentType.PERSON_FIRST_NAME.value)) + return ContentType.PERSON_FIRST_NAME + if ((arg0) == (ContentType.PHONE_NUMBER.value)) + return ContentType.PHONE_NUMBER + if ((arg0) == (ContentType.PHONE_COUNTRY_CODE.value)) + return ContentType.PHONE_COUNTRY_CODE + if ((arg0) == (ContentType.FULL_PHONE_NUMBER.value)) + return ContentType.FULL_PHONE_NUMBER + if ((arg0) == (ContentType.EMAIL_ADDRESS.value)) + return ContentType.EMAIL_ADDRESS + if ((arg0) == (ContentType.BANK_CARD_NUMBER.value)) + return ContentType.BANK_CARD_NUMBER + if ((arg0) == (ContentType.ID_CARD_NUMBER.value)) + return ContentType.ID_CARD_NUMBER + if ((arg0) == (ContentType.NICKNAME.value)) + return ContentType.NICKNAME + if ((arg0) == (ContentType.DETAIL_INFO_WITHOUT_STREET.value)) + return ContentType.DETAIL_INFO_WITHOUT_STREET + if ((arg0) == (ContentType.FORMAT_ADDRESS.value)) + return ContentType.FORMAT_ADDRESS + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): ContentType { + if ((arg0) == (ContentType.USER_NAME.ordinal)) + return ContentType.USER_NAME + if ((arg0) == (ContentType.PASSWORD.ordinal)) + return ContentType.PASSWORD + if ((arg0) == (ContentType.NEW_PASSWORD.ordinal)) + return ContentType.NEW_PASSWORD + if ((arg0) == (ContentType.FULL_STREET_ADDRESS.ordinal)) + return ContentType.FULL_STREET_ADDRESS + if ((arg0) == (ContentType.HOUSE_NUMBER.ordinal)) + return ContentType.HOUSE_NUMBER + if ((arg0) == (ContentType.DISTRICT_ADDRESS.ordinal)) + return ContentType.DISTRICT_ADDRESS + if ((arg0) == (ContentType.CITY_ADDRESS.ordinal)) + return ContentType.CITY_ADDRESS + if ((arg0) == (ContentType.PROVINCE_ADDRESS.ordinal)) + return ContentType.PROVINCE_ADDRESS + if ((arg0) == (ContentType.COUNTRY_ADDRESS.ordinal)) + return ContentType.COUNTRY_ADDRESS + if ((arg0) == (ContentType.PERSON_FULL_NAME.ordinal)) + return ContentType.PERSON_FULL_NAME + if ((arg0) == (ContentType.PERSON_LAST_NAME.ordinal)) + return ContentType.PERSON_LAST_NAME + if ((arg0) == (ContentType.PERSON_FIRST_NAME.ordinal)) + return ContentType.PERSON_FIRST_NAME + if ((arg0) == (ContentType.PHONE_NUMBER.ordinal)) + return ContentType.PHONE_NUMBER + if ((arg0) == (ContentType.PHONE_COUNTRY_CODE.ordinal)) + return ContentType.PHONE_COUNTRY_CODE + if ((arg0) == (ContentType.FULL_PHONE_NUMBER.ordinal)) + return ContentType.FULL_PHONE_NUMBER + if ((arg0) == (ContentType.EMAIL_ADDRESS.ordinal)) + return ContentType.EMAIL_ADDRESS + if ((arg0) == (ContentType.BANK_CARD_NUMBER.ordinal)) + return ContentType.BANK_CARD_NUMBER + if ((arg0) == (ContentType.ID_CARD_NUMBER.ordinal)) + return ContentType.ID_CARD_NUMBER + if ((arg0) == (ContentType.NICKNAME.ordinal)) + return ContentType.NICKNAME + if ((arg0) == (ContentType.DETAIL_INFO_WITHOUT_STREET.ordinal)) + return ContentType.DETAIL_INFO_WITHOUT_STREET + if ((arg0) == (ContentType.FORMAT_ADDRESS.ordinal)) + return ContentType.FORMAT_ADDRESS + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class TextDataDetectorType { + static readonly PHONE_NUMBER: TextDataDetectorType = new TextDataDetectorType(0,0) + static readonly URL: TextDataDetectorType = new TextDataDetectorType(1,1) + static readonly EMAIL: TextDataDetectorType = new TextDataDetectorType(2,2) + static readonly ADDRESS: TextDataDetectorType = new TextDataDetectorType(3,3) + static readonly DATE_TIME: TextDataDetectorType = new TextDataDetectorType(4,4) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): TextDataDetectorType { + if ((arg0) == (TextDataDetectorType.PHONE_NUMBER.value)) + return TextDataDetectorType.PHONE_NUMBER + if ((arg0) == (TextDataDetectorType.URL.value)) + return TextDataDetectorType.URL + if ((arg0) == (TextDataDetectorType.EMAIL.value)) + return TextDataDetectorType.EMAIL + if ((arg0) == (TextDataDetectorType.ADDRESS.value)) + return TextDataDetectorType.ADDRESS + if ((arg0) == (TextDataDetectorType.DATE_TIME.value)) + return TextDataDetectorType.DATE_TIME + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): TextDataDetectorType { + if ((arg0) == (TextDataDetectorType.PHONE_NUMBER.ordinal)) + return TextDataDetectorType.PHONE_NUMBER + if ((arg0) == (TextDataDetectorType.URL.ordinal)) + return TextDataDetectorType.URL + if ((arg0) == (TextDataDetectorType.EMAIL.ordinal)) + return TextDataDetectorType.EMAIL + if ((arg0) == (TextDataDetectorType.ADDRESS.ordinal)) + return TextDataDetectorType.ADDRESS + if ((arg0) == (TextDataDetectorType.DATE_TIME.ordinal)) + return TextDataDetectorType.DATE_TIME + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class TextDeleteDirection { + static readonly BACKWARD: TextDeleteDirection = new TextDeleteDirection(0,0) + static readonly FORWARD: TextDeleteDirection = new TextDeleteDirection(1,1) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): TextDeleteDirection { + if ((arg0) == (TextDeleteDirection.BACKWARD.value)) + return TextDeleteDirection.BACKWARD + if ((arg0) == (TextDeleteDirection.FORWARD.value)) + return TextDeleteDirection.FORWARD + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): TextDeleteDirection { + if ((arg0) == (TextDeleteDirection.BACKWARD.ordinal)) + return TextDeleteDirection.BACKWARD + if ((arg0) == (TextDeleteDirection.FORWARD.ordinal)) + return TextDeleteDirection.FORWARD + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class MenuType { + static readonly SELECTION_MENU: MenuType = new MenuType(0,0) + static readonly PREVIEW_MENU: MenuType = new MenuType(1,1) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): MenuType { + if ((arg0) == (MenuType.SELECTION_MENU.value)) + return MenuType.SELECTION_MENU + if ((arg0) == (MenuType.PREVIEW_MENU.value)) + return MenuType.PREVIEW_MENU + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): MenuType { + if ((arg0) == (MenuType.SELECTION_MENU.ordinal)) + return MenuType.SELECTION_MENU + if ((arg0) == (MenuType.PREVIEW_MENU.ordinal)) + return MenuType.PREVIEW_MENU + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class InputType { + static readonly NORMAL: InputType = new InputType(0,0) + static readonly Normal: InputType = InputType.NORMAL + static readonly NUMBER: InputType = new InputType(1,1) + static readonly Number: InputType = InputType.NUMBER + static readonly PHONE_NUMBER: InputType = new InputType(2,2) + static readonly PhoneNumber: InputType = InputType.PHONE_NUMBER + static readonly EMAIL: InputType = new InputType(3,3) + static readonly Email: InputType = InputType.EMAIL + static readonly PASSWORD: InputType = new InputType(4,4) + static readonly Password: InputType = InputType.PASSWORD + static readonly NUMBER_PASSWORD: InputType = new InputType(8,5) + static readonly SCREEN_LOCK_PASSWORD: InputType = new InputType(9,6) + static readonly USER_NAME: InputType = new InputType(10,7) + static readonly NEW_PASSWORD: InputType = new InputType(11,8) + static readonly NUMBER_DECIMAL: InputType = new InputType(12,9) + static readonly URL: InputType = new InputType(13,10) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): InputType { + if ((arg0) == (InputType.NORMAL.value)) + return InputType.NORMAL + if ((arg0) == (InputType.NUMBER.value)) + return InputType.NUMBER + if ((arg0) == (InputType.PHONE_NUMBER.value)) + return InputType.PHONE_NUMBER + if ((arg0) == (InputType.EMAIL.value)) + return InputType.EMAIL + if ((arg0) == (InputType.PASSWORD.value)) + return InputType.PASSWORD + if ((arg0) == (InputType.NUMBER_PASSWORD.value)) + return InputType.NUMBER_PASSWORD + if ((arg0) == (InputType.SCREEN_LOCK_PASSWORD.value)) + return InputType.SCREEN_LOCK_PASSWORD + if ((arg0) == (InputType.USER_NAME.value)) + return InputType.USER_NAME + if ((arg0) == (InputType.NEW_PASSWORD.value)) + return InputType.NEW_PASSWORD + if ((arg0) == (InputType.NUMBER_DECIMAL.value)) + return InputType.NUMBER_DECIMAL + if ((arg0) == (InputType.URL.value)) + return InputType.URL + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): InputType { + if ((arg0) == (InputType.NORMAL.ordinal)) + return InputType.NORMAL + if ((arg0) == (InputType.NUMBER.ordinal)) + return InputType.NUMBER + if ((arg0) == (InputType.PHONE_NUMBER.ordinal)) + return InputType.PHONE_NUMBER + if ((arg0) == (InputType.EMAIL.ordinal)) + return InputType.EMAIL + if ((arg0) == (InputType.PASSWORD.ordinal)) + return InputType.PASSWORD + if ((arg0) == (InputType.NUMBER_PASSWORD.ordinal)) + return InputType.NUMBER_PASSWORD + if ((arg0) == (InputType.SCREEN_LOCK_PASSWORD.ordinal)) + return InputType.SCREEN_LOCK_PASSWORD + if ((arg0) == (InputType.USER_NAME.ordinal)) + return InputType.USER_NAME + if ((arg0) == (InputType.NEW_PASSWORD.ordinal)) + return InputType.NEW_PASSWORD + if ((arg0) == (InputType.NUMBER_DECIMAL.ordinal)) + return InputType.NUMBER_DECIMAL + if ((arg0) == (InputType.URL.ordinal)) + return InputType.URL + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class EnterKeyType { + static readonly GO: EnterKeyType = new EnterKeyType(2,0) + static readonly Go: EnterKeyType = EnterKeyType.GO + static readonly SEARCH: EnterKeyType = new EnterKeyType(3,1) + static readonly Search: EnterKeyType = EnterKeyType.SEARCH + static readonly SEND: EnterKeyType = new EnterKeyType(4,2) + static readonly Send: EnterKeyType = EnterKeyType.SEND + static readonly NEXT: EnterKeyType = new EnterKeyType(5,3) + static readonly Next: EnterKeyType = EnterKeyType.NEXT + static readonly DONE: EnterKeyType = new EnterKeyType(6,4) + static readonly Done: EnterKeyType = EnterKeyType.DONE + static readonly PREVIOUS: EnterKeyType = new EnterKeyType(7,5) + static readonly NEW_LINE: EnterKeyType = new EnterKeyType(8,6) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): EnterKeyType { + if ((arg0) == (EnterKeyType.GO.value)) + return EnterKeyType.GO + if ((arg0) == (EnterKeyType.SEARCH.value)) + return EnterKeyType.SEARCH + if ((arg0) == (EnterKeyType.SEND.value)) + return EnterKeyType.SEND + if ((arg0) == (EnterKeyType.NEXT.value)) + return EnterKeyType.NEXT + if ((arg0) == (EnterKeyType.DONE.value)) + return EnterKeyType.DONE + if ((arg0) == (EnterKeyType.PREVIOUS.value)) + return EnterKeyType.PREVIOUS + if ((arg0) == (EnterKeyType.NEW_LINE.value)) + return EnterKeyType.NEW_LINE + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): EnterKeyType { + if ((arg0) == (EnterKeyType.GO.ordinal)) + return EnterKeyType.GO + if ((arg0) == (EnterKeyType.SEARCH.ordinal)) + return EnterKeyType.SEARCH + if ((arg0) == (EnterKeyType.SEND.ordinal)) + return EnterKeyType.SEND + if ((arg0) == (EnterKeyType.NEXT.ordinal)) + return EnterKeyType.NEXT + if ((arg0) == (EnterKeyType.DONE.ordinal)) + return EnterKeyType.DONE + if ((arg0) == (EnterKeyType.PREVIOUS.ordinal)) + return EnterKeyType.PREVIOUS + if ((arg0) == (EnterKeyType.NEW_LINE.ordinal)) + return EnterKeyType.NEW_LINE + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class TextInputStyle { + static readonly DEFAULT: TextInputStyle = new TextInputStyle(0,0) + static readonly Default: TextInputStyle = TextInputStyle.DEFAULT + static readonly INLINE: TextInputStyle = new TextInputStyle(1,1) + static readonly Inline: TextInputStyle = TextInputStyle.INLINE + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): TextInputStyle { + if ((arg0) == (TextInputStyle.DEFAULT.value)) + return TextInputStyle.DEFAULT + if ((arg0) == (TextInputStyle.INLINE.value)) + return TextInputStyle.INLINE + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): TextInputStyle { + if ((arg0) == (TextInputStyle.DEFAULT.ordinal)) + return TextInputStyle.DEFAULT + if ((arg0) == (TextInputStyle.INLINE.ordinal)) + return TextInputStyle.INLINE + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class TimePickerFormat { + static readonly HOUR_MINUTE: TimePickerFormat = new TimePickerFormat(0,0) + static readonly HOUR_MINUTE_SECOND: TimePickerFormat = new TimePickerFormat(1,1) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): TimePickerFormat { + if ((arg0) == (TimePickerFormat.HOUR_MINUTE.value)) + return TimePickerFormat.HOUR_MINUTE + if ((arg0) == (TimePickerFormat.HOUR_MINUTE_SECOND.value)) + return TimePickerFormat.HOUR_MINUTE_SECOND + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): TimePickerFormat { + if ((arg0) == (TimePickerFormat.HOUR_MINUTE.ordinal)) + return TimePickerFormat.HOUR_MINUTE + if ((arg0) == (TimePickerFormat.HOUR_MINUTE_SECOND.ordinal)) + return TimePickerFormat.HOUR_MINUTE_SECOND + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class ToggleType { + static readonly CHECKBOX: ToggleType = new ToggleType(0,0) + static readonly Checkbox: ToggleType = ToggleType.CHECKBOX + static readonly SWITCH: ToggleType = new ToggleType(1,1) + static readonly Switch: ToggleType = ToggleType.SWITCH + static readonly BUTTON: ToggleType = new ToggleType(2,2) + static readonly Button: ToggleType = ToggleType.BUTTON + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): ToggleType { + if ((arg0) == (ToggleType.CHECKBOX.value)) + return ToggleType.CHECKBOX + if ((arg0) == (ToggleType.SWITCH.value)) + return ToggleType.SWITCH + if ((arg0) == (ToggleType.BUTTON.value)) + return ToggleType.BUTTON + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): ToggleType { + if ((arg0) == (ToggleType.CHECKBOX.ordinal)) + return ToggleType.CHECKBOX + if ((arg0) == (ToggleType.SWITCH.ordinal)) + return ToggleType.SWITCH + if ((arg0) == (ToggleType.BUTTON.ordinal)) + return ToggleType.BUTTON + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class SeekMode { + static readonly PREVIOUS_KEYFRAME: SeekMode = new SeekMode(0,0) + static readonly PreviousKeyframe: SeekMode = SeekMode.PREVIOUS_KEYFRAME + static readonly NEXT_KEYFRAME: SeekMode = new SeekMode(1,1) + static readonly NextKeyframe: SeekMode = SeekMode.NEXT_KEYFRAME + static readonly CLOSEST_KEYFRAME: SeekMode = new SeekMode(2,2) + static readonly ClosestKeyframe: SeekMode = SeekMode.CLOSEST_KEYFRAME + static readonly ACCURATE: SeekMode = new SeekMode(3,3) + static readonly Accurate: SeekMode = SeekMode.ACCURATE + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): SeekMode { + if ((arg0) == (SeekMode.PREVIOUS_KEYFRAME.value)) + return SeekMode.PREVIOUS_KEYFRAME + if ((arg0) == (SeekMode.NEXT_KEYFRAME.value)) + return SeekMode.NEXT_KEYFRAME + if ((arg0) == (SeekMode.CLOSEST_KEYFRAME.value)) + return SeekMode.CLOSEST_KEYFRAME + if ((arg0) == (SeekMode.ACCURATE.value)) + return SeekMode.ACCURATE + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): SeekMode { + if ((arg0) == (SeekMode.PREVIOUS_KEYFRAME.ordinal)) + return SeekMode.PREVIOUS_KEYFRAME + if ((arg0) == (SeekMode.NEXT_KEYFRAME.ordinal)) + return SeekMode.NEXT_KEYFRAME + if ((arg0) == (SeekMode.CLOSEST_KEYFRAME.ordinal)) + return SeekMode.CLOSEST_KEYFRAME + if ((arg0) == (SeekMode.ACCURATE.ordinal)) + return SeekMode.ACCURATE + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class PlaybackSpeed { + static readonly SPEED_FORWARD_0_75_X: PlaybackSpeed = new PlaybackSpeed(0,0) + static readonly Speed_Forward_0_75_X: PlaybackSpeed = PlaybackSpeed.SPEED_FORWARD_0_75_X + static readonly SPEED_FORWARD_1_00_X: PlaybackSpeed = new PlaybackSpeed(1,1) + static readonly Speed_Forward_1_00_X: PlaybackSpeed = PlaybackSpeed.SPEED_FORWARD_1_00_X + static readonly SPEED_FORWARD_1_25_X: PlaybackSpeed = new PlaybackSpeed(2,2) + static readonly Speed_Forward_1_25_X: PlaybackSpeed = PlaybackSpeed.SPEED_FORWARD_1_25_X + static readonly SPEED_FORWARD_1_75_X: PlaybackSpeed = new PlaybackSpeed(3,3) + static readonly Speed_Forward_1_75_X: PlaybackSpeed = PlaybackSpeed.SPEED_FORWARD_1_75_X + static readonly SPEED_FORWARD_2_00_X: PlaybackSpeed = new PlaybackSpeed(4,4) + static readonly Speed_Forward_2_00_X: PlaybackSpeed = PlaybackSpeed.SPEED_FORWARD_2_00_X + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): PlaybackSpeed { + if ((arg0) == (PlaybackSpeed.SPEED_FORWARD_0_75_X.value)) + return PlaybackSpeed.SPEED_FORWARD_0_75_X + if ((arg0) == (PlaybackSpeed.SPEED_FORWARD_1_00_X.value)) + return PlaybackSpeed.SPEED_FORWARD_1_00_X + if ((arg0) == (PlaybackSpeed.SPEED_FORWARD_1_25_X.value)) + return PlaybackSpeed.SPEED_FORWARD_1_25_X + if ((arg0) == (PlaybackSpeed.SPEED_FORWARD_1_75_X.value)) + return PlaybackSpeed.SPEED_FORWARD_1_75_X + if ((arg0) == (PlaybackSpeed.SPEED_FORWARD_2_00_X.value)) + return PlaybackSpeed.SPEED_FORWARD_2_00_X + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): PlaybackSpeed { + if ((arg0) == (PlaybackSpeed.SPEED_FORWARD_0_75_X.ordinal)) + return PlaybackSpeed.SPEED_FORWARD_0_75_X + if ((arg0) == (PlaybackSpeed.SPEED_FORWARD_1_00_X.ordinal)) + return PlaybackSpeed.SPEED_FORWARD_1_00_X + if ((arg0) == (PlaybackSpeed.SPEED_FORWARD_1_25_X.ordinal)) + return PlaybackSpeed.SPEED_FORWARD_1_25_X + if ((arg0) == (PlaybackSpeed.SPEED_FORWARD_1_75_X.ordinal)) + return PlaybackSpeed.SPEED_FORWARD_1_75_X + if ((arg0) == (PlaybackSpeed.SPEED_FORWARD_2_00_X.ordinal)) + return PlaybackSpeed.SPEED_FORWARD_2_00_X + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class MessageLevel { + static readonly DEBUG: MessageLevel = new MessageLevel(0,0) + static readonly Debug: MessageLevel = MessageLevel.DEBUG + static readonly ERROR: MessageLevel = new MessageLevel(1,1) + static readonly Error: MessageLevel = MessageLevel.ERROR + static readonly INFO: MessageLevel = new MessageLevel(2,2) + static readonly Info: MessageLevel = MessageLevel.INFO + static readonly LOG: MessageLevel = new MessageLevel(3,3) + static readonly Log: MessageLevel = MessageLevel.LOG + static readonly WARN: MessageLevel = new MessageLevel(4,4) + static readonly Warn: MessageLevel = MessageLevel.WARN + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): MessageLevel { + if ((arg0) == (MessageLevel.DEBUG.value)) + return MessageLevel.DEBUG + if ((arg0) == (MessageLevel.ERROR.value)) + return MessageLevel.ERROR + if ((arg0) == (MessageLevel.INFO.value)) + return MessageLevel.INFO + if ((arg0) == (MessageLevel.LOG.value)) + return MessageLevel.LOG + if ((arg0) == (MessageLevel.WARN.value)) + return MessageLevel.WARN + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): MessageLevel { + if ((arg0) == (MessageLevel.DEBUG.ordinal)) + return MessageLevel.DEBUG + if ((arg0) == (MessageLevel.ERROR.ordinal)) + return MessageLevel.ERROR + if ((arg0) == (MessageLevel.INFO.ordinal)) + return MessageLevel.INFO + if ((arg0) == (MessageLevel.LOG.ordinal)) + return MessageLevel.LOG + if ((arg0) == (MessageLevel.WARN.ordinal)) + return MessageLevel.WARN + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class MixedMode { + static readonly ALL: MixedMode = new MixedMode(0,0) + static readonly All: MixedMode = MixedMode.ALL + static readonly COMPATIBLE: MixedMode = new MixedMode(1,1) + static readonly Compatible: MixedMode = MixedMode.COMPATIBLE + static readonly NONE: MixedMode = new MixedMode(2,2) + static readonly None: MixedMode = MixedMode.NONE + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): MixedMode { + if ((arg0) == (MixedMode.ALL.value)) + return MixedMode.ALL + if ((arg0) == (MixedMode.COMPATIBLE.value)) + return MixedMode.COMPATIBLE + if ((arg0) == (MixedMode.NONE.value)) + return MixedMode.NONE + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): MixedMode { + if ((arg0) == (MixedMode.ALL.ordinal)) + return MixedMode.ALL + if ((arg0) == (MixedMode.COMPATIBLE.ordinal)) + return MixedMode.COMPATIBLE + if ((arg0) == (MixedMode.NONE.ordinal)) + return MixedMode.NONE + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class HitTestType { + static readonly EDIT_TEXT: HitTestType = new HitTestType(0,0) + static readonly EditText: HitTestType = HitTestType.EDIT_TEXT + static readonly EMAIL: HitTestType = new HitTestType(1,1) + static readonly Email: HitTestType = HitTestType.EMAIL + static readonly HTTP_ANCHOR: HitTestType = new HitTestType(2,2) + static readonly HttpAnchor: HitTestType = HitTestType.HTTP_ANCHOR + static readonly HTTP_ANCHOR_IMG: HitTestType = new HitTestType(3,3) + static readonly HttpAnchorImg: HitTestType = HitTestType.HTTP_ANCHOR_IMG + static readonly IMG: HitTestType = new HitTestType(4,4) + static readonly Img: HitTestType = HitTestType.IMG + static readonly MAP: HitTestType = new HitTestType(5,5) + static readonly Map: HitTestType = HitTestType.MAP + static readonly PHONE: HitTestType = new HitTestType(6,6) + static readonly Phone: HitTestType = HitTestType.PHONE + static readonly UNKNOWN: HitTestType = new HitTestType(7,7) + static readonly Unknown: HitTestType = HitTestType.UNKNOWN + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): HitTestType { + if ((arg0) == (HitTestType.EDIT_TEXT.value)) + return HitTestType.EDIT_TEXT + if ((arg0) == (HitTestType.EMAIL.value)) + return HitTestType.EMAIL + if ((arg0) == (HitTestType.HTTP_ANCHOR.value)) + return HitTestType.HTTP_ANCHOR + if ((arg0) == (HitTestType.HTTP_ANCHOR_IMG.value)) + return HitTestType.HTTP_ANCHOR_IMG + if ((arg0) == (HitTestType.IMG.value)) + return HitTestType.IMG + if ((arg0) == (HitTestType.MAP.value)) + return HitTestType.MAP + if ((arg0) == (HitTestType.PHONE.value)) + return HitTestType.PHONE + if ((arg0) == (HitTestType.UNKNOWN.value)) + return HitTestType.UNKNOWN + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): HitTestType { + if ((arg0) == (HitTestType.EDIT_TEXT.ordinal)) + return HitTestType.EDIT_TEXT + if ((arg0) == (HitTestType.EMAIL.ordinal)) + return HitTestType.EMAIL + if ((arg0) == (HitTestType.HTTP_ANCHOR.ordinal)) + return HitTestType.HTTP_ANCHOR + if ((arg0) == (HitTestType.HTTP_ANCHOR_IMG.ordinal)) + return HitTestType.HTTP_ANCHOR_IMG + if ((arg0) == (HitTestType.IMG.ordinal)) + return HitTestType.IMG + if ((arg0) == (HitTestType.MAP.ordinal)) + return HitTestType.MAP + if ((arg0) == (HitTestType.PHONE.ordinal)) + return HitTestType.PHONE + if ((arg0) == (HitTestType.UNKNOWN.ordinal)) + return HitTestType.UNKNOWN + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class CacheMode { + static readonly DEFAULT: CacheMode = new CacheMode(0,0) + static readonly Default: CacheMode = CacheMode.DEFAULT + static readonly NONE: CacheMode = new CacheMode(1,1) + static readonly None: CacheMode = CacheMode.NONE + static readonly ONLINE: CacheMode = new CacheMode(2,2) + static readonly Online: CacheMode = CacheMode.ONLINE + static readonly ONLY: CacheMode = new CacheMode(3,3) + static readonly Only: CacheMode = CacheMode.ONLY + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): CacheMode { + if ((arg0) == (CacheMode.DEFAULT.value)) + return CacheMode.DEFAULT + if ((arg0) == (CacheMode.NONE.value)) + return CacheMode.NONE + if ((arg0) == (CacheMode.ONLINE.value)) + return CacheMode.ONLINE + if ((arg0) == (CacheMode.ONLY.value)) + return CacheMode.ONLY + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): CacheMode { + if ((arg0) == (CacheMode.DEFAULT.ordinal)) + return CacheMode.DEFAULT + if ((arg0) == (CacheMode.NONE.ordinal)) + return CacheMode.NONE + if ((arg0) == (CacheMode.ONLINE.ordinal)) + return CacheMode.ONLINE + if ((arg0) == (CacheMode.ONLY.ordinal)) + return CacheMode.ONLY + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class OverScrollMode { + static readonly NEVER: OverScrollMode = new OverScrollMode(0,0) + static readonly ALWAYS: OverScrollMode = new OverScrollMode(1,1) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): OverScrollMode { + if ((arg0) == (OverScrollMode.NEVER.value)) + return OverScrollMode.NEVER + if ((arg0) == (OverScrollMode.ALWAYS.value)) + return OverScrollMode.ALWAYS + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): OverScrollMode { + if ((arg0) == (OverScrollMode.NEVER.ordinal)) + return OverScrollMode.NEVER + if ((arg0) == (OverScrollMode.ALWAYS.ordinal)) + return OverScrollMode.ALWAYS + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class WebDarkMode { + static readonly OFF: WebDarkMode = new WebDarkMode(0,0) + static readonly Off: WebDarkMode = WebDarkMode.OFF + static readonly ON: WebDarkMode = new WebDarkMode(1,1) + static readonly On: WebDarkMode = WebDarkMode.ON + static readonly AUTO: WebDarkMode = new WebDarkMode(2,2) + static readonly Auto: WebDarkMode = WebDarkMode.AUTO + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): WebDarkMode { + if ((arg0) == (WebDarkMode.OFF.value)) + return WebDarkMode.OFF + if ((arg0) == (WebDarkMode.ON.value)) + return WebDarkMode.ON + if ((arg0) == (WebDarkMode.AUTO.value)) + return WebDarkMode.AUTO + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): WebDarkMode { + if ((arg0) == (WebDarkMode.OFF.ordinal)) + return WebDarkMode.OFF + if ((arg0) == (WebDarkMode.ON.ordinal)) + return WebDarkMode.ON + if ((arg0) == (WebDarkMode.AUTO.ordinal)) + return WebDarkMode.AUTO + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class WebCaptureMode { + static readonly HOME_SCREEN: WebCaptureMode = new WebCaptureMode(0,0) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): WebCaptureMode { + if ((arg0) == (WebCaptureMode.HOME_SCREEN.value)) + return WebCaptureMode.HOME_SCREEN + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): WebCaptureMode { + if ((arg0) == (WebCaptureMode.HOME_SCREEN.ordinal)) + return WebCaptureMode.HOME_SCREEN + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class ThreatType { + static readonly THREAT_ILLEGAL: ThreatType = new ThreatType(0,0) + static readonly THREAT_FRAUD: ThreatType = new ThreatType(1,1) + static readonly THREAT_RISK: ThreatType = new ThreatType(2,2) + static readonly THREAT_WARNING: ThreatType = new ThreatType(3,3) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): ThreatType { + if ((arg0) == (ThreatType.THREAT_ILLEGAL.value)) + return ThreatType.THREAT_ILLEGAL + if ((arg0) == (ThreatType.THREAT_FRAUD.value)) + return ThreatType.THREAT_FRAUD + if ((arg0) == (ThreatType.THREAT_RISK.value)) + return ThreatType.THREAT_RISK + if ((arg0) == (ThreatType.THREAT_WARNING.value)) + return ThreatType.THREAT_WARNING + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): ThreatType { + if ((arg0) == (ThreatType.THREAT_ILLEGAL.ordinal)) + return ThreatType.THREAT_ILLEGAL + if ((arg0) == (ThreatType.THREAT_FRAUD.ordinal)) + return ThreatType.THREAT_FRAUD + if ((arg0) == (ThreatType.THREAT_RISK.ordinal)) + return ThreatType.THREAT_RISK + if ((arg0) == (ThreatType.THREAT_WARNING.ordinal)) + return ThreatType.THREAT_WARNING + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class RenderExitReason { + static readonly PROCESS_ABNORMAL_TERMINATION: RenderExitReason = new RenderExitReason(0,0) + static readonly ProcessAbnormalTermination: RenderExitReason = RenderExitReason.PROCESS_ABNORMAL_TERMINATION + static readonly PROCESS_WAS_KILLED: RenderExitReason = new RenderExitReason(1,1) + static readonly ProcessWasKilled: RenderExitReason = RenderExitReason.PROCESS_WAS_KILLED + static readonly PROCESS_CRASHED: RenderExitReason = new RenderExitReason(2,2) + static readonly ProcessCrashed: RenderExitReason = RenderExitReason.PROCESS_CRASHED + static readonly PROCESS_OOM: RenderExitReason = new RenderExitReason(3,3) + static readonly ProcessOom: RenderExitReason = RenderExitReason.PROCESS_OOM + static readonly PROCESS_EXIT_UNKNOWN: RenderExitReason = new RenderExitReason(4,4) + static readonly ProcessExitUnknown: RenderExitReason = RenderExitReason.PROCESS_EXIT_UNKNOWN + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): RenderExitReason { + if ((arg0) == (RenderExitReason.PROCESS_ABNORMAL_TERMINATION.value)) + return RenderExitReason.PROCESS_ABNORMAL_TERMINATION + if ((arg0) == (RenderExitReason.PROCESS_WAS_KILLED.value)) + return RenderExitReason.PROCESS_WAS_KILLED + if ((arg0) == (RenderExitReason.PROCESS_CRASHED.value)) + return RenderExitReason.PROCESS_CRASHED + if ((arg0) == (RenderExitReason.PROCESS_OOM.value)) + return RenderExitReason.PROCESS_OOM + if ((arg0) == (RenderExitReason.PROCESS_EXIT_UNKNOWN.value)) + return RenderExitReason.PROCESS_EXIT_UNKNOWN + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): RenderExitReason { + if ((arg0) == (RenderExitReason.PROCESS_ABNORMAL_TERMINATION.ordinal)) + return RenderExitReason.PROCESS_ABNORMAL_TERMINATION + if ((arg0) == (RenderExitReason.PROCESS_WAS_KILLED.ordinal)) + return RenderExitReason.PROCESS_WAS_KILLED + if ((arg0) == (RenderExitReason.PROCESS_CRASHED.ordinal)) + return RenderExitReason.PROCESS_CRASHED + if ((arg0) == (RenderExitReason.PROCESS_OOM.ordinal)) + return RenderExitReason.PROCESS_OOM + if ((arg0) == (RenderExitReason.PROCESS_EXIT_UNKNOWN.ordinal)) + return RenderExitReason.PROCESS_EXIT_UNKNOWN + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class SslError { + static readonly INVALID: SslError = new SslError(0,0) + static readonly Invalid: SslError = SslError.INVALID + static readonly HOST_MISMATCH: SslError = new SslError(1,1) + static readonly HostMismatch: SslError = SslError.HOST_MISMATCH + static readonly DATE_INVALID: SslError = new SslError(2,2) + static readonly DateInvalid: SslError = SslError.DATE_INVALID + static readonly UNTRUSTED: SslError = new SslError(3,3) + static readonly Untrusted: SslError = SslError.UNTRUSTED + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): SslError { + if ((arg0) == (SslError.INVALID.value)) + return SslError.INVALID + if ((arg0) == (SslError.HOST_MISMATCH.value)) + return SslError.HOST_MISMATCH + if ((arg0) == (SslError.DATE_INVALID.value)) + return SslError.DATE_INVALID + if ((arg0) == (SslError.UNTRUSTED.value)) + return SslError.UNTRUSTED + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): SslError { + if ((arg0) == (SslError.INVALID.ordinal)) + return SslError.INVALID + if ((arg0) == (SslError.HOST_MISMATCH.ordinal)) + return SslError.HOST_MISMATCH + if ((arg0) == (SslError.DATE_INVALID.ordinal)) + return SslError.DATE_INVALID + if ((arg0) == (SslError.UNTRUSTED.ordinal)) + return SslError.UNTRUSTED + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class FileSelectorMode { + static readonly FILE_OPEN_MODE: FileSelectorMode = new FileSelectorMode(0,0) + static readonly FileOpenMode: FileSelectorMode = FileSelectorMode.FILE_OPEN_MODE + static readonly FILE_OPEN_MULTIPLE_MODE: FileSelectorMode = new FileSelectorMode(1,1) + static readonly FileOpenMultipleMode: FileSelectorMode = FileSelectorMode.FILE_OPEN_MULTIPLE_MODE + static readonly FILE_OPEN_FOLDER_MODE: FileSelectorMode = new FileSelectorMode(2,2) + static readonly FileOpenFolderMode: FileSelectorMode = FileSelectorMode.FILE_OPEN_FOLDER_MODE + static readonly FILE_SAVE_MODE: FileSelectorMode = new FileSelectorMode(3,3) + static readonly FileSaveMode: FileSelectorMode = FileSelectorMode.FILE_SAVE_MODE + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): FileSelectorMode { + if ((arg0) == (FileSelectorMode.FILE_OPEN_MODE.value)) + return FileSelectorMode.FILE_OPEN_MODE + if ((arg0) == (FileSelectorMode.FILE_OPEN_MULTIPLE_MODE.value)) + return FileSelectorMode.FILE_OPEN_MULTIPLE_MODE + if ((arg0) == (FileSelectorMode.FILE_OPEN_FOLDER_MODE.value)) + return FileSelectorMode.FILE_OPEN_FOLDER_MODE + if ((arg0) == (FileSelectorMode.FILE_SAVE_MODE.value)) + return FileSelectorMode.FILE_SAVE_MODE + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): FileSelectorMode { + if ((arg0) == (FileSelectorMode.FILE_OPEN_MODE.ordinal)) + return FileSelectorMode.FILE_OPEN_MODE + if ((arg0) == (FileSelectorMode.FILE_OPEN_MULTIPLE_MODE.ordinal)) + return FileSelectorMode.FILE_OPEN_MULTIPLE_MODE + if ((arg0) == (FileSelectorMode.FILE_OPEN_FOLDER_MODE.ordinal)) + return FileSelectorMode.FILE_OPEN_FOLDER_MODE + if ((arg0) == (FileSelectorMode.FILE_SAVE_MODE.ordinal)) + return FileSelectorMode.FILE_SAVE_MODE + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class WebLayoutMode { + static readonly NONE: WebLayoutMode = new WebLayoutMode(0,0) + static readonly FIT_CONTENT: WebLayoutMode = new WebLayoutMode(1,1) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): WebLayoutMode { + if ((arg0) == (WebLayoutMode.NONE.value)) + return WebLayoutMode.NONE + if ((arg0) == (WebLayoutMode.FIT_CONTENT.value)) + return WebLayoutMode.FIT_CONTENT + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): WebLayoutMode { + if ((arg0) == (WebLayoutMode.NONE.ordinal)) + return WebLayoutMode.NONE + if ((arg0) == (WebLayoutMode.FIT_CONTENT.ordinal)) + return WebLayoutMode.FIT_CONTENT + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class RenderProcessNotRespondingReason { + static readonly INPUT_TIMEOUT: RenderProcessNotRespondingReason = new RenderProcessNotRespondingReason(0,0) + static readonly NAVIGATION_COMMIT_TIMEOUT: RenderProcessNotRespondingReason = new RenderProcessNotRespondingReason(1,1) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): RenderProcessNotRespondingReason { + if ((arg0) == (RenderProcessNotRespondingReason.INPUT_TIMEOUT.value)) + return RenderProcessNotRespondingReason.INPUT_TIMEOUT + if ((arg0) == (RenderProcessNotRespondingReason.NAVIGATION_COMMIT_TIMEOUT.value)) + return RenderProcessNotRespondingReason.NAVIGATION_COMMIT_TIMEOUT + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): RenderProcessNotRespondingReason { + if ((arg0) == (RenderProcessNotRespondingReason.INPUT_TIMEOUT.ordinal)) + return RenderProcessNotRespondingReason.INPUT_TIMEOUT + if ((arg0) == (RenderProcessNotRespondingReason.NAVIGATION_COMMIT_TIMEOUT.ordinal)) + return RenderProcessNotRespondingReason.NAVIGATION_COMMIT_TIMEOUT + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class ProtectedResourceType { + static readonly MIDI_SYSEX: ProtectedResourceType = new ProtectedResourceType("TYPE_MIDI_SYSEX",0) + static readonly MidiSysex: ProtectedResourceType = ProtectedResourceType.MIDI_SYSEX + static readonly VIDEO_CAPTURE: ProtectedResourceType = new ProtectedResourceType("TYPE_VIDEO_CAPTURE",1) + static readonly AUDIO_CAPTURE: ProtectedResourceType = new ProtectedResourceType("TYPE_AUDIO_CAPTURE",2) + static readonly SENSOR: ProtectedResourceType = new ProtectedResourceType("TYPE_SENSOR",3) + constructor(value: string, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: string + public readonly ordinal: int32 + public static of(arg0: string): ProtectedResourceType { + if ((arg0) == (ProtectedResourceType.MIDI_SYSEX.value)) + return ProtectedResourceType.MIDI_SYSEX + if ((arg0) == (ProtectedResourceType.VIDEO_CAPTURE.value)) + return ProtectedResourceType.VIDEO_CAPTURE + if ((arg0) == (ProtectedResourceType.AUDIO_CAPTURE.value)) + return ProtectedResourceType.AUDIO_CAPTURE + if ((arg0) == (ProtectedResourceType.SENSOR.value)) + return ProtectedResourceType.SENSOR + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): ProtectedResourceType { + if ((arg0) == (ProtectedResourceType.MIDI_SYSEX.ordinal)) + return ProtectedResourceType.MIDI_SYSEX + if ((arg0) == (ProtectedResourceType.VIDEO_CAPTURE.ordinal)) + return ProtectedResourceType.VIDEO_CAPTURE + if ((arg0) == (ProtectedResourceType.AUDIO_CAPTURE.ordinal)) + return ProtectedResourceType.AUDIO_CAPTURE + if ((arg0) == (ProtectedResourceType.SENSOR.ordinal)) + return ProtectedResourceType.SENSOR + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class ContextMenuSourceType { + static readonly NONE: ContextMenuSourceType = new ContextMenuSourceType(0,0) + static readonly None: ContextMenuSourceType = ContextMenuSourceType.NONE + static readonly MOUSE: ContextMenuSourceType = new ContextMenuSourceType(1,1) + static readonly Mouse: ContextMenuSourceType = ContextMenuSourceType.MOUSE + static readonly LONG_PRESS: ContextMenuSourceType = new ContextMenuSourceType(2,2) + static readonly LongPress: ContextMenuSourceType = ContextMenuSourceType.LONG_PRESS + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): ContextMenuSourceType { + if ((arg0) == (ContextMenuSourceType.NONE.value)) + return ContextMenuSourceType.NONE + if ((arg0) == (ContextMenuSourceType.MOUSE.value)) + return ContextMenuSourceType.MOUSE + if ((arg0) == (ContextMenuSourceType.LONG_PRESS.value)) + return ContextMenuSourceType.LONG_PRESS + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): ContextMenuSourceType { + if ((arg0) == (ContextMenuSourceType.NONE.ordinal)) + return ContextMenuSourceType.NONE + if ((arg0) == (ContextMenuSourceType.MOUSE.ordinal)) + return ContextMenuSourceType.MOUSE + if ((arg0) == (ContextMenuSourceType.LONG_PRESS.ordinal)) + return ContextMenuSourceType.LONG_PRESS + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class ContextMenuMediaType { + static readonly NONE: ContextMenuMediaType = new ContextMenuMediaType(0,0) + static readonly None: ContextMenuMediaType = ContextMenuMediaType.NONE + static readonly IMAGE: ContextMenuMediaType = new ContextMenuMediaType(1,1) + static readonly Image: ContextMenuMediaType = ContextMenuMediaType.IMAGE + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): ContextMenuMediaType { + if ((arg0) == (ContextMenuMediaType.NONE.value)) + return ContextMenuMediaType.NONE + if ((arg0) == (ContextMenuMediaType.IMAGE.value)) + return ContextMenuMediaType.IMAGE + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): ContextMenuMediaType { + if ((arg0) == (ContextMenuMediaType.NONE.ordinal)) + return ContextMenuMediaType.NONE + if ((arg0) == (ContextMenuMediaType.IMAGE.ordinal)) + return ContextMenuMediaType.IMAGE + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class ContextMenuInputFieldType { + static readonly NONE: ContextMenuInputFieldType = new ContextMenuInputFieldType(0,0) + static readonly None: ContextMenuInputFieldType = ContextMenuInputFieldType.NONE + static readonly PLAIN_TEXT: ContextMenuInputFieldType = new ContextMenuInputFieldType(1,1) + static readonly PlainText: ContextMenuInputFieldType = ContextMenuInputFieldType.PLAIN_TEXT + static readonly PASSWORD: ContextMenuInputFieldType = new ContextMenuInputFieldType(2,2) + static readonly Password: ContextMenuInputFieldType = ContextMenuInputFieldType.PASSWORD + static readonly NUMBER: ContextMenuInputFieldType = new ContextMenuInputFieldType(3,3) + static readonly Number: ContextMenuInputFieldType = ContextMenuInputFieldType.NUMBER + static readonly TELEPHONE: ContextMenuInputFieldType = new ContextMenuInputFieldType(4,4) + static readonly Telephone: ContextMenuInputFieldType = ContextMenuInputFieldType.TELEPHONE + static readonly OTHER: ContextMenuInputFieldType = new ContextMenuInputFieldType(5,5) + static readonly Other: ContextMenuInputFieldType = ContextMenuInputFieldType.OTHER + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): ContextMenuInputFieldType { + if ((arg0) == (ContextMenuInputFieldType.NONE.value)) + return ContextMenuInputFieldType.NONE + if ((arg0) == (ContextMenuInputFieldType.PLAIN_TEXT.value)) + return ContextMenuInputFieldType.PLAIN_TEXT + if ((arg0) == (ContextMenuInputFieldType.PASSWORD.value)) + return ContextMenuInputFieldType.PASSWORD + if ((arg0) == (ContextMenuInputFieldType.NUMBER.value)) + return ContextMenuInputFieldType.NUMBER + if ((arg0) == (ContextMenuInputFieldType.TELEPHONE.value)) + return ContextMenuInputFieldType.TELEPHONE + if ((arg0) == (ContextMenuInputFieldType.OTHER.value)) + return ContextMenuInputFieldType.OTHER + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): ContextMenuInputFieldType { + if ((arg0) == (ContextMenuInputFieldType.NONE.ordinal)) + return ContextMenuInputFieldType.NONE + if ((arg0) == (ContextMenuInputFieldType.PLAIN_TEXT.ordinal)) + return ContextMenuInputFieldType.PLAIN_TEXT + if ((arg0) == (ContextMenuInputFieldType.PASSWORD.ordinal)) + return ContextMenuInputFieldType.PASSWORD + if ((arg0) == (ContextMenuInputFieldType.NUMBER.ordinal)) + return ContextMenuInputFieldType.NUMBER + if ((arg0) == (ContextMenuInputFieldType.TELEPHONE.ordinal)) + return ContextMenuInputFieldType.TELEPHONE + if ((arg0) == (ContextMenuInputFieldType.OTHER.ordinal)) + return ContextMenuInputFieldType.OTHER + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class NativeEmbedStatus { + static readonly CREATE: NativeEmbedStatus = new NativeEmbedStatus(0,0) + static readonly UPDATE: NativeEmbedStatus = new NativeEmbedStatus(1,1) + static readonly DESTROY: NativeEmbedStatus = new NativeEmbedStatus(2,2) + static readonly ENTER_BFCACHE: NativeEmbedStatus = new NativeEmbedStatus(3,3) + static readonly LEAVE_BFCACHE: NativeEmbedStatus = new NativeEmbedStatus(4,4) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): NativeEmbedStatus { + if ((arg0) == (NativeEmbedStatus.CREATE.value)) + return NativeEmbedStatus.CREATE + if ((arg0) == (NativeEmbedStatus.UPDATE.value)) + return NativeEmbedStatus.UPDATE + if ((arg0) == (NativeEmbedStatus.DESTROY.value)) + return NativeEmbedStatus.DESTROY + if ((arg0) == (NativeEmbedStatus.ENTER_BFCACHE.value)) + return NativeEmbedStatus.ENTER_BFCACHE + if ((arg0) == (NativeEmbedStatus.LEAVE_BFCACHE.value)) + return NativeEmbedStatus.LEAVE_BFCACHE + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): NativeEmbedStatus { + if ((arg0) == (NativeEmbedStatus.CREATE.ordinal)) + return NativeEmbedStatus.CREATE + if ((arg0) == (NativeEmbedStatus.UPDATE.ordinal)) + return NativeEmbedStatus.UPDATE + if ((arg0) == (NativeEmbedStatus.DESTROY.ordinal)) + return NativeEmbedStatus.DESTROY + if ((arg0) == (NativeEmbedStatus.ENTER_BFCACHE.ordinal)) + return NativeEmbedStatus.ENTER_BFCACHE + if ((arg0) == (NativeEmbedStatus.LEAVE_BFCACHE.ordinal)) + return NativeEmbedStatus.LEAVE_BFCACHE + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class ContextMenuEditStateFlags { + static readonly NONE: ContextMenuEditStateFlags = new ContextMenuEditStateFlags(0,0) + static readonly CAN_CUT: ContextMenuEditStateFlags = new ContextMenuEditStateFlags(1,1) + static readonly CAN_COPY: ContextMenuEditStateFlags = new ContextMenuEditStateFlags(2,2) + static readonly CAN_PASTE: ContextMenuEditStateFlags = new ContextMenuEditStateFlags(4,3) + static readonly CAN_SELECT_ALL: ContextMenuEditStateFlags = new ContextMenuEditStateFlags(8,4) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): ContextMenuEditStateFlags { + if ((arg0) == (ContextMenuEditStateFlags.NONE.value)) + return ContextMenuEditStateFlags.NONE + if ((arg0) == (ContextMenuEditStateFlags.CAN_CUT.value)) + return ContextMenuEditStateFlags.CAN_CUT + if ((arg0) == (ContextMenuEditStateFlags.CAN_COPY.value)) + return ContextMenuEditStateFlags.CAN_COPY + if ((arg0) == (ContextMenuEditStateFlags.CAN_PASTE.value)) + return ContextMenuEditStateFlags.CAN_PASTE + if ((arg0) == (ContextMenuEditStateFlags.CAN_SELECT_ALL.value)) + return ContextMenuEditStateFlags.CAN_SELECT_ALL + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): ContextMenuEditStateFlags { + if ((arg0) == (ContextMenuEditStateFlags.NONE.ordinal)) + return ContextMenuEditStateFlags.NONE + if ((arg0) == (ContextMenuEditStateFlags.CAN_CUT.ordinal)) + return ContextMenuEditStateFlags.CAN_CUT + if ((arg0) == (ContextMenuEditStateFlags.CAN_COPY.ordinal)) + return ContextMenuEditStateFlags.CAN_COPY + if ((arg0) == (ContextMenuEditStateFlags.CAN_PASTE.ordinal)) + return ContextMenuEditStateFlags.CAN_PASTE + if ((arg0) == (ContextMenuEditStateFlags.CAN_SELECT_ALL.ordinal)) + return ContextMenuEditStateFlags.CAN_SELECT_ALL + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class WebNavigationType { + static readonly UNKNOWN: WebNavigationType = new WebNavigationType(0,0) + static readonly MAIN_FRAME_NEW_ENTRY: WebNavigationType = new WebNavigationType(1,1) + static readonly MAIN_FRAME_EXISTING_ENTRY: WebNavigationType = new WebNavigationType(2,2) + static readonly NAVIGATION_TYPE_NEW_SUBFRAME: WebNavigationType = new WebNavigationType(4,3) + static readonly NAVIGATION_TYPE_AUTO_SUBFRAME: WebNavigationType = new WebNavigationType(5,4) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): WebNavigationType { + if ((arg0) == (WebNavigationType.UNKNOWN.value)) + return WebNavigationType.UNKNOWN + if ((arg0) == (WebNavigationType.MAIN_FRAME_NEW_ENTRY.value)) + return WebNavigationType.MAIN_FRAME_NEW_ENTRY + if ((arg0) == (WebNavigationType.MAIN_FRAME_EXISTING_ENTRY.value)) + return WebNavigationType.MAIN_FRAME_EXISTING_ENTRY + if ((arg0) == (WebNavigationType.NAVIGATION_TYPE_NEW_SUBFRAME.value)) + return WebNavigationType.NAVIGATION_TYPE_NEW_SUBFRAME + if ((arg0) == (WebNavigationType.NAVIGATION_TYPE_AUTO_SUBFRAME.value)) + return WebNavigationType.NAVIGATION_TYPE_AUTO_SUBFRAME + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): WebNavigationType { + if ((arg0) == (WebNavigationType.UNKNOWN.ordinal)) + return WebNavigationType.UNKNOWN + if ((arg0) == (WebNavigationType.MAIN_FRAME_NEW_ENTRY.ordinal)) + return WebNavigationType.MAIN_FRAME_NEW_ENTRY + if ((arg0) == (WebNavigationType.MAIN_FRAME_EXISTING_ENTRY.ordinal)) + return WebNavigationType.MAIN_FRAME_EXISTING_ENTRY + if ((arg0) == (WebNavigationType.NAVIGATION_TYPE_NEW_SUBFRAME.ordinal)) + return WebNavigationType.NAVIGATION_TYPE_NEW_SUBFRAME + if ((arg0) == (WebNavigationType.NAVIGATION_TYPE_AUTO_SUBFRAME.ordinal)) + return WebNavigationType.NAVIGATION_TYPE_AUTO_SUBFRAME + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class RenderMode { + static readonly ASYNC_RENDER: RenderMode = new RenderMode(0,0) + static readonly SYNC_RENDER: RenderMode = new RenderMode(1,1) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): RenderMode { + if ((arg0) == (RenderMode.ASYNC_RENDER.value)) + return RenderMode.ASYNC_RENDER + if ((arg0) == (RenderMode.SYNC_RENDER.value)) + return RenderMode.SYNC_RENDER + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): RenderMode { + if ((arg0) == (RenderMode.ASYNC_RENDER.ordinal)) + return RenderMode.ASYNC_RENDER + if ((arg0) == (RenderMode.SYNC_RENDER.ordinal)) + return RenderMode.SYNC_RENDER + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class ViewportFit { + static readonly AUTO: ViewportFit = new ViewportFit(0,0) + static readonly CONTAINS: ViewportFit = new ViewportFit(1,1) + static readonly COVER: ViewportFit = new ViewportFit(2,2) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): ViewportFit { + if ((arg0) == (ViewportFit.AUTO.value)) + return ViewportFit.AUTO + if ((arg0) == (ViewportFit.CONTAINS.value)) + return ViewportFit.CONTAINS + if ((arg0) == (ViewportFit.COVER.value)) + return ViewportFit.COVER + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): ViewportFit { + if ((arg0) == (ViewportFit.AUTO.ordinal)) + return ViewportFit.AUTO + if ((arg0) == (ViewportFit.CONTAINS.ordinal)) + return ViewportFit.CONTAINS + if ((arg0) == (ViewportFit.COVER.ordinal)) + return ViewportFit.COVER + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class WebKeyboardAvoidMode { + static readonly RESIZE_VISUAL: WebKeyboardAvoidMode = new WebKeyboardAvoidMode(0,0) + static readonly RESIZE_CONTENT: WebKeyboardAvoidMode = new WebKeyboardAvoidMode(1,1) + static readonly OVERLAYS_CONTENT: WebKeyboardAvoidMode = new WebKeyboardAvoidMode(2,2) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): WebKeyboardAvoidMode { + if ((arg0) == (WebKeyboardAvoidMode.RESIZE_VISUAL.value)) + return WebKeyboardAvoidMode.RESIZE_VISUAL + if ((arg0) == (WebKeyboardAvoidMode.RESIZE_CONTENT.value)) + return WebKeyboardAvoidMode.RESIZE_CONTENT + if ((arg0) == (WebKeyboardAvoidMode.OVERLAYS_CONTENT.value)) + return WebKeyboardAvoidMode.OVERLAYS_CONTENT + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): WebKeyboardAvoidMode { + if ((arg0) == (WebKeyboardAvoidMode.RESIZE_VISUAL.ordinal)) + return WebKeyboardAvoidMode.RESIZE_VISUAL + if ((arg0) == (WebKeyboardAvoidMode.RESIZE_CONTENT.ordinal)) + return WebKeyboardAvoidMode.RESIZE_CONTENT + if ((arg0) == (WebKeyboardAvoidMode.OVERLAYS_CONTENT.ordinal)) + return WebKeyboardAvoidMode.OVERLAYS_CONTENT + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class WebElementType { + static readonly IMAGE: WebElementType = new WebElementType(1,0) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): WebElementType { + if ((arg0) == (WebElementType.IMAGE.value)) + return WebElementType.IMAGE + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): WebElementType { + if ((arg0) == (WebElementType.IMAGE.ordinal)) + return WebElementType.IMAGE + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class WebResponseType { + static readonly LONG_PRESS: WebResponseType = new WebResponseType(1,0) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): WebResponseType { + if ((arg0) == (WebResponseType.LONG_PRESS.value)) + return WebResponseType.LONG_PRESS + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): WebResponseType { + if ((arg0) == (WebResponseType.LONG_PRESS.ordinal)) + return WebResponseType.LONG_PRESS + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class SideBarContainerType { + static readonly EMBED: SideBarContainerType = new SideBarContainerType(0,0) + static readonly Embed: SideBarContainerType = SideBarContainerType.EMBED + static readonly OVERLAY: SideBarContainerType = new SideBarContainerType(1,1) + static readonly Overlay: SideBarContainerType = SideBarContainerType.OVERLAY + static readonly AUTO: SideBarContainerType = new SideBarContainerType(2,2) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): SideBarContainerType { + if ((arg0) == (SideBarContainerType.EMBED.value)) + return SideBarContainerType.EMBED + if ((arg0) == (SideBarContainerType.OVERLAY.value)) + return SideBarContainerType.OVERLAY + if ((arg0) == (SideBarContainerType.AUTO.value)) + return SideBarContainerType.AUTO + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): SideBarContainerType { + if ((arg0) == (SideBarContainerType.EMBED.ordinal)) + return SideBarContainerType.EMBED + if ((arg0) == (SideBarContainerType.OVERLAY.ordinal)) + return SideBarContainerType.OVERLAY + if ((arg0) == (SideBarContainerType.AUTO.ordinal)) + return SideBarContainerType.AUTO + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class SideBarPosition { + static readonly START: SideBarPosition = new SideBarPosition(0,0) + static readonly Start: SideBarPosition = SideBarPosition.START + static readonly END: SideBarPosition = new SideBarPosition(1,1) + static readonly End: SideBarPosition = SideBarPosition.END + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): SideBarPosition { + if ((arg0) == (SideBarPosition.START.value)) + return SideBarPosition.START + if ((arg0) == (SideBarPosition.END.value)) + return SideBarPosition.END + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): SideBarPosition { + if ((arg0) == (SideBarPosition.START.ordinal)) + return SideBarPosition.START + if ((arg0) == (SideBarPosition.END.ordinal)) + return SideBarPosition.END + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class WaterFlowLayoutMode { + static readonly ALWAYS_TOP_DOWN: WaterFlowLayoutMode = new WaterFlowLayoutMode(0,0) + static readonly SLIDING_WINDOW: WaterFlowLayoutMode = new WaterFlowLayoutMode(1,1) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): WaterFlowLayoutMode { + if ((arg0) == (WaterFlowLayoutMode.ALWAYS_TOP_DOWN.value)) + return WaterFlowLayoutMode.ALWAYS_TOP_DOWN + if ((arg0) == (WaterFlowLayoutMode.SLIDING_WINDOW.value)) + return WaterFlowLayoutMode.SLIDING_WINDOW + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): WaterFlowLayoutMode { + if ((arg0) == (WaterFlowLayoutMode.ALWAYS_TOP_DOWN.ordinal)) + return WaterFlowLayoutMode.ALWAYS_TOP_DOWN + if ((arg0) == (WaterFlowLayoutMode.SLIDING_WINDOW.ordinal)) + return WaterFlowLayoutMode.SLIDING_WINDOW + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class DpiFollowStrategy { + static readonly FOLLOW_HOST_DPI: DpiFollowStrategy = new DpiFollowStrategy(0,0) + static readonly FOLLOW_UI_EXTENSION_ABILITY_DPI: DpiFollowStrategy = new DpiFollowStrategy(1,1) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): DpiFollowStrategy { + if ((arg0) == (DpiFollowStrategy.FOLLOW_HOST_DPI.value)) + return DpiFollowStrategy.FOLLOW_HOST_DPI + if ((arg0) == (DpiFollowStrategy.FOLLOW_UI_EXTENSION_ABILITY_DPI.value)) + return DpiFollowStrategy.FOLLOW_UI_EXTENSION_ABILITY_DPI + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): DpiFollowStrategy { + if ((arg0) == (DpiFollowStrategy.FOLLOW_HOST_DPI.ordinal)) + return DpiFollowStrategy.FOLLOW_HOST_DPI + if ((arg0) == (DpiFollowStrategy.FOLLOW_UI_EXTENSION_ABILITY_DPI.ordinal)) + return DpiFollowStrategy.FOLLOW_UI_EXTENSION_ABILITY_DPI + throw new Error(`Enum member '${arg0}' not found`) + } +} +export class StyledStringKey { + static readonly FONT: StyledStringKey = new StyledStringKey(0,0) + static readonly DECORATION: StyledStringKey = new StyledStringKey(1,1) + static readonly BASELINE_OFFSET: StyledStringKey = new StyledStringKey(2,2) + static readonly LETTER_SPACING: StyledStringKey = new StyledStringKey(3,3) + static readonly TEXT_SHADOW: StyledStringKey = new StyledStringKey(4,4) + static readonly LINE_HEIGHT: StyledStringKey = new StyledStringKey(5,5) + static readonly BACKGROUND_COLOR: StyledStringKey = new StyledStringKey(6,6) + static readonly URL: StyledStringKey = new StyledStringKey(7,7) + static readonly GESTURE: StyledStringKey = new StyledStringKey(100,8) + static readonly PARAGRAPH_STYLE: StyledStringKey = new StyledStringKey(200,9) + static readonly IMAGE: StyledStringKey = new StyledStringKey(300,10) + static readonly CUSTOM_SPAN: StyledStringKey = new StyledStringKey(400,11) + static readonly USER_DATA: StyledStringKey = new StyledStringKey(500,12) + constructor(value: int32, ordinal: int32) { + this.value = value + this.ordinal = ordinal + } + public readonly value: int32 + public readonly ordinal: int32 + public static of(arg0: int32): StyledStringKey { + if ((arg0) == (StyledStringKey.FONT.value)) + return StyledStringKey.FONT + if ((arg0) == (StyledStringKey.DECORATION.value)) + return StyledStringKey.DECORATION + if ((arg0) == (StyledStringKey.BASELINE_OFFSET.value)) + return StyledStringKey.BASELINE_OFFSET + if ((arg0) == (StyledStringKey.LETTER_SPACING.value)) + return StyledStringKey.LETTER_SPACING + if ((arg0) == (StyledStringKey.TEXT_SHADOW.value)) + return StyledStringKey.TEXT_SHADOW + if ((arg0) == (StyledStringKey.LINE_HEIGHT.value)) + return StyledStringKey.LINE_HEIGHT + if ((arg0) == (StyledStringKey.BACKGROUND_COLOR.value)) + return StyledStringKey.BACKGROUND_COLOR + if ((arg0) == (StyledStringKey.URL.value)) + return StyledStringKey.URL + if ((arg0) == (StyledStringKey.GESTURE.value)) + return StyledStringKey.GESTURE + if ((arg0) == (StyledStringKey.PARAGRAPH_STYLE.value)) + return StyledStringKey.PARAGRAPH_STYLE + if ((arg0) == (StyledStringKey.IMAGE.value)) + return StyledStringKey.IMAGE + if ((arg0) == (StyledStringKey.CUSTOM_SPAN.value)) + return StyledStringKey.CUSTOM_SPAN + if ((arg0) == (StyledStringKey.USER_DATA.value)) + return StyledStringKey.USER_DATA + throw new Error(`Enum member '${arg0}' not found`) + } + public static ofOrdinal(arg0: int32): StyledStringKey { + if ((arg0) == (StyledStringKey.FONT.ordinal)) + return StyledStringKey.FONT + if ((arg0) == (StyledStringKey.DECORATION.ordinal)) + return StyledStringKey.DECORATION + if ((arg0) == (StyledStringKey.BASELINE_OFFSET.ordinal)) + return StyledStringKey.BASELINE_OFFSET + if ((arg0) == (StyledStringKey.LETTER_SPACING.ordinal)) + return StyledStringKey.LETTER_SPACING + if ((arg0) == (StyledStringKey.TEXT_SHADOW.ordinal)) + return StyledStringKey.TEXT_SHADOW + if ((arg0) == (StyledStringKey.LINE_HEIGHT.ordinal)) + return StyledStringKey.LINE_HEIGHT + if ((arg0) == (StyledStringKey.BACKGROUND_COLOR.ordinal)) + return StyledStringKey.BACKGROUND_COLOR + if ((arg0) == (StyledStringKey.URL.ordinal)) + return StyledStringKey.URL + if ((arg0) == (StyledStringKey.GESTURE.ordinal)) + return StyledStringKey.GESTURE + if ((arg0) == (StyledStringKey.PARAGRAPH_STYLE.ordinal)) + return StyledStringKey.PARAGRAPH_STYLE + if ((arg0) == (StyledStringKey.IMAGE.ordinal)) + return StyledStringKey.IMAGE + if ((arg0) == (StyledStringKey.CUSTOM_SPAN.ordinal)) + return StyledStringKey.CUSTOM_SPAN + if ((arg0) == (StyledStringKey.USER_DATA.ordinal)) + return StyledStringKey.USER_DATA + throw new Error(`Enum member '${arg0}' not found`) + } } \ No newline at end of file diff --git a/arkoala/tools/peer-generator/package.json b/arkoala/tools/peer-generator/package.json index acbedc1a7..8f5d4fe25 100644 --- a/arkoala/tools/peer-generator/package.json +++ b/arkoala/tools/peer-generator/package.json @@ -2,8 +2,8 @@ "name": "peer-generator", "description": "", "config": { - "idlize_version": "1.3.22", - "api_version": "108", + "idlize_version": "1.3.23", + "api_version": "110", "input_dir": "../../arkui-common/interface_sdk-js/api/@internal/component/ets/,../../arkui-common/interface_sdk-js/api/global" }, "scripts": { -- Gitee From c6072e1b2502d2abb62963258a32d68d8e23108e Mon Sep 17 00:00:00 2001 From: Anton Tarasov Date: Tue, 24 Dec 2024 11:28:01 +0300 Subject: [PATCH 02/11] fix ArkNavPathStackMaterialized.ts --- .../src/generated/ArkNavPathStackMaterialized.ts | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/arkoala-arkts/arkui/src/generated/ArkNavPathStackMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkNavPathStackMaterialized.ts index c6e8df22e..1ee9c7a44 100644 --- a/arkoala-arkts/arkui/src/generated/ArkNavPathStackMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkNavPathStackMaterialized.ts @@ -47,10 +47,11 @@ import { KFloat32ArrayPtr, pointer } from "@koalaui/interop" - +import {NavPathStackExtender} from "../handwritten"; export class NavPathStack implements MaterializedBase,INTERFACE_NavPathStack { peer?: Finalizable + _extender: NavPathStackExtender getPeer(): Finalizable | undefined { return this.peer } @@ -63,16 +64,18 @@ export class NavPathStack implements MaterializedBase,INTERFACE_NavPathStack { const retval = NativeModule._NavPathStack_ctor() return retval } - constructor() { + constructor() { { const ctorPtr : KPointer = NavPathStack.ctor() this.peer = new Finalizable(ctorPtr, NavPathStack.getFinalizer()) + this._extender = new NavPathStackExtender() } } static getFinalizer(): KPointer { return NativeModule._NavPathStack_getFinalizer() } pushPath(info: NavPathInfo, animated?: boolean | undefined | NavigationOptions | undefined): void { + this._extender.push(info.name, info.param) const info_type = runtimeType(info) const animated_type = runtimeType(animated) if ((((RuntimeType.OBJECT) == (info_type)) && (TypeChecker.isNavPathInfo(info, true, true, true, true))) && (((RuntimeType.BOOLEAN == animated_type)) || ((RuntimeType.UNDEFINED == animated_type)))) { @@ -181,6 +184,7 @@ export class NavPathStack implements MaterializedBase,INTERFACE_NavPathStack { return this.removeByNavDestinationId_serialize(navDestinationId_casted) } pop(result?: Object | boolean | undefined, animated?: boolean): NavPathInfo | undefined { + this._extender.pop() const result_type = runtimeType(result) const animated_type = runtimeType(animated) if ((((RuntimeType.OBJECT == result_type))) && (((RuntimeType.BOOLEAN == animated_type)) || ((RuntimeType.UNDEFINED == animated_type)))) { @@ -250,8 +254,7 @@ export class NavPathStack implements MaterializedBase,INTERFACE_NavPathStack { return this.getParamByIndex_serialize(index_casted) } getParamByName(name: string): Array { - const name_casted = name as (string) - return this.getParamByName_serialize(name_casted) + return this._extender.getParamByName(name) } getIndexByName(name: string): Array { const name_casted = name as (string) -- Gitee From 62a7b2f68ff276a6c1be47e777f6375fcc9c348b Mon Sep 17 00:00:00 2001 From: Anton Tarasov Date: Tue, 24 Dec 2024 12:07:44 +0300 Subject: [PATCH 03/11] Fix ArkNavPathStackMaterialized.ts --- .../arkui/src/generated/ArkNavPathStackMaterialized.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arkoala-arkts/arkui/src/generated/ArkNavPathStackMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkNavPathStackMaterialized.ts index 1ee9c7a44..22ce25a0b 100644 --- a/arkoala-arkts/arkui/src/generated/ArkNavPathStackMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkNavPathStackMaterialized.ts @@ -50,8 +50,8 @@ import { import {NavPathStackExtender} from "../handwritten"; export class NavPathStack implements MaterializedBase,INTERFACE_NavPathStack { + _extender = new NavPathStackExtender() peer?: Finalizable - _extender: NavPathStackExtender getPeer(): Finalizable | undefined { return this.peer } @@ -68,7 +68,6 @@ export class NavPathStack implements MaterializedBase,INTERFACE_NavPathStack { { const ctorPtr : KPointer = NavPathStack.ctor() this.peer = new Finalizable(ctorPtr, NavPathStack.getFinalizer()) - this._extender = new NavPathStackExtender() } } static getFinalizer(): KPointer { @@ -91,6 +90,7 @@ export class NavPathStack implements MaterializedBase,INTERFACE_NavPathStack { throw new Error("Can not select appropriate overload") } pushDestination(info: NavPathInfo, animated?: boolean | undefined | NavigationOptions | undefined): Promise { + this._extender.push(info.name, info.param) const info_type = runtimeType(info) const animated_type = runtimeType(animated) if ((((RuntimeType.OBJECT) == (info_type)) && (TypeChecker.isNavPathInfo(info, true, true, true, true))) && (((RuntimeType.BOOLEAN == animated_type)) || ((RuntimeType.UNDEFINED == animated_type)))) { -- Gitee From eda9fad0613e94ecd053659b8e459f81bba99ad8 Mon Sep 17 00:00:00 2001 From: Anton Tarasov Date: Tue, 24 Dec 2024 12:55:39 +0300 Subject: [PATCH 04/11] Revert EnumsImpl.ts --- arkoala/framework/src/generated/EnumsImpl.ts | 12098 +++-------------- 1 file changed, 2116 insertions(+), 9982 deletions(-) diff --git a/arkoala/framework/src/generated/EnumsImpl.ts b/arkoala/framework/src/generated/EnumsImpl.ts index 8da4c2fa0..af552fa8f 100644 --- a/arkoala/framework/src/generated/EnumsImpl.ts +++ b/arkoala/framework/src/generated/EnumsImpl.ts @@ -1,9984 +1,2118 @@ import { int32 } from "@koalaui/common" -export class PointerStyle { - static readonly DEFAULT: PointerStyle = new PointerStyle(0,0) - static readonly EAST: PointerStyle = new PointerStyle(1,1) - static readonly WEST: PointerStyle = new PointerStyle(2,2) - static readonly SOUTH: PointerStyle = new PointerStyle(3,3) - static readonly NORTH: PointerStyle = new PointerStyle(4,4) - static readonly WEST_EAST: PointerStyle = new PointerStyle(5,5) - static readonly NORTH_SOUTH: PointerStyle = new PointerStyle(6,6) - static readonly NORTH_EAST: PointerStyle = new PointerStyle(7,7) - static readonly NORTH_WEST: PointerStyle = new PointerStyle(8,8) - static readonly SOUTH_EAST: PointerStyle = new PointerStyle(9,9) - static readonly SOUTH_WEST: PointerStyle = new PointerStyle(10,10) - static readonly NORTH_EAST_SOUTH_WEST: PointerStyle = new PointerStyle(11,11) - static readonly NORTH_WEST_SOUTH_EAST: PointerStyle = new PointerStyle(12,12) - static readonly CROSS: PointerStyle = new PointerStyle(13,13) - static readonly CURSOR_COPY: PointerStyle = new PointerStyle(14,14) - static readonly CURSOR_FORBID: PointerStyle = new PointerStyle(15,15) - static readonly COLOR_SUCKER: PointerStyle = new PointerStyle(16,16) - static readonly HAND_GRABBING: PointerStyle = new PointerStyle(17,17) - static readonly HAND_OPEN: PointerStyle = new PointerStyle(18,18) - static readonly HAND_POINTING: PointerStyle = new PointerStyle(19,19) - static readonly HELP: PointerStyle = new PointerStyle(20,20) - static readonly MOVE: PointerStyle = new PointerStyle(21,21) - static readonly RESIZE_LEFT_RIGHT: PointerStyle = new PointerStyle(22,22) - static readonly RESIZE_UP_DOWN: PointerStyle = new PointerStyle(23,23) - static readonly SCREENSHOT_CHOOSE: PointerStyle = new PointerStyle(24,24) - static readonly SCREENSHOT_CURSOR: PointerStyle = new PointerStyle(25,25) - static readonly TEXT_CURSOR: PointerStyle = new PointerStyle(26,26) - static readonly ZOOM_IN: PointerStyle = new PointerStyle(27,27) - static readonly ZOOM_OUT: PointerStyle = new PointerStyle(28,28) - static readonly MIDDLE_BTN_EAST: PointerStyle = new PointerStyle(29,29) - static readonly MIDDLE_BTN_WEST: PointerStyle = new PointerStyle(30,30) - static readonly MIDDLE_BTN_SOUTH: PointerStyle = new PointerStyle(31,31) - static readonly MIDDLE_BTN_NORTH: PointerStyle = new PointerStyle(32,32) - static readonly MIDDLE_BTN_NORTH_SOUTH: PointerStyle = new PointerStyle(33,33) - static readonly MIDDLE_BTN_NORTH_EAST: PointerStyle = new PointerStyle(34,34) - static readonly MIDDLE_BTN_NORTH_WEST: PointerStyle = new PointerStyle(35,35) - static readonly MIDDLE_BTN_SOUTH_EAST: PointerStyle = new PointerStyle(36,36) - static readonly MIDDLE_BTN_SOUTH_WEST: PointerStyle = new PointerStyle(37,37) - static readonly MIDDLE_BTN_NORTH_SOUTH_WEST_EAST: PointerStyle = new PointerStyle(38,38) - static readonly HORIZONTAL_TEXT_CURSOR: PointerStyle = new PointerStyle(39,39) - static readonly CURSOR_CROSS: PointerStyle = new PointerStyle(40,40) - static readonly CURSOR_CIRCLE: PointerStyle = new PointerStyle(41,41) - static readonly LOADING: PointerStyle = new PointerStyle(42,42) - static readonly RUNNING: PointerStyle = new PointerStyle(43,43) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): PointerStyle { - if ((arg0) == (PointerStyle.DEFAULT.value)) - return PointerStyle.DEFAULT - if ((arg0) == (PointerStyle.EAST.value)) - return PointerStyle.EAST - if ((arg0) == (PointerStyle.WEST.value)) - return PointerStyle.WEST - if ((arg0) == (PointerStyle.SOUTH.value)) - return PointerStyle.SOUTH - if ((arg0) == (PointerStyle.NORTH.value)) - return PointerStyle.NORTH - if ((arg0) == (PointerStyle.WEST_EAST.value)) - return PointerStyle.WEST_EAST - if ((arg0) == (PointerStyle.NORTH_SOUTH.value)) - return PointerStyle.NORTH_SOUTH - if ((arg0) == (PointerStyle.NORTH_EAST.value)) - return PointerStyle.NORTH_EAST - if ((arg0) == (PointerStyle.NORTH_WEST.value)) - return PointerStyle.NORTH_WEST - if ((arg0) == (PointerStyle.SOUTH_EAST.value)) - return PointerStyle.SOUTH_EAST - if ((arg0) == (PointerStyle.SOUTH_WEST.value)) - return PointerStyle.SOUTH_WEST - if ((arg0) == (PointerStyle.NORTH_EAST_SOUTH_WEST.value)) - return PointerStyle.NORTH_EAST_SOUTH_WEST - if ((arg0) == (PointerStyle.NORTH_WEST_SOUTH_EAST.value)) - return PointerStyle.NORTH_WEST_SOUTH_EAST - if ((arg0) == (PointerStyle.CROSS.value)) - return PointerStyle.CROSS - if ((arg0) == (PointerStyle.CURSOR_COPY.value)) - return PointerStyle.CURSOR_COPY - if ((arg0) == (PointerStyle.CURSOR_FORBID.value)) - return PointerStyle.CURSOR_FORBID - if ((arg0) == (PointerStyle.COLOR_SUCKER.value)) - return PointerStyle.COLOR_SUCKER - if ((arg0) == (PointerStyle.HAND_GRABBING.value)) - return PointerStyle.HAND_GRABBING - if ((arg0) == (PointerStyle.HAND_OPEN.value)) - return PointerStyle.HAND_OPEN - if ((arg0) == (PointerStyle.HAND_POINTING.value)) - return PointerStyle.HAND_POINTING - if ((arg0) == (PointerStyle.HELP.value)) - return PointerStyle.HELP - if ((arg0) == (PointerStyle.MOVE.value)) - return PointerStyle.MOVE - if ((arg0) == (PointerStyle.RESIZE_LEFT_RIGHT.value)) - return PointerStyle.RESIZE_LEFT_RIGHT - if ((arg0) == (PointerStyle.RESIZE_UP_DOWN.value)) - return PointerStyle.RESIZE_UP_DOWN - if ((arg0) == (PointerStyle.SCREENSHOT_CHOOSE.value)) - return PointerStyle.SCREENSHOT_CHOOSE - if ((arg0) == (PointerStyle.SCREENSHOT_CURSOR.value)) - return PointerStyle.SCREENSHOT_CURSOR - if ((arg0) == (PointerStyle.TEXT_CURSOR.value)) - return PointerStyle.TEXT_CURSOR - if ((arg0) == (PointerStyle.ZOOM_IN.value)) - return PointerStyle.ZOOM_IN - if ((arg0) == (PointerStyle.ZOOM_OUT.value)) - return PointerStyle.ZOOM_OUT - if ((arg0) == (PointerStyle.MIDDLE_BTN_EAST.value)) - return PointerStyle.MIDDLE_BTN_EAST - if ((arg0) == (PointerStyle.MIDDLE_BTN_WEST.value)) - return PointerStyle.MIDDLE_BTN_WEST - if ((arg0) == (PointerStyle.MIDDLE_BTN_SOUTH.value)) - return PointerStyle.MIDDLE_BTN_SOUTH - if ((arg0) == (PointerStyle.MIDDLE_BTN_NORTH.value)) - return PointerStyle.MIDDLE_BTN_NORTH - if ((arg0) == (PointerStyle.MIDDLE_BTN_NORTH_SOUTH.value)) - return PointerStyle.MIDDLE_BTN_NORTH_SOUTH - if ((arg0) == (PointerStyle.MIDDLE_BTN_NORTH_EAST.value)) - return PointerStyle.MIDDLE_BTN_NORTH_EAST - if ((arg0) == (PointerStyle.MIDDLE_BTN_NORTH_WEST.value)) - return PointerStyle.MIDDLE_BTN_NORTH_WEST - if ((arg0) == (PointerStyle.MIDDLE_BTN_SOUTH_EAST.value)) - return PointerStyle.MIDDLE_BTN_SOUTH_EAST - if ((arg0) == (PointerStyle.MIDDLE_BTN_SOUTH_WEST.value)) - return PointerStyle.MIDDLE_BTN_SOUTH_WEST - if ((arg0) == (PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST.value)) - return PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST - if ((arg0) == (PointerStyle.HORIZONTAL_TEXT_CURSOR.value)) - return PointerStyle.HORIZONTAL_TEXT_CURSOR - if ((arg0) == (PointerStyle.CURSOR_CROSS.value)) - return PointerStyle.CURSOR_CROSS - if ((arg0) == (PointerStyle.CURSOR_CIRCLE.value)) - return PointerStyle.CURSOR_CIRCLE - if ((arg0) == (PointerStyle.LOADING.value)) - return PointerStyle.LOADING - if ((arg0) == (PointerStyle.RUNNING.value)) - return PointerStyle.RUNNING - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): PointerStyle { - if ((arg0) == (PointerStyle.DEFAULT.ordinal)) - return PointerStyle.DEFAULT - if ((arg0) == (PointerStyle.EAST.ordinal)) - return PointerStyle.EAST - if ((arg0) == (PointerStyle.WEST.ordinal)) - return PointerStyle.WEST - if ((arg0) == (PointerStyle.SOUTH.ordinal)) - return PointerStyle.SOUTH - if ((arg0) == (PointerStyle.NORTH.ordinal)) - return PointerStyle.NORTH - if ((arg0) == (PointerStyle.WEST_EAST.ordinal)) - return PointerStyle.WEST_EAST - if ((arg0) == (PointerStyle.NORTH_SOUTH.ordinal)) - return PointerStyle.NORTH_SOUTH - if ((arg0) == (PointerStyle.NORTH_EAST.ordinal)) - return PointerStyle.NORTH_EAST - if ((arg0) == (PointerStyle.NORTH_WEST.ordinal)) - return PointerStyle.NORTH_WEST - if ((arg0) == (PointerStyle.SOUTH_EAST.ordinal)) - return PointerStyle.SOUTH_EAST - if ((arg0) == (PointerStyle.SOUTH_WEST.ordinal)) - return PointerStyle.SOUTH_WEST - if ((arg0) == (PointerStyle.NORTH_EAST_SOUTH_WEST.ordinal)) - return PointerStyle.NORTH_EAST_SOUTH_WEST - if ((arg0) == (PointerStyle.NORTH_WEST_SOUTH_EAST.ordinal)) - return PointerStyle.NORTH_WEST_SOUTH_EAST - if ((arg0) == (PointerStyle.CROSS.ordinal)) - return PointerStyle.CROSS - if ((arg0) == (PointerStyle.CURSOR_COPY.ordinal)) - return PointerStyle.CURSOR_COPY - if ((arg0) == (PointerStyle.CURSOR_FORBID.ordinal)) - return PointerStyle.CURSOR_FORBID - if ((arg0) == (PointerStyle.COLOR_SUCKER.ordinal)) - return PointerStyle.COLOR_SUCKER - if ((arg0) == (PointerStyle.HAND_GRABBING.ordinal)) - return PointerStyle.HAND_GRABBING - if ((arg0) == (PointerStyle.HAND_OPEN.ordinal)) - return PointerStyle.HAND_OPEN - if ((arg0) == (PointerStyle.HAND_POINTING.ordinal)) - return PointerStyle.HAND_POINTING - if ((arg0) == (PointerStyle.HELP.ordinal)) - return PointerStyle.HELP - if ((arg0) == (PointerStyle.MOVE.ordinal)) - return PointerStyle.MOVE - if ((arg0) == (PointerStyle.RESIZE_LEFT_RIGHT.ordinal)) - return PointerStyle.RESIZE_LEFT_RIGHT - if ((arg0) == (PointerStyle.RESIZE_UP_DOWN.ordinal)) - return PointerStyle.RESIZE_UP_DOWN - if ((arg0) == (PointerStyle.SCREENSHOT_CHOOSE.ordinal)) - return PointerStyle.SCREENSHOT_CHOOSE - if ((arg0) == (PointerStyle.SCREENSHOT_CURSOR.ordinal)) - return PointerStyle.SCREENSHOT_CURSOR - if ((arg0) == (PointerStyle.TEXT_CURSOR.ordinal)) - return PointerStyle.TEXT_CURSOR - if ((arg0) == (PointerStyle.ZOOM_IN.ordinal)) - return PointerStyle.ZOOM_IN - if ((arg0) == (PointerStyle.ZOOM_OUT.ordinal)) - return PointerStyle.ZOOM_OUT - if ((arg0) == (PointerStyle.MIDDLE_BTN_EAST.ordinal)) - return PointerStyle.MIDDLE_BTN_EAST - if ((arg0) == (PointerStyle.MIDDLE_BTN_WEST.ordinal)) - return PointerStyle.MIDDLE_BTN_WEST - if ((arg0) == (PointerStyle.MIDDLE_BTN_SOUTH.ordinal)) - return PointerStyle.MIDDLE_BTN_SOUTH - if ((arg0) == (PointerStyle.MIDDLE_BTN_NORTH.ordinal)) - return PointerStyle.MIDDLE_BTN_NORTH - if ((arg0) == (PointerStyle.MIDDLE_BTN_NORTH_SOUTH.ordinal)) - return PointerStyle.MIDDLE_BTN_NORTH_SOUTH - if ((arg0) == (PointerStyle.MIDDLE_BTN_NORTH_EAST.ordinal)) - return PointerStyle.MIDDLE_BTN_NORTH_EAST - if ((arg0) == (PointerStyle.MIDDLE_BTN_NORTH_WEST.ordinal)) - return PointerStyle.MIDDLE_BTN_NORTH_WEST - if ((arg0) == (PointerStyle.MIDDLE_BTN_SOUTH_EAST.ordinal)) - return PointerStyle.MIDDLE_BTN_SOUTH_EAST - if ((arg0) == (PointerStyle.MIDDLE_BTN_SOUTH_WEST.ordinal)) - return PointerStyle.MIDDLE_BTN_SOUTH_WEST - if ((arg0) == (PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST.ordinal)) - return PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST - if ((arg0) == (PointerStyle.HORIZONTAL_TEXT_CURSOR.ordinal)) - return PointerStyle.HORIZONTAL_TEXT_CURSOR - if ((arg0) == (PointerStyle.CURSOR_CROSS.ordinal)) - return PointerStyle.CURSOR_CROSS - if ((arg0) == (PointerStyle.CURSOR_CIRCLE.ordinal)) - return PointerStyle.CURSOR_CIRCLE - if ((arg0) == (PointerStyle.LOADING.ordinal)) - return PointerStyle.LOADING - if ((arg0) == (PointerStyle.RUNNING.ordinal)) - return PointerStyle.RUNNING - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class RectWidthStyle { - static readonly TIGHT: RectWidthStyle = new RectWidthStyle(0,0) - static readonly MAX: RectWidthStyle = new RectWidthStyle(1,1) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): RectWidthStyle { - if ((arg0) == (RectWidthStyle.TIGHT.value)) - return RectWidthStyle.TIGHT - if ((arg0) == (RectWidthStyle.MAX.value)) - return RectWidthStyle.MAX - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): RectWidthStyle { - if ((arg0) == (RectWidthStyle.TIGHT.ordinal)) - return RectWidthStyle.TIGHT - if ((arg0) == (RectWidthStyle.MAX.ordinal)) - return RectWidthStyle.MAX - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class RectHeightStyle { - static readonly TIGHT: RectHeightStyle = new RectHeightStyle(0,0) - static readonly MAX: RectHeightStyle = new RectHeightStyle(1,1) - static readonly INCLUDE_LINE_SPACE_MIDDLE: RectHeightStyle = new RectHeightStyle(2,2) - static readonly INCLUDE_LINE_SPACE_TOP: RectHeightStyle = new RectHeightStyle(3,3) - static readonly INCLUDE_LINE_SPACE_BOTTOM: RectHeightStyle = new RectHeightStyle(4,4) - static readonly STRUT: RectHeightStyle = new RectHeightStyle(5,5) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): RectHeightStyle { - if ((arg0) == (RectHeightStyle.TIGHT.value)) - return RectHeightStyle.TIGHT - if ((arg0) == (RectHeightStyle.MAX.value)) - return RectHeightStyle.MAX - if ((arg0) == (RectHeightStyle.INCLUDE_LINE_SPACE_MIDDLE.value)) - return RectHeightStyle.INCLUDE_LINE_SPACE_MIDDLE - if ((arg0) == (RectHeightStyle.INCLUDE_LINE_SPACE_TOP.value)) - return RectHeightStyle.INCLUDE_LINE_SPACE_TOP - if ((arg0) == (RectHeightStyle.INCLUDE_LINE_SPACE_BOTTOM.value)) - return RectHeightStyle.INCLUDE_LINE_SPACE_BOTTOM - if ((arg0) == (RectHeightStyle.STRUT.value)) - return RectHeightStyle.STRUT - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): RectHeightStyle { - if ((arg0) == (RectHeightStyle.TIGHT.ordinal)) - return RectHeightStyle.TIGHT - if ((arg0) == (RectHeightStyle.MAX.ordinal)) - return RectHeightStyle.MAX - if ((arg0) == (RectHeightStyle.INCLUDE_LINE_SPACE_MIDDLE.ordinal)) - return RectHeightStyle.INCLUDE_LINE_SPACE_MIDDLE - if ((arg0) == (RectHeightStyle.INCLUDE_LINE_SPACE_TOP.ordinal)) - return RectHeightStyle.INCLUDE_LINE_SPACE_TOP - if ((arg0) == (RectHeightStyle.INCLUDE_LINE_SPACE_BOTTOM.ordinal)) - return RectHeightStyle.INCLUDE_LINE_SPACE_BOTTOM - if ((arg0) == (RectHeightStyle.STRUT.ordinal)) - return RectHeightStyle.STRUT - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class LengthUnit { - static readonly PX: LengthUnit = new LengthUnit(0,0) - static readonly VP: LengthUnit = new LengthUnit(1,1) - static readonly FP: LengthUnit = new LengthUnit(2,2) - static readonly PERCENT: LengthUnit = new LengthUnit(3,3) - static readonly LPX: LengthUnit = new LengthUnit(4,4) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): LengthUnit { - if ((arg0) == (LengthUnit.PX.value)) - return LengthUnit.PX - if ((arg0) == (LengthUnit.VP.value)) - return LengthUnit.VP - if ((arg0) == (LengthUnit.FP.value)) - return LengthUnit.FP - if ((arg0) == (LengthUnit.PERCENT.value)) - return LengthUnit.PERCENT - if ((arg0) == (LengthUnit.LPX.value)) - return LengthUnit.LPX - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): LengthUnit { - if ((arg0) == (LengthUnit.PX.ordinal)) - return LengthUnit.PX - if ((arg0) == (LengthUnit.VP.ordinal)) - return LengthUnit.VP - if ((arg0) == (LengthUnit.FP.ordinal)) - return LengthUnit.FP - if ((arg0) == (LengthUnit.PERCENT.ordinal)) - return LengthUnit.PERCENT - if ((arg0) == (LengthUnit.LPX.ordinal)) - return LengthUnit.LPX - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class DialogAlignment { - static readonly TOP: DialogAlignment = new DialogAlignment(0,0) - static readonly Top: DialogAlignment = DialogAlignment.TOP - static readonly CENTER: DialogAlignment = new DialogAlignment(1,1) - static readonly Center: DialogAlignment = DialogAlignment.CENTER - static readonly BOTTOM: DialogAlignment = new DialogAlignment(2,2) - static readonly Bottom: DialogAlignment = DialogAlignment.BOTTOM - static readonly DEFAULT: DialogAlignment = new DialogAlignment(3,3) - static readonly Default: DialogAlignment = DialogAlignment.DEFAULT - static readonly TOP_START: DialogAlignment = new DialogAlignment(4,4) - static readonly TopStart: DialogAlignment = DialogAlignment.TOP_START - static readonly TOP_END: DialogAlignment = new DialogAlignment(5,5) - static readonly TopEnd: DialogAlignment = DialogAlignment.TOP_END - static readonly CENTER_START: DialogAlignment = new DialogAlignment(6,6) - static readonly CenterStart: DialogAlignment = DialogAlignment.CENTER_START - static readonly CENTER_END: DialogAlignment = new DialogAlignment(7,7) - static readonly CenterEnd: DialogAlignment = DialogAlignment.CENTER_END - static readonly BOTTOM_START: DialogAlignment = new DialogAlignment(8,8) - static readonly BottomStart: DialogAlignment = DialogAlignment.BOTTOM_START - static readonly BOTTOM_END: DialogAlignment = new DialogAlignment(9,9) - static readonly BottomEnd: DialogAlignment = DialogAlignment.BOTTOM_END - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): DialogAlignment { - if ((arg0) == (DialogAlignment.TOP.value)) - return DialogAlignment.TOP - if ((arg0) == (DialogAlignment.CENTER.value)) - return DialogAlignment.CENTER - if ((arg0) == (DialogAlignment.BOTTOM.value)) - return DialogAlignment.BOTTOM - if ((arg0) == (DialogAlignment.DEFAULT.value)) - return DialogAlignment.DEFAULT - if ((arg0) == (DialogAlignment.TOP_START.value)) - return DialogAlignment.TOP_START - if ((arg0) == (DialogAlignment.TOP_END.value)) - return DialogAlignment.TOP_END - if ((arg0) == (DialogAlignment.CENTER_START.value)) - return DialogAlignment.CENTER_START - if ((arg0) == (DialogAlignment.CENTER_END.value)) - return DialogAlignment.CENTER_END - if ((arg0) == (DialogAlignment.BOTTOM_START.value)) - return DialogAlignment.BOTTOM_START - if ((arg0) == (DialogAlignment.BOTTOM_END.value)) - return DialogAlignment.BOTTOM_END - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): DialogAlignment { - if ((arg0) == (DialogAlignment.TOP.ordinal)) - return DialogAlignment.TOP - if ((arg0) == (DialogAlignment.CENTER.ordinal)) - return DialogAlignment.CENTER - if ((arg0) == (DialogAlignment.BOTTOM.ordinal)) - return DialogAlignment.BOTTOM - if ((arg0) == (DialogAlignment.DEFAULT.ordinal)) - return DialogAlignment.DEFAULT - if ((arg0) == (DialogAlignment.TOP_START.ordinal)) - return DialogAlignment.TOP_START - if ((arg0) == (DialogAlignment.TOP_END.ordinal)) - return DialogAlignment.TOP_END - if ((arg0) == (DialogAlignment.CENTER_START.ordinal)) - return DialogAlignment.CENTER_START - if ((arg0) == (DialogAlignment.CENTER_END.ordinal)) - return DialogAlignment.CENTER_END - if ((arg0) == (DialogAlignment.BOTTOM_START.ordinal)) - return DialogAlignment.BOTTOM_START - if ((arg0) == (DialogAlignment.BOTTOM_END.ordinal)) - return DialogAlignment.BOTTOM_END - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class DialogButtonDirection { - static readonly AUTO: DialogButtonDirection = new DialogButtonDirection(0,0) - static readonly HORIZONTAL: DialogButtonDirection = new DialogButtonDirection(1,1) - static readonly VERTICAL: DialogButtonDirection = new DialogButtonDirection(2,2) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): DialogButtonDirection { - if ((arg0) == (DialogButtonDirection.AUTO.value)) - return DialogButtonDirection.AUTO - if ((arg0) == (DialogButtonDirection.HORIZONTAL.value)) - return DialogButtonDirection.HORIZONTAL - if ((arg0) == (DialogButtonDirection.VERTICAL.value)) - return DialogButtonDirection.VERTICAL - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): DialogButtonDirection { - if ((arg0) == (DialogButtonDirection.AUTO.ordinal)) - return DialogButtonDirection.AUTO - if ((arg0) == (DialogButtonDirection.HORIZONTAL.ordinal)) - return DialogButtonDirection.HORIZONTAL - if ((arg0) == (DialogButtonDirection.VERTICAL.ordinal)) - return DialogButtonDirection.VERTICAL - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class IndexerAlign { - static readonly LEFT: IndexerAlign = new IndexerAlign(0,0) - static readonly Left: IndexerAlign = IndexerAlign.LEFT - static readonly RIGHT: IndexerAlign = new IndexerAlign(1,1) - static readonly Right: IndexerAlign = IndexerAlign.RIGHT - static readonly START: IndexerAlign = new IndexerAlign(2,2) - static readonly END: IndexerAlign = new IndexerAlign(3,3) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): IndexerAlign { - if ((arg0) == (IndexerAlign.LEFT.value)) - return IndexerAlign.LEFT - if ((arg0) == (IndexerAlign.RIGHT.value)) - return IndexerAlign.RIGHT - if ((arg0) == (IndexerAlign.START.value)) - return IndexerAlign.START - if ((arg0) == (IndexerAlign.END.value)) - return IndexerAlign.END - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): IndexerAlign { - if ((arg0) == (IndexerAlign.LEFT.ordinal)) - return IndexerAlign.LEFT - if ((arg0) == (IndexerAlign.RIGHT.ordinal)) - return IndexerAlign.RIGHT - if ((arg0) == (IndexerAlign.START.ordinal)) - return IndexerAlign.START - if ((arg0) == (IndexerAlign.END.ordinal)) - return IndexerAlign.END - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class BadgePosition { - static readonly RIGHT_TOP: BadgePosition = new BadgePosition(0,0) - static readonly RightTop: BadgePosition = BadgePosition.RIGHT_TOP - static readonly RIGHT: BadgePosition = new BadgePosition(1,1) - static readonly Right: BadgePosition = BadgePosition.RIGHT - static readonly LEFT: BadgePosition = new BadgePosition(2,2) - static readonly Left: BadgePosition = BadgePosition.LEFT - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): BadgePosition { - if ((arg0) == (BadgePosition.RIGHT_TOP.value)) - return BadgePosition.RIGHT_TOP - if ((arg0) == (BadgePosition.RIGHT.value)) - return BadgePosition.RIGHT - if ((arg0) == (BadgePosition.LEFT.value)) - return BadgePosition.LEFT - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): BadgePosition { - if ((arg0) == (BadgePosition.RIGHT_TOP.ordinal)) - return BadgePosition.RIGHT_TOP - if ((arg0) == (BadgePosition.RIGHT.ordinal)) - return BadgePosition.RIGHT - if ((arg0) == (BadgePosition.LEFT.ordinal)) - return BadgePosition.LEFT - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class ButtonType { - static readonly CAPSULE: ButtonType = new ButtonType(0,0) - static readonly Capsule: ButtonType = ButtonType.CAPSULE - static readonly CIRCLE: ButtonType = new ButtonType(1,1) - static readonly Circle: ButtonType = ButtonType.CIRCLE - static readonly NORMAL: ButtonType = new ButtonType(2,2) - static readonly Normal: ButtonType = ButtonType.NORMAL - static readonly ROUNDED_RECTANGLE: ButtonType = new ButtonType(3,3) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): ButtonType { - if ((arg0) == (ButtonType.CAPSULE.value)) - return ButtonType.CAPSULE - if ((arg0) == (ButtonType.CIRCLE.value)) - return ButtonType.CIRCLE - if ((arg0) == (ButtonType.NORMAL.value)) - return ButtonType.NORMAL - if ((arg0) == (ButtonType.ROUNDED_RECTANGLE.value)) - return ButtonType.ROUNDED_RECTANGLE - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): ButtonType { - if ((arg0) == (ButtonType.CAPSULE.ordinal)) - return ButtonType.CAPSULE - if ((arg0) == (ButtonType.CIRCLE.ordinal)) - return ButtonType.CIRCLE - if ((arg0) == (ButtonType.NORMAL.ordinal)) - return ButtonType.NORMAL - if ((arg0) == (ButtonType.ROUNDED_RECTANGLE.ordinal)) - return ButtonType.ROUNDED_RECTANGLE - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class ButtonStyleMode { - static readonly NORMAL: ButtonStyleMode = new ButtonStyleMode(0,0) - static readonly EMPHASIZED: ButtonStyleMode = new ButtonStyleMode(1,1) - static readonly TEXTUAL: ButtonStyleMode = new ButtonStyleMode(2,2) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): ButtonStyleMode { - if ((arg0) == (ButtonStyleMode.NORMAL.value)) - return ButtonStyleMode.NORMAL - if ((arg0) == (ButtonStyleMode.EMPHASIZED.value)) - return ButtonStyleMode.EMPHASIZED - if ((arg0) == (ButtonStyleMode.TEXTUAL.value)) - return ButtonStyleMode.TEXTUAL - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): ButtonStyleMode { - if ((arg0) == (ButtonStyleMode.NORMAL.ordinal)) - return ButtonStyleMode.NORMAL - if ((arg0) == (ButtonStyleMode.EMPHASIZED.ordinal)) - return ButtonStyleMode.EMPHASIZED - if ((arg0) == (ButtonStyleMode.TEXTUAL.ordinal)) - return ButtonStyleMode.TEXTUAL - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class ButtonRole { - static readonly NORMAL: ButtonRole = new ButtonRole(0,0) - static readonly ERROR: ButtonRole = new ButtonRole(1,1) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): ButtonRole { - if ((arg0) == (ButtonRole.NORMAL.value)) - return ButtonRole.NORMAL - if ((arg0) == (ButtonRole.ERROR.value)) - return ButtonRole.ERROR - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): ButtonRole { - if ((arg0) == (ButtonRole.NORMAL.ordinal)) - return ButtonRole.NORMAL - if ((arg0) == (ButtonRole.ERROR.ordinal)) - return ButtonRole.ERROR - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class ControlSize { - static readonly SMALL: ControlSize = new ControlSize("small",0) - static readonly NORMAL: ControlSize = new ControlSize("normal",1) - constructor(value: string, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: string - public readonly ordinal: int32 - public static of(arg0: string): ControlSize { - if ((arg0) == (ControlSize.SMALL.value)) - return ControlSize.SMALL - if ((arg0) == (ControlSize.NORMAL.value)) - return ControlSize.NORMAL - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): ControlSize { - if ((arg0) == (ControlSize.SMALL.ordinal)) - return ControlSize.SMALL - if ((arg0) == (ControlSize.NORMAL.ordinal)) - return ControlSize.NORMAL - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class CalendarAlign { - static readonly START: CalendarAlign = new CalendarAlign(0,0) - static readonly CENTER: CalendarAlign = new CalendarAlign(1,1) - static readonly END: CalendarAlign = new CalendarAlign(2,2) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): CalendarAlign { - if ((arg0) == (CalendarAlign.START.value)) - return CalendarAlign.START - if ((arg0) == (CalendarAlign.CENTER.value)) - return CalendarAlign.CENTER - if ((arg0) == (CalendarAlign.END.value)) - return CalendarAlign.END - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): CalendarAlign { - if ((arg0) == (CalendarAlign.START.ordinal)) - return CalendarAlign.START - if ((arg0) == (CalendarAlign.CENTER.ordinal)) - return CalendarAlign.CENTER - if ((arg0) == (CalendarAlign.END.ordinal)) - return CalendarAlign.END - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class SelectStatus { - static readonly ALL: SelectStatus = new SelectStatus(0,0) - static readonly All: SelectStatus = SelectStatus.ALL - static readonly PART: SelectStatus = new SelectStatus(1,1) - static readonly Part: SelectStatus = SelectStatus.PART - static readonly NONE: SelectStatus = new SelectStatus(2,2) - static readonly None: SelectStatus = SelectStatus.NONE - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): SelectStatus { - if ((arg0) == (SelectStatus.ALL.value)) - return SelectStatus.ALL - if ((arg0) == (SelectStatus.PART.value)) - return SelectStatus.PART - if ((arg0) == (SelectStatus.NONE.value)) - return SelectStatus.NONE - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): SelectStatus { - if ((arg0) == (SelectStatus.ALL.ordinal)) - return SelectStatus.ALL - if ((arg0) == (SelectStatus.PART.ordinal)) - return SelectStatus.PART - if ((arg0) == (SelectStatus.NONE.ordinal)) - return SelectStatus.NONE - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class FinishCallbackType { - static readonly REMOVED: FinishCallbackType = new FinishCallbackType(0,0) - static readonly LOGICALLY: FinishCallbackType = new FinishCallbackType(1,1) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): FinishCallbackType { - if ((arg0) == (FinishCallbackType.REMOVED.value)) - return FinishCallbackType.REMOVED - if ((arg0) == (FinishCallbackType.LOGICALLY.value)) - return FinishCallbackType.LOGICALLY - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): FinishCallbackType { - if ((arg0) == (FinishCallbackType.REMOVED.ordinal)) - return FinishCallbackType.REMOVED - if ((arg0) == (FinishCallbackType.LOGICALLY.ordinal)) - return FinishCallbackType.LOGICALLY - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class TouchTestStrategy { - static readonly DEFAULT: TouchTestStrategy = new TouchTestStrategy(0,0) - static readonly FORWARD_COMPETITION: TouchTestStrategy = new TouchTestStrategy(1,1) - static readonly FORWARD: TouchTestStrategy = new TouchTestStrategy(2,2) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): TouchTestStrategy { - if ((arg0) == (TouchTestStrategy.DEFAULT.value)) - return TouchTestStrategy.DEFAULT - if ((arg0) == (TouchTestStrategy.FORWARD_COMPETITION.value)) - return TouchTestStrategy.FORWARD_COMPETITION - if ((arg0) == (TouchTestStrategy.FORWARD.value)) - return TouchTestStrategy.FORWARD - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): TouchTestStrategy { - if ((arg0) == (TouchTestStrategy.DEFAULT.ordinal)) - return TouchTestStrategy.DEFAULT - if ((arg0) == (TouchTestStrategy.FORWARD_COMPETITION.ordinal)) - return TouchTestStrategy.FORWARD_COMPETITION - if ((arg0) == (TouchTestStrategy.FORWARD.ordinal)) - return TouchTestStrategy.FORWARD - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class TransitionHierarchyStrategy { - static readonly NONE: TransitionHierarchyStrategy = new TransitionHierarchyStrategy(0,0) - static readonly ADAPTIVE: TransitionHierarchyStrategy = new TransitionHierarchyStrategy(1,1) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): TransitionHierarchyStrategy { - if ((arg0) == (TransitionHierarchyStrategy.NONE.value)) - return TransitionHierarchyStrategy.NONE - if ((arg0) == (TransitionHierarchyStrategy.ADAPTIVE.value)) - return TransitionHierarchyStrategy.ADAPTIVE - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): TransitionHierarchyStrategy { - if ((arg0) == (TransitionHierarchyStrategy.NONE.ordinal)) - return TransitionHierarchyStrategy.NONE - if ((arg0) == (TransitionHierarchyStrategy.ADAPTIVE.ordinal)) - return TransitionHierarchyStrategy.ADAPTIVE - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class ChainStyle { - static readonly SPREAD: ChainStyle = new ChainStyle(0,0) - static readonly SPREAD_INSIDE: ChainStyle = new ChainStyle(1,1) - static readonly PACKED: ChainStyle = new ChainStyle(2,2) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): ChainStyle { - if ((arg0) == (ChainStyle.SPREAD.value)) - return ChainStyle.SPREAD - if ((arg0) == (ChainStyle.SPREAD_INSIDE.value)) - return ChainStyle.SPREAD_INSIDE - if ((arg0) == (ChainStyle.PACKED.value)) - return ChainStyle.PACKED - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): ChainStyle { - if ((arg0) == (ChainStyle.SPREAD.ordinal)) - return ChainStyle.SPREAD - if ((arg0) == (ChainStyle.SPREAD_INSIDE.ordinal)) - return ChainStyle.SPREAD_INSIDE - if ((arg0) == (ChainStyle.PACKED.ordinal)) - return ChainStyle.PACKED - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class TransitionEdge { - static readonly TOP: TransitionEdge = new TransitionEdge(0,0) - static readonly BOTTOM: TransitionEdge = new TransitionEdge(1,1) - static readonly START: TransitionEdge = new TransitionEdge(2,2) - static readonly END: TransitionEdge = new TransitionEdge(3,3) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): TransitionEdge { - if ((arg0) == (TransitionEdge.TOP.value)) - return TransitionEdge.TOP - if ((arg0) == (TransitionEdge.BOTTOM.value)) - return TransitionEdge.BOTTOM - if ((arg0) == (TransitionEdge.START.value)) - return TransitionEdge.START - if ((arg0) == (TransitionEdge.END.value)) - return TransitionEdge.END - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): TransitionEdge { - if ((arg0) == (TransitionEdge.TOP.ordinal)) - return TransitionEdge.TOP - if ((arg0) == (TransitionEdge.BOTTOM.ordinal)) - return TransitionEdge.BOTTOM - if ((arg0) == (TransitionEdge.START.ordinal)) - return TransitionEdge.START - if ((arg0) == (TransitionEdge.END.ordinal)) - return TransitionEdge.END - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class EffectType { - static readonly DEFAULT: EffectType = new EffectType(0,0) - static readonly WINDOW_EFFECT: EffectType = new EffectType(1,1) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): EffectType { - if ((arg0) == (EffectType.DEFAULT.value)) - return EffectType.DEFAULT - if ((arg0) == (EffectType.WINDOW_EFFECT.value)) - return EffectType.WINDOW_EFFECT - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): EffectType { - if ((arg0) == (EffectType.DEFAULT.ordinal)) - return EffectType.DEFAULT - if ((arg0) == (EffectType.WINDOW_EFFECT.ordinal)) - return EffectType.WINDOW_EFFECT - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class PreDragStatus { - static readonly ACTION_DETECTING_STATUS: PreDragStatus = new PreDragStatus(0,0) - static readonly READY_TO_TRIGGER_DRAG_ACTION: PreDragStatus = new PreDragStatus(1,1) - static readonly PREVIEW_LIFT_STARTED: PreDragStatus = new PreDragStatus(2,2) - static readonly PREVIEW_LIFT_FINISHED: PreDragStatus = new PreDragStatus(3,3) - static readonly PREVIEW_LANDING_STARTED: PreDragStatus = new PreDragStatus(4,4) - static readonly PREVIEW_LANDING_FINISHED: PreDragStatus = new PreDragStatus(5,5) - static readonly ACTION_CANCELED_BEFORE_DRAG: PreDragStatus = new PreDragStatus(6,6) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): PreDragStatus { - if ((arg0) == (PreDragStatus.ACTION_DETECTING_STATUS.value)) - return PreDragStatus.ACTION_DETECTING_STATUS - if ((arg0) == (PreDragStatus.READY_TO_TRIGGER_DRAG_ACTION.value)) - return PreDragStatus.READY_TO_TRIGGER_DRAG_ACTION - if ((arg0) == (PreDragStatus.PREVIEW_LIFT_STARTED.value)) - return PreDragStatus.PREVIEW_LIFT_STARTED - if ((arg0) == (PreDragStatus.PREVIEW_LIFT_FINISHED.value)) - return PreDragStatus.PREVIEW_LIFT_FINISHED - if ((arg0) == (PreDragStatus.PREVIEW_LANDING_STARTED.value)) - return PreDragStatus.PREVIEW_LANDING_STARTED - if ((arg0) == (PreDragStatus.PREVIEW_LANDING_FINISHED.value)) - return PreDragStatus.PREVIEW_LANDING_FINISHED - if ((arg0) == (PreDragStatus.ACTION_CANCELED_BEFORE_DRAG.value)) - return PreDragStatus.ACTION_CANCELED_BEFORE_DRAG - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): PreDragStatus { - if ((arg0) == (PreDragStatus.ACTION_DETECTING_STATUS.ordinal)) - return PreDragStatus.ACTION_DETECTING_STATUS - if ((arg0) == (PreDragStatus.READY_TO_TRIGGER_DRAG_ACTION.ordinal)) - return PreDragStatus.READY_TO_TRIGGER_DRAG_ACTION - if ((arg0) == (PreDragStatus.PREVIEW_LIFT_STARTED.ordinal)) - return PreDragStatus.PREVIEW_LIFT_STARTED - if ((arg0) == (PreDragStatus.PREVIEW_LIFT_FINISHED.ordinal)) - return PreDragStatus.PREVIEW_LIFT_FINISHED - if ((arg0) == (PreDragStatus.PREVIEW_LANDING_STARTED.ordinal)) - return PreDragStatus.PREVIEW_LANDING_STARTED - if ((arg0) == (PreDragStatus.PREVIEW_LANDING_FINISHED.ordinal)) - return PreDragStatus.PREVIEW_LANDING_FINISHED - if ((arg0) == (PreDragStatus.ACTION_CANCELED_BEFORE_DRAG.ordinal)) - return PreDragStatus.ACTION_CANCELED_BEFORE_DRAG - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class SourceType { - static readonly UNKNOWN: SourceType = new SourceType(0,0) - static readonly Unknown: SourceType = SourceType.UNKNOWN - static readonly MOUSE: SourceType = new SourceType(1,1) - static readonly Mouse: SourceType = SourceType.MOUSE - static readonly TOUCH_SCREEN: SourceType = new SourceType(2,2) - static readonly TouchScreen: SourceType = SourceType.TOUCH_SCREEN - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): SourceType { - if ((arg0) == (SourceType.UNKNOWN.value)) - return SourceType.UNKNOWN - if ((arg0) == (SourceType.MOUSE.value)) - return SourceType.MOUSE - if ((arg0) == (SourceType.TOUCH_SCREEN.value)) - return SourceType.TOUCH_SCREEN - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): SourceType { - if ((arg0) == (SourceType.UNKNOWN.ordinal)) - return SourceType.UNKNOWN - if ((arg0) == (SourceType.MOUSE.ordinal)) - return SourceType.MOUSE - if ((arg0) == (SourceType.TOUCH_SCREEN.ordinal)) - return SourceType.TOUCH_SCREEN - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class SourceTool { - static readonly UNKNOWN: SourceTool = new SourceTool(0,0) - static readonly Unknown: SourceTool = SourceTool.UNKNOWN - static readonly FINGER: SourceTool = new SourceTool(1,1) - static readonly Finger: SourceTool = SourceTool.FINGER - static readonly PEN: SourceTool = new SourceTool(2,2) - static readonly Pen: SourceTool = SourceTool.PEN - static readonly MOUSE: SourceTool = new SourceTool(3,3) - static readonly TOUCHPAD: SourceTool = new SourceTool(4,4) - static readonly JOYSTICK: SourceTool = new SourceTool(5,5) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): SourceTool { - if ((arg0) == (SourceTool.UNKNOWN.value)) - return SourceTool.UNKNOWN - if ((arg0) == (SourceTool.FINGER.value)) - return SourceTool.FINGER - if ((arg0) == (SourceTool.PEN.value)) - return SourceTool.PEN - if ((arg0) == (SourceTool.MOUSE.value)) - return SourceTool.MOUSE - if ((arg0) == (SourceTool.TOUCHPAD.value)) - return SourceTool.TOUCHPAD - if ((arg0) == (SourceTool.JOYSTICK.value)) - return SourceTool.JOYSTICK - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): SourceTool { - if ((arg0) == (SourceTool.UNKNOWN.ordinal)) - return SourceTool.UNKNOWN - if ((arg0) == (SourceTool.FINGER.ordinal)) - return SourceTool.FINGER - if ((arg0) == (SourceTool.PEN.ordinal)) - return SourceTool.PEN - if ((arg0) == (SourceTool.MOUSE.ordinal)) - return SourceTool.MOUSE - if ((arg0) == (SourceTool.TOUCHPAD.ordinal)) - return SourceTool.TOUCHPAD - if ((arg0) == (SourceTool.JOYSTICK.ordinal)) - return SourceTool.JOYSTICK - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class RepeatMode { - static readonly REPEAT: RepeatMode = new RepeatMode(0,0) - static readonly Repeat: RepeatMode = RepeatMode.REPEAT - static readonly STRETCH: RepeatMode = new RepeatMode(1,1) - static readonly Stretch: RepeatMode = RepeatMode.STRETCH - static readonly ROUND: RepeatMode = new RepeatMode(2,2) - static readonly Round: RepeatMode = RepeatMode.ROUND - static readonly SPACE: RepeatMode = new RepeatMode(3,3) - static readonly Space: RepeatMode = RepeatMode.SPACE - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): RepeatMode { - if ((arg0) == (RepeatMode.REPEAT.value)) - return RepeatMode.REPEAT - if ((arg0) == (RepeatMode.STRETCH.value)) - return RepeatMode.STRETCH - if ((arg0) == (RepeatMode.ROUND.value)) - return RepeatMode.ROUND - if ((arg0) == (RepeatMode.SPACE.value)) - return RepeatMode.SPACE - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): RepeatMode { - if ((arg0) == (RepeatMode.REPEAT.ordinal)) - return RepeatMode.REPEAT - if ((arg0) == (RepeatMode.STRETCH.ordinal)) - return RepeatMode.STRETCH - if ((arg0) == (RepeatMode.ROUND.ordinal)) - return RepeatMode.ROUND - if ((arg0) == (RepeatMode.SPACE.ordinal)) - return RepeatMode.SPACE - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class BlurStyle { - static readonly THIN: BlurStyle = new BlurStyle(0,0) - static readonly Thin: BlurStyle = BlurStyle.THIN - static readonly REGULAR: BlurStyle = new BlurStyle(1,1) - static readonly Regular: BlurStyle = BlurStyle.REGULAR - static readonly THICK: BlurStyle = new BlurStyle(2,2) - static readonly Thick: BlurStyle = BlurStyle.THICK - static readonly BACKGROUND_THIN: BlurStyle = new BlurStyle(3,3) - static readonly BACKGROUND_REGULAR: BlurStyle = new BlurStyle(4,4) - static readonly BACKGROUND_THICK: BlurStyle = new BlurStyle(5,5) - static readonly BACKGROUND_ULTRA_THICK: BlurStyle = new BlurStyle(6,6) - static readonly NONE: BlurStyle = new BlurStyle(7,7) - static readonly COMPONENT_ULTRA_THIN: BlurStyle = new BlurStyle(8,8) - static readonly COMPONENT_THIN: BlurStyle = new BlurStyle(9,9) - static readonly COMPONENT_REGULAR: BlurStyle = new BlurStyle(10,10) - static readonly COMPONENT_THICK: BlurStyle = new BlurStyle(11,11) - static readonly COMPONENT_ULTRA_THICK: BlurStyle = new BlurStyle(12,12) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): BlurStyle { - if ((arg0) == (BlurStyle.THIN.value)) - return BlurStyle.THIN - if ((arg0) == (BlurStyle.REGULAR.value)) - return BlurStyle.REGULAR - if ((arg0) == (BlurStyle.THICK.value)) - return BlurStyle.THICK - if ((arg0) == (BlurStyle.BACKGROUND_THIN.value)) - return BlurStyle.BACKGROUND_THIN - if ((arg0) == (BlurStyle.BACKGROUND_REGULAR.value)) - return BlurStyle.BACKGROUND_REGULAR - if ((arg0) == (BlurStyle.BACKGROUND_THICK.value)) - return BlurStyle.BACKGROUND_THICK - if ((arg0) == (BlurStyle.BACKGROUND_ULTRA_THICK.value)) - return BlurStyle.BACKGROUND_ULTRA_THICK - if ((arg0) == (BlurStyle.NONE.value)) - return BlurStyle.NONE - if ((arg0) == (BlurStyle.COMPONENT_ULTRA_THIN.value)) - return BlurStyle.COMPONENT_ULTRA_THIN - if ((arg0) == (BlurStyle.COMPONENT_THIN.value)) - return BlurStyle.COMPONENT_THIN - if ((arg0) == (BlurStyle.COMPONENT_REGULAR.value)) - return BlurStyle.COMPONENT_REGULAR - if ((arg0) == (BlurStyle.COMPONENT_THICK.value)) - return BlurStyle.COMPONENT_THICK - if ((arg0) == (BlurStyle.COMPONENT_ULTRA_THICK.value)) - return BlurStyle.COMPONENT_ULTRA_THICK - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): BlurStyle { - if ((arg0) == (BlurStyle.THIN.ordinal)) - return BlurStyle.THIN - if ((arg0) == (BlurStyle.REGULAR.ordinal)) - return BlurStyle.REGULAR - if ((arg0) == (BlurStyle.THICK.ordinal)) - return BlurStyle.THICK - if ((arg0) == (BlurStyle.BACKGROUND_THIN.ordinal)) - return BlurStyle.BACKGROUND_THIN - if ((arg0) == (BlurStyle.BACKGROUND_REGULAR.ordinal)) - return BlurStyle.BACKGROUND_REGULAR - if ((arg0) == (BlurStyle.BACKGROUND_THICK.ordinal)) - return BlurStyle.BACKGROUND_THICK - if ((arg0) == (BlurStyle.BACKGROUND_ULTRA_THICK.ordinal)) - return BlurStyle.BACKGROUND_ULTRA_THICK - if ((arg0) == (BlurStyle.NONE.ordinal)) - return BlurStyle.NONE - if ((arg0) == (BlurStyle.COMPONENT_ULTRA_THIN.ordinal)) - return BlurStyle.COMPONENT_ULTRA_THIN - if ((arg0) == (BlurStyle.COMPONENT_THIN.ordinal)) - return BlurStyle.COMPONENT_THIN - if ((arg0) == (BlurStyle.COMPONENT_REGULAR.ordinal)) - return BlurStyle.COMPONENT_REGULAR - if ((arg0) == (BlurStyle.COMPONENT_THICK.ordinal)) - return BlurStyle.COMPONENT_THICK - if ((arg0) == (BlurStyle.COMPONENT_ULTRA_THICK.ordinal)) - return BlurStyle.COMPONENT_ULTRA_THICK - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class BlurStyleActivePolicy { - static readonly FOLLOWS_WINDOW_ACTIVE_STATE: BlurStyleActivePolicy = new BlurStyleActivePolicy(0,0) - static readonly ALWAYS_ACTIVE: BlurStyleActivePolicy = new BlurStyleActivePolicy(1,1) - static readonly ALWAYS_INACTIVE: BlurStyleActivePolicy = new BlurStyleActivePolicy(2,2) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): BlurStyleActivePolicy { - if ((arg0) == (BlurStyleActivePolicy.FOLLOWS_WINDOW_ACTIVE_STATE.value)) - return BlurStyleActivePolicy.FOLLOWS_WINDOW_ACTIVE_STATE - if ((arg0) == (BlurStyleActivePolicy.ALWAYS_ACTIVE.value)) - return BlurStyleActivePolicy.ALWAYS_ACTIVE - if ((arg0) == (BlurStyleActivePolicy.ALWAYS_INACTIVE.value)) - return BlurStyleActivePolicy.ALWAYS_INACTIVE - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): BlurStyleActivePolicy { - if ((arg0) == (BlurStyleActivePolicy.FOLLOWS_WINDOW_ACTIVE_STATE.ordinal)) - return BlurStyleActivePolicy.FOLLOWS_WINDOW_ACTIVE_STATE - if ((arg0) == (BlurStyleActivePolicy.ALWAYS_ACTIVE.ordinal)) - return BlurStyleActivePolicy.ALWAYS_ACTIVE - if ((arg0) == (BlurStyleActivePolicy.ALWAYS_INACTIVE.ordinal)) - return BlurStyleActivePolicy.ALWAYS_INACTIVE - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class ThemeColorMode { - static readonly SYSTEM: ThemeColorMode = new ThemeColorMode(0,0) - static readonly LIGHT: ThemeColorMode = new ThemeColorMode(1,1) - static readonly DARK: ThemeColorMode = new ThemeColorMode(2,2) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): ThemeColorMode { - if ((arg0) == (ThemeColorMode.SYSTEM.value)) - return ThemeColorMode.SYSTEM - if ((arg0) == (ThemeColorMode.LIGHT.value)) - return ThemeColorMode.LIGHT - if ((arg0) == (ThemeColorMode.DARK.value)) - return ThemeColorMode.DARK - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): ThemeColorMode { - if ((arg0) == (ThemeColorMode.SYSTEM.ordinal)) - return ThemeColorMode.SYSTEM - if ((arg0) == (ThemeColorMode.LIGHT.ordinal)) - return ThemeColorMode.LIGHT - if ((arg0) == (ThemeColorMode.DARK.ordinal)) - return ThemeColorMode.DARK - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class AdaptiveColor { - static readonly DEFAULT: AdaptiveColor = new AdaptiveColor(0,0) - static readonly AVERAGE: AdaptiveColor = new AdaptiveColor(1,1) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): AdaptiveColor { - if ((arg0) == (AdaptiveColor.DEFAULT.value)) - return AdaptiveColor.DEFAULT - if ((arg0) == (AdaptiveColor.AVERAGE.value)) - return AdaptiveColor.AVERAGE - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): AdaptiveColor { - if ((arg0) == (AdaptiveColor.DEFAULT.ordinal)) - return AdaptiveColor.DEFAULT - if ((arg0) == (AdaptiveColor.AVERAGE.ordinal)) - return AdaptiveColor.AVERAGE - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class ModalTransition { - static readonly DEFAULT: ModalTransition = new ModalTransition(0,0) - static readonly NONE: ModalTransition = new ModalTransition(1,1) - static readonly ALPHA: ModalTransition = new ModalTransition(2,2) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): ModalTransition { - if ((arg0) == (ModalTransition.DEFAULT.value)) - return ModalTransition.DEFAULT - if ((arg0) == (ModalTransition.NONE.value)) - return ModalTransition.NONE - if ((arg0) == (ModalTransition.ALPHA.value)) - return ModalTransition.ALPHA - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): ModalTransition { - if ((arg0) == (ModalTransition.DEFAULT.ordinal)) - return ModalTransition.DEFAULT - if ((arg0) == (ModalTransition.NONE.ordinal)) - return ModalTransition.NONE - if ((arg0) == (ModalTransition.ALPHA.ordinal)) - return ModalTransition.ALPHA - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class ShadowType { - static readonly COLOR: ShadowType = new ShadowType(0,0) - static readonly BLUR: ShadowType = new ShadowType(1,1) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): ShadowType { - if ((arg0) == (ShadowType.COLOR.value)) - return ShadowType.COLOR - if ((arg0) == (ShadowType.BLUR.value)) - return ShadowType.BLUR - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): ShadowType { - if ((arg0) == (ShadowType.COLOR.ordinal)) - return ShadowType.COLOR - if ((arg0) == (ShadowType.BLUR.ordinal)) - return ShadowType.BLUR - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class ShadowStyle { - static readonly OUTER_DEFAULT_XS: ShadowStyle = new ShadowStyle(0,0) - static readonly OUTER_DEFAULT_SM: ShadowStyle = new ShadowStyle(1,1) - static readonly OUTER_DEFAULT_MD: ShadowStyle = new ShadowStyle(2,2) - static readonly OUTER_DEFAULT_LG: ShadowStyle = new ShadowStyle(3,3) - static readonly OUTER_FLOATING_SM: ShadowStyle = new ShadowStyle(4,4) - static readonly OUTER_FLOATING_MD: ShadowStyle = new ShadowStyle(5,5) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): ShadowStyle { - if ((arg0) == (ShadowStyle.OUTER_DEFAULT_XS.value)) - return ShadowStyle.OUTER_DEFAULT_XS - if ((arg0) == (ShadowStyle.OUTER_DEFAULT_SM.value)) - return ShadowStyle.OUTER_DEFAULT_SM - if ((arg0) == (ShadowStyle.OUTER_DEFAULT_MD.value)) - return ShadowStyle.OUTER_DEFAULT_MD - if ((arg0) == (ShadowStyle.OUTER_DEFAULT_LG.value)) - return ShadowStyle.OUTER_DEFAULT_LG - if ((arg0) == (ShadowStyle.OUTER_FLOATING_SM.value)) - return ShadowStyle.OUTER_FLOATING_SM - if ((arg0) == (ShadowStyle.OUTER_FLOATING_MD.value)) - return ShadowStyle.OUTER_FLOATING_MD - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): ShadowStyle { - if ((arg0) == (ShadowStyle.OUTER_DEFAULT_XS.ordinal)) - return ShadowStyle.OUTER_DEFAULT_XS - if ((arg0) == (ShadowStyle.OUTER_DEFAULT_SM.ordinal)) - return ShadowStyle.OUTER_DEFAULT_SM - if ((arg0) == (ShadowStyle.OUTER_DEFAULT_MD.ordinal)) - return ShadowStyle.OUTER_DEFAULT_MD - if ((arg0) == (ShadowStyle.OUTER_DEFAULT_LG.ordinal)) - return ShadowStyle.OUTER_DEFAULT_LG - if ((arg0) == (ShadowStyle.OUTER_FLOATING_SM.ordinal)) - return ShadowStyle.OUTER_FLOATING_SM - if ((arg0) == (ShadowStyle.OUTER_FLOATING_MD.ordinal)) - return ShadowStyle.OUTER_FLOATING_MD - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class SafeAreaType { - static readonly SYSTEM: SafeAreaType = new SafeAreaType(0,0) - static readonly CUTOUT: SafeAreaType = new SafeAreaType(1,1) - static readonly KEYBOARD: SafeAreaType = new SafeAreaType(2,2) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): SafeAreaType { - if ((arg0) == (SafeAreaType.SYSTEM.value)) - return SafeAreaType.SYSTEM - if ((arg0) == (SafeAreaType.CUTOUT.value)) - return SafeAreaType.CUTOUT - if ((arg0) == (SafeAreaType.KEYBOARD.value)) - return SafeAreaType.KEYBOARD - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): SafeAreaType { - if ((arg0) == (SafeAreaType.SYSTEM.ordinal)) - return SafeAreaType.SYSTEM - if ((arg0) == (SafeAreaType.CUTOUT.ordinal)) - return SafeAreaType.CUTOUT - if ((arg0) == (SafeAreaType.KEYBOARD.ordinal)) - return SafeAreaType.KEYBOARD - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class SafeAreaEdge { - static readonly TOP: SafeAreaEdge = new SafeAreaEdge(0,0) - static readonly BOTTOM: SafeAreaEdge = new SafeAreaEdge(1,1) - static readonly START: SafeAreaEdge = new SafeAreaEdge(2,2) - static readonly END: SafeAreaEdge = new SafeAreaEdge(3,3) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): SafeAreaEdge { - if ((arg0) == (SafeAreaEdge.TOP.value)) - return SafeAreaEdge.TOP - if ((arg0) == (SafeAreaEdge.BOTTOM.value)) - return SafeAreaEdge.BOTTOM - if ((arg0) == (SafeAreaEdge.START.value)) - return SafeAreaEdge.START - if ((arg0) == (SafeAreaEdge.END.value)) - return SafeAreaEdge.END - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): SafeAreaEdge { - if ((arg0) == (SafeAreaEdge.TOP.ordinal)) - return SafeAreaEdge.TOP - if ((arg0) == (SafeAreaEdge.BOTTOM.ordinal)) - return SafeAreaEdge.BOTTOM - if ((arg0) == (SafeAreaEdge.START.ordinal)) - return SafeAreaEdge.START - if ((arg0) == (SafeAreaEdge.END.ordinal)) - return SafeAreaEdge.END - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class LayoutSafeAreaType { - static readonly SYSTEM: LayoutSafeAreaType = new LayoutSafeAreaType(0,0) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): LayoutSafeAreaType { - if ((arg0) == (LayoutSafeAreaType.SYSTEM.value)) - return LayoutSafeAreaType.SYSTEM - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): LayoutSafeAreaType { - if ((arg0) == (LayoutSafeAreaType.SYSTEM.ordinal)) - return LayoutSafeAreaType.SYSTEM - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class LayoutSafeAreaEdge { - static readonly TOP: LayoutSafeAreaEdge = new LayoutSafeAreaEdge(0,0) - static readonly BOTTOM: LayoutSafeAreaEdge = new LayoutSafeAreaEdge(1,1) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): LayoutSafeAreaEdge { - if ((arg0) == (LayoutSafeAreaEdge.TOP.value)) - return LayoutSafeAreaEdge.TOP - if ((arg0) == (LayoutSafeAreaEdge.BOTTOM.value)) - return LayoutSafeAreaEdge.BOTTOM - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): LayoutSafeAreaEdge { - if ((arg0) == (LayoutSafeAreaEdge.TOP.ordinal)) - return LayoutSafeAreaEdge.TOP - if ((arg0) == (LayoutSafeAreaEdge.BOTTOM.ordinal)) - return LayoutSafeAreaEdge.BOTTOM - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class SheetSize { - static readonly MEDIUM: SheetSize = new SheetSize(0,0) - static readonly LARGE: SheetSize = new SheetSize(1,1) - static readonly FIT_CONTENT: SheetSize = new SheetSize(2,2) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): SheetSize { - if ((arg0) == (SheetSize.MEDIUM.value)) - return SheetSize.MEDIUM - if ((arg0) == (SheetSize.LARGE.value)) - return SheetSize.LARGE - if ((arg0) == (SheetSize.FIT_CONTENT.value)) - return SheetSize.FIT_CONTENT - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): SheetSize { - if ((arg0) == (SheetSize.MEDIUM.ordinal)) - return SheetSize.MEDIUM - if ((arg0) == (SheetSize.LARGE.ordinal)) - return SheetSize.LARGE - if ((arg0) == (SheetSize.FIT_CONTENT.ordinal)) - return SheetSize.FIT_CONTENT - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class DragBehavior { - static readonly COPY: DragBehavior = new DragBehavior(0,0) - static readonly MOVE: DragBehavior = new DragBehavior(1,1) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): DragBehavior { - if ((arg0) == (DragBehavior.COPY.value)) - return DragBehavior.COPY - if ((arg0) == (DragBehavior.MOVE.value)) - return DragBehavior.MOVE - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): DragBehavior { - if ((arg0) == (DragBehavior.COPY.ordinal)) - return DragBehavior.COPY - if ((arg0) == (DragBehavior.MOVE.ordinal)) - return DragBehavior.MOVE - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class DragResult { - static readonly DRAG_SUCCESSFUL: DragResult = new DragResult(0,0) - static readonly DRAG_FAILED: DragResult = new DragResult(1,1) - static readonly DRAG_CANCELED: DragResult = new DragResult(2,2) - static readonly DROP_ENABLED: DragResult = new DragResult(3,3) - static readonly DROP_DISABLED: DragResult = new DragResult(4,4) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): DragResult { - if ((arg0) == (DragResult.DRAG_SUCCESSFUL.value)) - return DragResult.DRAG_SUCCESSFUL - if ((arg0) == (DragResult.DRAG_FAILED.value)) - return DragResult.DRAG_FAILED - if ((arg0) == (DragResult.DRAG_CANCELED.value)) - return DragResult.DRAG_CANCELED - if ((arg0) == (DragResult.DROP_ENABLED.value)) - return DragResult.DROP_ENABLED - if ((arg0) == (DragResult.DROP_DISABLED.value)) - return DragResult.DROP_DISABLED - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): DragResult { - if ((arg0) == (DragResult.DRAG_SUCCESSFUL.ordinal)) - return DragResult.DRAG_SUCCESSFUL - if ((arg0) == (DragResult.DRAG_FAILED.ordinal)) - return DragResult.DRAG_FAILED - if ((arg0) == (DragResult.DRAG_CANCELED.ordinal)) - return DragResult.DRAG_CANCELED - if ((arg0) == (DragResult.DROP_ENABLED.ordinal)) - return DragResult.DROP_ENABLED - if ((arg0) == (DragResult.DROP_DISABLED.ordinal)) - return DragResult.DROP_DISABLED - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class BlendMode { - static readonly NONE: BlendMode = new BlendMode(0,0) - static readonly CLEAR: BlendMode = new BlendMode(1,1) - static readonly SRC: BlendMode = new BlendMode(2,2) - static readonly DST: BlendMode = new BlendMode(3,3) - static readonly SRC_OVER: BlendMode = new BlendMode(4,4) - static readonly DST_OVER: BlendMode = new BlendMode(5,5) - static readonly SRC_IN: BlendMode = new BlendMode(6,6) - static readonly DST_IN: BlendMode = new BlendMode(7,7) - static readonly SRC_OUT: BlendMode = new BlendMode(8,8) - static readonly DST_OUT: BlendMode = new BlendMode(9,9) - static readonly SRC_ATOP: BlendMode = new BlendMode(10,10) - static readonly DST_ATOP: BlendMode = new BlendMode(11,11) - static readonly XOR: BlendMode = new BlendMode(12,12) - static readonly PLUS: BlendMode = new BlendMode(13,13) - static readonly MODULATE: BlendMode = new BlendMode(14,14) - static readonly SCREEN: BlendMode = new BlendMode(15,15) - static readonly OVERLAY: BlendMode = new BlendMode(16,16) - static readonly DARKEN: BlendMode = new BlendMode(17,17) - static readonly LIGHTEN: BlendMode = new BlendMode(18,18) - static readonly COLOR_DODGE: BlendMode = new BlendMode(19,19) - static readonly COLOR_BURN: BlendMode = new BlendMode(20,20) - static readonly HARD_LIGHT: BlendMode = new BlendMode(21,21) - static readonly SOFT_LIGHT: BlendMode = new BlendMode(22,22) - static readonly DIFFERENCE: BlendMode = new BlendMode(23,23) - static readonly EXCLUSION: BlendMode = new BlendMode(24,24) - static readonly MULTIPLY: BlendMode = new BlendMode(25,25) - static readonly HUE: BlendMode = new BlendMode(26,26) - static readonly SATURATION: BlendMode = new BlendMode(27,27) - static readonly COLOR: BlendMode = new BlendMode(28,28) - static readonly LUMINOSITY: BlendMode = new BlendMode(29,29) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): BlendMode { - if ((arg0) == (BlendMode.NONE.value)) - return BlendMode.NONE - if ((arg0) == (BlendMode.CLEAR.value)) - return BlendMode.CLEAR - if ((arg0) == (BlendMode.SRC.value)) - return BlendMode.SRC - if ((arg0) == (BlendMode.DST.value)) - return BlendMode.DST - if ((arg0) == (BlendMode.SRC_OVER.value)) - return BlendMode.SRC_OVER - if ((arg0) == (BlendMode.DST_OVER.value)) - return BlendMode.DST_OVER - if ((arg0) == (BlendMode.SRC_IN.value)) - return BlendMode.SRC_IN - if ((arg0) == (BlendMode.DST_IN.value)) - return BlendMode.DST_IN - if ((arg0) == (BlendMode.SRC_OUT.value)) - return BlendMode.SRC_OUT - if ((arg0) == (BlendMode.DST_OUT.value)) - return BlendMode.DST_OUT - if ((arg0) == (BlendMode.SRC_ATOP.value)) - return BlendMode.SRC_ATOP - if ((arg0) == (BlendMode.DST_ATOP.value)) - return BlendMode.DST_ATOP - if ((arg0) == (BlendMode.XOR.value)) - return BlendMode.XOR - if ((arg0) == (BlendMode.PLUS.value)) - return BlendMode.PLUS - if ((arg0) == (BlendMode.MODULATE.value)) - return BlendMode.MODULATE - if ((arg0) == (BlendMode.SCREEN.value)) - return BlendMode.SCREEN - if ((arg0) == (BlendMode.OVERLAY.value)) - return BlendMode.OVERLAY - if ((arg0) == (BlendMode.DARKEN.value)) - return BlendMode.DARKEN - if ((arg0) == (BlendMode.LIGHTEN.value)) - return BlendMode.LIGHTEN - if ((arg0) == (BlendMode.COLOR_DODGE.value)) - return BlendMode.COLOR_DODGE - if ((arg0) == (BlendMode.COLOR_BURN.value)) - return BlendMode.COLOR_BURN - if ((arg0) == (BlendMode.HARD_LIGHT.value)) - return BlendMode.HARD_LIGHT - if ((arg0) == (BlendMode.SOFT_LIGHT.value)) - return BlendMode.SOFT_LIGHT - if ((arg0) == (BlendMode.DIFFERENCE.value)) - return BlendMode.DIFFERENCE - if ((arg0) == (BlendMode.EXCLUSION.value)) - return BlendMode.EXCLUSION - if ((arg0) == (BlendMode.MULTIPLY.value)) - return BlendMode.MULTIPLY - if ((arg0) == (BlendMode.HUE.value)) - return BlendMode.HUE - if ((arg0) == (BlendMode.SATURATION.value)) - return BlendMode.SATURATION - if ((arg0) == (BlendMode.COLOR.value)) - return BlendMode.COLOR - if ((arg0) == (BlendMode.LUMINOSITY.value)) - return BlendMode.LUMINOSITY - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): BlendMode { - if ((arg0) == (BlendMode.NONE.ordinal)) - return BlendMode.NONE - if ((arg0) == (BlendMode.CLEAR.ordinal)) - return BlendMode.CLEAR - if ((arg0) == (BlendMode.SRC.ordinal)) - return BlendMode.SRC - if ((arg0) == (BlendMode.DST.ordinal)) - return BlendMode.DST - if ((arg0) == (BlendMode.SRC_OVER.ordinal)) - return BlendMode.SRC_OVER - if ((arg0) == (BlendMode.DST_OVER.ordinal)) - return BlendMode.DST_OVER - if ((arg0) == (BlendMode.SRC_IN.ordinal)) - return BlendMode.SRC_IN - if ((arg0) == (BlendMode.DST_IN.ordinal)) - return BlendMode.DST_IN - if ((arg0) == (BlendMode.SRC_OUT.ordinal)) - return BlendMode.SRC_OUT - if ((arg0) == (BlendMode.DST_OUT.ordinal)) - return BlendMode.DST_OUT - if ((arg0) == (BlendMode.SRC_ATOP.ordinal)) - return BlendMode.SRC_ATOP - if ((arg0) == (BlendMode.DST_ATOP.ordinal)) - return BlendMode.DST_ATOP - if ((arg0) == (BlendMode.XOR.ordinal)) - return BlendMode.XOR - if ((arg0) == (BlendMode.PLUS.ordinal)) - return BlendMode.PLUS - if ((arg0) == (BlendMode.MODULATE.ordinal)) - return BlendMode.MODULATE - if ((arg0) == (BlendMode.SCREEN.ordinal)) - return BlendMode.SCREEN - if ((arg0) == (BlendMode.OVERLAY.ordinal)) - return BlendMode.OVERLAY - if ((arg0) == (BlendMode.DARKEN.ordinal)) - return BlendMode.DARKEN - if ((arg0) == (BlendMode.LIGHTEN.ordinal)) - return BlendMode.LIGHTEN - if ((arg0) == (BlendMode.COLOR_DODGE.ordinal)) - return BlendMode.COLOR_DODGE - if ((arg0) == (BlendMode.COLOR_BURN.ordinal)) - return BlendMode.COLOR_BURN - if ((arg0) == (BlendMode.HARD_LIGHT.ordinal)) - return BlendMode.HARD_LIGHT - if ((arg0) == (BlendMode.SOFT_LIGHT.ordinal)) - return BlendMode.SOFT_LIGHT - if ((arg0) == (BlendMode.DIFFERENCE.ordinal)) - return BlendMode.DIFFERENCE - if ((arg0) == (BlendMode.EXCLUSION.ordinal)) - return BlendMode.EXCLUSION - if ((arg0) == (BlendMode.MULTIPLY.ordinal)) - return BlendMode.MULTIPLY - if ((arg0) == (BlendMode.HUE.ordinal)) - return BlendMode.HUE - if ((arg0) == (BlendMode.SATURATION.ordinal)) - return BlendMode.SATURATION - if ((arg0) == (BlendMode.COLOR.ordinal)) - return BlendMode.COLOR - if ((arg0) == (BlendMode.LUMINOSITY.ordinal)) - return BlendMode.LUMINOSITY - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class BlendApplyType { - static readonly FAST: BlendApplyType = new BlendApplyType(0,0) - static readonly OFFSCREEN: BlendApplyType = new BlendApplyType(1,1) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): BlendApplyType { - if ((arg0) == (BlendApplyType.FAST.value)) - return BlendApplyType.FAST - if ((arg0) == (BlendApplyType.OFFSCREEN.value)) - return BlendApplyType.OFFSCREEN - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): BlendApplyType { - if ((arg0) == (BlendApplyType.FAST.ordinal)) - return BlendApplyType.FAST - if ((arg0) == (BlendApplyType.OFFSCREEN.ordinal)) - return BlendApplyType.OFFSCREEN - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class SheetType { - static readonly BOTTOM: SheetType = new SheetType(0,0) - static readonly CENTER: SheetType = new SheetType(1,1) - static readonly POPUP: SheetType = new SheetType(2,2) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): SheetType { - if ((arg0) == (SheetType.BOTTOM.value)) - return SheetType.BOTTOM - if ((arg0) == (SheetType.CENTER.value)) - return SheetType.CENTER - if ((arg0) == (SheetType.POPUP.value)) - return SheetType.POPUP - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): SheetType { - if ((arg0) == (SheetType.BOTTOM.ordinal)) - return SheetType.BOTTOM - if ((arg0) == (SheetType.CENTER.ordinal)) - return SheetType.CENTER - if ((arg0) == (SheetType.POPUP.ordinal)) - return SheetType.POPUP - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class SheetMode { - static readonly OVERLAY: SheetMode = new SheetMode(0,0) - static readonly EMBEDDED: SheetMode = new SheetMode(1,1) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): SheetMode { - if ((arg0) == (SheetMode.OVERLAY.value)) - return SheetMode.OVERLAY - if ((arg0) == (SheetMode.EMBEDDED.value)) - return SheetMode.EMBEDDED - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): SheetMode { - if ((arg0) == (SheetMode.OVERLAY.ordinal)) - return SheetMode.OVERLAY - if ((arg0) == (SheetMode.EMBEDDED.ordinal)) - return SheetMode.EMBEDDED - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class ScrollSizeMode { - static readonly FOLLOW_DETENT: ScrollSizeMode = new ScrollSizeMode(0,0) - static readonly CONTINUOUS: ScrollSizeMode = new ScrollSizeMode(1,1) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): ScrollSizeMode { - if ((arg0) == (ScrollSizeMode.FOLLOW_DETENT.value)) - return ScrollSizeMode.FOLLOW_DETENT - if ((arg0) == (ScrollSizeMode.CONTINUOUS.value)) - return ScrollSizeMode.CONTINUOUS - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): ScrollSizeMode { - if ((arg0) == (ScrollSizeMode.FOLLOW_DETENT.ordinal)) - return ScrollSizeMode.FOLLOW_DETENT - if ((arg0) == (ScrollSizeMode.CONTINUOUS.ordinal)) - return ScrollSizeMode.CONTINUOUS - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class SheetKeyboardAvoidMode { - static readonly NONE: SheetKeyboardAvoidMode = new SheetKeyboardAvoidMode(0,0) - static readonly TRANSLATE_AND_RESIZE: SheetKeyboardAvoidMode = new SheetKeyboardAvoidMode(1,1) - static readonly RESIZE_ONLY: SheetKeyboardAvoidMode = new SheetKeyboardAvoidMode(2,2) - static readonly TRANSLATE_AND_SCROLL: SheetKeyboardAvoidMode = new SheetKeyboardAvoidMode(3,3) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): SheetKeyboardAvoidMode { - if ((arg0) == (SheetKeyboardAvoidMode.NONE.value)) - return SheetKeyboardAvoidMode.NONE - if ((arg0) == (SheetKeyboardAvoidMode.TRANSLATE_AND_RESIZE.value)) - return SheetKeyboardAvoidMode.TRANSLATE_AND_RESIZE - if ((arg0) == (SheetKeyboardAvoidMode.RESIZE_ONLY.value)) - return SheetKeyboardAvoidMode.RESIZE_ONLY - if ((arg0) == (SheetKeyboardAvoidMode.TRANSLATE_AND_SCROLL.value)) - return SheetKeyboardAvoidMode.TRANSLATE_AND_SCROLL - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): SheetKeyboardAvoidMode { - if ((arg0) == (SheetKeyboardAvoidMode.NONE.ordinal)) - return SheetKeyboardAvoidMode.NONE - if ((arg0) == (SheetKeyboardAvoidMode.TRANSLATE_AND_RESIZE.ordinal)) - return SheetKeyboardAvoidMode.TRANSLATE_AND_RESIZE - if ((arg0) == (SheetKeyboardAvoidMode.RESIZE_ONLY.ordinal)) - return SheetKeyboardAvoidMode.RESIZE_ONLY - if ((arg0) == (SheetKeyboardAvoidMode.TRANSLATE_AND_SCROLL.ordinal)) - return SheetKeyboardAvoidMode.TRANSLATE_AND_SCROLL - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class DismissReason { - static readonly PRESS_BACK: DismissReason = new DismissReason(0,0) - static readonly TOUCH_OUTSIDE: DismissReason = new DismissReason(1,1) - static readonly CLOSE_BUTTON: DismissReason = new DismissReason(2,2) - static readonly SLIDE_DOWN: DismissReason = new DismissReason(3,3) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): DismissReason { - if ((arg0) == (DismissReason.PRESS_BACK.value)) - return DismissReason.PRESS_BACK - if ((arg0) == (DismissReason.TOUCH_OUTSIDE.value)) - return DismissReason.TOUCH_OUTSIDE - if ((arg0) == (DismissReason.CLOSE_BUTTON.value)) - return DismissReason.CLOSE_BUTTON - if ((arg0) == (DismissReason.SLIDE_DOWN.value)) - return DismissReason.SLIDE_DOWN - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): DismissReason { - if ((arg0) == (DismissReason.PRESS_BACK.ordinal)) - return DismissReason.PRESS_BACK - if ((arg0) == (DismissReason.TOUCH_OUTSIDE.ordinal)) - return DismissReason.TOUCH_OUTSIDE - if ((arg0) == (DismissReason.CLOSE_BUTTON.ordinal)) - return DismissReason.CLOSE_BUTTON - if ((arg0) == (DismissReason.SLIDE_DOWN.ordinal)) - return DismissReason.SLIDE_DOWN - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class MenuPreviewMode { - static readonly NONE: MenuPreviewMode = new MenuPreviewMode(0,0) - static readonly IMAGE: MenuPreviewMode = new MenuPreviewMode(1,1) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): MenuPreviewMode { - if ((arg0) == (MenuPreviewMode.NONE.value)) - return MenuPreviewMode.NONE - if ((arg0) == (MenuPreviewMode.IMAGE.value)) - return MenuPreviewMode.IMAGE - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): MenuPreviewMode { - if ((arg0) == (MenuPreviewMode.NONE.ordinal)) - return MenuPreviewMode.NONE - if ((arg0) == (MenuPreviewMode.IMAGE.ordinal)) - return MenuPreviewMode.IMAGE - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class OutlineStyle { - static readonly SOLID: OutlineStyle = new OutlineStyle(0,0) - static readonly DASHED: OutlineStyle = new OutlineStyle(1,1) - static readonly DOTTED: OutlineStyle = new OutlineStyle(2,2) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): OutlineStyle { - if ((arg0) == (OutlineStyle.SOLID.value)) - return OutlineStyle.SOLID - if ((arg0) == (OutlineStyle.DASHED.value)) - return OutlineStyle.DASHED - if ((arg0) == (OutlineStyle.DOTTED.value)) - return OutlineStyle.DOTTED - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): OutlineStyle { - if ((arg0) == (OutlineStyle.SOLID.ordinal)) - return OutlineStyle.SOLID - if ((arg0) == (OutlineStyle.DASHED.ordinal)) - return OutlineStyle.DASHED - if ((arg0) == (OutlineStyle.DOTTED.ordinal)) - return OutlineStyle.DOTTED - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class DragPreviewMode { - static readonly AUTO: DragPreviewMode = new DragPreviewMode(1,0) - static readonly DISABLE_SCALE: DragPreviewMode = new DragPreviewMode(2,1) - static readonly ENABLE_DEFAULT_SHADOW: DragPreviewMode = new DragPreviewMode(3,2) - static readonly ENABLE_DEFAULT_RADIUS: DragPreviewMode = new DragPreviewMode(4,3) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): DragPreviewMode { - if ((arg0) == (DragPreviewMode.AUTO.value)) - return DragPreviewMode.AUTO - if ((arg0) == (DragPreviewMode.DISABLE_SCALE.value)) - return DragPreviewMode.DISABLE_SCALE - if ((arg0) == (DragPreviewMode.ENABLE_DEFAULT_SHADOW.value)) - return DragPreviewMode.ENABLE_DEFAULT_SHADOW - if ((arg0) == (DragPreviewMode.ENABLE_DEFAULT_RADIUS.value)) - return DragPreviewMode.ENABLE_DEFAULT_RADIUS - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): DragPreviewMode { - if ((arg0) == (DragPreviewMode.AUTO.ordinal)) - return DragPreviewMode.AUTO - if ((arg0) == (DragPreviewMode.DISABLE_SCALE.ordinal)) - return DragPreviewMode.DISABLE_SCALE - if ((arg0) == (DragPreviewMode.ENABLE_DEFAULT_SHADOW.ordinal)) - return DragPreviewMode.ENABLE_DEFAULT_SHADOW - if ((arg0) == (DragPreviewMode.ENABLE_DEFAULT_RADIUS.ordinal)) - return DragPreviewMode.ENABLE_DEFAULT_RADIUS - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class MenuPolicy { - static readonly DEFAULT: MenuPolicy = new MenuPolicy(0,0) - static readonly HIDE: MenuPolicy = new MenuPolicy(1,1) - static readonly SHOW: MenuPolicy = new MenuPolicy(2,2) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): MenuPolicy { - if ((arg0) == (MenuPolicy.DEFAULT.value)) - return MenuPolicy.DEFAULT - if ((arg0) == (MenuPolicy.HIDE.value)) - return MenuPolicy.HIDE - if ((arg0) == (MenuPolicy.SHOW.value)) - return MenuPolicy.SHOW - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): MenuPolicy { - if ((arg0) == (MenuPolicy.DEFAULT.ordinal)) - return MenuPolicy.DEFAULT - if ((arg0) == (MenuPolicy.HIDE.ordinal)) - return MenuPolicy.HIDE - if ((arg0) == (MenuPolicy.SHOW.ordinal)) - return MenuPolicy.SHOW - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class ContentClipMode { - static readonly CONTENT_ONLY: ContentClipMode = new ContentClipMode(0,0) - static readonly BOUNDARY: ContentClipMode = new ContentClipMode(1,1) - static readonly SAFE_AREA: ContentClipMode = new ContentClipMode(2,2) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): ContentClipMode { - if ((arg0) == (ContentClipMode.CONTENT_ONLY.value)) - return ContentClipMode.CONTENT_ONLY - if ((arg0) == (ContentClipMode.BOUNDARY.value)) - return ContentClipMode.BOUNDARY - if ((arg0) == (ContentClipMode.SAFE_AREA.value)) - return ContentClipMode.SAFE_AREA - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): ContentClipMode { - if ((arg0) == (ContentClipMode.CONTENT_ONLY.ordinal)) - return ContentClipMode.CONTENT_ONLY - if ((arg0) == (ContentClipMode.BOUNDARY.ordinal)) - return ContentClipMode.BOUNDARY - if ((arg0) == (ContentClipMode.SAFE_AREA.ordinal)) - return ContentClipMode.SAFE_AREA - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class KeyboardAvoidMode { - static readonly DEFAULT: KeyboardAvoidMode = new KeyboardAvoidMode(0,0) - static readonly NONE: KeyboardAvoidMode = new KeyboardAvoidMode(1,1) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): KeyboardAvoidMode { - if ((arg0) == (KeyboardAvoidMode.DEFAULT.value)) - return KeyboardAvoidMode.DEFAULT - if ((arg0) == (KeyboardAvoidMode.NONE.value)) - return KeyboardAvoidMode.NONE - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): KeyboardAvoidMode { - if ((arg0) == (KeyboardAvoidMode.DEFAULT.ordinal)) - return KeyboardAvoidMode.DEFAULT - if ((arg0) == (KeyboardAvoidMode.NONE.ordinal)) - return KeyboardAvoidMode.NONE - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class HoverModeAreaType { - static readonly TOP_SCREEN: HoverModeAreaType = new HoverModeAreaType(0,0) - static readonly BOTTOM_SCREEN: HoverModeAreaType = new HoverModeAreaType(1,1) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): HoverModeAreaType { - if ((arg0) == (HoverModeAreaType.TOP_SCREEN.value)) - return HoverModeAreaType.TOP_SCREEN - if ((arg0) == (HoverModeAreaType.BOTTOM_SCREEN.value)) - return HoverModeAreaType.BOTTOM_SCREEN - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): HoverModeAreaType { - if ((arg0) == (HoverModeAreaType.TOP_SCREEN.ordinal)) - return HoverModeAreaType.TOP_SCREEN - if ((arg0) == (HoverModeAreaType.BOTTOM_SCREEN.ordinal)) - return HoverModeAreaType.BOTTOM_SCREEN - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class ModelType { - static readonly TEXTURE: ModelType = new ModelType(0,0) - static readonly SURFACE: ModelType = new ModelType(1,1) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): ModelType { - if ((arg0) == (ModelType.TEXTURE.value)) - return ModelType.TEXTURE - if ((arg0) == (ModelType.SURFACE.value)) - return ModelType.SURFACE - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): ModelType { - if ((arg0) == (ModelType.TEXTURE.ordinal)) - return ModelType.TEXTURE - if ((arg0) == (ModelType.SURFACE.ordinal)) - return ModelType.SURFACE - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class DataPanelType { - static readonly LINE: DataPanelType = new DataPanelType(0,0) - static readonly Line: DataPanelType = DataPanelType.LINE - static readonly CIRCLE: DataPanelType = new DataPanelType(1,1) - static readonly Circle: DataPanelType = DataPanelType.CIRCLE - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): DataPanelType { - if ((arg0) == (DataPanelType.LINE.value)) - return DataPanelType.LINE - if ((arg0) == (DataPanelType.CIRCLE.value)) - return DataPanelType.CIRCLE - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): DataPanelType { - if ((arg0) == (DataPanelType.LINE.ordinal)) - return DataPanelType.LINE - if ((arg0) == (DataPanelType.CIRCLE.ordinal)) - return DataPanelType.CIRCLE - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class CheckBoxShape { - static readonly CIRCLE: CheckBoxShape = new CheckBoxShape(0,0) - static readonly ROUNDED_SQUARE: CheckBoxShape = new CheckBoxShape(1,1) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): CheckBoxShape { - if ((arg0) == (CheckBoxShape.CIRCLE.value)) - return CheckBoxShape.CIRCLE - if ((arg0) == (CheckBoxShape.ROUNDED_SQUARE.value)) - return CheckBoxShape.ROUNDED_SQUARE - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): CheckBoxShape { - if ((arg0) == (CheckBoxShape.CIRCLE.ordinal)) - return CheckBoxShape.CIRCLE - if ((arg0) == (CheckBoxShape.ROUNDED_SQUARE.ordinal)) - return CheckBoxShape.ROUNDED_SQUARE - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class Color { - static readonly WHITE: Color = new Color(0,0) - static readonly White: Color = Color.WHITE - static readonly BLACK: Color = new Color(1,1) - static readonly Black: Color = Color.BLACK - static readonly BLUE: Color = new Color(2,2) - static readonly Blue: Color = Color.BLUE - static readonly BROWN: Color = new Color(3,3) - static readonly Brown: Color = Color.BROWN - static readonly GRAY: Color = new Color(4,4) - static readonly Gray: Color = Color.GRAY - static readonly GREEN: Color = new Color(5,5) - static readonly Green: Color = Color.GREEN - static readonly GREY: Color = new Color(6,6) - static readonly Grey: Color = Color.GREY - static readonly ORANGE: Color = new Color(7,7) - static readonly Orange: Color = Color.ORANGE - static readonly PINK: Color = new Color(8,8) - static readonly Pink: Color = Color.PINK - static readonly RED: Color = new Color(9,9) - static readonly Red: Color = Color.RED - static readonly YELLOW: Color = new Color(10,10) - static readonly Yellow: Color = Color.YELLOW - static readonly TRANSPARENT: Color = new Color(11,11) - static readonly Transparent: Color = Color.TRANSPARENT - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): Color { - if ((arg0) == (Color.WHITE.value)) - return Color.WHITE - if ((arg0) == (Color.BLACK.value)) - return Color.BLACK - if ((arg0) == (Color.BLUE.value)) - return Color.BLUE - if ((arg0) == (Color.BROWN.value)) - return Color.BROWN - if ((arg0) == (Color.GRAY.value)) - return Color.GRAY - if ((arg0) == (Color.GREEN.value)) - return Color.GREEN - if ((arg0) == (Color.GREY.value)) - return Color.GREY - if ((arg0) == (Color.ORANGE.value)) - return Color.ORANGE - if ((arg0) == (Color.PINK.value)) - return Color.PINK - if ((arg0) == (Color.RED.value)) - return Color.RED - if ((arg0) == (Color.YELLOW.value)) - return Color.YELLOW - if ((arg0) == (Color.TRANSPARENT.value)) - return Color.TRANSPARENT - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): Color { - if ((arg0) == (Color.WHITE.ordinal)) - return Color.WHITE - if ((arg0) == (Color.BLACK.ordinal)) - return Color.BLACK - if ((arg0) == (Color.BLUE.ordinal)) - return Color.BLUE - if ((arg0) == (Color.BROWN.ordinal)) - return Color.BROWN - if ((arg0) == (Color.GRAY.ordinal)) - return Color.GRAY - if ((arg0) == (Color.GREEN.ordinal)) - return Color.GREEN - if ((arg0) == (Color.GREY.ordinal)) - return Color.GREY - if ((arg0) == (Color.ORANGE.ordinal)) - return Color.ORANGE - if ((arg0) == (Color.PINK.ordinal)) - return Color.PINK - if ((arg0) == (Color.RED.ordinal)) - return Color.RED - if ((arg0) == (Color.YELLOW.ordinal)) - return Color.YELLOW - if ((arg0) == (Color.TRANSPARENT.ordinal)) - return Color.TRANSPARENT - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class ColoringStrategy { - static readonly INVERT: ColoringStrategy = new ColoringStrategy("invert",0) - static readonly AVERAGE: ColoringStrategy = new ColoringStrategy("average",1) - static readonly PRIMARY: ColoringStrategy = new ColoringStrategy("primary",2) - constructor(value: string, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: string - public readonly ordinal: int32 - public static of(arg0: string): ColoringStrategy { - if ((arg0) == (ColoringStrategy.INVERT.value)) - return ColoringStrategy.INVERT - if ((arg0) == (ColoringStrategy.AVERAGE.value)) - return ColoringStrategy.AVERAGE - if ((arg0) == (ColoringStrategy.PRIMARY.value)) - return ColoringStrategy.PRIMARY - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): ColoringStrategy { - if ((arg0) == (ColoringStrategy.INVERT.ordinal)) - return ColoringStrategy.INVERT - if ((arg0) == (ColoringStrategy.AVERAGE.ordinal)) - return ColoringStrategy.AVERAGE - if ((arg0) == (ColoringStrategy.PRIMARY.ordinal)) - return ColoringStrategy.PRIMARY - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class ImageFit { - static readonly CONTAIN: ImageFit = new ImageFit(0,0) - static readonly Contain: ImageFit = ImageFit.CONTAIN - static readonly COVER: ImageFit = new ImageFit(1,1) - static readonly Cover: ImageFit = ImageFit.COVER - static readonly AUTO: ImageFit = new ImageFit(2,2) - static readonly Auto: ImageFit = ImageFit.AUTO - static readonly FILL: ImageFit = new ImageFit(3,3) - static readonly Fill: ImageFit = ImageFit.FILL - static readonly SCALE_DOWN: ImageFit = new ImageFit(4,4) - static readonly ScaleDown: ImageFit = ImageFit.SCALE_DOWN - static readonly NONE: ImageFit = new ImageFit(5,5) - static readonly None: ImageFit = ImageFit.NONE - static readonly TOP_START: ImageFit = new ImageFit(7,6) - static readonly TOP: ImageFit = new ImageFit(8,7) - static readonly TOP_END: ImageFit = new ImageFit(9,8) - static readonly START: ImageFit = new ImageFit(10,9) - static readonly CENTER: ImageFit = new ImageFit(11,10) - static readonly END: ImageFit = new ImageFit(12,11) - static readonly BOTTOM_START: ImageFit = new ImageFit(13,12) - static readonly BOTTOM: ImageFit = new ImageFit(14,13) - static readonly BOTTOM_END: ImageFit = new ImageFit(15,14) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): ImageFit { - if ((arg0) == (ImageFit.CONTAIN.value)) - return ImageFit.CONTAIN - if ((arg0) == (ImageFit.COVER.value)) - return ImageFit.COVER - if ((arg0) == (ImageFit.AUTO.value)) - return ImageFit.AUTO - if ((arg0) == (ImageFit.FILL.value)) - return ImageFit.FILL - if ((arg0) == (ImageFit.SCALE_DOWN.value)) - return ImageFit.SCALE_DOWN - if ((arg0) == (ImageFit.NONE.value)) - return ImageFit.NONE - if ((arg0) == (ImageFit.TOP_START.value)) - return ImageFit.TOP_START - if ((arg0) == (ImageFit.TOP.value)) - return ImageFit.TOP - if ((arg0) == (ImageFit.TOP_END.value)) - return ImageFit.TOP_END - if ((arg0) == (ImageFit.START.value)) - return ImageFit.START - if ((arg0) == (ImageFit.CENTER.value)) - return ImageFit.CENTER - if ((arg0) == (ImageFit.END.value)) - return ImageFit.END - if ((arg0) == (ImageFit.BOTTOM_START.value)) - return ImageFit.BOTTOM_START - if ((arg0) == (ImageFit.BOTTOM.value)) - return ImageFit.BOTTOM - if ((arg0) == (ImageFit.BOTTOM_END.value)) - return ImageFit.BOTTOM_END - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): ImageFit { - if ((arg0) == (ImageFit.CONTAIN.ordinal)) - return ImageFit.CONTAIN - if ((arg0) == (ImageFit.COVER.ordinal)) - return ImageFit.COVER - if ((arg0) == (ImageFit.AUTO.ordinal)) - return ImageFit.AUTO - if ((arg0) == (ImageFit.FILL.ordinal)) - return ImageFit.FILL - if ((arg0) == (ImageFit.SCALE_DOWN.ordinal)) - return ImageFit.SCALE_DOWN - if ((arg0) == (ImageFit.NONE.ordinal)) - return ImageFit.NONE - if ((arg0) == (ImageFit.TOP_START.ordinal)) - return ImageFit.TOP_START - if ((arg0) == (ImageFit.TOP.ordinal)) - return ImageFit.TOP - if ((arg0) == (ImageFit.TOP_END.ordinal)) - return ImageFit.TOP_END - if ((arg0) == (ImageFit.START.ordinal)) - return ImageFit.START - if ((arg0) == (ImageFit.CENTER.ordinal)) - return ImageFit.CENTER - if ((arg0) == (ImageFit.END.ordinal)) - return ImageFit.END - if ((arg0) == (ImageFit.BOTTOM_START.ordinal)) - return ImageFit.BOTTOM_START - if ((arg0) == (ImageFit.BOTTOM.ordinal)) - return ImageFit.BOTTOM - if ((arg0) == (ImageFit.BOTTOM_END.ordinal)) - return ImageFit.BOTTOM_END - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class BorderStyle { - static readonly DOTTED: BorderStyle = new BorderStyle(0,0) - static readonly Dotted: BorderStyle = BorderStyle.DOTTED - static readonly DASHED: BorderStyle = new BorderStyle(1,1) - static readonly Dashed: BorderStyle = BorderStyle.DASHED - static readonly SOLID: BorderStyle = new BorderStyle(2,2) - static readonly Solid: BorderStyle = BorderStyle.SOLID - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): BorderStyle { - if ((arg0) == (BorderStyle.DOTTED.value)) - return BorderStyle.DOTTED - if ((arg0) == (BorderStyle.DASHED.value)) - return BorderStyle.DASHED - if ((arg0) == (BorderStyle.SOLID.value)) - return BorderStyle.SOLID - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): BorderStyle { - if ((arg0) == (BorderStyle.DOTTED.ordinal)) - return BorderStyle.DOTTED - if ((arg0) == (BorderStyle.DASHED.ordinal)) - return BorderStyle.DASHED - if ((arg0) == (BorderStyle.SOLID.ordinal)) - return BorderStyle.SOLID - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class LineJoinStyle { - static readonly MITER: LineJoinStyle = new LineJoinStyle(0,0) - static readonly Miter: LineJoinStyle = LineJoinStyle.MITER - static readonly ROUND: LineJoinStyle = new LineJoinStyle(1,1) - static readonly Round: LineJoinStyle = LineJoinStyle.ROUND - static readonly BEVEL: LineJoinStyle = new LineJoinStyle(2,2) - static readonly Bevel: LineJoinStyle = LineJoinStyle.BEVEL - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): LineJoinStyle { - if ((arg0) == (LineJoinStyle.MITER.value)) - return LineJoinStyle.MITER - if ((arg0) == (LineJoinStyle.ROUND.value)) - return LineJoinStyle.ROUND - if ((arg0) == (LineJoinStyle.BEVEL.value)) - return LineJoinStyle.BEVEL - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): LineJoinStyle { - if ((arg0) == (LineJoinStyle.MITER.ordinal)) - return LineJoinStyle.MITER - if ((arg0) == (LineJoinStyle.ROUND.ordinal)) - return LineJoinStyle.ROUND - if ((arg0) == (LineJoinStyle.BEVEL.ordinal)) - return LineJoinStyle.BEVEL - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class TouchType { - static readonly DOWN: TouchType = new TouchType(0,0) - static readonly Down: TouchType = TouchType.DOWN - static readonly UP: TouchType = new TouchType(1,1) - static readonly Up: TouchType = TouchType.UP - static readonly MOVE: TouchType = new TouchType(2,2) - static readonly Move: TouchType = TouchType.MOVE - static readonly CANCEL: TouchType = new TouchType(3,3) - static readonly Cancel: TouchType = TouchType.CANCEL - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): TouchType { - if ((arg0) == (TouchType.DOWN.value)) - return TouchType.DOWN - if ((arg0) == (TouchType.UP.value)) - return TouchType.UP - if ((arg0) == (TouchType.MOVE.value)) - return TouchType.MOVE - if ((arg0) == (TouchType.CANCEL.value)) - return TouchType.CANCEL - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): TouchType { - if ((arg0) == (TouchType.DOWN.ordinal)) - return TouchType.DOWN - if ((arg0) == (TouchType.UP.ordinal)) - return TouchType.UP - if ((arg0) == (TouchType.MOVE.ordinal)) - return TouchType.MOVE - if ((arg0) == (TouchType.CANCEL.ordinal)) - return TouchType.CANCEL - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class MouseButton { - static readonly LEFT: MouseButton = new MouseButton(0,0) - static readonly Left: MouseButton = MouseButton.LEFT - static readonly RIGHT: MouseButton = new MouseButton(1,1) - static readonly Right: MouseButton = MouseButton.RIGHT - static readonly MIDDLE: MouseButton = new MouseButton(2,2) - static readonly Middle: MouseButton = MouseButton.MIDDLE - static readonly BACK: MouseButton = new MouseButton(3,3) - static readonly Back: MouseButton = MouseButton.BACK - static readonly FORWARD: MouseButton = new MouseButton(4,4) - static readonly Forward: MouseButton = MouseButton.FORWARD - static readonly NONE: MouseButton = new MouseButton(5,5) - static readonly None: MouseButton = MouseButton.NONE - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): MouseButton { - if ((arg0) == (MouseButton.LEFT.value)) - return MouseButton.LEFT - if ((arg0) == (MouseButton.RIGHT.value)) - return MouseButton.RIGHT - if ((arg0) == (MouseButton.MIDDLE.value)) - return MouseButton.MIDDLE - if ((arg0) == (MouseButton.BACK.value)) - return MouseButton.BACK - if ((arg0) == (MouseButton.FORWARD.value)) - return MouseButton.FORWARD - if ((arg0) == (MouseButton.NONE.value)) - return MouseButton.NONE - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): MouseButton { - if ((arg0) == (MouseButton.LEFT.ordinal)) - return MouseButton.LEFT - if ((arg0) == (MouseButton.RIGHT.ordinal)) - return MouseButton.RIGHT - if ((arg0) == (MouseButton.MIDDLE.ordinal)) - return MouseButton.MIDDLE - if ((arg0) == (MouseButton.BACK.ordinal)) - return MouseButton.BACK - if ((arg0) == (MouseButton.FORWARD.ordinal)) - return MouseButton.FORWARD - if ((arg0) == (MouseButton.NONE.ordinal)) - return MouseButton.NONE - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class MouseAction { - static readonly PRESS: MouseAction = new MouseAction(0,0) - static readonly Press: MouseAction = MouseAction.PRESS - static readonly RELEASE: MouseAction = new MouseAction(1,1) - static readonly Release: MouseAction = MouseAction.RELEASE - static readonly MOVE: MouseAction = new MouseAction(2,2) - static readonly Move: MouseAction = MouseAction.MOVE - static readonly HOVER: MouseAction = new MouseAction(3,3) - static readonly Hover: MouseAction = MouseAction.HOVER - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): MouseAction { - if ((arg0) == (MouseAction.PRESS.value)) - return MouseAction.PRESS - if ((arg0) == (MouseAction.RELEASE.value)) - return MouseAction.RELEASE - if ((arg0) == (MouseAction.MOVE.value)) - return MouseAction.MOVE - if ((arg0) == (MouseAction.HOVER.value)) - return MouseAction.HOVER - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): MouseAction { - if ((arg0) == (MouseAction.PRESS.ordinal)) - return MouseAction.PRESS - if ((arg0) == (MouseAction.RELEASE.ordinal)) - return MouseAction.RELEASE - if ((arg0) == (MouseAction.MOVE.ordinal)) - return MouseAction.MOVE - if ((arg0) == (MouseAction.HOVER.ordinal)) - return MouseAction.HOVER - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class AnimationStatus { - static readonly INITIAL: AnimationStatus = new AnimationStatus(0,0) - static readonly Initial: AnimationStatus = AnimationStatus.INITIAL - static readonly RUNNING: AnimationStatus = new AnimationStatus(1,1) - static readonly Running: AnimationStatus = AnimationStatus.RUNNING - static readonly PAUSED: AnimationStatus = new AnimationStatus(2,2) - static readonly Paused: AnimationStatus = AnimationStatus.PAUSED - static readonly STOPPED: AnimationStatus = new AnimationStatus(3,3) - static readonly Stopped: AnimationStatus = AnimationStatus.STOPPED - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): AnimationStatus { - if ((arg0) == (AnimationStatus.INITIAL.value)) - return AnimationStatus.INITIAL - if ((arg0) == (AnimationStatus.RUNNING.value)) - return AnimationStatus.RUNNING - if ((arg0) == (AnimationStatus.PAUSED.value)) - return AnimationStatus.PAUSED - if ((arg0) == (AnimationStatus.STOPPED.value)) - return AnimationStatus.STOPPED - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): AnimationStatus { - if ((arg0) == (AnimationStatus.INITIAL.ordinal)) - return AnimationStatus.INITIAL - if ((arg0) == (AnimationStatus.RUNNING.ordinal)) - return AnimationStatus.RUNNING - if ((arg0) == (AnimationStatus.PAUSED.ordinal)) - return AnimationStatus.PAUSED - if ((arg0) == (AnimationStatus.STOPPED.ordinal)) - return AnimationStatus.STOPPED - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class Curve { - static readonly LINEAR: Curve = new Curve(0,0) - static readonly Linear: Curve = Curve.LINEAR - static readonly EASE: Curve = new Curve(1,1) - static readonly Ease: Curve = Curve.EASE - static readonly EASE_IN: Curve = new Curve(2,2) - static readonly EaseIn: Curve = Curve.EASE_IN - static readonly EASE_OUT: Curve = new Curve(3,3) - static readonly EaseOut: Curve = Curve.EASE_OUT - static readonly EASE_IN_OUT: Curve = new Curve(4,4) - static readonly EaseInOut: Curve = Curve.EASE_IN_OUT - static readonly FAST_OUT_SLOW_IN: Curve = new Curve(5,5) - static readonly FastOutSlowIn: Curve = Curve.FAST_OUT_SLOW_IN - static readonly LINEAR_OUT_SLOW_IN: Curve = new Curve(6,6) - static readonly LinearOutSlowIn: Curve = Curve.LINEAR_OUT_SLOW_IN - static readonly FAST_OUT_LINEAR_IN: Curve = new Curve(7,7) - static readonly FastOutLinearIn: Curve = Curve.FAST_OUT_LINEAR_IN - static readonly EXTREME_DECELERATION: Curve = new Curve(8,8) - static readonly ExtremeDeceleration: Curve = Curve.EXTREME_DECELERATION - static readonly SHARP: Curve = new Curve(9,9) - static readonly Sharp: Curve = Curve.SHARP - static readonly RHYTHM: Curve = new Curve(10,10) - static readonly Rhythm: Curve = Curve.RHYTHM - static readonly SMOOTH: Curve = new Curve(11,11) - static readonly Smooth: Curve = Curve.SMOOTH - static readonly FRICTION: Curve = new Curve(12,12) - static readonly Friction: Curve = Curve.FRICTION - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): Curve { - if ((arg0) == (Curve.LINEAR.value)) - return Curve.LINEAR - if ((arg0) == (Curve.EASE.value)) - return Curve.EASE - if ((arg0) == (Curve.EASE_IN.value)) - return Curve.EASE_IN - if ((arg0) == (Curve.EASE_OUT.value)) - return Curve.EASE_OUT - if ((arg0) == (Curve.EASE_IN_OUT.value)) - return Curve.EASE_IN_OUT - if ((arg0) == (Curve.FAST_OUT_SLOW_IN.value)) - return Curve.FAST_OUT_SLOW_IN - if ((arg0) == (Curve.LINEAR_OUT_SLOW_IN.value)) - return Curve.LINEAR_OUT_SLOW_IN - if ((arg0) == (Curve.FAST_OUT_LINEAR_IN.value)) - return Curve.FAST_OUT_LINEAR_IN - if ((arg0) == (Curve.EXTREME_DECELERATION.value)) - return Curve.EXTREME_DECELERATION - if ((arg0) == (Curve.SHARP.value)) - return Curve.SHARP - if ((arg0) == (Curve.RHYTHM.value)) - return Curve.RHYTHM - if ((arg0) == (Curve.SMOOTH.value)) - return Curve.SMOOTH - if ((arg0) == (Curve.FRICTION.value)) - return Curve.FRICTION - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): Curve { - if ((arg0) == (Curve.LINEAR.ordinal)) - return Curve.LINEAR - if ((arg0) == (Curve.EASE.ordinal)) - return Curve.EASE - if ((arg0) == (Curve.EASE_IN.ordinal)) - return Curve.EASE_IN - if ((arg0) == (Curve.EASE_OUT.ordinal)) - return Curve.EASE_OUT - if ((arg0) == (Curve.EASE_IN_OUT.ordinal)) - return Curve.EASE_IN_OUT - if ((arg0) == (Curve.FAST_OUT_SLOW_IN.ordinal)) - return Curve.FAST_OUT_SLOW_IN - if ((arg0) == (Curve.LINEAR_OUT_SLOW_IN.ordinal)) - return Curve.LINEAR_OUT_SLOW_IN - if ((arg0) == (Curve.FAST_OUT_LINEAR_IN.ordinal)) - return Curve.FAST_OUT_LINEAR_IN - if ((arg0) == (Curve.EXTREME_DECELERATION.ordinal)) - return Curve.EXTREME_DECELERATION - if ((arg0) == (Curve.SHARP.ordinal)) - return Curve.SHARP - if ((arg0) == (Curve.RHYTHM.ordinal)) - return Curve.RHYTHM - if ((arg0) == (Curve.SMOOTH.ordinal)) - return Curve.SMOOTH - if ((arg0) == (Curve.FRICTION.ordinal)) - return Curve.FRICTION - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class FillMode { - static readonly NONE: FillMode = new FillMode(0,0) - static readonly None: FillMode = FillMode.NONE - static readonly FORWARDS: FillMode = new FillMode(1,1) - static readonly Forwards: FillMode = FillMode.FORWARDS - static readonly BACKWARDS: FillMode = new FillMode(2,2) - static readonly Backwards: FillMode = FillMode.BACKWARDS - static readonly BOTH: FillMode = new FillMode(3,3) - static readonly Both: FillMode = FillMode.BOTH - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): FillMode { - if ((arg0) == (FillMode.NONE.value)) - return FillMode.NONE - if ((arg0) == (FillMode.FORWARDS.value)) - return FillMode.FORWARDS - if ((arg0) == (FillMode.BACKWARDS.value)) - return FillMode.BACKWARDS - if ((arg0) == (FillMode.BOTH.value)) - return FillMode.BOTH - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): FillMode { - if ((arg0) == (FillMode.NONE.ordinal)) - return FillMode.NONE - if ((arg0) == (FillMode.FORWARDS.ordinal)) - return FillMode.FORWARDS - if ((arg0) == (FillMode.BACKWARDS.ordinal)) - return FillMode.BACKWARDS - if ((arg0) == (FillMode.BOTH.ordinal)) - return FillMode.BOTH - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class PlayMode { - static readonly NORMAL: PlayMode = new PlayMode(0,0) - static readonly Normal: PlayMode = PlayMode.NORMAL - static readonly REVERSE: PlayMode = new PlayMode(1,1) - static readonly Reverse: PlayMode = PlayMode.REVERSE - static readonly ALTERNATE: PlayMode = new PlayMode(2,2) - static readonly Alternate: PlayMode = PlayMode.ALTERNATE - static readonly ALTERNATE_REVERSE: PlayMode = new PlayMode(3,3) - static readonly AlternateReverse: PlayMode = PlayMode.ALTERNATE_REVERSE - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): PlayMode { - if ((arg0) == (PlayMode.NORMAL.value)) - return PlayMode.NORMAL - if ((arg0) == (PlayMode.REVERSE.value)) - return PlayMode.REVERSE - if ((arg0) == (PlayMode.ALTERNATE.value)) - return PlayMode.ALTERNATE - if ((arg0) == (PlayMode.ALTERNATE_REVERSE.value)) - return PlayMode.ALTERNATE_REVERSE - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): PlayMode { - if ((arg0) == (PlayMode.NORMAL.ordinal)) - return PlayMode.NORMAL - if ((arg0) == (PlayMode.REVERSE.ordinal)) - return PlayMode.REVERSE - if ((arg0) == (PlayMode.ALTERNATE.ordinal)) - return PlayMode.ALTERNATE - if ((arg0) == (PlayMode.ALTERNATE_REVERSE.ordinal)) - return PlayMode.ALTERNATE_REVERSE - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class KeyType { - static readonly DOWN: KeyType = new KeyType(0,0) - static readonly Down: KeyType = KeyType.DOWN - static readonly UP: KeyType = new KeyType(1,1) - static readonly Up: KeyType = KeyType.UP - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): KeyType { - if ((arg0) == (KeyType.DOWN.value)) - return KeyType.DOWN - if ((arg0) == (KeyType.UP.value)) - return KeyType.UP - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): KeyType { - if ((arg0) == (KeyType.DOWN.ordinal)) - return KeyType.DOWN - if ((arg0) == (KeyType.UP.ordinal)) - return KeyType.UP - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class KeySource { - static readonly UNKNOWN: KeySource = new KeySource(0,0) - static readonly Unknown: KeySource = KeySource.UNKNOWN - static readonly KEYBOARD: KeySource = new KeySource(1,1) - static readonly Keyboard: KeySource = KeySource.KEYBOARD - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): KeySource { - if ((arg0) == (KeySource.UNKNOWN.value)) - return KeySource.UNKNOWN - if ((arg0) == (KeySource.KEYBOARD.value)) - return KeySource.KEYBOARD - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): KeySource { - if ((arg0) == (KeySource.UNKNOWN.ordinal)) - return KeySource.UNKNOWN - if ((arg0) == (KeySource.KEYBOARD.ordinal)) - return KeySource.KEYBOARD - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class Edge { - static readonly TOP: Edge = new Edge(0,0) - static readonly Top: Edge = Edge.TOP - static readonly CENTER: Edge = new Edge(1,1) - static readonly Center: Edge = Edge.CENTER - static readonly BOTTOM: Edge = new Edge(2,2) - static readonly Bottom: Edge = Edge.BOTTOM - static readonly BASELINE: Edge = new Edge(3,3) - static readonly Baseline: Edge = Edge.BASELINE - static readonly START: Edge = new Edge(4,4) - static readonly Start: Edge = Edge.START - static readonly MIDDLE: Edge = new Edge(5,5) - static readonly Middle: Edge = Edge.MIDDLE - static readonly END: Edge = new Edge(6,6) - static readonly End: Edge = Edge.END - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): Edge { - if ((arg0) == (Edge.TOP.value)) - return Edge.TOP - if ((arg0) == (Edge.CENTER.value)) - return Edge.CENTER - if ((arg0) == (Edge.BOTTOM.value)) - return Edge.BOTTOM - if ((arg0) == (Edge.BASELINE.value)) - return Edge.BASELINE - if ((arg0) == (Edge.START.value)) - return Edge.START - if ((arg0) == (Edge.MIDDLE.value)) - return Edge.MIDDLE - if ((arg0) == (Edge.END.value)) - return Edge.END - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): Edge { - if ((arg0) == (Edge.TOP.ordinal)) - return Edge.TOP - if ((arg0) == (Edge.CENTER.ordinal)) - return Edge.CENTER - if ((arg0) == (Edge.BOTTOM.ordinal)) - return Edge.BOTTOM - if ((arg0) == (Edge.BASELINE.ordinal)) - return Edge.BASELINE - if ((arg0) == (Edge.START.ordinal)) - return Edge.START - if ((arg0) == (Edge.MIDDLE.ordinal)) - return Edge.MIDDLE - if ((arg0) == (Edge.END.ordinal)) - return Edge.END - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class Week { - static readonly MON: Week = new Week(0,0) - static readonly Mon: Week = Week.MON - static readonly TUE: Week = new Week(1,1) - static readonly Tue: Week = Week.TUE - static readonly WED: Week = new Week(2,2) - static readonly Wed: Week = Week.WED - static readonly THUR: Week = new Week(3,3) - static readonly Thur: Week = Week.THUR - static readonly FRI: Week = new Week(4,4) - static readonly Fri: Week = Week.FRI - static readonly SAT: Week = new Week(5,5) - static readonly Sat: Week = Week.SAT - static readonly SUN: Week = new Week(6,6) - static readonly Sun: Week = Week.SUN - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): Week { - if ((arg0) == (Week.MON.value)) - return Week.MON - if ((arg0) == (Week.TUE.value)) - return Week.TUE - if ((arg0) == (Week.WED.value)) - return Week.WED - if ((arg0) == (Week.THUR.value)) - return Week.THUR - if ((arg0) == (Week.FRI.value)) - return Week.FRI - if ((arg0) == (Week.SAT.value)) - return Week.SAT - if ((arg0) == (Week.SUN.value)) - return Week.SUN - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): Week { - if ((arg0) == (Week.MON.ordinal)) - return Week.MON - if ((arg0) == (Week.TUE.ordinal)) - return Week.TUE - if ((arg0) == (Week.WED.ordinal)) - return Week.WED - if ((arg0) == (Week.THUR.ordinal)) - return Week.THUR - if ((arg0) == (Week.FRI.ordinal)) - return Week.FRI - if ((arg0) == (Week.SAT.ordinal)) - return Week.SAT - if ((arg0) == (Week.SUN.ordinal)) - return Week.SUN - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class Direction { - static readonly LTR: Direction = new Direction(0,0) - static readonly Ltr: Direction = Direction.LTR - static readonly RTL: Direction = new Direction(1,1) - static readonly Rtl: Direction = Direction.RTL - static readonly AUTO: Direction = new Direction(2,2) - static readonly Auto: Direction = Direction.AUTO - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): Direction { - if ((arg0) == (Direction.LTR.value)) - return Direction.LTR - if ((arg0) == (Direction.RTL.value)) - return Direction.RTL - if ((arg0) == (Direction.AUTO.value)) - return Direction.AUTO - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): Direction { - if ((arg0) == (Direction.LTR.ordinal)) - return Direction.LTR - if ((arg0) == (Direction.RTL.ordinal)) - return Direction.RTL - if ((arg0) == (Direction.AUTO.ordinal)) - return Direction.AUTO - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class BarState { - static readonly OFF: BarState = new BarState(0,0) - static readonly Off: BarState = BarState.OFF - static readonly AUTO: BarState = new BarState(1,1) - static readonly Auto: BarState = BarState.AUTO - static readonly ON: BarState = new BarState(2,2) - static readonly On: BarState = BarState.ON - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): BarState { - if ((arg0) == (BarState.OFF.value)) - return BarState.OFF - if ((arg0) == (BarState.AUTO.value)) - return BarState.AUTO - if ((arg0) == (BarState.ON.value)) - return BarState.ON - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): BarState { - if ((arg0) == (BarState.OFF.ordinal)) - return BarState.OFF - if ((arg0) == (BarState.AUTO.ordinal)) - return BarState.AUTO - if ((arg0) == (BarState.ON.ordinal)) - return BarState.ON - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class EdgeEffect { - static readonly SPRING: EdgeEffect = new EdgeEffect(0,0) - static readonly Spring: EdgeEffect = EdgeEffect.SPRING - static readonly FADE: EdgeEffect = new EdgeEffect(1,1) - static readonly Fade: EdgeEffect = EdgeEffect.FADE - static readonly NONE: EdgeEffect = new EdgeEffect(2,2) - static readonly None: EdgeEffect = EdgeEffect.NONE - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): EdgeEffect { - if ((arg0) == (EdgeEffect.SPRING.value)) - return EdgeEffect.SPRING - if ((arg0) == (EdgeEffect.FADE.value)) - return EdgeEffect.FADE - if ((arg0) == (EdgeEffect.NONE.value)) - return EdgeEffect.NONE - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): EdgeEffect { - if ((arg0) == (EdgeEffect.SPRING.ordinal)) - return EdgeEffect.SPRING - if ((arg0) == (EdgeEffect.FADE.ordinal)) - return EdgeEffect.FADE - if ((arg0) == (EdgeEffect.NONE.ordinal)) - return EdgeEffect.NONE - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class Alignment { - static readonly TOP_START: Alignment = new Alignment(0,0) - static readonly TopStart: Alignment = Alignment.TOP_START - static readonly TOP: Alignment = new Alignment(1,1) - static readonly Top: Alignment = Alignment.TOP - static readonly TOP_END: Alignment = new Alignment(2,2) - static readonly TopEnd: Alignment = Alignment.TOP_END - static readonly START: Alignment = new Alignment(3,3) - static readonly Start: Alignment = Alignment.START - static readonly CENTER: Alignment = new Alignment(4,4) - static readonly Center: Alignment = Alignment.CENTER - static readonly END: Alignment = new Alignment(5,5) - static readonly End: Alignment = Alignment.END - static readonly BOTTOM_START: Alignment = new Alignment(6,6) - static readonly BottomStart: Alignment = Alignment.BOTTOM_START - static readonly BOTTOM: Alignment = new Alignment(7,7) - static readonly Bottom: Alignment = Alignment.BOTTOM - static readonly BOTTOM_END: Alignment = new Alignment(8,8) - static readonly BottomEnd: Alignment = Alignment.BOTTOM_END - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): Alignment { - if ((arg0) == (Alignment.TOP_START.value)) - return Alignment.TOP_START - if ((arg0) == (Alignment.TOP.value)) - return Alignment.TOP - if ((arg0) == (Alignment.TOP_END.value)) - return Alignment.TOP_END - if ((arg0) == (Alignment.START.value)) - return Alignment.START - if ((arg0) == (Alignment.CENTER.value)) - return Alignment.CENTER - if ((arg0) == (Alignment.END.value)) - return Alignment.END - if ((arg0) == (Alignment.BOTTOM_START.value)) - return Alignment.BOTTOM_START - if ((arg0) == (Alignment.BOTTOM.value)) - return Alignment.BOTTOM - if ((arg0) == (Alignment.BOTTOM_END.value)) - return Alignment.BOTTOM_END - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): Alignment { - if ((arg0) == (Alignment.TOP_START.ordinal)) - return Alignment.TOP_START - if ((arg0) == (Alignment.TOP.ordinal)) - return Alignment.TOP - if ((arg0) == (Alignment.TOP_END.ordinal)) - return Alignment.TOP_END - if ((arg0) == (Alignment.START.ordinal)) - return Alignment.START - if ((arg0) == (Alignment.CENTER.ordinal)) - return Alignment.CENTER - if ((arg0) == (Alignment.END.ordinal)) - return Alignment.END - if ((arg0) == (Alignment.BOTTOM_START.ordinal)) - return Alignment.BOTTOM_START - if ((arg0) == (Alignment.BOTTOM.ordinal)) - return Alignment.BOTTOM - if ((arg0) == (Alignment.BOTTOM_END.ordinal)) - return Alignment.BOTTOM_END - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class TransitionType { - static readonly ALL: TransitionType = new TransitionType(0,0) - static readonly All: TransitionType = TransitionType.ALL - static readonly INSERT: TransitionType = new TransitionType(1,1) - static readonly Insert: TransitionType = TransitionType.INSERT - static readonly DELETE: TransitionType = new TransitionType(2,2) - static readonly Delete: TransitionType = TransitionType.DELETE - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): TransitionType { - if ((arg0) == (TransitionType.ALL.value)) - return TransitionType.ALL - if ((arg0) == (TransitionType.INSERT.value)) - return TransitionType.INSERT - if ((arg0) == (TransitionType.DELETE.value)) - return TransitionType.DELETE - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): TransitionType { - if ((arg0) == (TransitionType.ALL.ordinal)) - return TransitionType.ALL - if ((arg0) == (TransitionType.INSERT.ordinal)) - return TransitionType.INSERT - if ((arg0) == (TransitionType.DELETE.ordinal)) - return TransitionType.DELETE - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class RelateType { - static readonly FILL: RelateType = new RelateType(0,0) - static readonly FIT: RelateType = new RelateType(1,1) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): RelateType { - if ((arg0) == (RelateType.FILL.value)) - return RelateType.FILL - if ((arg0) == (RelateType.FIT.value)) - return RelateType.FIT - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): RelateType { - if ((arg0) == (RelateType.FILL.ordinal)) - return RelateType.FILL - if ((arg0) == (RelateType.FIT.ordinal)) - return RelateType.FIT - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class Visibility { - static readonly VISIBLE: Visibility = new Visibility(0,0) - static readonly Visible: Visibility = Visibility.VISIBLE - static readonly HIDDEN: Visibility = new Visibility(1,1) - static readonly Hidden: Visibility = Visibility.HIDDEN - static readonly NONE: Visibility = new Visibility(2,2) - static readonly None: Visibility = Visibility.NONE - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): Visibility { - if ((arg0) == (Visibility.VISIBLE.value)) - return Visibility.VISIBLE - if ((arg0) == (Visibility.HIDDEN.value)) - return Visibility.HIDDEN - if ((arg0) == (Visibility.NONE.value)) - return Visibility.NONE - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): Visibility { - if ((arg0) == (Visibility.VISIBLE.ordinal)) - return Visibility.VISIBLE - if ((arg0) == (Visibility.HIDDEN.ordinal)) - return Visibility.HIDDEN - if ((arg0) == (Visibility.NONE.ordinal)) - return Visibility.NONE - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class LineCapStyle { - static readonly BUTT: LineCapStyle = new LineCapStyle(0,0) - static readonly Butt: LineCapStyle = LineCapStyle.BUTT - static readonly ROUND: LineCapStyle = new LineCapStyle(1,1) - static readonly Round: LineCapStyle = LineCapStyle.ROUND - static readonly SQUARE: LineCapStyle = new LineCapStyle(2,2) - static readonly Square: LineCapStyle = LineCapStyle.SQUARE - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): LineCapStyle { - if ((arg0) == (LineCapStyle.BUTT.value)) - return LineCapStyle.BUTT - if ((arg0) == (LineCapStyle.ROUND.value)) - return LineCapStyle.ROUND - if ((arg0) == (LineCapStyle.SQUARE.value)) - return LineCapStyle.SQUARE - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): LineCapStyle { - if ((arg0) == (LineCapStyle.BUTT.ordinal)) - return LineCapStyle.BUTT - if ((arg0) == (LineCapStyle.ROUND.ordinal)) - return LineCapStyle.ROUND - if ((arg0) == (LineCapStyle.SQUARE.ordinal)) - return LineCapStyle.SQUARE - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class Axis { - static readonly VERTICAL: Axis = new Axis(0,0) - static readonly Vertical: Axis = Axis.VERTICAL - static readonly HORIZONTAL: Axis = new Axis(1,1) - static readonly Horizontal: Axis = Axis.HORIZONTAL - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): Axis { - if ((arg0) == (Axis.VERTICAL.value)) - return Axis.VERTICAL - if ((arg0) == (Axis.HORIZONTAL.value)) - return Axis.HORIZONTAL - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): Axis { - if ((arg0) == (Axis.VERTICAL.ordinal)) - return Axis.VERTICAL - if ((arg0) == (Axis.HORIZONTAL.ordinal)) - return Axis.HORIZONTAL - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class HorizontalAlign { - static readonly START: HorizontalAlign = new HorizontalAlign(0,0) - static readonly Start: HorizontalAlign = HorizontalAlign.START - static readonly CENTER: HorizontalAlign = new HorizontalAlign(1,1) - static readonly Center: HorizontalAlign = HorizontalAlign.CENTER - static readonly END: HorizontalAlign = new HorizontalAlign(2,2) - static readonly End: HorizontalAlign = HorizontalAlign.END - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): HorizontalAlign { - if ((arg0) == (HorizontalAlign.START.value)) - return HorizontalAlign.START - if ((arg0) == (HorizontalAlign.CENTER.value)) - return HorizontalAlign.CENTER - if ((arg0) == (HorizontalAlign.END.value)) - return HorizontalAlign.END - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): HorizontalAlign { - if ((arg0) == (HorizontalAlign.START.ordinal)) - return HorizontalAlign.START - if ((arg0) == (HorizontalAlign.CENTER.ordinal)) - return HorizontalAlign.CENTER - if ((arg0) == (HorizontalAlign.END.ordinal)) - return HorizontalAlign.END - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class FlexAlign { - static readonly START: FlexAlign = new FlexAlign(0,0) - static readonly Start: FlexAlign = FlexAlign.START - static readonly CENTER: FlexAlign = new FlexAlign(1,1) - static readonly Center: FlexAlign = FlexAlign.CENTER - static readonly END: FlexAlign = new FlexAlign(2,2) - static readonly End: FlexAlign = FlexAlign.END - static readonly SPACE_BETWEEN: FlexAlign = new FlexAlign(3,3) - static readonly SpaceBetween: FlexAlign = FlexAlign.SPACE_BETWEEN - static readonly SPACE_AROUND: FlexAlign = new FlexAlign(4,4) - static readonly SpaceAround: FlexAlign = FlexAlign.SPACE_AROUND - static readonly SPACE_EVENLY: FlexAlign = new FlexAlign(5,5) - static readonly SpaceEvenly: FlexAlign = FlexAlign.SPACE_EVENLY - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): FlexAlign { - if ((arg0) == (FlexAlign.START.value)) - return FlexAlign.START - if ((arg0) == (FlexAlign.CENTER.value)) - return FlexAlign.CENTER - if ((arg0) == (FlexAlign.END.value)) - return FlexAlign.END - if ((arg0) == (FlexAlign.SPACE_BETWEEN.value)) - return FlexAlign.SPACE_BETWEEN - if ((arg0) == (FlexAlign.SPACE_AROUND.value)) - return FlexAlign.SPACE_AROUND - if ((arg0) == (FlexAlign.SPACE_EVENLY.value)) - return FlexAlign.SPACE_EVENLY - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): FlexAlign { - if ((arg0) == (FlexAlign.START.ordinal)) - return FlexAlign.START - if ((arg0) == (FlexAlign.CENTER.ordinal)) - return FlexAlign.CENTER - if ((arg0) == (FlexAlign.END.ordinal)) - return FlexAlign.END - if ((arg0) == (FlexAlign.SPACE_BETWEEN.ordinal)) - return FlexAlign.SPACE_BETWEEN - if ((arg0) == (FlexAlign.SPACE_AROUND.ordinal)) - return FlexAlign.SPACE_AROUND - if ((arg0) == (FlexAlign.SPACE_EVENLY.ordinal)) - return FlexAlign.SPACE_EVENLY - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class ItemAlign { - static readonly AUTO: ItemAlign = new ItemAlign(0,0) - static readonly Auto: ItemAlign = ItemAlign.AUTO - static readonly START: ItemAlign = new ItemAlign(1,1) - static readonly Start: ItemAlign = ItemAlign.START - static readonly CENTER: ItemAlign = new ItemAlign(2,2) - static readonly Center: ItemAlign = ItemAlign.CENTER - static readonly END: ItemAlign = new ItemAlign(3,3) - static readonly End: ItemAlign = ItemAlign.END - static readonly BASELINE: ItemAlign = new ItemAlign(4,4) - static readonly Baseline: ItemAlign = ItemAlign.BASELINE - static readonly STRETCH: ItemAlign = new ItemAlign(5,5) - static readonly Stretch: ItemAlign = ItemAlign.STRETCH - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): ItemAlign { - if ((arg0) == (ItemAlign.AUTO.value)) - return ItemAlign.AUTO - if ((arg0) == (ItemAlign.START.value)) - return ItemAlign.START - if ((arg0) == (ItemAlign.CENTER.value)) - return ItemAlign.CENTER - if ((arg0) == (ItemAlign.END.value)) - return ItemAlign.END - if ((arg0) == (ItemAlign.BASELINE.value)) - return ItemAlign.BASELINE - if ((arg0) == (ItemAlign.STRETCH.value)) - return ItemAlign.STRETCH - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): ItemAlign { - if ((arg0) == (ItemAlign.AUTO.ordinal)) - return ItemAlign.AUTO - if ((arg0) == (ItemAlign.START.ordinal)) - return ItemAlign.START - if ((arg0) == (ItemAlign.CENTER.ordinal)) - return ItemAlign.CENTER - if ((arg0) == (ItemAlign.END.ordinal)) - return ItemAlign.END - if ((arg0) == (ItemAlign.BASELINE.ordinal)) - return ItemAlign.BASELINE - if ((arg0) == (ItemAlign.STRETCH.ordinal)) - return ItemAlign.STRETCH - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class FlexDirection { - static readonly ROW: FlexDirection = new FlexDirection(0,0) - static readonly Row: FlexDirection = FlexDirection.ROW - static readonly COLUMN: FlexDirection = new FlexDirection(1,1) - static readonly Column: FlexDirection = FlexDirection.COLUMN - static readonly ROW_REVERSE: FlexDirection = new FlexDirection(2,2) - static readonly RowReverse: FlexDirection = FlexDirection.ROW_REVERSE - static readonly COLUMN_REVERSE: FlexDirection = new FlexDirection(3,3) - static readonly ColumnReverse: FlexDirection = FlexDirection.COLUMN_REVERSE - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): FlexDirection { - if ((arg0) == (FlexDirection.ROW.value)) - return FlexDirection.ROW - if ((arg0) == (FlexDirection.COLUMN.value)) - return FlexDirection.COLUMN - if ((arg0) == (FlexDirection.ROW_REVERSE.value)) - return FlexDirection.ROW_REVERSE - if ((arg0) == (FlexDirection.COLUMN_REVERSE.value)) - return FlexDirection.COLUMN_REVERSE - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): FlexDirection { - if ((arg0) == (FlexDirection.ROW.ordinal)) - return FlexDirection.ROW - if ((arg0) == (FlexDirection.COLUMN.ordinal)) - return FlexDirection.COLUMN - if ((arg0) == (FlexDirection.ROW_REVERSE.ordinal)) - return FlexDirection.ROW_REVERSE - if ((arg0) == (FlexDirection.COLUMN_REVERSE.ordinal)) - return FlexDirection.COLUMN_REVERSE - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class PixelRoundCalcPolicy { - static readonly NO_FORCE_ROUND: PixelRoundCalcPolicy = new PixelRoundCalcPolicy(0,0) - static readonly FORCE_CEIL: PixelRoundCalcPolicy = new PixelRoundCalcPolicy(1,1) - static readonly FORCE_FLOOR: PixelRoundCalcPolicy = new PixelRoundCalcPolicy(2,2) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): PixelRoundCalcPolicy { - if ((arg0) == (PixelRoundCalcPolicy.NO_FORCE_ROUND.value)) - return PixelRoundCalcPolicy.NO_FORCE_ROUND - if ((arg0) == (PixelRoundCalcPolicy.FORCE_CEIL.value)) - return PixelRoundCalcPolicy.FORCE_CEIL - if ((arg0) == (PixelRoundCalcPolicy.FORCE_FLOOR.value)) - return PixelRoundCalcPolicy.FORCE_FLOOR - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): PixelRoundCalcPolicy { - if ((arg0) == (PixelRoundCalcPolicy.NO_FORCE_ROUND.ordinal)) - return PixelRoundCalcPolicy.NO_FORCE_ROUND - if ((arg0) == (PixelRoundCalcPolicy.FORCE_CEIL.ordinal)) - return PixelRoundCalcPolicy.FORCE_CEIL - if ((arg0) == (PixelRoundCalcPolicy.FORCE_FLOOR.ordinal)) - return PixelRoundCalcPolicy.FORCE_FLOOR - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class FlexWrap { - static readonly NO_WRAP: FlexWrap = new FlexWrap(0,0) - static readonly NoWrap: FlexWrap = FlexWrap.NO_WRAP - static readonly WRAP: FlexWrap = new FlexWrap(1,1) - static readonly Wrap: FlexWrap = FlexWrap.WRAP - static readonly WRAP_REVERSE: FlexWrap = new FlexWrap(2,2) - static readonly WrapReverse: FlexWrap = FlexWrap.WRAP_REVERSE - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): FlexWrap { - if ((arg0) == (FlexWrap.NO_WRAP.value)) - return FlexWrap.NO_WRAP - if ((arg0) == (FlexWrap.WRAP.value)) - return FlexWrap.WRAP - if ((arg0) == (FlexWrap.WRAP_REVERSE.value)) - return FlexWrap.WRAP_REVERSE - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): FlexWrap { - if ((arg0) == (FlexWrap.NO_WRAP.ordinal)) - return FlexWrap.NO_WRAP - if ((arg0) == (FlexWrap.WRAP.ordinal)) - return FlexWrap.WRAP - if ((arg0) == (FlexWrap.WRAP_REVERSE.ordinal)) - return FlexWrap.WRAP_REVERSE - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class VerticalAlign { - static readonly TOP: VerticalAlign = new VerticalAlign(0,0) - static readonly Top: VerticalAlign = VerticalAlign.TOP - static readonly CENTER: VerticalAlign = new VerticalAlign(1,1) - static readonly Center: VerticalAlign = VerticalAlign.CENTER - static readonly BOTTOM: VerticalAlign = new VerticalAlign(2,2) - static readonly Bottom: VerticalAlign = VerticalAlign.BOTTOM - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): VerticalAlign { - if ((arg0) == (VerticalAlign.TOP.value)) - return VerticalAlign.TOP - if ((arg0) == (VerticalAlign.CENTER.value)) - return VerticalAlign.CENTER - if ((arg0) == (VerticalAlign.BOTTOM.value)) - return VerticalAlign.BOTTOM - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): VerticalAlign { - if ((arg0) == (VerticalAlign.TOP.ordinal)) - return VerticalAlign.TOP - if ((arg0) == (VerticalAlign.CENTER.ordinal)) - return VerticalAlign.CENTER - if ((arg0) == (VerticalAlign.BOTTOM.ordinal)) - return VerticalAlign.BOTTOM - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class ImageRepeat { - static readonly NO_REPEAT: ImageRepeat = new ImageRepeat(0,0) - static readonly NoRepeat: ImageRepeat = ImageRepeat.NO_REPEAT - static readonly X: ImageRepeat = new ImageRepeat(1,1) - static readonly Y: ImageRepeat = new ImageRepeat(2,2) - static readonly XY: ImageRepeat = new ImageRepeat(3,3) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): ImageRepeat { - if ((arg0) == (ImageRepeat.NO_REPEAT.value)) - return ImageRepeat.NO_REPEAT - if ((arg0) == (ImageRepeat.X.value)) - return ImageRepeat.X - if ((arg0) == (ImageRepeat.Y.value)) - return ImageRepeat.Y - if ((arg0) == (ImageRepeat.XY.value)) - return ImageRepeat.XY - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): ImageRepeat { - if ((arg0) == (ImageRepeat.NO_REPEAT.ordinal)) - return ImageRepeat.NO_REPEAT - if ((arg0) == (ImageRepeat.X.ordinal)) - return ImageRepeat.X - if ((arg0) == (ImageRepeat.Y.ordinal)) - return ImageRepeat.Y - if ((arg0) == (ImageRepeat.XY.ordinal)) - return ImageRepeat.XY - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class ImageSize { - static readonly AUTO: ImageSize = new ImageSize(0,0) - static readonly Auto: ImageSize = ImageSize.AUTO - static readonly COVER: ImageSize = new ImageSize(1,1) - static readonly Cover: ImageSize = ImageSize.COVER - static readonly CONTAIN: ImageSize = new ImageSize(2,2) - static readonly Contain: ImageSize = ImageSize.CONTAIN - static readonly FILL: ImageSize = new ImageSize(3,3) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): ImageSize { - if ((arg0) == (ImageSize.AUTO.value)) - return ImageSize.AUTO - if ((arg0) == (ImageSize.COVER.value)) - return ImageSize.COVER - if ((arg0) == (ImageSize.CONTAIN.value)) - return ImageSize.CONTAIN - if ((arg0) == (ImageSize.FILL.value)) - return ImageSize.FILL - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): ImageSize { - if ((arg0) == (ImageSize.AUTO.ordinal)) - return ImageSize.AUTO - if ((arg0) == (ImageSize.COVER.ordinal)) - return ImageSize.COVER - if ((arg0) == (ImageSize.CONTAIN.ordinal)) - return ImageSize.CONTAIN - if ((arg0) == (ImageSize.FILL.ordinal)) - return ImageSize.FILL - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class GradientDirection { - static readonly LEFT: GradientDirection = new GradientDirection(0,0) - static readonly Left: GradientDirection = GradientDirection.LEFT - static readonly TOP: GradientDirection = new GradientDirection(1,1) - static readonly Top: GradientDirection = GradientDirection.TOP - static readonly RIGHT: GradientDirection = new GradientDirection(2,2) - static readonly Right: GradientDirection = GradientDirection.RIGHT - static readonly BOTTOM: GradientDirection = new GradientDirection(3,3) - static readonly Bottom: GradientDirection = GradientDirection.BOTTOM - static readonly LEFT_TOP: GradientDirection = new GradientDirection(4,4) - static readonly LeftTop: GradientDirection = GradientDirection.LEFT_TOP - static readonly LEFT_BOTTOM: GradientDirection = new GradientDirection(5,5) - static readonly LeftBottom: GradientDirection = GradientDirection.LEFT_BOTTOM - static readonly RIGHT_TOP: GradientDirection = new GradientDirection(6,6) - static readonly RightTop: GradientDirection = GradientDirection.RIGHT_TOP - static readonly RIGHT_BOTTOM: GradientDirection = new GradientDirection(7,7) - static readonly RightBottom: GradientDirection = GradientDirection.RIGHT_BOTTOM - static readonly NONE: GradientDirection = new GradientDirection(8,8) - static readonly None: GradientDirection = GradientDirection.NONE - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): GradientDirection { - if ((arg0) == (GradientDirection.LEFT.value)) - return GradientDirection.LEFT - if ((arg0) == (GradientDirection.TOP.value)) - return GradientDirection.TOP - if ((arg0) == (GradientDirection.RIGHT.value)) - return GradientDirection.RIGHT - if ((arg0) == (GradientDirection.BOTTOM.value)) - return GradientDirection.BOTTOM - if ((arg0) == (GradientDirection.LEFT_TOP.value)) - return GradientDirection.LEFT_TOP - if ((arg0) == (GradientDirection.LEFT_BOTTOM.value)) - return GradientDirection.LEFT_BOTTOM - if ((arg0) == (GradientDirection.RIGHT_TOP.value)) - return GradientDirection.RIGHT_TOP - if ((arg0) == (GradientDirection.RIGHT_BOTTOM.value)) - return GradientDirection.RIGHT_BOTTOM - if ((arg0) == (GradientDirection.NONE.value)) - return GradientDirection.NONE - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): GradientDirection { - if ((arg0) == (GradientDirection.LEFT.ordinal)) - return GradientDirection.LEFT - if ((arg0) == (GradientDirection.TOP.ordinal)) - return GradientDirection.TOP - if ((arg0) == (GradientDirection.RIGHT.ordinal)) - return GradientDirection.RIGHT - if ((arg0) == (GradientDirection.BOTTOM.ordinal)) - return GradientDirection.BOTTOM - if ((arg0) == (GradientDirection.LEFT_TOP.ordinal)) - return GradientDirection.LEFT_TOP - if ((arg0) == (GradientDirection.LEFT_BOTTOM.ordinal)) - return GradientDirection.LEFT_BOTTOM - if ((arg0) == (GradientDirection.RIGHT_TOP.ordinal)) - return GradientDirection.RIGHT_TOP - if ((arg0) == (GradientDirection.RIGHT_BOTTOM.ordinal)) - return GradientDirection.RIGHT_BOTTOM - if ((arg0) == (GradientDirection.NONE.ordinal)) - return GradientDirection.NONE - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class SharedTransitionEffectType { - static readonly STATIC: SharedTransitionEffectType = new SharedTransitionEffectType(0,0) - static readonly Static: SharedTransitionEffectType = SharedTransitionEffectType.STATIC - static readonly EXCHANGE: SharedTransitionEffectType = new SharedTransitionEffectType(1,1) - static readonly Exchange: SharedTransitionEffectType = SharedTransitionEffectType.EXCHANGE - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): SharedTransitionEffectType { - if ((arg0) == (SharedTransitionEffectType.STATIC.value)) - return SharedTransitionEffectType.STATIC - if ((arg0) == (SharedTransitionEffectType.EXCHANGE.value)) - return SharedTransitionEffectType.EXCHANGE - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): SharedTransitionEffectType { - if ((arg0) == (SharedTransitionEffectType.STATIC.ordinal)) - return SharedTransitionEffectType.STATIC - if ((arg0) == (SharedTransitionEffectType.EXCHANGE.ordinal)) - return SharedTransitionEffectType.EXCHANGE - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class FontStyle { - static readonly NORMAL: FontStyle = new FontStyle(0,0) - static readonly Normal: FontStyle = FontStyle.NORMAL - static readonly ITALIC: FontStyle = new FontStyle(1,1) - static readonly Italic: FontStyle = FontStyle.ITALIC - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): FontStyle { - if ((arg0) == (FontStyle.NORMAL.value)) - return FontStyle.NORMAL - if ((arg0) == (FontStyle.ITALIC.value)) - return FontStyle.ITALIC - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): FontStyle { - if ((arg0) == (FontStyle.NORMAL.ordinal)) - return FontStyle.NORMAL - if ((arg0) == (FontStyle.ITALIC.ordinal)) - return FontStyle.ITALIC - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class FontWeight { - static readonly LIGHTER: FontWeight = new FontWeight(0,0) - static readonly Lighter: FontWeight = FontWeight.LIGHTER - static readonly NORMAL: FontWeight = new FontWeight(1,1) - static readonly Normal: FontWeight = FontWeight.NORMAL - static readonly REGULAR: FontWeight = new FontWeight(2,2) - static readonly Regular: FontWeight = FontWeight.REGULAR - static readonly MEDIUM: FontWeight = new FontWeight(3,3) - static readonly Medium: FontWeight = FontWeight.MEDIUM - static readonly BOLD: FontWeight = new FontWeight(4,4) - static readonly Bold: FontWeight = FontWeight.BOLD - static readonly BOLDER: FontWeight = new FontWeight(5,5) - static readonly Bolder: FontWeight = FontWeight.BOLDER - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): FontWeight { - if ((arg0) == (FontWeight.LIGHTER.value)) - return FontWeight.LIGHTER - if ((arg0) == (FontWeight.NORMAL.value)) - return FontWeight.NORMAL - if ((arg0) == (FontWeight.REGULAR.value)) - return FontWeight.REGULAR - if ((arg0) == (FontWeight.MEDIUM.value)) - return FontWeight.MEDIUM - if ((arg0) == (FontWeight.BOLD.value)) - return FontWeight.BOLD - if ((arg0) == (FontWeight.BOLDER.value)) - return FontWeight.BOLDER - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): FontWeight { - if ((arg0) == (FontWeight.LIGHTER.ordinal)) - return FontWeight.LIGHTER - if ((arg0) == (FontWeight.NORMAL.ordinal)) - return FontWeight.NORMAL - if ((arg0) == (FontWeight.REGULAR.ordinal)) - return FontWeight.REGULAR - if ((arg0) == (FontWeight.MEDIUM.ordinal)) - return FontWeight.MEDIUM - if ((arg0) == (FontWeight.BOLD.ordinal)) - return FontWeight.BOLD - if ((arg0) == (FontWeight.BOLDER.ordinal)) - return FontWeight.BOLDER - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class TextAlign { - static readonly CENTER: TextAlign = new TextAlign(0,0) - static readonly Center: TextAlign = TextAlign.CENTER - static readonly START: TextAlign = new TextAlign(1,1) - static readonly Start: TextAlign = TextAlign.START - static readonly END: TextAlign = new TextAlign(2,2) - static readonly End: TextAlign = TextAlign.END - static readonly JUSTIFY: TextAlign = new TextAlign(3,3) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): TextAlign { - if ((arg0) == (TextAlign.CENTER.value)) - return TextAlign.CENTER - if ((arg0) == (TextAlign.START.value)) - return TextAlign.START - if ((arg0) == (TextAlign.END.value)) - return TextAlign.END - if ((arg0) == (TextAlign.JUSTIFY.value)) - return TextAlign.JUSTIFY - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): TextAlign { - if ((arg0) == (TextAlign.CENTER.ordinal)) - return TextAlign.CENTER - if ((arg0) == (TextAlign.START.ordinal)) - return TextAlign.START - if ((arg0) == (TextAlign.END.ordinal)) - return TextAlign.END - if ((arg0) == (TextAlign.JUSTIFY.ordinal)) - return TextAlign.JUSTIFY - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class TextOverflow { - static readonly NONE: TextOverflow = new TextOverflow(0,0) - static readonly None: TextOverflow = TextOverflow.NONE - static readonly CLIP: TextOverflow = new TextOverflow(1,1) - static readonly Clip: TextOverflow = TextOverflow.CLIP - static readonly ELLIPSIS: TextOverflow = new TextOverflow(2,2) - static readonly Ellipsis: TextOverflow = TextOverflow.ELLIPSIS - static readonly MARQUEE: TextOverflow = new TextOverflow(3,3) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): TextOverflow { - if ((arg0) == (TextOverflow.NONE.value)) - return TextOverflow.NONE - if ((arg0) == (TextOverflow.CLIP.value)) - return TextOverflow.CLIP - if ((arg0) == (TextOverflow.ELLIPSIS.value)) - return TextOverflow.ELLIPSIS - if ((arg0) == (TextOverflow.MARQUEE.value)) - return TextOverflow.MARQUEE - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): TextOverflow { - if ((arg0) == (TextOverflow.NONE.ordinal)) - return TextOverflow.NONE - if ((arg0) == (TextOverflow.CLIP.ordinal)) - return TextOverflow.CLIP - if ((arg0) == (TextOverflow.ELLIPSIS.ordinal)) - return TextOverflow.ELLIPSIS - if ((arg0) == (TextOverflow.MARQUEE.ordinal)) - return TextOverflow.MARQUEE - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class TextDecorationType { - static readonly NONE: TextDecorationType = new TextDecorationType(0,0) - static readonly None: TextDecorationType = TextDecorationType.NONE - static readonly UNDERLINE: TextDecorationType = new TextDecorationType(1,1) - static readonly Underline: TextDecorationType = TextDecorationType.UNDERLINE - static readonly OVERLINE: TextDecorationType = new TextDecorationType(2,2) - static readonly Overline: TextDecorationType = TextDecorationType.OVERLINE - static readonly LINE_THROUGH: TextDecorationType = new TextDecorationType(3,3) - static readonly LineThrough: TextDecorationType = TextDecorationType.LINE_THROUGH - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): TextDecorationType { - if ((arg0) == (TextDecorationType.NONE.value)) - return TextDecorationType.NONE - if ((arg0) == (TextDecorationType.UNDERLINE.value)) - return TextDecorationType.UNDERLINE - if ((arg0) == (TextDecorationType.OVERLINE.value)) - return TextDecorationType.OVERLINE - if ((arg0) == (TextDecorationType.LINE_THROUGH.value)) - return TextDecorationType.LINE_THROUGH - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): TextDecorationType { - if ((arg0) == (TextDecorationType.NONE.ordinal)) - return TextDecorationType.NONE - if ((arg0) == (TextDecorationType.UNDERLINE.ordinal)) - return TextDecorationType.UNDERLINE - if ((arg0) == (TextDecorationType.OVERLINE.ordinal)) - return TextDecorationType.OVERLINE - if ((arg0) == (TextDecorationType.LINE_THROUGH.ordinal)) - return TextDecorationType.LINE_THROUGH - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class TextCase { - static readonly NORMAL: TextCase = new TextCase(0,0) - static readonly Normal: TextCase = TextCase.NORMAL - static readonly LOWER_CASE: TextCase = new TextCase(1,1) - static readonly LowerCase: TextCase = TextCase.LOWER_CASE - static readonly UPPER_CASE: TextCase = new TextCase(2,2) - static readonly UpperCase: TextCase = TextCase.UPPER_CASE - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): TextCase { - if ((arg0) == (TextCase.NORMAL.value)) - return TextCase.NORMAL - if ((arg0) == (TextCase.LOWER_CASE.value)) - return TextCase.LOWER_CASE - if ((arg0) == (TextCase.UPPER_CASE.value)) - return TextCase.UPPER_CASE - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): TextCase { - if ((arg0) == (TextCase.NORMAL.ordinal)) - return TextCase.NORMAL - if ((arg0) == (TextCase.LOWER_CASE.ordinal)) - return TextCase.LOWER_CASE - if ((arg0) == (TextCase.UPPER_CASE.ordinal)) - return TextCase.UPPER_CASE - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class TextHeightAdaptivePolicy { - static readonly MAX_LINES_FIRST: TextHeightAdaptivePolicy = new TextHeightAdaptivePolicy(0,0) - static readonly MIN_FONT_SIZE_FIRST: TextHeightAdaptivePolicy = new TextHeightAdaptivePolicy(1,1) - static readonly LAYOUT_CONSTRAINT_FIRST: TextHeightAdaptivePolicy = new TextHeightAdaptivePolicy(2,2) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): TextHeightAdaptivePolicy { - if ((arg0) == (TextHeightAdaptivePolicy.MAX_LINES_FIRST.value)) - return TextHeightAdaptivePolicy.MAX_LINES_FIRST - if ((arg0) == (TextHeightAdaptivePolicy.MIN_FONT_SIZE_FIRST.value)) - return TextHeightAdaptivePolicy.MIN_FONT_SIZE_FIRST - if ((arg0) == (TextHeightAdaptivePolicy.LAYOUT_CONSTRAINT_FIRST.value)) - return TextHeightAdaptivePolicy.LAYOUT_CONSTRAINT_FIRST - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): TextHeightAdaptivePolicy { - if ((arg0) == (TextHeightAdaptivePolicy.MAX_LINES_FIRST.ordinal)) - return TextHeightAdaptivePolicy.MAX_LINES_FIRST - if ((arg0) == (TextHeightAdaptivePolicy.MIN_FONT_SIZE_FIRST.ordinal)) - return TextHeightAdaptivePolicy.MIN_FONT_SIZE_FIRST - if ((arg0) == (TextHeightAdaptivePolicy.LAYOUT_CONSTRAINT_FIRST.ordinal)) - return TextHeightAdaptivePolicy.LAYOUT_CONSTRAINT_FIRST - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class ResponseType { - static readonly RIGHT_CLICK: ResponseType = new ResponseType(0,0) - static readonly RightClick: ResponseType = ResponseType.RIGHT_CLICK - static readonly LONG_PRESS: ResponseType = new ResponseType(1,1) - static readonly LongPress: ResponseType = ResponseType.LONG_PRESS - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): ResponseType { - if ((arg0) == (ResponseType.RIGHT_CLICK.value)) - return ResponseType.RIGHT_CLICK - if ((arg0) == (ResponseType.LONG_PRESS.value)) - return ResponseType.LONG_PRESS - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): ResponseType { - if ((arg0) == (ResponseType.RIGHT_CLICK.ordinal)) - return ResponseType.RIGHT_CLICK - if ((arg0) == (ResponseType.LONG_PRESS.ordinal)) - return ResponseType.LONG_PRESS - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class HoverEffect { - static readonly AUTO: HoverEffect = new HoverEffect(0,0) - static readonly Auto: HoverEffect = HoverEffect.AUTO - static readonly SCALE: HoverEffect = new HoverEffect(1,1) - static readonly Scale: HoverEffect = HoverEffect.SCALE - static readonly HIGHLIGHT: HoverEffect = new HoverEffect(2,2) - static readonly Highlight: HoverEffect = HoverEffect.HIGHLIGHT - static readonly NONE: HoverEffect = new HoverEffect(3,3) - static readonly None: HoverEffect = HoverEffect.NONE - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): HoverEffect { - if ((arg0) == (HoverEffect.AUTO.value)) - return HoverEffect.AUTO - if ((arg0) == (HoverEffect.SCALE.value)) - return HoverEffect.SCALE - if ((arg0) == (HoverEffect.HIGHLIGHT.value)) - return HoverEffect.HIGHLIGHT - if ((arg0) == (HoverEffect.NONE.value)) - return HoverEffect.NONE - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): HoverEffect { - if ((arg0) == (HoverEffect.AUTO.ordinal)) - return HoverEffect.AUTO - if ((arg0) == (HoverEffect.SCALE.ordinal)) - return HoverEffect.SCALE - if ((arg0) == (HoverEffect.HIGHLIGHT.ordinal)) - return HoverEffect.HIGHLIGHT - if ((arg0) == (HoverEffect.NONE.ordinal)) - return HoverEffect.NONE - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class Placement { - static readonly LEFT: Placement = new Placement(0,0) - static readonly Left: Placement = Placement.LEFT - static readonly RIGHT: Placement = new Placement(1,1) - static readonly Right: Placement = Placement.RIGHT - static readonly TOP: Placement = new Placement(2,2) - static readonly Top: Placement = Placement.TOP - static readonly BOTTOM: Placement = new Placement(3,3) - static readonly Bottom: Placement = Placement.BOTTOM - static readonly TOP_LEFT: Placement = new Placement(4,4) - static readonly TopLeft: Placement = Placement.TOP_LEFT - static readonly TOP_RIGHT: Placement = new Placement(5,5) - static readonly TopRight: Placement = Placement.TOP_RIGHT - static readonly BOTTOM_LEFT: Placement = new Placement(6,6) - static readonly BottomLeft: Placement = Placement.BOTTOM_LEFT - static readonly BOTTOM_RIGHT: Placement = new Placement(7,7) - static readonly BottomRight: Placement = Placement.BOTTOM_RIGHT - static readonly LEFT_TOP: Placement = new Placement(8,8) - static readonly LeftTop: Placement = Placement.LEFT_TOP - static readonly LEFT_BOTTOM: Placement = new Placement(9,9) - static readonly LeftBottom: Placement = Placement.LEFT_BOTTOM - static readonly RIGHT_TOP: Placement = new Placement(10,10) - static readonly RightTop: Placement = Placement.RIGHT_TOP - static readonly RIGHT_BOTTOM: Placement = new Placement(11,11) - static readonly RightBottom: Placement = Placement.RIGHT_BOTTOM - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): Placement { - if ((arg0) == (Placement.LEFT.value)) - return Placement.LEFT - if ((arg0) == (Placement.RIGHT.value)) - return Placement.RIGHT - if ((arg0) == (Placement.TOP.value)) - return Placement.TOP - if ((arg0) == (Placement.BOTTOM.value)) - return Placement.BOTTOM - if ((arg0) == (Placement.TOP_LEFT.value)) - return Placement.TOP_LEFT - if ((arg0) == (Placement.TOP_RIGHT.value)) - return Placement.TOP_RIGHT - if ((arg0) == (Placement.BOTTOM_LEFT.value)) - return Placement.BOTTOM_LEFT - if ((arg0) == (Placement.BOTTOM_RIGHT.value)) - return Placement.BOTTOM_RIGHT - if ((arg0) == (Placement.LEFT_TOP.value)) - return Placement.LEFT_TOP - if ((arg0) == (Placement.LEFT_BOTTOM.value)) - return Placement.LEFT_BOTTOM - if ((arg0) == (Placement.RIGHT_TOP.value)) - return Placement.RIGHT_TOP - if ((arg0) == (Placement.RIGHT_BOTTOM.value)) - return Placement.RIGHT_BOTTOM - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): Placement { - if ((arg0) == (Placement.LEFT.ordinal)) - return Placement.LEFT - if ((arg0) == (Placement.RIGHT.ordinal)) - return Placement.RIGHT - if ((arg0) == (Placement.TOP.ordinal)) - return Placement.TOP - if ((arg0) == (Placement.BOTTOM.ordinal)) - return Placement.BOTTOM - if ((arg0) == (Placement.TOP_LEFT.ordinal)) - return Placement.TOP_LEFT - if ((arg0) == (Placement.TOP_RIGHT.ordinal)) - return Placement.TOP_RIGHT - if ((arg0) == (Placement.BOTTOM_LEFT.ordinal)) - return Placement.BOTTOM_LEFT - if ((arg0) == (Placement.BOTTOM_RIGHT.ordinal)) - return Placement.BOTTOM_RIGHT - if ((arg0) == (Placement.LEFT_TOP.ordinal)) - return Placement.LEFT_TOP - if ((arg0) == (Placement.LEFT_BOTTOM.ordinal)) - return Placement.LEFT_BOTTOM - if ((arg0) == (Placement.RIGHT_TOP.ordinal)) - return Placement.RIGHT_TOP - if ((arg0) == (Placement.RIGHT_BOTTOM.ordinal)) - return Placement.RIGHT_BOTTOM - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class ArrowPointPosition { - static readonly START: ArrowPointPosition = new ArrowPointPosition("Start",0) - static readonly CENTER: ArrowPointPosition = new ArrowPointPosition("Center",1) - static readonly END: ArrowPointPosition = new ArrowPointPosition("End",2) - constructor(value: string, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: string - public readonly ordinal: int32 - public static of(arg0: string): ArrowPointPosition { - if ((arg0) == (ArrowPointPosition.START.value)) - return ArrowPointPosition.START - if ((arg0) == (ArrowPointPosition.CENTER.value)) - return ArrowPointPosition.CENTER - if ((arg0) == (ArrowPointPosition.END.value)) - return ArrowPointPosition.END - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): ArrowPointPosition { - if ((arg0) == (ArrowPointPosition.START.ordinal)) - return ArrowPointPosition.START - if ((arg0) == (ArrowPointPosition.CENTER.ordinal)) - return ArrowPointPosition.CENTER - if ((arg0) == (ArrowPointPosition.END.ordinal)) - return ArrowPointPosition.END - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class CopyOptions { - static readonly NONE: CopyOptions = new CopyOptions(0,0) - static readonly None: CopyOptions = CopyOptions.NONE - static readonly IN_APP: CopyOptions = new CopyOptions(1,1) - static readonly InApp: CopyOptions = CopyOptions.IN_APP - static readonly LOCAL_DEVICE: CopyOptions = new CopyOptions(2,2) - static readonly LocalDevice: CopyOptions = CopyOptions.LOCAL_DEVICE - static readonly CROSS_DEVICE: CopyOptions = new CopyOptions(3,3) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): CopyOptions { - if ((arg0) == (CopyOptions.NONE.value)) - return CopyOptions.NONE - if ((arg0) == (CopyOptions.IN_APP.value)) - return CopyOptions.IN_APP - if ((arg0) == (CopyOptions.LOCAL_DEVICE.value)) - return CopyOptions.LOCAL_DEVICE - if ((arg0) == (CopyOptions.CROSS_DEVICE.value)) - return CopyOptions.CROSS_DEVICE - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): CopyOptions { - if ((arg0) == (CopyOptions.NONE.ordinal)) - return CopyOptions.NONE - if ((arg0) == (CopyOptions.IN_APP.ordinal)) - return CopyOptions.IN_APP - if ((arg0) == (CopyOptions.LOCAL_DEVICE.ordinal)) - return CopyOptions.LOCAL_DEVICE - if ((arg0) == (CopyOptions.CROSS_DEVICE.ordinal)) - return CopyOptions.CROSS_DEVICE - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class HitTestMode { - static readonly DEFAULT: HitTestMode = new HitTestMode(0,0) - static readonly Default: HitTestMode = HitTestMode.DEFAULT - static readonly BLOCK: HitTestMode = new HitTestMode(1,1) - static readonly Block: HitTestMode = HitTestMode.BLOCK - static readonly TRANSPARENT: HitTestMode = new HitTestMode(2,2) - static readonly Transparent: HitTestMode = HitTestMode.TRANSPARENT - static readonly NONE: HitTestMode = new HitTestMode(3,3) - static readonly None: HitTestMode = HitTestMode.NONE - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): HitTestMode { - if ((arg0) == (HitTestMode.DEFAULT.value)) - return HitTestMode.DEFAULT - if ((arg0) == (HitTestMode.BLOCK.value)) - return HitTestMode.BLOCK - if ((arg0) == (HitTestMode.TRANSPARENT.value)) - return HitTestMode.TRANSPARENT - if ((arg0) == (HitTestMode.NONE.value)) - return HitTestMode.NONE - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): HitTestMode { - if ((arg0) == (HitTestMode.DEFAULT.ordinal)) - return HitTestMode.DEFAULT - if ((arg0) == (HitTestMode.BLOCK.ordinal)) - return HitTestMode.BLOCK - if ((arg0) == (HitTestMode.TRANSPARENT.ordinal)) - return HitTestMode.TRANSPARENT - if ((arg0) == (HitTestMode.NONE.ordinal)) - return HitTestMode.NONE - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class TitleHeight { - static readonly MAIN_ONLY: TitleHeight = new TitleHeight(0,0) - static readonly MainOnly: TitleHeight = TitleHeight.MAIN_ONLY - static readonly MAIN_WITH_SUB: TitleHeight = new TitleHeight(1,1) - static readonly MainWithSub: TitleHeight = TitleHeight.MAIN_WITH_SUB - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): TitleHeight { - if ((arg0) == (TitleHeight.MAIN_ONLY.value)) - return TitleHeight.MAIN_ONLY - if ((arg0) == (TitleHeight.MAIN_WITH_SUB.value)) - return TitleHeight.MAIN_WITH_SUB - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): TitleHeight { - if ((arg0) == (TitleHeight.MAIN_ONLY.ordinal)) - return TitleHeight.MAIN_ONLY - if ((arg0) == (TitleHeight.MAIN_WITH_SUB.ordinal)) - return TitleHeight.MAIN_WITH_SUB - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class ModifierKey { - static readonly CTRL: ModifierKey = new ModifierKey(0,0) - static readonly SHIFT: ModifierKey = new ModifierKey(1,1) - static readonly ALT: ModifierKey = new ModifierKey(2,2) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): ModifierKey { - if ((arg0) == (ModifierKey.CTRL.value)) - return ModifierKey.CTRL - if ((arg0) == (ModifierKey.SHIFT.value)) - return ModifierKey.SHIFT - if ((arg0) == (ModifierKey.ALT.value)) - return ModifierKey.ALT - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): ModifierKey { - if ((arg0) == (ModifierKey.CTRL.ordinal)) - return ModifierKey.CTRL - if ((arg0) == (ModifierKey.SHIFT.ordinal)) - return ModifierKey.SHIFT - if ((arg0) == (ModifierKey.ALT.ordinal)) - return ModifierKey.ALT - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class FunctionKey { - static readonly ESC: FunctionKey = new FunctionKey(0,0) - static readonly F1: FunctionKey = new FunctionKey(1,1) - static readonly F2: FunctionKey = new FunctionKey(2,2) - static readonly F3: FunctionKey = new FunctionKey(3,3) - static readonly F4: FunctionKey = new FunctionKey(4,4) - static readonly F5: FunctionKey = new FunctionKey(5,5) - static readonly F6: FunctionKey = new FunctionKey(6,6) - static readonly F7: FunctionKey = new FunctionKey(7,7) - static readonly F8: FunctionKey = new FunctionKey(8,8) - static readonly F9: FunctionKey = new FunctionKey(9,9) - static readonly F10: FunctionKey = new FunctionKey(10,10) - static readonly F11: FunctionKey = new FunctionKey(11,11) - static readonly F12: FunctionKey = new FunctionKey(12,12) - static readonly TAB: FunctionKey = new FunctionKey(13,13) - static readonly DPAD_UP: FunctionKey = new FunctionKey(14,14) - static readonly DPAD_DOWN: FunctionKey = new FunctionKey(15,15) - static readonly DPAD_LEFT: FunctionKey = new FunctionKey(16,16) - static readonly DPAD_RIGHT: FunctionKey = new FunctionKey(17,17) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): FunctionKey { - if ((arg0) == (FunctionKey.ESC.value)) - return FunctionKey.ESC - if ((arg0) == (FunctionKey.F1.value)) - return FunctionKey.F1 - if ((arg0) == (FunctionKey.F2.value)) - return FunctionKey.F2 - if ((arg0) == (FunctionKey.F3.value)) - return FunctionKey.F3 - if ((arg0) == (FunctionKey.F4.value)) - return FunctionKey.F4 - if ((arg0) == (FunctionKey.F5.value)) - return FunctionKey.F5 - if ((arg0) == (FunctionKey.F6.value)) - return FunctionKey.F6 - if ((arg0) == (FunctionKey.F7.value)) - return FunctionKey.F7 - if ((arg0) == (FunctionKey.F8.value)) - return FunctionKey.F8 - if ((arg0) == (FunctionKey.F9.value)) - return FunctionKey.F9 - if ((arg0) == (FunctionKey.F10.value)) - return FunctionKey.F10 - if ((arg0) == (FunctionKey.F11.value)) - return FunctionKey.F11 - if ((arg0) == (FunctionKey.F12.value)) - return FunctionKey.F12 - if ((arg0) == (FunctionKey.TAB.value)) - return FunctionKey.TAB - if ((arg0) == (FunctionKey.DPAD_UP.value)) - return FunctionKey.DPAD_UP - if ((arg0) == (FunctionKey.DPAD_DOWN.value)) - return FunctionKey.DPAD_DOWN - if ((arg0) == (FunctionKey.DPAD_LEFT.value)) - return FunctionKey.DPAD_LEFT - if ((arg0) == (FunctionKey.DPAD_RIGHT.value)) - return FunctionKey.DPAD_RIGHT - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): FunctionKey { - if ((arg0) == (FunctionKey.ESC.ordinal)) - return FunctionKey.ESC - if ((arg0) == (FunctionKey.F1.ordinal)) - return FunctionKey.F1 - if ((arg0) == (FunctionKey.F2.ordinal)) - return FunctionKey.F2 - if ((arg0) == (FunctionKey.F3.ordinal)) - return FunctionKey.F3 - if ((arg0) == (FunctionKey.F4.ordinal)) - return FunctionKey.F4 - if ((arg0) == (FunctionKey.F5.ordinal)) - return FunctionKey.F5 - if ((arg0) == (FunctionKey.F6.ordinal)) - return FunctionKey.F6 - if ((arg0) == (FunctionKey.F7.ordinal)) - return FunctionKey.F7 - if ((arg0) == (FunctionKey.F8.ordinal)) - return FunctionKey.F8 - if ((arg0) == (FunctionKey.F9.ordinal)) - return FunctionKey.F9 - if ((arg0) == (FunctionKey.F10.ordinal)) - return FunctionKey.F10 - if ((arg0) == (FunctionKey.F11.ordinal)) - return FunctionKey.F11 - if ((arg0) == (FunctionKey.F12.ordinal)) - return FunctionKey.F12 - if ((arg0) == (FunctionKey.TAB.ordinal)) - return FunctionKey.TAB - if ((arg0) == (FunctionKey.DPAD_UP.ordinal)) - return FunctionKey.DPAD_UP - if ((arg0) == (FunctionKey.DPAD_DOWN.ordinal)) - return FunctionKey.DPAD_DOWN - if ((arg0) == (FunctionKey.DPAD_LEFT.ordinal)) - return FunctionKey.DPAD_LEFT - if ((arg0) == (FunctionKey.DPAD_RIGHT.ordinal)) - return FunctionKey.DPAD_RIGHT - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class ImageSpanAlignment { - static readonly BASELINE: ImageSpanAlignment = new ImageSpanAlignment(0,0) - static readonly BOTTOM: ImageSpanAlignment = new ImageSpanAlignment(1,1) - static readonly CENTER: ImageSpanAlignment = new ImageSpanAlignment(2,2) - static readonly TOP: ImageSpanAlignment = new ImageSpanAlignment(3,3) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): ImageSpanAlignment { - if ((arg0) == (ImageSpanAlignment.BASELINE.value)) - return ImageSpanAlignment.BASELINE - if ((arg0) == (ImageSpanAlignment.BOTTOM.value)) - return ImageSpanAlignment.BOTTOM - if ((arg0) == (ImageSpanAlignment.CENTER.value)) - return ImageSpanAlignment.CENTER - if ((arg0) == (ImageSpanAlignment.TOP.value)) - return ImageSpanAlignment.TOP - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): ImageSpanAlignment { - if ((arg0) == (ImageSpanAlignment.BASELINE.ordinal)) - return ImageSpanAlignment.BASELINE - if ((arg0) == (ImageSpanAlignment.BOTTOM.ordinal)) - return ImageSpanAlignment.BOTTOM - if ((arg0) == (ImageSpanAlignment.CENTER.ordinal)) - return ImageSpanAlignment.CENTER - if ((arg0) == (ImageSpanAlignment.TOP.ordinal)) - return ImageSpanAlignment.TOP - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class ObscuredReasons { - static readonly PLACEHOLDER: ObscuredReasons = new ObscuredReasons(0,0) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): ObscuredReasons { - if ((arg0) == (ObscuredReasons.PLACEHOLDER.value)) - return ObscuredReasons.PLACEHOLDER - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): ObscuredReasons { - if ((arg0) == (ObscuredReasons.PLACEHOLDER.ordinal)) - return ObscuredReasons.PLACEHOLDER - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class TextContentStyle { - static readonly DEFAULT: TextContentStyle = new TextContentStyle(0,0) - static readonly INLINE: TextContentStyle = new TextContentStyle(1,1) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): TextContentStyle { - if ((arg0) == (TextContentStyle.DEFAULT.value)) - return TextContentStyle.DEFAULT - if ((arg0) == (TextContentStyle.INLINE.value)) - return TextContentStyle.INLINE - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): TextContentStyle { - if ((arg0) == (TextContentStyle.DEFAULT.ordinal)) - return TextContentStyle.DEFAULT - if ((arg0) == (TextContentStyle.INLINE.ordinal)) - return TextContentStyle.INLINE - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class ClickEffectLevel { - static readonly LIGHT: ClickEffectLevel = new ClickEffectLevel(0,0) - static readonly MIDDLE: ClickEffectLevel = new ClickEffectLevel(1,1) - static readonly HEAVY: ClickEffectLevel = new ClickEffectLevel(2,2) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): ClickEffectLevel { - if ((arg0) == (ClickEffectLevel.LIGHT.value)) - return ClickEffectLevel.LIGHT - if ((arg0) == (ClickEffectLevel.MIDDLE.value)) - return ClickEffectLevel.MIDDLE - if ((arg0) == (ClickEffectLevel.HEAVY.value)) - return ClickEffectLevel.HEAVY - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): ClickEffectLevel { - if ((arg0) == (ClickEffectLevel.LIGHT.ordinal)) - return ClickEffectLevel.LIGHT - if ((arg0) == (ClickEffectLevel.MIDDLE.ordinal)) - return ClickEffectLevel.MIDDLE - if ((arg0) == (ClickEffectLevel.HEAVY.ordinal)) - return ClickEffectLevel.HEAVY - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class XComponentType { - static readonly SURFACE: XComponentType = new XComponentType(0,0) - static readonly COMPONENT: XComponentType = new XComponentType(1,1) - static readonly TEXTURE: XComponentType = new XComponentType(2,2) - static readonly NODE: XComponentType = new XComponentType(3,3) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): XComponentType { - if ((arg0) == (XComponentType.SURFACE.value)) - return XComponentType.SURFACE - if ((arg0) == (XComponentType.COMPONENT.value)) - return XComponentType.COMPONENT - if ((arg0) == (XComponentType.TEXTURE.value)) - return XComponentType.TEXTURE - if ((arg0) == (XComponentType.NODE.value)) - return XComponentType.NODE - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): XComponentType { - if ((arg0) == (XComponentType.SURFACE.ordinal)) - return XComponentType.SURFACE - if ((arg0) == (XComponentType.COMPONENT.ordinal)) - return XComponentType.COMPONENT - if ((arg0) == (XComponentType.TEXTURE.ordinal)) - return XComponentType.TEXTURE - if ((arg0) == (XComponentType.NODE.ordinal)) - return XComponentType.NODE - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class NestedScrollMode { - static readonly SELF_ONLY: NestedScrollMode = new NestedScrollMode(0,0) - static readonly SELF_FIRST: NestedScrollMode = new NestedScrollMode(1,1) - static readonly PARENT_FIRST: NestedScrollMode = new NestedScrollMode(2,2) - static readonly PARALLEL: NestedScrollMode = new NestedScrollMode(3,3) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): NestedScrollMode { - if ((arg0) == (NestedScrollMode.SELF_ONLY.value)) - return NestedScrollMode.SELF_ONLY - if ((arg0) == (NestedScrollMode.SELF_FIRST.value)) - return NestedScrollMode.SELF_FIRST - if ((arg0) == (NestedScrollMode.PARENT_FIRST.value)) - return NestedScrollMode.PARENT_FIRST - if ((arg0) == (NestedScrollMode.PARALLEL.value)) - return NestedScrollMode.PARALLEL - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): NestedScrollMode { - if ((arg0) == (NestedScrollMode.SELF_ONLY.ordinal)) - return NestedScrollMode.SELF_ONLY - if ((arg0) == (NestedScrollMode.SELF_FIRST.ordinal)) - return NestedScrollMode.SELF_FIRST - if ((arg0) == (NestedScrollMode.PARENT_FIRST.ordinal)) - return NestedScrollMode.PARENT_FIRST - if ((arg0) == (NestedScrollMode.PARALLEL.ordinal)) - return NestedScrollMode.PARALLEL - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class ScrollSource { - static readonly DRAG: ScrollSource = new ScrollSource(0,0) - static readonly FLING: ScrollSource = new ScrollSource(1,1) - static readonly EDGE_EFFECT: ScrollSource = new ScrollSource(2,2) - static readonly OTHER_USER_INPUT: ScrollSource = new ScrollSource(3,3) - static readonly SCROLL_BAR: ScrollSource = new ScrollSource(4,4) - static readonly SCROLL_BAR_FLING: ScrollSource = new ScrollSource(5,5) - static readonly SCROLLER: ScrollSource = new ScrollSource(6,6) - static readonly SCROLLER_ANIMATION: ScrollSource = new ScrollSource(7,7) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): ScrollSource { - if ((arg0) == (ScrollSource.DRAG.value)) - return ScrollSource.DRAG - if ((arg0) == (ScrollSource.FLING.value)) - return ScrollSource.FLING - if ((arg0) == (ScrollSource.EDGE_EFFECT.value)) - return ScrollSource.EDGE_EFFECT - if ((arg0) == (ScrollSource.OTHER_USER_INPUT.value)) - return ScrollSource.OTHER_USER_INPUT - if ((arg0) == (ScrollSource.SCROLL_BAR.value)) - return ScrollSource.SCROLL_BAR - if ((arg0) == (ScrollSource.SCROLL_BAR_FLING.value)) - return ScrollSource.SCROLL_BAR_FLING - if ((arg0) == (ScrollSource.SCROLLER.value)) - return ScrollSource.SCROLLER - if ((arg0) == (ScrollSource.SCROLLER_ANIMATION.value)) - return ScrollSource.SCROLLER_ANIMATION - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): ScrollSource { - if ((arg0) == (ScrollSource.DRAG.ordinal)) - return ScrollSource.DRAG - if ((arg0) == (ScrollSource.FLING.ordinal)) - return ScrollSource.FLING - if ((arg0) == (ScrollSource.EDGE_EFFECT.ordinal)) - return ScrollSource.EDGE_EFFECT - if ((arg0) == (ScrollSource.OTHER_USER_INPUT.ordinal)) - return ScrollSource.OTHER_USER_INPUT - if ((arg0) == (ScrollSource.SCROLL_BAR.ordinal)) - return ScrollSource.SCROLL_BAR - if ((arg0) == (ScrollSource.SCROLL_BAR_FLING.ordinal)) - return ScrollSource.SCROLL_BAR_FLING - if ((arg0) == (ScrollSource.SCROLLER.ordinal)) - return ScrollSource.SCROLLER - if ((arg0) == (ScrollSource.SCROLLER_ANIMATION.ordinal)) - return ScrollSource.SCROLLER_ANIMATION - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class RenderFit { - static readonly CENTER: RenderFit = new RenderFit(0,0) - static readonly TOP: RenderFit = new RenderFit(1,1) - static readonly BOTTOM: RenderFit = new RenderFit(2,2) - static readonly LEFT: RenderFit = new RenderFit(3,3) - static readonly RIGHT: RenderFit = new RenderFit(4,4) - static readonly TOP_LEFT: RenderFit = new RenderFit(5,5) - static readonly TOP_RIGHT: RenderFit = new RenderFit(6,6) - static readonly BOTTOM_LEFT: RenderFit = new RenderFit(7,7) - static readonly BOTTOM_RIGHT: RenderFit = new RenderFit(8,8) - static readonly RESIZE_FILL: RenderFit = new RenderFit(9,9) - static readonly RESIZE_CONTAIN: RenderFit = new RenderFit(10,10) - static readonly RESIZE_CONTAIN_TOP_LEFT: RenderFit = new RenderFit(11,11) - static readonly RESIZE_CONTAIN_BOTTOM_RIGHT: RenderFit = new RenderFit(12,12) - static readonly RESIZE_COVER: RenderFit = new RenderFit(13,13) - static readonly RESIZE_COVER_TOP_LEFT: RenderFit = new RenderFit(14,14) - static readonly RESIZE_COVER_BOTTOM_RIGHT: RenderFit = new RenderFit(15,15) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): RenderFit { - if ((arg0) == (RenderFit.CENTER.value)) - return RenderFit.CENTER - if ((arg0) == (RenderFit.TOP.value)) - return RenderFit.TOP - if ((arg0) == (RenderFit.BOTTOM.value)) - return RenderFit.BOTTOM - if ((arg0) == (RenderFit.LEFT.value)) - return RenderFit.LEFT - if ((arg0) == (RenderFit.RIGHT.value)) - return RenderFit.RIGHT - if ((arg0) == (RenderFit.TOP_LEFT.value)) - return RenderFit.TOP_LEFT - if ((arg0) == (RenderFit.TOP_RIGHT.value)) - return RenderFit.TOP_RIGHT - if ((arg0) == (RenderFit.BOTTOM_LEFT.value)) - return RenderFit.BOTTOM_LEFT - if ((arg0) == (RenderFit.BOTTOM_RIGHT.value)) - return RenderFit.BOTTOM_RIGHT - if ((arg0) == (RenderFit.RESIZE_FILL.value)) - return RenderFit.RESIZE_FILL - if ((arg0) == (RenderFit.RESIZE_CONTAIN.value)) - return RenderFit.RESIZE_CONTAIN - if ((arg0) == (RenderFit.RESIZE_CONTAIN_TOP_LEFT.value)) - return RenderFit.RESIZE_CONTAIN_TOP_LEFT - if ((arg0) == (RenderFit.RESIZE_CONTAIN_BOTTOM_RIGHT.value)) - return RenderFit.RESIZE_CONTAIN_BOTTOM_RIGHT - if ((arg0) == (RenderFit.RESIZE_COVER.value)) - return RenderFit.RESIZE_COVER - if ((arg0) == (RenderFit.RESIZE_COVER_TOP_LEFT.value)) - return RenderFit.RESIZE_COVER_TOP_LEFT - if ((arg0) == (RenderFit.RESIZE_COVER_BOTTOM_RIGHT.value)) - return RenderFit.RESIZE_COVER_BOTTOM_RIGHT - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): RenderFit { - if ((arg0) == (RenderFit.CENTER.ordinal)) - return RenderFit.CENTER - if ((arg0) == (RenderFit.TOP.ordinal)) - return RenderFit.TOP - if ((arg0) == (RenderFit.BOTTOM.ordinal)) - return RenderFit.BOTTOM - if ((arg0) == (RenderFit.LEFT.ordinal)) - return RenderFit.LEFT - if ((arg0) == (RenderFit.RIGHT.ordinal)) - return RenderFit.RIGHT - if ((arg0) == (RenderFit.TOP_LEFT.ordinal)) - return RenderFit.TOP_LEFT - if ((arg0) == (RenderFit.TOP_RIGHT.ordinal)) - return RenderFit.TOP_RIGHT - if ((arg0) == (RenderFit.BOTTOM_LEFT.ordinal)) - return RenderFit.BOTTOM_LEFT - if ((arg0) == (RenderFit.BOTTOM_RIGHT.ordinal)) - return RenderFit.BOTTOM_RIGHT - if ((arg0) == (RenderFit.RESIZE_FILL.ordinal)) - return RenderFit.RESIZE_FILL - if ((arg0) == (RenderFit.RESIZE_CONTAIN.ordinal)) - return RenderFit.RESIZE_CONTAIN - if ((arg0) == (RenderFit.RESIZE_CONTAIN_TOP_LEFT.ordinal)) - return RenderFit.RESIZE_CONTAIN_TOP_LEFT - if ((arg0) == (RenderFit.RESIZE_CONTAIN_BOTTOM_RIGHT.ordinal)) - return RenderFit.RESIZE_CONTAIN_BOTTOM_RIGHT - if ((arg0) == (RenderFit.RESIZE_COVER.ordinal)) - return RenderFit.RESIZE_COVER - if ((arg0) == (RenderFit.RESIZE_COVER_TOP_LEFT.ordinal)) - return RenderFit.RESIZE_COVER_TOP_LEFT - if ((arg0) == (RenderFit.RESIZE_COVER_BOTTOM_RIGHT.ordinal)) - return RenderFit.RESIZE_COVER_BOTTOM_RIGHT - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class DialogButtonStyle { - static readonly DEFAULT: DialogButtonStyle = new DialogButtonStyle(0,0) - static readonly HIGHLIGHT: DialogButtonStyle = new DialogButtonStyle(1,1) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): DialogButtonStyle { - if ((arg0) == (DialogButtonStyle.DEFAULT.value)) - return DialogButtonStyle.DEFAULT - if ((arg0) == (DialogButtonStyle.HIGHLIGHT.value)) - return DialogButtonStyle.HIGHLIGHT - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): DialogButtonStyle { - if ((arg0) == (DialogButtonStyle.DEFAULT.ordinal)) - return DialogButtonStyle.DEFAULT - if ((arg0) == (DialogButtonStyle.HIGHLIGHT.ordinal)) - return DialogButtonStyle.HIGHLIGHT - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class WordBreak { - static readonly NORMAL: WordBreak = new WordBreak(0,0) - static readonly BREAK_ALL: WordBreak = new WordBreak(1,1) - static readonly BREAK_WORD: WordBreak = new WordBreak(2,2) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): WordBreak { - if ((arg0) == (WordBreak.NORMAL.value)) - return WordBreak.NORMAL - if ((arg0) == (WordBreak.BREAK_ALL.value)) - return WordBreak.BREAK_ALL - if ((arg0) == (WordBreak.BREAK_WORD.value)) - return WordBreak.BREAK_WORD - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): WordBreak { - if ((arg0) == (WordBreak.NORMAL.ordinal)) - return WordBreak.NORMAL - if ((arg0) == (WordBreak.BREAK_ALL.ordinal)) - return WordBreak.BREAK_ALL - if ((arg0) == (WordBreak.BREAK_WORD.ordinal)) - return WordBreak.BREAK_WORD - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class LineBreakStrategy { - static readonly GREEDY: LineBreakStrategy = new LineBreakStrategy(0,0) - static readonly HIGH_QUALITY: LineBreakStrategy = new LineBreakStrategy(1,1) - static readonly BALANCED: LineBreakStrategy = new LineBreakStrategy(2,2) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): LineBreakStrategy { - if ((arg0) == (LineBreakStrategy.GREEDY.value)) - return LineBreakStrategy.GREEDY - if ((arg0) == (LineBreakStrategy.HIGH_QUALITY.value)) - return LineBreakStrategy.HIGH_QUALITY - if ((arg0) == (LineBreakStrategy.BALANCED.value)) - return LineBreakStrategy.BALANCED - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): LineBreakStrategy { - if ((arg0) == (LineBreakStrategy.GREEDY.ordinal)) - return LineBreakStrategy.GREEDY - if ((arg0) == (LineBreakStrategy.HIGH_QUALITY.ordinal)) - return LineBreakStrategy.HIGH_QUALITY - if ((arg0) == (LineBreakStrategy.BALANCED.ordinal)) - return LineBreakStrategy.BALANCED - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class EllipsisMode { - static readonly START: EllipsisMode = new EllipsisMode(0,0) - static readonly CENTER: EllipsisMode = new EllipsisMode(1,1) - static readonly END: EllipsisMode = new EllipsisMode(2,2) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): EllipsisMode { - if ((arg0) == (EllipsisMode.START.value)) - return EllipsisMode.START - if ((arg0) == (EllipsisMode.CENTER.value)) - return EllipsisMode.CENTER - if ((arg0) == (EllipsisMode.END.value)) - return EllipsisMode.END - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): EllipsisMode { - if ((arg0) == (EllipsisMode.START.ordinal)) - return EllipsisMode.START - if ((arg0) == (EllipsisMode.CENTER.ordinal)) - return EllipsisMode.CENTER - if ((arg0) == (EllipsisMode.END.ordinal)) - return EllipsisMode.END - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class OptionWidthMode { - static readonly FIT_CONTENT: OptionWidthMode = new OptionWidthMode("fit_content",0) - static readonly FIT_TRIGGER: OptionWidthMode = new OptionWidthMode("fit_trigger",1) - constructor(value: string, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: string - public readonly ordinal: int32 - public static of(arg0: string): OptionWidthMode { - if ((arg0) == (OptionWidthMode.FIT_CONTENT.value)) - return OptionWidthMode.FIT_CONTENT - if ((arg0) == (OptionWidthMode.FIT_TRIGGER.value)) - return OptionWidthMode.FIT_TRIGGER - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): OptionWidthMode { - if ((arg0) == (OptionWidthMode.FIT_CONTENT.ordinal)) - return OptionWidthMode.FIT_CONTENT - if ((arg0) == (OptionWidthMode.FIT_TRIGGER.ordinal)) - return OptionWidthMode.FIT_TRIGGER - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class IlluminatedType { - static readonly NONE: IlluminatedType = new IlluminatedType(0,0) - static readonly BORDER: IlluminatedType = new IlluminatedType(1,1) - static readonly CONTENT: IlluminatedType = new IlluminatedType(2,2) - static readonly BORDER_CONTENT: IlluminatedType = new IlluminatedType(3,3) - static readonly BLOOM_BORDER: IlluminatedType = new IlluminatedType(4,4) - static readonly BLOOM_BORDER_CONTENT: IlluminatedType = new IlluminatedType(5,5) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): IlluminatedType { - if ((arg0) == (IlluminatedType.NONE.value)) - return IlluminatedType.NONE - if ((arg0) == (IlluminatedType.BORDER.value)) - return IlluminatedType.BORDER - if ((arg0) == (IlluminatedType.CONTENT.value)) - return IlluminatedType.CONTENT - if ((arg0) == (IlluminatedType.BORDER_CONTENT.value)) - return IlluminatedType.BORDER_CONTENT - if ((arg0) == (IlluminatedType.BLOOM_BORDER.value)) - return IlluminatedType.BLOOM_BORDER - if ((arg0) == (IlluminatedType.BLOOM_BORDER_CONTENT.value)) - return IlluminatedType.BLOOM_BORDER_CONTENT - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): IlluminatedType { - if ((arg0) == (IlluminatedType.NONE.ordinal)) - return IlluminatedType.NONE - if ((arg0) == (IlluminatedType.BORDER.ordinal)) - return IlluminatedType.BORDER - if ((arg0) == (IlluminatedType.CONTENT.ordinal)) - return IlluminatedType.CONTENT - if ((arg0) == (IlluminatedType.BORDER_CONTENT.ordinal)) - return IlluminatedType.BORDER_CONTENT - if ((arg0) == (IlluminatedType.BLOOM_BORDER.ordinal)) - return IlluminatedType.BLOOM_BORDER - if ((arg0) == (IlluminatedType.BLOOM_BORDER_CONTENT.ordinal)) - return IlluminatedType.BLOOM_BORDER_CONTENT - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class FoldStatus { - static readonly FOLD_STATUS_UNKNOWN: FoldStatus = new FoldStatus(0,0) - static readonly FOLD_STATUS_EXPANDED: FoldStatus = new FoldStatus(1,1) - static readonly FOLD_STATUS_FOLDED: FoldStatus = new FoldStatus(2,2) - static readonly FOLD_STATUS_HALF_FOLDED: FoldStatus = new FoldStatus(3,3) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): FoldStatus { - if ((arg0) == (FoldStatus.FOLD_STATUS_UNKNOWN.value)) - return FoldStatus.FOLD_STATUS_UNKNOWN - if ((arg0) == (FoldStatus.FOLD_STATUS_EXPANDED.value)) - return FoldStatus.FOLD_STATUS_EXPANDED - if ((arg0) == (FoldStatus.FOLD_STATUS_FOLDED.value)) - return FoldStatus.FOLD_STATUS_FOLDED - if ((arg0) == (FoldStatus.FOLD_STATUS_HALF_FOLDED.value)) - return FoldStatus.FOLD_STATUS_HALF_FOLDED - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): FoldStatus { - if ((arg0) == (FoldStatus.FOLD_STATUS_UNKNOWN.ordinal)) - return FoldStatus.FOLD_STATUS_UNKNOWN - if ((arg0) == (FoldStatus.FOLD_STATUS_EXPANDED.ordinal)) - return FoldStatus.FOLD_STATUS_EXPANDED - if ((arg0) == (FoldStatus.FOLD_STATUS_FOLDED.ordinal)) - return FoldStatus.FOLD_STATUS_FOLDED - if ((arg0) == (FoldStatus.FOLD_STATUS_HALF_FOLDED.ordinal)) - return FoldStatus.FOLD_STATUS_HALF_FOLDED - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class AppRotation { - static readonly ROTATION_0: AppRotation = new AppRotation(0,0) - static readonly ROTATION_90: AppRotation = new AppRotation(1,1) - static readonly ROTATION_180: AppRotation = new AppRotation(2,2) - static readonly ROTATION_270: AppRotation = new AppRotation(3,3) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): AppRotation { - if ((arg0) == (AppRotation.ROTATION_0.value)) - return AppRotation.ROTATION_0 - if ((arg0) == (AppRotation.ROTATION_90.value)) - return AppRotation.ROTATION_90 - if ((arg0) == (AppRotation.ROTATION_180.value)) - return AppRotation.ROTATION_180 - if ((arg0) == (AppRotation.ROTATION_270.value)) - return AppRotation.ROTATION_270 - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): AppRotation { - if ((arg0) == (AppRotation.ROTATION_0.ordinal)) - return AppRotation.ROTATION_0 - if ((arg0) == (AppRotation.ROTATION_90.ordinal)) - return AppRotation.ROTATION_90 - if ((arg0) == (AppRotation.ROTATION_180.ordinal)) - return AppRotation.ROTATION_180 - if ((arg0) == (AppRotation.ROTATION_270.ordinal)) - return AppRotation.ROTATION_270 - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class EmbeddedType { - static readonly EMBEDDED_UI_EXTENSION: EmbeddedType = new EmbeddedType(0,0) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): EmbeddedType { - if ((arg0) == (EmbeddedType.EMBEDDED_UI_EXTENSION.value)) - return EmbeddedType.EMBEDDED_UI_EXTENSION - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): EmbeddedType { - if ((arg0) == (EmbeddedType.EMBEDDED_UI_EXTENSION.ordinal)) - return EmbeddedType.EMBEDDED_UI_EXTENSION - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class MarqueeUpdateStrategy { - static readonly DEFAULT: MarqueeUpdateStrategy = new MarqueeUpdateStrategy(0,0) - static readonly PRESERVE_POSITION: MarqueeUpdateStrategy = new MarqueeUpdateStrategy(1,1) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): MarqueeUpdateStrategy { - if ((arg0) == (MarqueeUpdateStrategy.DEFAULT.value)) - return MarqueeUpdateStrategy.DEFAULT - if ((arg0) == (MarqueeUpdateStrategy.PRESERVE_POSITION.value)) - return MarqueeUpdateStrategy.PRESERVE_POSITION - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): MarqueeUpdateStrategy { - if ((arg0) == (MarqueeUpdateStrategy.DEFAULT.ordinal)) - return MarqueeUpdateStrategy.DEFAULT - if ((arg0) == (MarqueeUpdateStrategy.PRESERVE_POSITION.ordinal)) - return MarqueeUpdateStrategy.PRESERVE_POSITION - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class TextDecorationStyle { - static readonly SOLID: TextDecorationStyle = new TextDecorationStyle(0,0) - static readonly DOUBLE: TextDecorationStyle = new TextDecorationStyle(1,1) - static readonly DOTTED: TextDecorationStyle = new TextDecorationStyle(2,2) - static readonly DASHED: TextDecorationStyle = new TextDecorationStyle(3,3) - static readonly WAVY: TextDecorationStyle = new TextDecorationStyle(4,4) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): TextDecorationStyle { - if ((arg0) == (TextDecorationStyle.SOLID.value)) - return TextDecorationStyle.SOLID - if ((arg0) == (TextDecorationStyle.DOUBLE.value)) - return TextDecorationStyle.DOUBLE - if ((arg0) == (TextDecorationStyle.DOTTED.value)) - return TextDecorationStyle.DOTTED - if ((arg0) == (TextDecorationStyle.DASHED.value)) - return TextDecorationStyle.DASHED - if ((arg0) == (TextDecorationStyle.WAVY.value)) - return TextDecorationStyle.WAVY - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): TextDecorationStyle { - if ((arg0) == (TextDecorationStyle.SOLID.ordinal)) - return TextDecorationStyle.SOLID - if ((arg0) == (TextDecorationStyle.DOUBLE.ordinal)) - return TextDecorationStyle.DOUBLE - if ((arg0) == (TextDecorationStyle.DOTTED.ordinal)) - return TextDecorationStyle.DOTTED - if ((arg0) == (TextDecorationStyle.DASHED.ordinal)) - return TextDecorationStyle.DASHED - if ((arg0) == (TextDecorationStyle.WAVY.ordinal)) - return TextDecorationStyle.WAVY - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class TextSelectableMode { - static readonly SELECTABLE_UNFOCUSABLE: TextSelectableMode = new TextSelectableMode(0,0) - static readonly SELECTABLE_FOCUSABLE: TextSelectableMode = new TextSelectableMode(1,1) - static readonly UNSELECTABLE: TextSelectableMode = new TextSelectableMode(2,2) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): TextSelectableMode { - if ((arg0) == (TextSelectableMode.SELECTABLE_UNFOCUSABLE.value)) - return TextSelectableMode.SELECTABLE_UNFOCUSABLE - if ((arg0) == (TextSelectableMode.SELECTABLE_FOCUSABLE.value)) - return TextSelectableMode.SELECTABLE_FOCUSABLE - if ((arg0) == (TextSelectableMode.UNSELECTABLE.value)) - return TextSelectableMode.UNSELECTABLE - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): TextSelectableMode { - if ((arg0) == (TextSelectableMode.SELECTABLE_UNFOCUSABLE.ordinal)) - return TextSelectableMode.SELECTABLE_UNFOCUSABLE - if ((arg0) == (TextSelectableMode.SELECTABLE_FOCUSABLE.ordinal)) - return TextSelectableMode.SELECTABLE_FOCUSABLE - if ((arg0) == (TextSelectableMode.UNSELECTABLE.ordinal)) - return TextSelectableMode.UNSELECTABLE - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class AccessibilityHoverType { - static readonly HOVER_ENTER: AccessibilityHoverType = new AccessibilityHoverType(0,0) - static readonly HOVER_MOVE: AccessibilityHoverType = new AccessibilityHoverType(1,1) - static readonly HOVER_EXIT: AccessibilityHoverType = new AccessibilityHoverType(2,2) - static readonly HOVER_CANCEL: AccessibilityHoverType = new AccessibilityHoverType(3,3) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): AccessibilityHoverType { - if ((arg0) == (AccessibilityHoverType.HOVER_ENTER.value)) - return AccessibilityHoverType.HOVER_ENTER - if ((arg0) == (AccessibilityHoverType.HOVER_MOVE.value)) - return AccessibilityHoverType.HOVER_MOVE - if ((arg0) == (AccessibilityHoverType.HOVER_EXIT.value)) - return AccessibilityHoverType.HOVER_EXIT - if ((arg0) == (AccessibilityHoverType.HOVER_CANCEL.value)) - return AccessibilityHoverType.HOVER_CANCEL - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): AccessibilityHoverType { - if ((arg0) == (AccessibilityHoverType.HOVER_ENTER.ordinal)) - return AccessibilityHoverType.HOVER_ENTER - if ((arg0) == (AccessibilityHoverType.HOVER_MOVE.ordinal)) - return AccessibilityHoverType.HOVER_MOVE - if ((arg0) == (AccessibilityHoverType.HOVER_EXIT.ordinal)) - return AccessibilityHoverType.HOVER_EXIT - if ((arg0) == (AccessibilityHoverType.HOVER_CANCEL.ordinal)) - return AccessibilityHoverType.HOVER_CANCEL - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class WidthBreakpoint { - static readonly WIDTH_XS: WidthBreakpoint = new WidthBreakpoint(0,0) - static readonly WIDTH_SM: WidthBreakpoint = new WidthBreakpoint(1,1) - static readonly WIDTH_MD: WidthBreakpoint = new WidthBreakpoint(2,2) - static readonly WIDTH_LG: WidthBreakpoint = new WidthBreakpoint(3,3) - static readonly WIDTH_XL: WidthBreakpoint = new WidthBreakpoint(4,4) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): WidthBreakpoint { - if ((arg0) == (WidthBreakpoint.WIDTH_XS.value)) - return WidthBreakpoint.WIDTH_XS - if ((arg0) == (WidthBreakpoint.WIDTH_SM.value)) - return WidthBreakpoint.WIDTH_SM - if ((arg0) == (WidthBreakpoint.WIDTH_MD.value)) - return WidthBreakpoint.WIDTH_MD - if ((arg0) == (WidthBreakpoint.WIDTH_LG.value)) - return WidthBreakpoint.WIDTH_LG - if ((arg0) == (WidthBreakpoint.WIDTH_XL.value)) - return WidthBreakpoint.WIDTH_XL - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): WidthBreakpoint { - if ((arg0) == (WidthBreakpoint.WIDTH_XS.ordinal)) - return WidthBreakpoint.WIDTH_XS - if ((arg0) == (WidthBreakpoint.WIDTH_SM.ordinal)) - return WidthBreakpoint.WIDTH_SM - if ((arg0) == (WidthBreakpoint.WIDTH_MD.ordinal)) - return WidthBreakpoint.WIDTH_MD - if ((arg0) == (WidthBreakpoint.WIDTH_LG.ordinal)) - return WidthBreakpoint.WIDTH_LG - if ((arg0) == (WidthBreakpoint.WIDTH_XL.ordinal)) - return WidthBreakpoint.WIDTH_XL - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class HeightBreakpoint { - static readonly HEIGHT_SM: HeightBreakpoint = new HeightBreakpoint(0,0) - static readonly HEIGHT_MD: HeightBreakpoint = new HeightBreakpoint(1,1) - static readonly HEIGHT_LG: HeightBreakpoint = new HeightBreakpoint(2,2) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): HeightBreakpoint { - if ((arg0) == (HeightBreakpoint.HEIGHT_SM.value)) - return HeightBreakpoint.HEIGHT_SM - if ((arg0) == (HeightBreakpoint.HEIGHT_MD.value)) - return HeightBreakpoint.HEIGHT_MD - if ((arg0) == (HeightBreakpoint.HEIGHT_LG.value)) - return HeightBreakpoint.HEIGHT_LG - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): HeightBreakpoint { - if ((arg0) == (HeightBreakpoint.HEIGHT_SM.ordinal)) - return HeightBreakpoint.HEIGHT_SM - if ((arg0) == (HeightBreakpoint.HEIGHT_MD.ordinal)) - return HeightBreakpoint.HEIGHT_MD - if ((arg0) == (HeightBreakpoint.HEIGHT_LG.ordinal)) - return HeightBreakpoint.HEIGHT_LG - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class FocusPriority { - static readonly AUTO: FocusPriority = new FocusPriority(0,0) - static readonly PRIOR: FocusPriority = new FocusPriority(2000,1) - static readonly PREVIOUS: FocusPriority = new FocusPriority(3000,2) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): FocusPriority { - if ((arg0) == (FocusPriority.AUTO.value)) - return FocusPriority.AUTO - if ((arg0) == (FocusPriority.PRIOR.value)) - return FocusPriority.PRIOR - if ((arg0) == (FocusPriority.PREVIOUS.value)) - return FocusPriority.PREVIOUS - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): FocusPriority { - if ((arg0) == (FocusPriority.AUTO.ordinal)) - return FocusPriority.AUTO - if ((arg0) == (FocusPriority.PRIOR.ordinal)) - return FocusPriority.PRIOR - if ((arg0) == (FocusPriority.PREVIOUS.ordinal)) - return FocusPriority.PREVIOUS - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class FormDimension { - static readonly DIMENSION_1_2: FormDimension = new FormDimension(0,0) - static readonly Dimension_1_2: FormDimension = FormDimension.DIMENSION_1_2 - static readonly DIMENSION_2_2: FormDimension = new FormDimension(1,1) - static readonly Dimension_2_2: FormDimension = FormDimension.DIMENSION_2_2 - static readonly DIMENSION_2_4: FormDimension = new FormDimension(2,2) - static readonly Dimension_2_4: FormDimension = FormDimension.DIMENSION_2_4 - static readonly DIMENSION_4_4: FormDimension = new FormDimension(3,3) - static readonly Dimension_4_4: FormDimension = FormDimension.DIMENSION_4_4 - static readonly DIMENSION_2_1: FormDimension = new FormDimension(4,4) - static readonly Dimension_2_1: FormDimension = FormDimension.DIMENSION_2_1 - static readonly DIMENSION_1_1: FormDimension = new FormDimension(6,5) - static readonly DIMENSION_6_4: FormDimension = new FormDimension(7,6) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): FormDimension { - if ((arg0) == (FormDimension.DIMENSION_1_2.value)) - return FormDimension.DIMENSION_1_2 - if ((arg0) == (FormDimension.DIMENSION_2_2.value)) - return FormDimension.DIMENSION_2_2 - if ((arg0) == (FormDimension.DIMENSION_2_4.value)) - return FormDimension.DIMENSION_2_4 - if ((arg0) == (FormDimension.DIMENSION_4_4.value)) - return FormDimension.DIMENSION_4_4 - if ((arg0) == (FormDimension.DIMENSION_2_1.value)) - return FormDimension.DIMENSION_2_1 - if ((arg0) == (FormDimension.DIMENSION_1_1.value)) - return FormDimension.DIMENSION_1_1 - if ((arg0) == (FormDimension.DIMENSION_6_4.value)) - return FormDimension.DIMENSION_6_4 - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): FormDimension { - if ((arg0) == (FormDimension.DIMENSION_1_2.ordinal)) - return FormDimension.DIMENSION_1_2 - if ((arg0) == (FormDimension.DIMENSION_2_2.ordinal)) - return FormDimension.DIMENSION_2_2 - if ((arg0) == (FormDimension.DIMENSION_2_4.ordinal)) - return FormDimension.DIMENSION_2_4 - if ((arg0) == (FormDimension.DIMENSION_4_4.ordinal)) - return FormDimension.DIMENSION_4_4 - if ((arg0) == (FormDimension.DIMENSION_2_1.ordinal)) - return FormDimension.DIMENSION_2_1 - if ((arg0) == (FormDimension.DIMENSION_1_1.ordinal)) - return FormDimension.DIMENSION_1_1 - if ((arg0) == (FormDimension.DIMENSION_6_4.ordinal)) - return FormDimension.DIMENSION_6_4 - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class FormRenderingMode { - static readonly FULL_COLOR: FormRenderingMode = new FormRenderingMode(0,0) - static readonly SINGLE_COLOR: FormRenderingMode = new FormRenderingMode(1,1) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): FormRenderingMode { - if ((arg0) == (FormRenderingMode.FULL_COLOR.value)) - return FormRenderingMode.FULL_COLOR - if ((arg0) == (FormRenderingMode.SINGLE_COLOR.value)) - return FormRenderingMode.SINGLE_COLOR - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): FormRenderingMode { - if ((arg0) == (FormRenderingMode.FULL_COLOR.ordinal)) - return FormRenderingMode.FULL_COLOR - if ((arg0) == (FormRenderingMode.SINGLE_COLOR.ordinal)) - return FormRenderingMode.SINGLE_COLOR - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class FormShape { - static readonly RECT: FormShape = new FormShape(1,0) - static readonly CIRCLE: FormShape = new FormShape(2,1) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): FormShape { - if ((arg0) == (FormShape.RECT.value)) - return FormShape.RECT - if ((arg0) == (FormShape.CIRCLE.value)) - return FormShape.CIRCLE - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): FormShape { - if ((arg0) == (FormShape.RECT.ordinal)) - return FormShape.RECT - if ((arg0) == (FormShape.CIRCLE.ordinal)) - return FormShape.CIRCLE - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class PanDirection { - static readonly NONE: PanDirection = new PanDirection(0,0) - static readonly None: PanDirection = PanDirection.NONE - static readonly HORIZONTAL: PanDirection = new PanDirection(1,1) - static readonly Horizontal: PanDirection = PanDirection.HORIZONTAL - static readonly LEFT: PanDirection = new PanDirection(2,2) - static readonly Left: PanDirection = PanDirection.LEFT - static readonly RIGHT: PanDirection = new PanDirection(3,3) - static readonly Right: PanDirection = PanDirection.RIGHT - static readonly VERTICAL: PanDirection = new PanDirection(4,4) - static readonly Vertical: PanDirection = PanDirection.VERTICAL - static readonly UP: PanDirection = new PanDirection(5,5) - static readonly Up: PanDirection = PanDirection.UP - static readonly DOWN: PanDirection = new PanDirection(6,6) - static readonly Down: PanDirection = PanDirection.DOWN - static readonly ALL: PanDirection = new PanDirection(7,7) - static readonly All: PanDirection = PanDirection.ALL - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): PanDirection { - if ((arg0) == (PanDirection.NONE.value)) - return PanDirection.NONE - if ((arg0) == (PanDirection.HORIZONTAL.value)) - return PanDirection.HORIZONTAL - if ((arg0) == (PanDirection.LEFT.value)) - return PanDirection.LEFT - if ((arg0) == (PanDirection.RIGHT.value)) - return PanDirection.RIGHT - if ((arg0) == (PanDirection.VERTICAL.value)) - return PanDirection.VERTICAL - if ((arg0) == (PanDirection.UP.value)) - return PanDirection.UP - if ((arg0) == (PanDirection.DOWN.value)) - return PanDirection.DOWN - if ((arg0) == (PanDirection.ALL.value)) - return PanDirection.ALL - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): PanDirection { - if ((arg0) == (PanDirection.NONE.ordinal)) - return PanDirection.NONE - if ((arg0) == (PanDirection.HORIZONTAL.ordinal)) - return PanDirection.HORIZONTAL - if ((arg0) == (PanDirection.LEFT.ordinal)) - return PanDirection.LEFT - if ((arg0) == (PanDirection.RIGHT.ordinal)) - return PanDirection.RIGHT - if ((arg0) == (PanDirection.VERTICAL.ordinal)) - return PanDirection.VERTICAL - if ((arg0) == (PanDirection.UP.ordinal)) - return PanDirection.UP - if ((arg0) == (PanDirection.DOWN.ordinal)) - return PanDirection.DOWN - if ((arg0) == (PanDirection.ALL.ordinal)) - return PanDirection.ALL - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class SwipeDirection { - static readonly NONE: SwipeDirection = new SwipeDirection(0,0) - static readonly None: SwipeDirection = SwipeDirection.NONE - static readonly HORIZONTAL: SwipeDirection = new SwipeDirection(1,1) - static readonly Horizontal: SwipeDirection = SwipeDirection.HORIZONTAL - static readonly VERTICAL: SwipeDirection = new SwipeDirection(2,2) - static readonly Vertical: SwipeDirection = SwipeDirection.VERTICAL - static readonly ALL: SwipeDirection = new SwipeDirection(3,3) - static readonly All: SwipeDirection = SwipeDirection.ALL - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): SwipeDirection { - if ((arg0) == (SwipeDirection.NONE.value)) - return SwipeDirection.NONE - if ((arg0) == (SwipeDirection.HORIZONTAL.value)) - return SwipeDirection.HORIZONTAL - if ((arg0) == (SwipeDirection.VERTICAL.value)) - return SwipeDirection.VERTICAL - if ((arg0) == (SwipeDirection.ALL.value)) - return SwipeDirection.ALL - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): SwipeDirection { - if ((arg0) == (SwipeDirection.NONE.ordinal)) - return SwipeDirection.NONE - if ((arg0) == (SwipeDirection.HORIZONTAL.ordinal)) - return SwipeDirection.HORIZONTAL - if ((arg0) == (SwipeDirection.VERTICAL.ordinal)) - return SwipeDirection.VERTICAL - if ((arg0) == (SwipeDirection.ALL.ordinal)) - return SwipeDirection.ALL - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class GestureMode { - static readonly SEQUENCE: GestureMode = new GestureMode(0,0) - static readonly Sequence: GestureMode = GestureMode.SEQUENCE - static readonly PARALLEL: GestureMode = new GestureMode(1,1) - static readonly Parallel: GestureMode = GestureMode.PARALLEL - static readonly EXCLUSIVE: GestureMode = new GestureMode(2,2) - static readonly Exclusive: GestureMode = GestureMode.EXCLUSIVE - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): GestureMode { - if ((arg0) == (GestureMode.SEQUENCE.value)) - return GestureMode.SEQUENCE - if ((arg0) == (GestureMode.PARALLEL.value)) - return GestureMode.PARALLEL - if ((arg0) == (GestureMode.EXCLUSIVE.value)) - return GestureMode.EXCLUSIVE - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): GestureMode { - if ((arg0) == (GestureMode.SEQUENCE.ordinal)) - return GestureMode.SEQUENCE - if ((arg0) == (GestureMode.PARALLEL.ordinal)) - return GestureMode.PARALLEL - if ((arg0) == (GestureMode.EXCLUSIVE.ordinal)) - return GestureMode.EXCLUSIVE - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class GestureMask { - static readonly NORMAL: GestureMask = new GestureMask(0,0) - static readonly Normal: GestureMask = GestureMask.NORMAL - static readonly IGNORE_INTERNAL: GestureMask = new GestureMask(1,1) - static readonly IgnoreInternal: GestureMask = GestureMask.IGNORE_INTERNAL - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): GestureMask { - if ((arg0) == (GestureMask.NORMAL.value)) - return GestureMask.NORMAL - if ((arg0) == (GestureMask.IGNORE_INTERNAL.value)) - return GestureMask.IGNORE_INTERNAL - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): GestureMask { - if ((arg0) == (GestureMask.NORMAL.ordinal)) - return GestureMask.NORMAL - if ((arg0) == (GestureMask.IGNORE_INTERNAL.ordinal)) - return GestureMask.IGNORE_INTERNAL - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class GestureJudgeResult { - static readonly CONTINUE: GestureJudgeResult = new GestureJudgeResult(0,0) - static readonly REJECT: GestureJudgeResult = new GestureJudgeResult(1,1) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): GestureJudgeResult { - if ((arg0) == (GestureJudgeResult.CONTINUE.value)) - return GestureJudgeResult.CONTINUE - if ((arg0) == (GestureJudgeResult.REJECT.value)) - return GestureJudgeResult.REJECT - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): GestureJudgeResult { - if ((arg0) == (GestureJudgeResult.CONTINUE.ordinal)) - return GestureJudgeResult.CONTINUE - if ((arg0) == (GestureJudgeResult.REJECT.ordinal)) - return GestureJudgeResult.REJECT - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class GestureControl_GestureType { - static readonly TAP_GESTURE: GestureControl_GestureType = new GestureControl_GestureType(0,0) - static readonly LONG_PRESS_GESTURE: GestureControl_GestureType = new GestureControl_GestureType(1,1) - static readonly PAN_GESTURE: GestureControl_GestureType = new GestureControl_GestureType(2,2) - static readonly PINCH_GESTURE: GestureControl_GestureType = new GestureControl_GestureType(3,3) - static readonly SWIPE_GESTURE: GestureControl_GestureType = new GestureControl_GestureType(4,4) - static readonly ROTATION_GESTURE: GestureControl_GestureType = new GestureControl_GestureType(5,5) - static readonly DRAG: GestureControl_GestureType = new GestureControl_GestureType(6,6) - static readonly CLICK: GestureControl_GestureType = new GestureControl_GestureType(7,7) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): GestureControl_GestureType { - if ((arg0) == (GestureControl_GestureType.TAP_GESTURE.value)) - return GestureControl_GestureType.TAP_GESTURE - if ((arg0) == (GestureControl_GestureType.LONG_PRESS_GESTURE.value)) - return GestureControl_GestureType.LONG_PRESS_GESTURE - if ((arg0) == (GestureControl_GestureType.PAN_GESTURE.value)) - return GestureControl_GestureType.PAN_GESTURE - if ((arg0) == (GestureControl_GestureType.PINCH_GESTURE.value)) - return GestureControl_GestureType.PINCH_GESTURE - if ((arg0) == (GestureControl_GestureType.SWIPE_GESTURE.value)) - return GestureControl_GestureType.SWIPE_GESTURE - if ((arg0) == (GestureControl_GestureType.ROTATION_GESTURE.value)) - return GestureControl_GestureType.ROTATION_GESTURE - if ((arg0) == (GestureControl_GestureType.DRAG.value)) - return GestureControl_GestureType.DRAG - if ((arg0) == (GestureControl_GestureType.CLICK.value)) - return GestureControl_GestureType.CLICK - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): GestureControl_GestureType { - if ((arg0) == (GestureControl_GestureType.TAP_GESTURE.ordinal)) - return GestureControl_GestureType.TAP_GESTURE - if ((arg0) == (GestureControl_GestureType.LONG_PRESS_GESTURE.ordinal)) - return GestureControl_GestureType.LONG_PRESS_GESTURE - if ((arg0) == (GestureControl_GestureType.PAN_GESTURE.ordinal)) - return GestureControl_GestureType.PAN_GESTURE - if ((arg0) == (GestureControl_GestureType.PINCH_GESTURE.ordinal)) - return GestureControl_GestureType.PINCH_GESTURE - if ((arg0) == (GestureControl_GestureType.SWIPE_GESTURE.ordinal)) - return GestureControl_GestureType.SWIPE_GESTURE - if ((arg0) == (GestureControl_GestureType.ROTATION_GESTURE.ordinal)) - return GestureControl_GestureType.ROTATION_GESTURE - if ((arg0) == (GestureControl_GestureType.DRAG.ordinal)) - return GestureControl_GestureType.DRAG - if ((arg0) == (GestureControl_GestureType.CLICK.ordinal)) - return GestureControl_GestureType.CLICK - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class GesturePriority { - static readonly NORMAL: GesturePriority = new GesturePriority(0,0) - static readonly PRIORITY: GesturePriority = new GesturePriority(1,1) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): GesturePriority { - if ((arg0) == (GesturePriority.NORMAL.value)) - return GesturePriority.NORMAL - if ((arg0) == (GesturePriority.PRIORITY.value)) - return GesturePriority.PRIORITY - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): GesturePriority { - if ((arg0) == (GesturePriority.NORMAL.ordinal)) - return GesturePriority.NORMAL - if ((arg0) == (GesturePriority.PRIORITY.ordinal)) - return GesturePriority.PRIORITY - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class GestureRecognizerState { - static readonly READY: GestureRecognizerState = new GestureRecognizerState(0,0) - static readonly DETECTING: GestureRecognizerState = new GestureRecognizerState(1,1) - static readonly PENDING: GestureRecognizerState = new GestureRecognizerState(2,2) - static readonly BLOCKED: GestureRecognizerState = new GestureRecognizerState(3,3) - static readonly SUCCESSFUL: GestureRecognizerState = new GestureRecognizerState(4,4) - static readonly FAILED: GestureRecognizerState = new GestureRecognizerState(5,5) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): GestureRecognizerState { - if ((arg0) == (GestureRecognizerState.READY.value)) - return GestureRecognizerState.READY - if ((arg0) == (GestureRecognizerState.DETECTING.value)) - return GestureRecognizerState.DETECTING - if ((arg0) == (GestureRecognizerState.PENDING.value)) - return GestureRecognizerState.PENDING - if ((arg0) == (GestureRecognizerState.BLOCKED.value)) - return GestureRecognizerState.BLOCKED - if ((arg0) == (GestureRecognizerState.SUCCESSFUL.value)) - return GestureRecognizerState.SUCCESSFUL - if ((arg0) == (GestureRecognizerState.FAILED.value)) - return GestureRecognizerState.FAILED - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): GestureRecognizerState { - if ((arg0) == (GestureRecognizerState.READY.ordinal)) - return GestureRecognizerState.READY - if ((arg0) == (GestureRecognizerState.DETECTING.ordinal)) - return GestureRecognizerState.DETECTING - if ((arg0) == (GestureRecognizerState.PENDING.ordinal)) - return GestureRecognizerState.PENDING - if ((arg0) == (GestureRecognizerState.BLOCKED.ordinal)) - return GestureRecognizerState.BLOCKED - if ((arg0) == (GestureRecognizerState.SUCCESSFUL.ordinal)) - return GestureRecognizerState.SUCCESSFUL - if ((arg0) == (GestureRecognizerState.FAILED.ordinal)) - return GestureRecognizerState.FAILED - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class GridDirection { - static readonly ROW: GridDirection = new GridDirection(0,0) - static readonly Row: GridDirection = GridDirection.ROW - static readonly COLUMN: GridDirection = new GridDirection(1,1) - static readonly Column: GridDirection = GridDirection.COLUMN - static readonly ROW_REVERSE: GridDirection = new GridDirection(2,2) - static readonly RowReverse: GridDirection = GridDirection.ROW_REVERSE - static readonly COLUMN_REVERSE: GridDirection = new GridDirection(3,3) - static readonly ColumnReverse: GridDirection = GridDirection.COLUMN_REVERSE - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): GridDirection { - if ((arg0) == (GridDirection.ROW.value)) - return GridDirection.ROW - if ((arg0) == (GridDirection.COLUMN.value)) - return GridDirection.COLUMN - if ((arg0) == (GridDirection.ROW_REVERSE.value)) - return GridDirection.ROW_REVERSE - if ((arg0) == (GridDirection.COLUMN_REVERSE.value)) - return GridDirection.COLUMN_REVERSE - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): GridDirection { - if ((arg0) == (GridDirection.ROW.ordinal)) - return GridDirection.ROW - if ((arg0) == (GridDirection.COLUMN.ordinal)) - return GridDirection.COLUMN - if ((arg0) == (GridDirection.ROW_REVERSE.ordinal)) - return GridDirection.ROW_REVERSE - if ((arg0) == (GridDirection.COLUMN_REVERSE.ordinal)) - return GridDirection.COLUMN_REVERSE - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class GridItemAlignment { - static readonly DEFAULT: GridItemAlignment = new GridItemAlignment(0,0) - static readonly STRETCH: GridItemAlignment = new GridItemAlignment(1,1) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): GridItemAlignment { - if ((arg0) == (GridItemAlignment.DEFAULT.value)) - return GridItemAlignment.DEFAULT - if ((arg0) == (GridItemAlignment.STRETCH.value)) - return GridItemAlignment.STRETCH - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): GridItemAlignment { - if ((arg0) == (GridItemAlignment.DEFAULT.ordinal)) - return GridItemAlignment.DEFAULT - if ((arg0) == (GridItemAlignment.STRETCH.ordinal)) - return GridItemAlignment.STRETCH - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class GridItemStyle { - static readonly NONE: GridItemStyle = new GridItemStyle(0,0) - static readonly PLAIN: GridItemStyle = new GridItemStyle(1,1) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): GridItemStyle { - if ((arg0) == (GridItemStyle.NONE.value)) - return GridItemStyle.NONE - if ((arg0) == (GridItemStyle.PLAIN.value)) - return GridItemStyle.PLAIN - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): GridItemStyle { - if ((arg0) == (GridItemStyle.NONE.ordinal)) - return GridItemStyle.NONE - if ((arg0) == (GridItemStyle.PLAIN.ordinal)) - return GridItemStyle.PLAIN - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class SizeType { - static readonly AUTO: SizeType = new SizeType(0,0) - static readonly Auto: SizeType = SizeType.AUTO - static readonly XS: SizeType = new SizeType(1,1) - static readonly SM: SizeType = new SizeType(2,2) - static readonly MD: SizeType = new SizeType(3,3) - static readonly LG: SizeType = new SizeType(4,4) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): SizeType { - if ((arg0) == (SizeType.AUTO.value)) - return SizeType.AUTO - if ((arg0) == (SizeType.XS.value)) - return SizeType.XS - if ((arg0) == (SizeType.SM.value)) - return SizeType.SM - if ((arg0) == (SizeType.MD.value)) - return SizeType.MD - if ((arg0) == (SizeType.LG.value)) - return SizeType.LG - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): SizeType { - if ((arg0) == (SizeType.AUTO.ordinal)) - return SizeType.AUTO - if ((arg0) == (SizeType.XS.ordinal)) - return SizeType.XS - if ((arg0) == (SizeType.SM.ordinal)) - return SizeType.SM - if ((arg0) == (SizeType.MD.ordinal)) - return SizeType.MD - if ((arg0) == (SizeType.LG.ordinal)) - return SizeType.LG - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class BreakpointsReference { - static readonly WINDOW_SIZE: BreakpointsReference = new BreakpointsReference(0,0) - static readonly WindowSize: BreakpointsReference = BreakpointsReference.WINDOW_SIZE - static readonly COMPONENT_SIZE: BreakpointsReference = new BreakpointsReference(1,1) - static readonly ComponentSize: BreakpointsReference = BreakpointsReference.COMPONENT_SIZE - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): BreakpointsReference { - if ((arg0) == (BreakpointsReference.WINDOW_SIZE.value)) - return BreakpointsReference.WINDOW_SIZE - if ((arg0) == (BreakpointsReference.COMPONENT_SIZE.value)) - return BreakpointsReference.COMPONENT_SIZE - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): BreakpointsReference { - if ((arg0) == (BreakpointsReference.WINDOW_SIZE.ordinal)) - return BreakpointsReference.WINDOW_SIZE - if ((arg0) == (BreakpointsReference.COMPONENT_SIZE.ordinal)) - return BreakpointsReference.COMPONENT_SIZE - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class GridRowDirection { - static readonly ROW: GridRowDirection = new GridRowDirection(0,0) - static readonly Row: GridRowDirection = GridRowDirection.ROW - static readonly ROW_REVERSE: GridRowDirection = new GridRowDirection(1,1) - static readonly RowReverse: GridRowDirection = GridRowDirection.ROW_REVERSE - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): GridRowDirection { - if ((arg0) == (GridRowDirection.ROW.value)) - return GridRowDirection.ROW - if ((arg0) == (GridRowDirection.ROW_REVERSE.value)) - return GridRowDirection.ROW_REVERSE - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): GridRowDirection { - if ((arg0) == (GridRowDirection.ROW.ordinal)) - return GridRowDirection.ROW - if ((arg0) == (GridRowDirection.ROW_REVERSE.ordinal)) - return GridRowDirection.ROW_REVERSE - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class ImageRenderMode { - static readonly ORIGINAL: ImageRenderMode = new ImageRenderMode(0,0) - static readonly Original: ImageRenderMode = ImageRenderMode.ORIGINAL - static readonly TEMPLATE: ImageRenderMode = new ImageRenderMode(1,1) - static readonly Template: ImageRenderMode = ImageRenderMode.TEMPLATE - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): ImageRenderMode { - if ((arg0) == (ImageRenderMode.ORIGINAL.value)) - return ImageRenderMode.ORIGINAL - if ((arg0) == (ImageRenderMode.TEMPLATE.value)) - return ImageRenderMode.TEMPLATE - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): ImageRenderMode { - if ((arg0) == (ImageRenderMode.ORIGINAL.ordinal)) - return ImageRenderMode.ORIGINAL - if ((arg0) == (ImageRenderMode.TEMPLATE.ordinal)) - return ImageRenderMode.TEMPLATE - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class ImageContent { - static readonly EMPTY: ImageContent = new ImageContent(0,0) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): ImageContent { - if ((arg0) == (ImageContent.EMPTY.value)) - return ImageContent.EMPTY - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): ImageContent { - if ((arg0) == (ImageContent.EMPTY.ordinal)) - return ImageContent.EMPTY - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class DynamicRangeMode { - static readonly HIGH: DynamicRangeMode = new DynamicRangeMode(0,0) - static readonly CONSTRAINT: DynamicRangeMode = new DynamicRangeMode(1,1) - static readonly STANDARD: DynamicRangeMode = new DynamicRangeMode(2,2) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): DynamicRangeMode { - if ((arg0) == (DynamicRangeMode.HIGH.value)) - return DynamicRangeMode.HIGH - if ((arg0) == (DynamicRangeMode.CONSTRAINT.value)) - return DynamicRangeMode.CONSTRAINT - if ((arg0) == (DynamicRangeMode.STANDARD.value)) - return DynamicRangeMode.STANDARD - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): DynamicRangeMode { - if ((arg0) == (DynamicRangeMode.HIGH.ordinal)) - return DynamicRangeMode.HIGH - if ((arg0) == (DynamicRangeMode.CONSTRAINT.ordinal)) - return DynamicRangeMode.CONSTRAINT - if ((arg0) == (DynamicRangeMode.STANDARD.ordinal)) - return DynamicRangeMode.STANDARD - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class ImageInterpolation { - static readonly NONE: ImageInterpolation = new ImageInterpolation(0,0) - static readonly None: ImageInterpolation = ImageInterpolation.NONE - static readonly LOW: ImageInterpolation = new ImageInterpolation(1,1) - static readonly Low: ImageInterpolation = ImageInterpolation.LOW - static readonly MEDIUM: ImageInterpolation = new ImageInterpolation(2,2) - static readonly Medium: ImageInterpolation = ImageInterpolation.MEDIUM - static readonly HIGH: ImageInterpolation = new ImageInterpolation(3,3) - static readonly High: ImageInterpolation = ImageInterpolation.HIGH - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): ImageInterpolation { - if ((arg0) == (ImageInterpolation.NONE.value)) - return ImageInterpolation.NONE - if ((arg0) == (ImageInterpolation.LOW.value)) - return ImageInterpolation.LOW - if ((arg0) == (ImageInterpolation.MEDIUM.value)) - return ImageInterpolation.MEDIUM - if ((arg0) == (ImageInterpolation.HIGH.value)) - return ImageInterpolation.HIGH - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): ImageInterpolation { - if ((arg0) == (ImageInterpolation.NONE.ordinal)) - return ImageInterpolation.NONE - if ((arg0) == (ImageInterpolation.LOW.ordinal)) - return ImageInterpolation.LOW - if ((arg0) == (ImageInterpolation.MEDIUM.ordinal)) - return ImageInterpolation.MEDIUM - if ((arg0) == (ImageInterpolation.HIGH.ordinal)) - return ImageInterpolation.HIGH - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class ImageAnalyzerType { - static readonly SUBJECT: ImageAnalyzerType = new ImageAnalyzerType(0,0) - static readonly TEXT: ImageAnalyzerType = new ImageAnalyzerType(1,1) - static readonly OBJECT_LOOKUP: ImageAnalyzerType = new ImageAnalyzerType(2,2) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): ImageAnalyzerType { - if ((arg0) == (ImageAnalyzerType.SUBJECT.value)) - return ImageAnalyzerType.SUBJECT - if ((arg0) == (ImageAnalyzerType.TEXT.value)) - return ImageAnalyzerType.TEXT - if ((arg0) == (ImageAnalyzerType.OBJECT_LOOKUP.value)) - return ImageAnalyzerType.OBJECT_LOOKUP - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): ImageAnalyzerType { - if ((arg0) == (ImageAnalyzerType.SUBJECT.ordinal)) - return ImageAnalyzerType.SUBJECT - if ((arg0) == (ImageAnalyzerType.TEXT.ordinal)) - return ImageAnalyzerType.TEXT - if ((arg0) == (ImageAnalyzerType.OBJECT_LOOKUP.ordinal)) - return ImageAnalyzerType.OBJECT_LOOKUP - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class DataOperationType { - static readonly ADD: DataOperationType = new DataOperationType("add",0) - static readonly DELETE: DataOperationType = new DataOperationType("delete",1) - static readonly EXCHANGE: DataOperationType = new DataOperationType("exchange",2) - static readonly MOVE: DataOperationType = new DataOperationType("move",3) - static readonly CHANGE: DataOperationType = new DataOperationType("change",4) - static readonly RELOAD: DataOperationType = new DataOperationType("reload",5) - constructor(value: string, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: string - public readonly ordinal: int32 - public static of(arg0: string): DataOperationType { - if ((arg0) == (DataOperationType.ADD.value)) - return DataOperationType.ADD - if ((arg0) == (DataOperationType.DELETE.value)) - return DataOperationType.DELETE - if ((arg0) == (DataOperationType.EXCHANGE.value)) - return DataOperationType.EXCHANGE - if ((arg0) == (DataOperationType.MOVE.value)) - return DataOperationType.MOVE - if ((arg0) == (DataOperationType.CHANGE.value)) - return DataOperationType.CHANGE - if ((arg0) == (DataOperationType.RELOAD.value)) - return DataOperationType.RELOAD - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): DataOperationType { - if ((arg0) == (DataOperationType.ADD.ordinal)) - return DataOperationType.ADD - if ((arg0) == (DataOperationType.DELETE.ordinal)) - return DataOperationType.DELETE - if ((arg0) == (DataOperationType.EXCHANGE.ordinal)) - return DataOperationType.EXCHANGE - if ((arg0) == (DataOperationType.MOVE.ordinal)) - return DataOperationType.MOVE - if ((arg0) == (DataOperationType.CHANGE.ordinal)) - return DataOperationType.CHANGE - if ((arg0) == (DataOperationType.RELOAD.ordinal)) - return DataOperationType.RELOAD - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class ScrollState { - static readonly IDLE: ScrollState = new ScrollState(0,0) - static readonly Idle: ScrollState = ScrollState.IDLE - static readonly SCROLL: ScrollState = new ScrollState(1,1) - static readonly Scroll: ScrollState = ScrollState.SCROLL - static readonly FLING: ScrollState = new ScrollState(2,2) - static readonly Fling: ScrollState = ScrollState.FLING - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): ScrollState { - if ((arg0) == (ScrollState.IDLE.value)) - return ScrollState.IDLE - if ((arg0) == (ScrollState.SCROLL.value)) - return ScrollState.SCROLL - if ((arg0) == (ScrollState.FLING.value)) - return ScrollState.FLING - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): ScrollState { - if ((arg0) == (ScrollState.IDLE.ordinal)) - return ScrollState.IDLE - if ((arg0) == (ScrollState.SCROLL.ordinal)) - return ScrollState.SCROLL - if ((arg0) == (ScrollState.FLING.ordinal)) - return ScrollState.FLING - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class ListItemAlign { - static readonly START: ListItemAlign = new ListItemAlign(0,0) - static readonly Start: ListItemAlign = ListItemAlign.START - static readonly CENTER: ListItemAlign = new ListItemAlign(1,1) - static readonly Center: ListItemAlign = ListItemAlign.CENTER - static readonly END: ListItemAlign = new ListItemAlign(2,2) - static readonly End: ListItemAlign = ListItemAlign.END - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): ListItemAlign { - if ((arg0) == (ListItemAlign.START.value)) - return ListItemAlign.START - if ((arg0) == (ListItemAlign.CENTER.value)) - return ListItemAlign.CENTER - if ((arg0) == (ListItemAlign.END.value)) - return ListItemAlign.END - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): ListItemAlign { - if ((arg0) == (ListItemAlign.START.ordinal)) - return ListItemAlign.START - if ((arg0) == (ListItemAlign.CENTER.ordinal)) - return ListItemAlign.CENTER - if ((arg0) == (ListItemAlign.END.ordinal)) - return ListItemAlign.END - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class ListItemGroupArea { - static readonly NONE: ListItemGroupArea = new ListItemGroupArea(0,0) - static readonly IN_LIST_ITEM_AREA: ListItemGroupArea = new ListItemGroupArea(1,1) - static readonly IN_HEADER_AREA: ListItemGroupArea = new ListItemGroupArea(2,2) - static readonly IN_FOOTER_AREA: ListItemGroupArea = new ListItemGroupArea(3,3) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): ListItemGroupArea { - if ((arg0) == (ListItemGroupArea.NONE.value)) - return ListItemGroupArea.NONE - if ((arg0) == (ListItemGroupArea.IN_LIST_ITEM_AREA.value)) - return ListItemGroupArea.IN_LIST_ITEM_AREA - if ((arg0) == (ListItemGroupArea.IN_HEADER_AREA.value)) - return ListItemGroupArea.IN_HEADER_AREA - if ((arg0) == (ListItemGroupArea.IN_FOOTER_AREA.value)) - return ListItemGroupArea.IN_FOOTER_AREA - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): ListItemGroupArea { - if ((arg0) == (ListItemGroupArea.NONE.ordinal)) - return ListItemGroupArea.NONE - if ((arg0) == (ListItemGroupArea.IN_LIST_ITEM_AREA.ordinal)) - return ListItemGroupArea.IN_LIST_ITEM_AREA - if ((arg0) == (ListItemGroupArea.IN_HEADER_AREA.ordinal)) - return ListItemGroupArea.IN_HEADER_AREA - if ((arg0) == (ListItemGroupArea.IN_FOOTER_AREA.ordinal)) - return ListItemGroupArea.IN_FOOTER_AREA - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class StickyStyle { - static readonly NONE: StickyStyle = new StickyStyle(0,0) - static readonly None: StickyStyle = StickyStyle.NONE - static readonly HEADER: StickyStyle = new StickyStyle(1,1) - static readonly Header: StickyStyle = StickyStyle.HEADER - static readonly FOOTER: StickyStyle = new StickyStyle(2,2) - static readonly Footer: StickyStyle = StickyStyle.FOOTER - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): StickyStyle { - if ((arg0) == (StickyStyle.NONE.value)) - return StickyStyle.NONE - if ((arg0) == (StickyStyle.HEADER.value)) - return StickyStyle.HEADER - if ((arg0) == (StickyStyle.FOOTER.value)) - return StickyStyle.FOOTER - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): StickyStyle { - if ((arg0) == (StickyStyle.NONE.ordinal)) - return StickyStyle.NONE - if ((arg0) == (StickyStyle.HEADER.ordinal)) - return StickyStyle.HEADER - if ((arg0) == (StickyStyle.FOOTER.ordinal)) - return StickyStyle.FOOTER - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class ChainEdgeEffect { - static readonly DEFAULT: ChainEdgeEffect = new ChainEdgeEffect(0,0) - static readonly STRETCH: ChainEdgeEffect = new ChainEdgeEffect(1,1) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): ChainEdgeEffect { - if ((arg0) == (ChainEdgeEffect.DEFAULT.value)) - return ChainEdgeEffect.DEFAULT - if ((arg0) == (ChainEdgeEffect.STRETCH.value)) - return ChainEdgeEffect.STRETCH - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): ChainEdgeEffect { - if ((arg0) == (ChainEdgeEffect.DEFAULT.ordinal)) - return ChainEdgeEffect.DEFAULT - if ((arg0) == (ChainEdgeEffect.STRETCH.ordinal)) - return ChainEdgeEffect.STRETCH - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class ScrollSnapAlign { - static readonly NONE: ScrollSnapAlign = new ScrollSnapAlign(0,0) - static readonly START: ScrollSnapAlign = new ScrollSnapAlign(1,1) - static readonly CENTER: ScrollSnapAlign = new ScrollSnapAlign(2,2) - static readonly END: ScrollSnapAlign = new ScrollSnapAlign(3,3) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): ScrollSnapAlign { - if ((arg0) == (ScrollSnapAlign.NONE.value)) - return ScrollSnapAlign.NONE - if ((arg0) == (ScrollSnapAlign.START.value)) - return ScrollSnapAlign.START - if ((arg0) == (ScrollSnapAlign.CENTER.value)) - return ScrollSnapAlign.CENTER - if ((arg0) == (ScrollSnapAlign.END.value)) - return ScrollSnapAlign.END - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): ScrollSnapAlign { - if ((arg0) == (ScrollSnapAlign.NONE.ordinal)) - return ScrollSnapAlign.NONE - if ((arg0) == (ScrollSnapAlign.START.ordinal)) - return ScrollSnapAlign.START - if ((arg0) == (ScrollSnapAlign.CENTER.ordinal)) - return ScrollSnapAlign.CENTER - if ((arg0) == (ScrollSnapAlign.END.ordinal)) - return ScrollSnapAlign.END - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class Sticky { - static readonly NONE: Sticky = new Sticky(0,0) - static readonly None: Sticky = Sticky.NONE - static readonly NORMAL: Sticky = new Sticky(1,1) - static readonly Normal: Sticky = Sticky.NORMAL - static readonly OPACITY: Sticky = new Sticky(2,2) - static readonly Opacity: Sticky = Sticky.OPACITY - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): Sticky { - if ((arg0) == (Sticky.NONE.value)) - return Sticky.NONE - if ((arg0) == (Sticky.NORMAL.value)) - return Sticky.NORMAL - if ((arg0) == (Sticky.OPACITY.value)) - return Sticky.OPACITY - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): Sticky { - if ((arg0) == (Sticky.NONE.ordinal)) - return Sticky.NONE - if ((arg0) == (Sticky.NORMAL.ordinal)) - return Sticky.NORMAL - if ((arg0) == (Sticky.OPACITY.ordinal)) - return Sticky.OPACITY - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class EditMode { - static readonly NONE: EditMode = new EditMode(0,0) - static readonly None: EditMode = EditMode.NONE - static readonly DELETABLE: EditMode = new EditMode(1,1) - static readonly Deletable: EditMode = EditMode.DELETABLE - static readonly MOVABLE: EditMode = new EditMode(2,2) - static readonly Movable: EditMode = EditMode.MOVABLE - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): EditMode { - if ((arg0) == (EditMode.NONE.value)) - return EditMode.NONE - if ((arg0) == (EditMode.DELETABLE.value)) - return EditMode.DELETABLE - if ((arg0) == (EditMode.MOVABLE.value)) - return EditMode.MOVABLE - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): EditMode { - if ((arg0) == (EditMode.NONE.ordinal)) - return EditMode.NONE - if ((arg0) == (EditMode.DELETABLE.ordinal)) - return EditMode.DELETABLE - if ((arg0) == (EditMode.MOVABLE.ordinal)) - return EditMode.MOVABLE - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class SwipeEdgeEffect { - static readonly SPRING: SwipeEdgeEffect = new SwipeEdgeEffect(0,0) - static readonly Spring: SwipeEdgeEffect = SwipeEdgeEffect.SPRING - static readonly NONE: SwipeEdgeEffect = new SwipeEdgeEffect(1,1) - static readonly None: SwipeEdgeEffect = SwipeEdgeEffect.NONE - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): SwipeEdgeEffect { - if ((arg0) == (SwipeEdgeEffect.SPRING.value)) - return SwipeEdgeEffect.SPRING - if ((arg0) == (SwipeEdgeEffect.NONE.value)) - return SwipeEdgeEffect.NONE - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): SwipeEdgeEffect { - if ((arg0) == (SwipeEdgeEffect.SPRING.ordinal)) - return SwipeEdgeEffect.SPRING - if ((arg0) == (SwipeEdgeEffect.NONE.ordinal)) - return SwipeEdgeEffect.NONE - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class SwipeActionState { - static readonly COLLAPSED: SwipeActionState = new SwipeActionState(0,0) - static readonly EXPANDED: SwipeActionState = new SwipeActionState(1,1) - static readonly ACTIONING: SwipeActionState = new SwipeActionState(2,2) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): SwipeActionState { - if ((arg0) == (SwipeActionState.COLLAPSED.value)) - return SwipeActionState.COLLAPSED - if ((arg0) == (SwipeActionState.EXPANDED.value)) - return SwipeActionState.EXPANDED - if ((arg0) == (SwipeActionState.ACTIONING.value)) - return SwipeActionState.ACTIONING - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): SwipeActionState { - if ((arg0) == (SwipeActionState.COLLAPSED.ordinal)) - return SwipeActionState.COLLAPSED - if ((arg0) == (SwipeActionState.EXPANDED.ordinal)) - return SwipeActionState.EXPANDED - if ((arg0) == (SwipeActionState.ACTIONING.ordinal)) - return SwipeActionState.ACTIONING - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class ListItemStyle { - static readonly NONE: ListItemStyle = new ListItemStyle(0,0) - static readonly CARD: ListItemStyle = new ListItemStyle(1,1) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): ListItemStyle { - if ((arg0) == (ListItemStyle.NONE.value)) - return ListItemStyle.NONE - if ((arg0) == (ListItemStyle.CARD.value)) - return ListItemStyle.CARD - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): ListItemStyle { - if ((arg0) == (ListItemStyle.NONE.ordinal)) - return ListItemStyle.NONE - if ((arg0) == (ListItemStyle.CARD.ordinal)) - return ListItemStyle.CARD - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class ListItemGroupStyle { - static readonly NONE: ListItemGroupStyle = new ListItemGroupStyle(0,0) - static readonly CARD: ListItemGroupStyle = new ListItemGroupStyle(1,1) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): ListItemGroupStyle { - if ((arg0) == (ListItemGroupStyle.NONE.value)) - return ListItemGroupStyle.NONE - if ((arg0) == (ListItemGroupStyle.CARD.value)) - return ListItemGroupStyle.CARD - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): ListItemGroupStyle { - if ((arg0) == (ListItemGroupStyle.NONE.ordinal)) - return ListItemGroupStyle.NONE - if ((arg0) == (ListItemGroupStyle.CARD.ordinal)) - return ListItemGroupStyle.CARD - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class LoadingProgressStyle { - static readonly DEFAULT: LoadingProgressStyle = new LoadingProgressStyle(0,0) - static readonly Default: LoadingProgressStyle = LoadingProgressStyle.DEFAULT - static readonly CIRCULAR: LoadingProgressStyle = new LoadingProgressStyle(1,1) - static readonly Circular: LoadingProgressStyle = LoadingProgressStyle.CIRCULAR - static readonly ORBITAL: LoadingProgressStyle = new LoadingProgressStyle(2,2) - static readonly Orbital: LoadingProgressStyle = LoadingProgressStyle.ORBITAL - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): LoadingProgressStyle { - if ((arg0) == (LoadingProgressStyle.DEFAULT.value)) - return LoadingProgressStyle.DEFAULT - if ((arg0) == (LoadingProgressStyle.CIRCULAR.value)) - return LoadingProgressStyle.CIRCULAR - if ((arg0) == (LoadingProgressStyle.ORBITAL.value)) - return LoadingProgressStyle.ORBITAL - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): LoadingProgressStyle { - if ((arg0) == (LoadingProgressStyle.DEFAULT.ordinal)) - return LoadingProgressStyle.DEFAULT - if ((arg0) == (LoadingProgressStyle.CIRCULAR.ordinal)) - return LoadingProgressStyle.CIRCULAR - if ((arg0) == (LoadingProgressStyle.ORBITAL.ordinal)) - return LoadingProgressStyle.ORBITAL - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class LocationIconStyle { - static readonly FULL_FILLED: LocationIconStyle = new LocationIconStyle(0,0) - static readonly LINES: LocationIconStyle = new LocationIconStyle(1,1) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): LocationIconStyle { - if ((arg0) == (LocationIconStyle.FULL_FILLED.value)) - return LocationIconStyle.FULL_FILLED - if ((arg0) == (LocationIconStyle.LINES.value)) - return LocationIconStyle.LINES - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): LocationIconStyle { - if ((arg0) == (LocationIconStyle.FULL_FILLED.ordinal)) - return LocationIconStyle.FULL_FILLED - if ((arg0) == (LocationIconStyle.LINES.ordinal)) - return LocationIconStyle.LINES - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class LocationDescription { - static readonly CURRENT_LOCATION: LocationDescription = new LocationDescription(0,0) - static readonly ADD_LOCATION: LocationDescription = new LocationDescription(1,1) - static readonly SELECT_LOCATION: LocationDescription = new LocationDescription(2,2) - static readonly SHARE_LOCATION: LocationDescription = new LocationDescription(3,3) - static readonly SEND_LOCATION: LocationDescription = new LocationDescription(4,4) - static readonly LOCATING: LocationDescription = new LocationDescription(5,5) - static readonly LOCATION: LocationDescription = new LocationDescription(6,6) - static readonly SEND_CURRENT_LOCATION: LocationDescription = new LocationDescription(7,7) - static readonly RELOCATION: LocationDescription = new LocationDescription(8,8) - static readonly PUNCH_IN: LocationDescription = new LocationDescription(9,9) - static readonly CURRENT_POSITION: LocationDescription = new LocationDescription(10,10) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): LocationDescription { - if ((arg0) == (LocationDescription.CURRENT_LOCATION.value)) - return LocationDescription.CURRENT_LOCATION - if ((arg0) == (LocationDescription.ADD_LOCATION.value)) - return LocationDescription.ADD_LOCATION - if ((arg0) == (LocationDescription.SELECT_LOCATION.value)) - return LocationDescription.SELECT_LOCATION - if ((arg0) == (LocationDescription.SHARE_LOCATION.value)) - return LocationDescription.SHARE_LOCATION - if ((arg0) == (LocationDescription.SEND_LOCATION.value)) - return LocationDescription.SEND_LOCATION - if ((arg0) == (LocationDescription.LOCATING.value)) - return LocationDescription.LOCATING - if ((arg0) == (LocationDescription.LOCATION.value)) - return LocationDescription.LOCATION - if ((arg0) == (LocationDescription.SEND_CURRENT_LOCATION.value)) - return LocationDescription.SEND_CURRENT_LOCATION - if ((arg0) == (LocationDescription.RELOCATION.value)) - return LocationDescription.RELOCATION - if ((arg0) == (LocationDescription.PUNCH_IN.value)) - return LocationDescription.PUNCH_IN - if ((arg0) == (LocationDescription.CURRENT_POSITION.value)) - return LocationDescription.CURRENT_POSITION - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): LocationDescription { - if ((arg0) == (LocationDescription.CURRENT_LOCATION.ordinal)) - return LocationDescription.CURRENT_LOCATION - if ((arg0) == (LocationDescription.ADD_LOCATION.ordinal)) - return LocationDescription.ADD_LOCATION - if ((arg0) == (LocationDescription.SELECT_LOCATION.ordinal)) - return LocationDescription.SELECT_LOCATION - if ((arg0) == (LocationDescription.SHARE_LOCATION.ordinal)) - return LocationDescription.SHARE_LOCATION - if ((arg0) == (LocationDescription.SEND_LOCATION.ordinal)) - return LocationDescription.SEND_LOCATION - if ((arg0) == (LocationDescription.LOCATING.ordinal)) - return LocationDescription.LOCATING - if ((arg0) == (LocationDescription.LOCATION.ordinal)) - return LocationDescription.LOCATION - if ((arg0) == (LocationDescription.SEND_CURRENT_LOCATION.ordinal)) - return LocationDescription.SEND_CURRENT_LOCATION - if ((arg0) == (LocationDescription.RELOCATION.ordinal)) - return LocationDescription.RELOCATION - if ((arg0) == (LocationDescription.PUNCH_IN.ordinal)) - return LocationDescription.PUNCH_IN - if ((arg0) == (LocationDescription.CURRENT_POSITION.ordinal)) - return LocationDescription.CURRENT_POSITION - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class LocationButtonOnClickResult { - static readonly SUCCESS: LocationButtonOnClickResult = new LocationButtonOnClickResult(0,0) - static readonly TEMPORARY_AUTHORIZATION_FAILED: LocationButtonOnClickResult = new LocationButtonOnClickResult(1,1) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): LocationButtonOnClickResult { - if ((arg0) == (LocationButtonOnClickResult.SUCCESS.value)) - return LocationButtonOnClickResult.SUCCESS - if ((arg0) == (LocationButtonOnClickResult.TEMPORARY_AUTHORIZATION_FAILED.value)) - return LocationButtonOnClickResult.TEMPORARY_AUTHORIZATION_FAILED - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): LocationButtonOnClickResult { - if ((arg0) == (LocationButtonOnClickResult.SUCCESS.ordinal)) - return LocationButtonOnClickResult.SUCCESS - if ((arg0) == (LocationButtonOnClickResult.TEMPORARY_AUTHORIZATION_FAILED.ordinal)) - return LocationButtonOnClickResult.TEMPORARY_AUTHORIZATION_FAILED - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class SubMenuExpandingMode { - static readonly SIDE_EXPAND: SubMenuExpandingMode = new SubMenuExpandingMode(0,0) - static readonly EMBEDDED_EXPAND: SubMenuExpandingMode = new SubMenuExpandingMode(1,1) - static readonly STACK_EXPAND: SubMenuExpandingMode = new SubMenuExpandingMode(2,2) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): SubMenuExpandingMode { - if ((arg0) == (SubMenuExpandingMode.SIDE_EXPAND.value)) - return SubMenuExpandingMode.SIDE_EXPAND - if ((arg0) == (SubMenuExpandingMode.EMBEDDED_EXPAND.value)) - return SubMenuExpandingMode.EMBEDDED_EXPAND - if ((arg0) == (SubMenuExpandingMode.STACK_EXPAND.value)) - return SubMenuExpandingMode.STACK_EXPAND - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): SubMenuExpandingMode { - if ((arg0) == (SubMenuExpandingMode.SIDE_EXPAND.ordinal)) - return SubMenuExpandingMode.SIDE_EXPAND - if ((arg0) == (SubMenuExpandingMode.EMBEDDED_EXPAND.ordinal)) - return SubMenuExpandingMode.EMBEDDED_EXPAND - if ((arg0) == (SubMenuExpandingMode.STACK_EXPAND.ordinal)) - return SubMenuExpandingMode.STACK_EXPAND - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class NavigationSystemTransitionType { - static readonly DEFAULT: NavigationSystemTransitionType = new NavigationSystemTransitionType(0,0) - static readonly NONE: NavigationSystemTransitionType = new NavigationSystemTransitionType(1,1) - static readonly TITLE: NavigationSystemTransitionType = new NavigationSystemTransitionType(2,2) - static readonly CONTENT: NavigationSystemTransitionType = new NavigationSystemTransitionType(3,3) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): NavigationSystemTransitionType { - if ((arg0) == (NavigationSystemTransitionType.DEFAULT.value)) - return NavigationSystemTransitionType.DEFAULT - if ((arg0) == (NavigationSystemTransitionType.NONE.value)) - return NavigationSystemTransitionType.NONE - if ((arg0) == (NavigationSystemTransitionType.TITLE.value)) - return NavigationSystemTransitionType.TITLE - if ((arg0) == (NavigationSystemTransitionType.CONTENT.value)) - return NavigationSystemTransitionType.CONTENT - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): NavigationSystemTransitionType { - if ((arg0) == (NavigationSystemTransitionType.DEFAULT.ordinal)) - return NavigationSystemTransitionType.DEFAULT - if ((arg0) == (NavigationSystemTransitionType.NONE.ordinal)) - return NavigationSystemTransitionType.NONE - if ((arg0) == (NavigationSystemTransitionType.TITLE.ordinal)) - return NavigationSystemTransitionType.TITLE - if ((arg0) == (NavigationSystemTransitionType.CONTENT.ordinal)) - return NavigationSystemTransitionType.CONTENT - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class NavDestinationMode { - static readonly STANDARD: NavDestinationMode = new NavDestinationMode(0,0) - static readonly DIALOG: NavDestinationMode = new NavDestinationMode(1,1) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): NavDestinationMode { - if ((arg0) == (NavDestinationMode.STANDARD.value)) - return NavDestinationMode.STANDARD - if ((arg0) == (NavDestinationMode.DIALOG.value)) - return NavDestinationMode.DIALOG - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): NavDestinationMode { - if ((arg0) == (NavDestinationMode.STANDARD.ordinal)) - return NavDestinationMode.STANDARD - if ((arg0) == (NavDestinationMode.DIALOG.ordinal)) - return NavDestinationMode.DIALOG - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class NavRouteMode { - static readonly PUSH_WITH_RECREATE: NavRouteMode = new NavRouteMode(0,0) - static readonly PUSH: NavRouteMode = new NavRouteMode(1,1) - static readonly REPLACE: NavRouteMode = new NavRouteMode(2,2) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): NavRouteMode { - if ((arg0) == (NavRouteMode.PUSH_WITH_RECREATE.value)) - return NavRouteMode.PUSH_WITH_RECREATE - if ((arg0) == (NavRouteMode.PUSH.value)) - return NavRouteMode.PUSH - if ((arg0) == (NavRouteMode.REPLACE.value)) - return NavRouteMode.REPLACE - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): NavRouteMode { - if ((arg0) == (NavRouteMode.PUSH_WITH_RECREATE.ordinal)) - return NavRouteMode.PUSH_WITH_RECREATE - if ((arg0) == (NavRouteMode.PUSH.ordinal)) - return NavRouteMode.PUSH - if ((arg0) == (NavRouteMode.REPLACE.ordinal)) - return NavRouteMode.REPLACE - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class NavigationMode { - static readonly STACK: NavigationMode = new NavigationMode(0,0) - static readonly Stack: NavigationMode = NavigationMode.STACK - static readonly SPLIT: NavigationMode = new NavigationMode(1,1) - static readonly Split: NavigationMode = NavigationMode.SPLIT - static readonly AUTO: NavigationMode = new NavigationMode(2,2) - static readonly Auto: NavigationMode = NavigationMode.AUTO - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): NavigationMode { - if ((arg0) == (NavigationMode.STACK.value)) - return NavigationMode.STACK - if ((arg0) == (NavigationMode.SPLIT.value)) - return NavigationMode.SPLIT - if ((arg0) == (NavigationMode.AUTO.value)) - return NavigationMode.AUTO - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): NavigationMode { - if ((arg0) == (NavigationMode.STACK.ordinal)) - return NavigationMode.STACK - if ((arg0) == (NavigationMode.SPLIT.ordinal)) - return NavigationMode.SPLIT - if ((arg0) == (NavigationMode.AUTO.ordinal)) - return NavigationMode.AUTO - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class NavBarPosition { - static readonly START: NavBarPosition = new NavBarPosition(0,0) - static readonly Start: NavBarPosition = NavBarPosition.START - static readonly END: NavBarPosition = new NavBarPosition(1,1) - static readonly End: NavBarPosition = NavBarPosition.END - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): NavBarPosition { - if ((arg0) == (NavBarPosition.START.value)) - return NavBarPosition.START - if ((arg0) == (NavBarPosition.END.value)) - return NavBarPosition.END - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): NavBarPosition { - if ((arg0) == (NavBarPosition.START.ordinal)) - return NavBarPosition.START - if ((arg0) == (NavBarPosition.END.ordinal)) - return NavBarPosition.END - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class NavigationTitleMode { - static readonly FREE: NavigationTitleMode = new NavigationTitleMode(0,0) - static readonly Free: NavigationTitleMode = NavigationTitleMode.FREE - static readonly FULL: NavigationTitleMode = new NavigationTitleMode(1,1) - static readonly Full: NavigationTitleMode = NavigationTitleMode.FULL - static readonly MINI: NavigationTitleMode = new NavigationTitleMode(2,2) - static readonly Mini: NavigationTitleMode = NavigationTitleMode.MINI - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): NavigationTitleMode { - if ((arg0) == (NavigationTitleMode.FREE.value)) - return NavigationTitleMode.FREE - if ((arg0) == (NavigationTitleMode.FULL.value)) - return NavigationTitleMode.FULL - if ((arg0) == (NavigationTitleMode.MINI.value)) - return NavigationTitleMode.MINI - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): NavigationTitleMode { - if ((arg0) == (NavigationTitleMode.FREE.ordinal)) - return NavigationTitleMode.FREE - if ((arg0) == (NavigationTitleMode.FULL.ordinal)) - return NavigationTitleMode.FULL - if ((arg0) == (NavigationTitleMode.MINI.ordinal)) - return NavigationTitleMode.MINI - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class LaunchMode { - static readonly STANDARD: LaunchMode = new LaunchMode(0,0) - static readonly MOVE_TO_TOP_SINGLETON: LaunchMode = new LaunchMode(1,1) - static readonly POP_TO_SINGLETON: LaunchMode = new LaunchMode(2,2) - static readonly NEW_INSTANCE: LaunchMode = new LaunchMode(3,3) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): LaunchMode { - if ((arg0) == (LaunchMode.STANDARD.value)) - return LaunchMode.STANDARD - if ((arg0) == (LaunchMode.MOVE_TO_TOP_SINGLETON.value)) - return LaunchMode.MOVE_TO_TOP_SINGLETON - if ((arg0) == (LaunchMode.POP_TO_SINGLETON.value)) - return LaunchMode.POP_TO_SINGLETON - if ((arg0) == (LaunchMode.NEW_INSTANCE.value)) - return LaunchMode.NEW_INSTANCE - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): LaunchMode { - if ((arg0) == (LaunchMode.STANDARD.ordinal)) - return LaunchMode.STANDARD - if ((arg0) == (LaunchMode.MOVE_TO_TOP_SINGLETON.ordinal)) - return LaunchMode.MOVE_TO_TOP_SINGLETON - if ((arg0) == (LaunchMode.POP_TO_SINGLETON.ordinal)) - return LaunchMode.POP_TO_SINGLETON - if ((arg0) == (LaunchMode.NEW_INSTANCE.ordinal)) - return LaunchMode.NEW_INSTANCE - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class ToolbarItemStatus { - static readonly NORMAL: ToolbarItemStatus = new ToolbarItemStatus(0,0) - static readonly DISABLED: ToolbarItemStatus = new ToolbarItemStatus(1,1) - static readonly ACTIVE: ToolbarItemStatus = new ToolbarItemStatus(2,2) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): ToolbarItemStatus { - if ((arg0) == (ToolbarItemStatus.NORMAL.value)) - return ToolbarItemStatus.NORMAL - if ((arg0) == (ToolbarItemStatus.DISABLED.value)) - return ToolbarItemStatus.DISABLED - if ((arg0) == (ToolbarItemStatus.ACTIVE.value)) - return ToolbarItemStatus.ACTIVE - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): ToolbarItemStatus { - if ((arg0) == (ToolbarItemStatus.NORMAL.ordinal)) - return ToolbarItemStatus.NORMAL - if ((arg0) == (ToolbarItemStatus.DISABLED.ordinal)) - return ToolbarItemStatus.DISABLED - if ((arg0) == (ToolbarItemStatus.ACTIVE.ordinal)) - return ToolbarItemStatus.ACTIVE - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class NavigationOperation { - static readonly PUSH: NavigationOperation = new NavigationOperation(1,0) - static readonly POP: NavigationOperation = new NavigationOperation(2,1) - static readonly REPLACE: NavigationOperation = new NavigationOperation(3,2) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): NavigationOperation { - if ((arg0) == (NavigationOperation.PUSH.value)) - return NavigationOperation.PUSH - if ((arg0) == (NavigationOperation.POP.value)) - return NavigationOperation.POP - if ((arg0) == (NavigationOperation.REPLACE.value)) - return NavigationOperation.REPLACE - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): NavigationOperation { - if ((arg0) == (NavigationOperation.PUSH.ordinal)) - return NavigationOperation.PUSH - if ((arg0) == (NavigationOperation.POP.ordinal)) - return NavigationOperation.POP - if ((arg0) == (NavigationOperation.REPLACE.ordinal)) - return NavigationOperation.REPLACE - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class BarStyle { - static readonly STANDARD: BarStyle = new BarStyle(0,0) - static readonly STACK: BarStyle = new BarStyle(1,1) - static readonly SAFE_AREA_PADDING: BarStyle = new BarStyle(2,2) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): BarStyle { - if ((arg0) == (BarStyle.STANDARD.value)) - return BarStyle.STANDARD - if ((arg0) == (BarStyle.STACK.value)) - return BarStyle.STACK - if ((arg0) == (BarStyle.SAFE_AREA_PADDING.value)) - return BarStyle.SAFE_AREA_PADDING - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): BarStyle { - if ((arg0) == (BarStyle.STANDARD.ordinal)) - return BarStyle.STANDARD - if ((arg0) == (BarStyle.STACK.ordinal)) - return BarStyle.STACK - if ((arg0) == (BarStyle.SAFE_AREA_PADDING.ordinal)) - return BarStyle.SAFE_AREA_PADDING - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class NavigationType { - static readonly PUSH: NavigationType = new NavigationType(0,0) - static readonly Push: NavigationType = NavigationType.PUSH - static readonly BACK: NavigationType = new NavigationType(1,1) - static readonly Back: NavigationType = NavigationType.BACK - static readonly REPLACE: NavigationType = new NavigationType(2,2) - static readonly Replace: NavigationType = NavigationType.REPLACE - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): NavigationType { - if ((arg0) == (NavigationType.PUSH.value)) - return NavigationType.PUSH - if ((arg0) == (NavigationType.BACK.value)) - return NavigationType.BACK - if ((arg0) == (NavigationType.REPLACE.value)) - return NavigationType.REPLACE - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): NavigationType { - if ((arg0) == (NavigationType.PUSH.ordinal)) - return NavigationType.PUSH - if ((arg0) == (NavigationType.BACK.ordinal)) - return NavigationType.BACK - if ((arg0) == (NavigationType.REPLACE.ordinal)) - return NavigationType.REPLACE - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class RouteType { - static readonly NONE: RouteType = new RouteType(0,0) - static readonly None: RouteType = RouteType.NONE - static readonly PUSH: RouteType = new RouteType(1,1) - static readonly Push: RouteType = RouteType.PUSH - static readonly POP: RouteType = new RouteType(2,2) - static readonly Pop: RouteType = RouteType.POP - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): RouteType { - if ((arg0) == (RouteType.NONE.value)) - return RouteType.NONE - if ((arg0) == (RouteType.PUSH.value)) - return RouteType.PUSH - if ((arg0) == (RouteType.POP.value)) - return RouteType.POP - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): RouteType { - if ((arg0) == (RouteType.NONE.ordinal)) - return RouteType.NONE - if ((arg0) == (RouteType.PUSH.ordinal)) - return RouteType.PUSH - if ((arg0) == (RouteType.POP.ordinal)) - return RouteType.POP - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class SlideEffect { - static readonly LEFT: SlideEffect = new SlideEffect(0,0) - static readonly Left: SlideEffect = SlideEffect.LEFT - static readonly RIGHT: SlideEffect = new SlideEffect(1,1) - static readonly Right: SlideEffect = SlideEffect.RIGHT - static readonly TOP: SlideEffect = new SlideEffect(2,2) - static readonly Top: SlideEffect = SlideEffect.TOP - static readonly BOTTOM: SlideEffect = new SlideEffect(3,3) - static readonly Bottom: SlideEffect = SlideEffect.BOTTOM - static readonly START: SlideEffect = new SlideEffect(5,4) - static readonly END: SlideEffect = new SlideEffect(6,5) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): SlideEffect { - if ((arg0) == (SlideEffect.LEFT.value)) - return SlideEffect.LEFT - if ((arg0) == (SlideEffect.RIGHT.value)) - return SlideEffect.RIGHT - if ((arg0) == (SlideEffect.TOP.value)) - return SlideEffect.TOP - if ((arg0) == (SlideEffect.BOTTOM.value)) - return SlideEffect.BOTTOM - if ((arg0) == (SlideEffect.START.value)) - return SlideEffect.START - if ((arg0) == (SlideEffect.END.value)) - return SlideEffect.END - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): SlideEffect { - if ((arg0) == (SlideEffect.LEFT.ordinal)) - return SlideEffect.LEFT - if ((arg0) == (SlideEffect.RIGHT.ordinal)) - return SlideEffect.RIGHT - if ((arg0) == (SlideEffect.TOP.ordinal)) - return SlideEffect.TOP - if ((arg0) == (SlideEffect.BOTTOM.ordinal)) - return SlideEffect.BOTTOM - if ((arg0) == (SlideEffect.START.ordinal)) - return SlideEffect.START - if ((arg0) == (SlideEffect.END.ordinal)) - return SlideEffect.END - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class PanelMode { - static readonly MINI: PanelMode = new PanelMode(0,0) - static readonly Mini: PanelMode = PanelMode.MINI - static readonly HALF: PanelMode = new PanelMode(1,1) - static readonly Half: PanelMode = PanelMode.HALF - static readonly FULL: PanelMode = new PanelMode(2,2) - static readonly Full: PanelMode = PanelMode.FULL - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): PanelMode { - if ((arg0) == (PanelMode.MINI.value)) - return PanelMode.MINI - if ((arg0) == (PanelMode.HALF.value)) - return PanelMode.HALF - if ((arg0) == (PanelMode.FULL.value)) - return PanelMode.FULL - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): PanelMode { - if ((arg0) == (PanelMode.MINI.ordinal)) - return PanelMode.MINI - if ((arg0) == (PanelMode.HALF.ordinal)) - return PanelMode.HALF - if ((arg0) == (PanelMode.FULL.ordinal)) - return PanelMode.FULL - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class PanelType { - static readonly MINIBAR: PanelType = new PanelType(0,0) - static readonly Minibar: PanelType = PanelType.MINIBAR - static readonly FOLDABLE: PanelType = new PanelType(1,1) - static readonly Foldable: PanelType = PanelType.FOLDABLE - static readonly TEMPORARY: PanelType = new PanelType(2,2) - static readonly Temporary: PanelType = PanelType.TEMPORARY - static readonly CUSTOM: PanelType = new PanelType(3,3) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): PanelType { - if ((arg0) == (PanelType.MINIBAR.value)) - return PanelType.MINIBAR - if ((arg0) == (PanelType.FOLDABLE.value)) - return PanelType.FOLDABLE - if ((arg0) == (PanelType.TEMPORARY.value)) - return PanelType.TEMPORARY - if ((arg0) == (PanelType.CUSTOM.value)) - return PanelType.CUSTOM - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): PanelType { - if ((arg0) == (PanelType.MINIBAR.ordinal)) - return PanelType.MINIBAR - if ((arg0) == (PanelType.FOLDABLE.ordinal)) - return PanelType.FOLDABLE - if ((arg0) == (PanelType.TEMPORARY.ordinal)) - return PanelType.TEMPORARY - if ((arg0) == (PanelType.CUSTOM.ordinal)) - return PanelType.CUSTOM - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class PanelHeight { - static readonly WRAP_CONTENT: PanelHeight = new PanelHeight("wrapContent",0) - constructor(value: string, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: string - public readonly ordinal: int32 - public static of(arg0: string): PanelHeight { - if ((arg0) == (PanelHeight.WRAP_CONTENT.value)) - return PanelHeight.WRAP_CONTENT - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): PanelHeight { - if ((arg0) == (PanelHeight.WRAP_CONTENT.ordinal)) - return PanelHeight.WRAP_CONTENT - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class ParticleType { - static readonly POINT: ParticleType = new ParticleType("point",0) - static readonly IMAGE: ParticleType = new ParticleType("image",1) - constructor(value: string, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: string - public readonly ordinal: int32 - public static of(arg0: string): ParticleType { - if ((arg0) == (ParticleType.POINT.value)) - return ParticleType.POINT - if ((arg0) == (ParticleType.IMAGE.value)) - return ParticleType.IMAGE - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): ParticleType { - if ((arg0) == (ParticleType.POINT.ordinal)) - return ParticleType.POINT - if ((arg0) == (ParticleType.IMAGE.ordinal)) - return ParticleType.IMAGE - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class ParticleEmitterShape { - static readonly RECTANGLE: ParticleEmitterShape = new ParticleEmitterShape("rectangle",0) - static readonly CIRCLE: ParticleEmitterShape = new ParticleEmitterShape("circle",1) - static readonly ELLIPSE: ParticleEmitterShape = new ParticleEmitterShape("ellipse",2) - constructor(value: string, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: string - public readonly ordinal: int32 - public static of(arg0: string): ParticleEmitterShape { - if ((arg0) == (ParticleEmitterShape.RECTANGLE.value)) - return ParticleEmitterShape.RECTANGLE - if ((arg0) == (ParticleEmitterShape.CIRCLE.value)) - return ParticleEmitterShape.CIRCLE - if ((arg0) == (ParticleEmitterShape.ELLIPSE.value)) - return ParticleEmitterShape.ELLIPSE - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): ParticleEmitterShape { - if ((arg0) == (ParticleEmitterShape.RECTANGLE.ordinal)) - return ParticleEmitterShape.RECTANGLE - if ((arg0) == (ParticleEmitterShape.CIRCLE.ordinal)) - return ParticleEmitterShape.CIRCLE - if ((arg0) == (ParticleEmitterShape.ELLIPSE.ordinal)) - return ParticleEmitterShape.ELLIPSE - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class DistributionType { - static readonly UNIFORM: DistributionType = new DistributionType(0,0) - static readonly GAUSSIAN: DistributionType = new DistributionType(1,1) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): DistributionType { - if ((arg0) == (DistributionType.UNIFORM.value)) - return DistributionType.UNIFORM - if ((arg0) == (DistributionType.GAUSSIAN.value)) - return DistributionType.GAUSSIAN - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): DistributionType { - if ((arg0) == (DistributionType.UNIFORM.ordinal)) - return DistributionType.UNIFORM - if ((arg0) == (DistributionType.GAUSSIAN.ordinal)) - return DistributionType.GAUSSIAN - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class ParticleUpdater { - static readonly NONE: ParticleUpdater = new ParticleUpdater("none",0) - static readonly RANDOM: ParticleUpdater = new ParticleUpdater("random",1) - static readonly CURVE: ParticleUpdater = new ParticleUpdater("curve",2) - constructor(value: string, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: string - public readonly ordinal: int32 - public static of(arg0: string): ParticleUpdater { - if ((arg0) == (ParticleUpdater.NONE.value)) - return ParticleUpdater.NONE - if ((arg0) == (ParticleUpdater.RANDOM.value)) - return ParticleUpdater.RANDOM - if ((arg0) == (ParticleUpdater.CURVE.value)) - return ParticleUpdater.CURVE - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): ParticleUpdater { - if ((arg0) == (ParticleUpdater.NONE.ordinal)) - return ParticleUpdater.NONE - if ((arg0) == (ParticleUpdater.RANDOM.ordinal)) - return ParticleUpdater.RANDOM - if ((arg0) == (ParticleUpdater.CURVE.ordinal)) - return ParticleUpdater.CURVE - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class DisturbanceFieldShape { - static readonly RECT: DisturbanceFieldShape = new DisturbanceFieldShape(0,0) - static readonly CIRCLE: DisturbanceFieldShape = new DisturbanceFieldShape(1,1) - static readonly ELLIPSE: DisturbanceFieldShape = new DisturbanceFieldShape(2,2) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): DisturbanceFieldShape { - if ((arg0) == (DisturbanceFieldShape.RECT.value)) - return DisturbanceFieldShape.RECT - if ((arg0) == (DisturbanceFieldShape.CIRCLE.value)) - return DisturbanceFieldShape.CIRCLE - if ((arg0) == (DisturbanceFieldShape.ELLIPSE.value)) - return DisturbanceFieldShape.ELLIPSE - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): DisturbanceFieldShape { - if ((arg0) == (DisturbanceFieldShape.RECT.ordinal)) - return DisturbanceFieldShape.RECT - if ((arg0) == (DisturbanceFieldShape.CIRCLE.ordinal)) - return DisturbanceFieldShape.CIRCLE - if ((arg0) == (DisturbanceFieldShape.ELLIPSE.ordinal)) - return DisturbanceFieldShape.ELLIPSE - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class PasteIconStyle { - static readonly LINES: PasteIconStyle = new PasteIconStyle(0,0) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): PasteIconStyle { - if ((arg0) == (PasteIconStyle.LINES.value)) - return PasteIconStyle.LINES - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): PasteIconStyle { - if ((arg0) == (PasteIconStyle.LINES.ordinal)) - return PasteIconStyle.LINES - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class PasteDescription { - static readonly PASTE: PasteDescription = new PasteDescription(0,0) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): PasteDescription { - if ((arg0) == (PasteDescription.PASTE.value)) - return PasteDescription.PASTE - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): PasteDescription { - if ((arg0) == (PasteDescription.PASTE.ordinal)) - return PasteDescription.PASTE - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class PasteButtonOnClickResult { - static readonly SUCCESS: PasteButtonOnClickResult = new PasteButtonOnClickResult(0,0) - static readonly TEMPORARY_AUTHORIZATION_FAILED: PasteButtonOnClickResult = new PasteButtonOnClickResult(1,1) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): PasteButtonOnClickResult { - if ((arg0) == (PasteButtonOnClickResult.SUCCESS.value)) - return PasteButtonOnClickResult.SUCCESS - if ((arg0) == (PasteButtonOnClickResult.TEMPORARY_AUTHORIZATION_FAILED.value)) - return PasteButtonOnClickResult.TEMPORARY_AUTHORIZATION_FAILED - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): PasteButtonOnClickResult { - if ((arg0) == (PasteButtonOnClickResult.SUCCESS.ordinal)) - return PasteButtonOnClickResult.SUCCESS - if ((arg0) == (PasteButtonOnClickResult.TEMPORARY_AUTHORIZATION_FAILED.ordinal)) - return PasteButtonOnClickResult.TEMPORARY_AUTHORIZATION_FAILED - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class PatternLockChallengeResult { - static readonly CORRECT: PatternLockChallengeResult = new PatternLockChallengeResult(1,0) - static readonly WRONG: PatternLockChallengeResult = new PatternLockChallengeResult(2,1) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): PatternLockChallengeResult { - if ((arg0) == (PatternLockChallengeResult.CORRECT.value)) - return PatternLockChallengeResult.CORRECT - if ((arg0) == (PatternLockChallengeResult.WRONG.value)) - return PatternLockChallengeResult.WRONG - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): PatternLockChallengeResult { - if ((arg0) == (PatternLockChallengeResult.CORRECT.ordinal)) - return PatternLockChallengeResult.CORRECT - if ((arg0) == (PatternLockChallengeResult.WRONG.ordinal)) - return PatternLockChallengeResult.WRONG - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class ProgressType { - static readonly LINEAR: ProgressType = new ProgressType(0,0) - static readonly Linear: ProgressType = ProgressType.LINEAR - static readonly RING: ProgressType = new ProgressType(1,1) - static readonly Ring: ProgressType = ProgressType.RING - static readonly ECLIPSE: ProgressType = new ProgressType(2,2) - static readonly Eclipse: ProgressType = ProgressType.ECLIPSE - static readonly SCALE_RING: ProgressType = new ProgressType(3,3) - static readonly ScaleRing: ProgressType = ProgressType.SCALE_RING - static readonly CAPSULE: ProgressType = new ProgressType(4,4) - static readonly Capsule: ProgressType = ProgressType.CAPSULE - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): ProgressType { - if ((arg0) == (ProgressType.LINEAR.value)) - return ProgressType.LINEAR - if ((arg0) == (ProgressType.RING.value)) - return ProgressType.RING - if ((arg0) == (ProgressType.ECLIPSE.value)) - return ProgressType.ECLIPSE - if ((arg0) == (ProgressType.SCALE_RING.value)) - return ProgressType.SCALE_RING - if ((arg0) == (ProgressType.CAPSULE.value)) - return ProgressType.CAPSULE - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): ProgressType { - if ((arg0) == (ProgressType.LINEAR.ordinal)) - return ProgressType.LINEAR - if ((arg0) == (ProgressType.RING.ordinal)) - return ProgressType.RING - if ((arg0) == (ProgressType.ECLIPSE.ordinal)) - return ProgressType.ECLIPSE - if ((arg0) == (ProgressType.SCALE_RING.ordinal)) - return ProgressType.SCALE_RING - if ((arg0) == (ProgressType.CAPSULE.ordinal)) - return ProgressType.CAPSULE - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class ProgressStatus { - static readonly LOADING: ProgressStatus = new ProgressStatus(0,0) - static readonly PROGRESSING: ProgressStatus = new ProgressStatus(1,1) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): ProgressStatus { - if ((arg0) == (ProgressStatus.LOADING.value)) - return ProgressStatus.LOADING - if ((arg0) == (ProgressStatus.PROGRESSING.value)) - return ProgressStatus.PROGRESSING - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): ProgressStatus { - if ((arg0) == (ProgressStatus.LOADING.ordinal)) - return ProgressStatus.LOADING - if ((arg0) == (ProgressStatus.PROGRESSING.ordinal)) - return ProgressStatus.PROGRESSING - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class ProgressStyle { - static readonly LINEAR: ProgressStyle = new ProgressStyle(0,0) - static readonly Linear: ProgressStyle = ProgressStyle.LINEAR - static readonly RING: ProgressStyle = new ProgressStyle(1,1) - static readonly Ring: ProgressStyle = ProgressStyle.RING - static readonly ECLIPSE: ProgressStyle = new ProgressStyle(2,2) - static readonly Eclipse: ProgressStyle = ProgressStyle.ECLIPSE - static readonly SCALE_RING: ProgressStyle = new ProgressStyle(3,3) - static readonly ScaleRing: ProgressStyle = ProgressStyle.SCALE_RING - static readonly CAPSULE: ProgressStyle = new ProgressStyle(4,4) - static readonly Capsule: ProgressStyle = ProgressStyle.CAPSULE - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): ProgressStyle { - if ((arg0) == (ProgressStyle.LINEAR.value)) - return ProgressStyle.LINEAR - if ((arg0) == (ProgressStyle.RING.value)) - return ProgressStyle.RING - if ((arg0) == (ProgressStyle.ECLIPSE.value)) - return ProgressStyle.ECLIPSE - if ((arg0) == (ProgressStyle.SCALE_RING.value)) - return ProgressStyle.SCALE_RING - if ((arg0) == (ProgressStyle.CAPSULE.value)) - return ProgressStyle.CAPSULE - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): ProgressStyle { - if ((arg0) == (ProgressStyle.LINEAR.ordinal)) - return ProgressStyle.LINEAR - if ((arg0) == (ProgressStyle.RING.ordinal)) - return ProgressStyle.RING - if ((arg0) == (ProgressStyle.ECLIPSE.ordinal)) - return ProgressStyle.ECLIPSE - if ((arg0) == (ProgressStyle.SCALE_RING.ordinal)) - return ProgressStyle.SCALE_RING - if ((arg0) == (ProgressStyle.CAPSULE.ordinal)) - return ProgressStyle.CAPSULE - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class RadioIndicatorType { - static readonly TICK: RadioIndicatorType = new RadioIndicatorType(0,0) - static readonly DOT: RadioIndicatorType = new RadioIndicatorType(1,1) - static readonly CUSTOM: RadioIndicatorType = new RadioIndicatorType(2,2) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): RadioIndicatorType { - if ((arg0) == (RadioIndicatorType.TICK.value)) - return RadioIndicatorType.TICK - if ((arg0) == (RadioIndicatorType.DOT.value)) - return RadioIndicatorType.DOT - if ((arg0) == (RadioIndicatorType.CUSTOM.value)) - return RadioIndicatorType.CUSTOM - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): RadioIndicatorType { - if ((arg0) == (RadioIndicatorType.TICK.ordinal)) - return RadioIndicatorType.TICK - if ((arg0) == (RadioIndicatorType.DOT.ordinal)) - return RadioIndicatorType.DOT - if ((arg0) == (RadioIndicatorType.CUSTOM.ordinal)) - return RadioIndicatorType.CUSTOM - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class RefreshStatus { - static readonly INACTIVE: RefreshStatus = new RefreshStatus(0,0) - static readonly Inactive: RefreshStatus = RefreshStatus.INACTIVE - static readonly DRAG: RefreshStatus = new RefreshStatus(1,1) - static readonly Drag: RefreshStatus = RefreshStatus.DRAG - static readonly OVER_DRAG: RefreshStatus = new RefreshStatus(2,2) - static readonly OverDrag: RefreshStatus = RefreshStatus.OVER_DRAG - static readonly REFRESH: RefreshStatus = new RefreshStatus(3,3) - static readonly Refresh: RefreshStatus = RefreshStatus.REFRESH - static readonly DONE: RefreshStatus = new RefreshStatus(4,4) - static readonly Done: RefreshStatus = RefreshStatus.DONE - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): RefreshStatus { - if ((arg0) == (RefreshStatus.INACTIVE.value)) - return RefreshStatus.INACTIVE - if ((arg0) == (RefreshStatus.DRAG.value)) - return RefreshStatus.DRAG - if ((arg0) == (RefreshStatus.OVER_DRAG.value)) - return RefreshStatus.OVER_DRAG - if ((arg0) == (RefreshStatus.REFRESH.value)) - return RefreshStatus.REFRESH - if ((arg0) == (RefreshStatus.DONE.value)) - return RefreshStatus.DONE - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): RefreshStatus { - if ((arg0) == (RefreshStatus.INACTIVE.ordinal)) - return RefreshStatus.INACTIVE - if ((arg0) == (RefreshStatus.DRAG.ordinal)) - return RefreshStatus.DRAG - if ((arg0) == (RefreshStatus.OVER_DRAG.ordinal)) - return RefreshStatus.OVER_DRAG - if ((arg0) == (RefreshStatus.REFRESH.ordinal)) - return RefreshStatus.REFRESH - if ((arg0) == (RefreshStatus.DONE.ordinal)) - return RefreshStatus.DONE - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class BarrierDirection { - static readonly LEFT: BarrierDirection = new BarrierDirection(0,0) - static readonly RIGHT: BarrierDirection = new BarrierDirection(1,1) - static readonly TOP: BarrierDirection = new BarrierDirection(2,2) - static readonly BOTTOM: BarrierDirection = new BarrierDirection(3,3) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): BarrierDirection { - if ((arg0) == (BarrierDirection.LEFT.value)) - return BarrierDirection.LEFT - if ((arg0) == (BarrierDirection.RIGHT.value)) - return BarrierDirection.RIGHT - if ((arg0) == (BarrierDirection.TOP.value)) - return BarrierDirection.TOP - if ((arg0) == (BarrierDirection.BOTTOM.value)) - return BarrierDirection.BOTTOM - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): BarrierDirection { - if ((arg0) == (BarrierDirection.LEFT.ordinal)) - return BarrierDirection.LEFT - if ((arg0) == (BarrierDirection.RIGHT.ordinal)) - return BarrierDirection.RIGHT - if ((arg0) == (BarrierDirection.TOP.ordinal)) - return BarrierDirection.TOP - if ((arg0) == (BarrierDirection.BOTTOM.ordinal)) - return BarrierDirection.BOTTOM - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class LocalizedBarrierDirection { - static readonly START: LocalizedBarrierDirection = new LocalizedBarrierDirection(0,0) - static readonly END: LocalizedBarrierDirection = new LocalizedBarrierDirection(1,1) - static readonly TOP: LocalizedBarrierDirection = new LocalizedBarrierDirection(2,2) - static readonly BOTTOM: LocalizedBarrierDirection = new LocalizedBarrierDirection(3,3) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): LocalizedBarrierDirection { - if ((arg0) == (LocalizedBarrierDirection.START.value)) - return LocalizedBarrierDirection.START - if ((arg0) == (LocalizedBarrierDirection.END.value)) - return LocalizedBarrierDirection.END - if ((arg0) == (LocalizedBarrierDirection.TOP.value)) - return LocalizedBarrierDirection.TOP - if ((arg0) == (LocalizedBarrierDirection.BOTTOM.value)) - return LocalizedBarrierDirection.BOTTOM - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): LocalizedBarrierDirection { - if ((arg0) == (LocalizedBarrierDirection.START.ordinal)) - return LocalizedBarrierDirection.START - if ((arg0) == (LocalizedBarrierDirection.END.ordinal)) - return LocalizedBarrierDirection.END - if ((arg0) == (LocalizedBarrierDirection.TOP.ordinal)) - return LocalizedBarrierDirection.TOP - if ((arg0) == (LocalizedBarrierDirection.BOTTOM.ordinal)) - return LocalizedBarrierDirection.BOTTOM - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class RichEditorDeleteDirection { - static readonly BACKWARD: RichEditorDeleteDirection = new RichEditorDeleteDirection(0,0) - static readonly FORWARD: RichEditorDeleteDirection = new RichEditorDeleteDirection(1,1) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): RichEditorDeleteDirection { - if ((arg0) == (RichEditorDeleteDirection.BACKWARD.value)) - return RichEditorDeleteDirection.BACKWARD - if ((arg0) == (RichEditorDeleteDirection.FORWARD.value)) - return RichEditorDeleteDirection.FORWARD - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): RichEditorDeleteDirection { - if ((arg0) == (RichEditorDeleteDirection.BACKWARD.ordinal)) - return RichEditorDeleteDirection.BACKWARD - if ((arg0) == (RichEditorDeleteDirection.FORWARD.ordinal)) - return RichEditorDeleteDirection.FORWARD - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class RichEditorSpanType { - static readonly TEXT: RichEditorSpanType = new RichEditorSpanType(0,0) - static readonly IMAGE: RichEditorSpanType = new RichEditorSpanType(1,1) - static readonly MIXED: RichEditorSpanType = new RichEditorSpanType(2,2) - static readonly BUILDER: RichEditorSpanType = new RichEditorSpanType(3,3) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): RichEditorSpanType { - if ((arg0) == (RichEditorSpanType.TEXT.value)) - return RichEditorSpanType.TEXT - if ((arg0) == (RichEditorSpanType.IMAGE.value)) - return RichEditorSpanType.IMAGE - if ((arg0) == (RichEditorSpanType.MIXED.value)) - return RichEditorSpanType.MIXED - if ((arg0) == (RichEditorSpanType.BUILDER.value)) - return RichEditorSpanType.BUILDER - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): RichEditorSpanType { - if ((arg0) == (RichEditorSpanType.TEXT.ordinal)) - return RichEditorSpanType.TEXT - if ((arg0) == (RichEditorSpanType.IMAGE.ordinal)) - return RichEditorSpanType.IMAGE - if ((arg0) == (RichEditorSpanType.MIXED.ordinal)) - return RichEditorSpanType.MIXED - if ((arg0) == (RichEditorSpanType.BUILDER.ordinal)) - return RichEditorSpanType.BUILDER - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class RichEditorResponseType { - static readonly RIGHT_CLICK: RichEditorResponseType = new RichEditorResponseType(0,0) - static readonly LONG_PRESS: RichEditorResponseType = new RichEditorResponseType(1,1) - static readonly SELECT: RichEditorResponseType = new RichEditorResponseType(2,2) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): RichEditorResponseType { - if ((arg0) == (RichEditorResponseType.RIGHT_CLICK.value)) - return RichEditorResponseType.RIGHT_CLICK - if ((arg0) == (RichEditorResponseType.LONG_PRESS.value)) - return RichEditorResponseType.LONG_PRESS - if ((arg0) == (RichEditorResponseType.SELECT.value)) - return RichEditorResponseType.SELECT - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): RichEditorResponseType { - if ((arg0) == (RichEditorResponseType.RIGHT_CLICK.ordinal)) - return RichEditorResponseType.RIGHT_CLICK - if ((arg0) == (RichEditorResponseType.LONG_PRESS.ordinal)) - return RichEditorResponseType.LONG_PRESS - if ((arg0) == (RichEditorResponseType.SELECT.ordinal)) - return RichEditorResponseType.SELECT - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class SaveIconStyle { - static readonly FULL_FILLED: SaveIconStyle = new SaveIconStyle(0,0) - static readonly LINES: SaveIconStyle = new SaveIconStyle(1,1) - static readonly PICTURE: SaveIconStyle = new SaveIconStyle(2,2) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): SaveIconStyle { - if ((arg0) == (SaveIconStyle.FULL_FILLED.value)) - return SaveIconStyle.FULL_FILLED - if ((arg0) == (SaveIconStyle.LINES.value)) - return SaveIconStyle.LINES - if ((arg0) == (SaveIconStyle.PICTURE.value)) - return SaveIconStyle.PICTURE - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): SaveIconStyle { - if ((arg0) == (SaveIconStyle.FULL_FILLED.ordinal)) - return SaveIconStyle.FULL_FILLED - if ((arg0) == (SaveIconStyle.LINES.ordinal)) - return SaveIconStyle.LINES - if ((arg0) == (SaveIconStyle.PICTURE.ordinal)) - return SaveIconStyle.PICTURE - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class SaveDescription { - static readonly DOWNLOAD: SaveDescription = new SaveDescription(0,0) - static readonly DOWNLOAD_FILE: SaveDescription = new SaveDescription(1,1) - static readonly SAVE: SaveDescription = new SaveDescription(2,2) - static readonly SAVE_IMAGE: SaveDescription = new SaveDescription(3,3) - static readonly SAVE_FILE: SaveDescription = new SaveDescription(4,4) - static readonly DOWNLOAD_AND_SHARE: SaveDescription = new SaveDescription(5,5) - static readonly RECEIVE: SaveDescription = new SaveDescription(6,6) - static readonly CONTINUE_TO_RECEIVE: SaveDescription = new SaveDescription(7,7) - static readonly SAVE_TO_GALLERY: SaveDescription = new SaveDescription(8,8) - static readonly EXPORT_TO_GALLERY: SaveDescription = new SaveDescription(9,9) - static readonly QUICK_SAVE_TO_GALLERY: SaveDescription = new SaveDescription(10,10) - static readonly RESAVE_TO_GALLERY: SaveDescription = new SaveDescription(11,11) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): SaveDescription { - if ((arg0) == (SaveDescription.DOWNLOAD.value)) - return SaveDescription.DOWNLOAD - if ((arg0) == (SaveDescription.DOWNLOAD_FILE.value)) - return SaveDescription.DOWNLOAD_FILE - if ((arg0) == (SaveDescription.SAVE.value)) - return SaveDescription.SAVE - if ((arg0) == (SaveDescription.SAVE_IMAGE.value)) - return SaveDescription.SAVE_IMAGE - if ((arg0) == (SaveDescription.SAVE_FILE.value)) - return SaveDescription.SAVE_FILE - if ((arg0) == (SaveDescription.DOWNLOAD_AND_SHARE.value)) - return SaveDescription.DOWNLOAD_AND_SHARE - if ((arg0) == (SaveDescription.RECEIVE.value)) - return SaveDescription.RECEIVE - if ((arg0) == (SaveDescription.CONTINUE_TO_RECEIVE.value)) - return SaveDescription.CONTINUE_TO_RECEIVE - if ((arg0) == (SaveDescription.SAVE_TO_GALLERY.value)) - return SaveDescription.SAVE_TO_GALLERY - if ((arg0) == (SaveDescription.EXPORT_TO_GALLERY.value)) - return SaveDescription.EXPORT_TO_GALLERY - if ((arg0) == (SaveDescription.QUICK_SAVE_TO_GALLERY.value)) - return SaveDescription.QUICK_SAVE_TO_GALLERY - if ((arg0) == (SaveDescription.RESAVE_TO_GALLERY.value)) - return SaveDescription.RESAVE_TO_GALLERY - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): SaveDescription { - if ((arg0) == (SaveDescription.DOWNLOAD.ordinal)) - return SaveDescription.DOWNLOAD - if ((arg0) == (SaveDescription.DOWNLOAD_FILE.ordinal)) - return SaveDescription.DOWNLOAD_FILE - if ((arg0) == (SaveDescription.SAVE.ordinal)) - return SaveDescription.SAVE - if ((arg0) == (SaveDescription.SAVE_IMAGE.ordinal)) - return SaveDescription.SAVE_IMAGE - if ((arg0) == (SaveDescription.SAVE_FILE.ordinal)) - return SaveDescription.SAVE_FILE - if ((arg0) == (SaveDescription.DOWNLOAD_AND_SHARE.ordinal)) - return SaveDescription.DOWNLOAD_AND_SHARE - if ((arg0) == (SaveDescription.RECEIVE.ordinal)) - return SaveDescription.RECEIVE - if ((arg0) == (SaveDescription.CONTINUE_TO_RECEIVE.ordinal)) - return SaveDescription.CONTINUE_TO_RECEIVE - if ((arg0) == (SaveDescription.SAVE_TO_GALLERY.ordinal)) - return SaveDescription.SAVE_TO_GALLERY - if ((arg0) == (SaveDescription.EXPORT_TO_GALLERY.ordinal)) - return SaveDescription.EXPORT_TO_GALLERY - if ((arg0) == (SaveDescription.QUICK_SAVE_TO_GALLERY.ordinal)) - return SaveDescription.QUICK_SAVE_TO_GALLERY - if ((arg0) == (SaveDescription.RESAVE_TO_GALLERY.ordinal)) - return SaveDescription.RESAVE_TO_GALLERY - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class SaveButtonOnClickResult { - static readonly SUCCESS: SaveButtonOnClickResult = new SaveButtonOnClickResult(0,0) - static readonly TEMPORARY_AUTHORIZATION_FAILED: SaveButtonOnClickResult = new SaveButtonOnClickResult(1,1) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): SaveButtonOnClickResult { - if ((arg0) == (SaveButtonOnClickResult.SUCCESS.value)) - return SaveButtonOnClickResult.SUCCESS - if ((arg0) == (SaveButtonOnClickResult.TEMPORARY_AUTHORIZATION_FAILED.value)) - return SaveButtonOnClickResult.TEMPORARY_AUTHORIZATION_FAILED - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): SaveButtonOnClickResult { - if ((arg0) == (SaveButtonOnClickResult.SUCCESS.ordinal)) - return SaveButtonOnClickResult.SUCCESS - if ((arg0) == (SaveButtonOnClickResult.TEMPORARY_AUTHORIZATION_FAILED.ordinal)) - return SaveButtonOnClickResult.TEMPORARY_AUTHORIZATION_FAILED - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class ScrollDirection { - static readonly VERTICAL: ScrollDirection = new ScrollDirection(0,0) - static readonly Vertical: ScrollDirection = ScrollDirection.VERTICAL - static readonly HORIZONTAL: ScrollDirection = new ScrollDirection(1,1) - static readonly Horizontal: ScrollDirection = ScrollDirection.HORIZONTAL - static readonly FREE: ScrollDirection = new ScrollDirection(2,2) - static readonly Free: ScrollDirection = ScrollDirection.FREE - static readonly NONE: ScrollDirection = new ScrollDirection(3,3) - static readonly None: ScrollDirection = ScrollDirection.NONE - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): ScrollDirection { - if ((arg0) == (ScrollDirection.VERTICAL.value)) - return ScrollDirection.VERTICAL - if ((arg0) == (ScrollDirection.HORIZONTAL.value)) - return ScrollDirection.HORIZONTAL - if ((arg0) == (ScrollDirection.FREE.value)) - return ScrollDirection.FREE - if ((arg0) == (ScrollDirection.NONE.value)) - return ScrollDirection.NONE - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): ScrollDirection { - if ((arg0) == (ScrollDirection.VERTICAL.ordinal)) - return ScrollDirection.VERTICAL - if ((arg0) == (ScrollDirection.HORIZONTAL.ordinal)) - return ScrollDirection.HORIZONTAL - if ((arg0) == (ScrollDirection.FREE.ordinal)) - return ScrollDirection.FREE - if ((arg0) == (ScrollDirection.NONE.ordinal)) - return ScrollDirection.NONE - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class ScrollAlign { - static readonly START: ScrollAlign = new ScrollAlign(0,0) - static readonly CENTER: ScrollAlign = new ScrollAlign(1,1) - static readonly END: ScrollAlign = new ScrollAlign(2,2) - static readonly AUTO: ScrollAlign = new ScrollAlign(3,3) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): ScrollAlign { - if ((arg0) == (ScrollAlign.START.value)) - return ScrollAlign.START - if ((arg0) == (ScrollAlign.CENTER.value)) - return ScrollAlign.CENTER - if ((arg0) == (ScrollAlign.END.value)) - return ScrollAlign.END - if ((arg0) == (ScrollAlign.AUTO.value)) - return ScrollAlign.AUTO - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): ScrollAlign { - if ((arg0) == (ScrollAlign.START.ordinal)) - return ScrollAlign.START - if ((arg0) == (ScrollAlign.CENTER.ordinal)) - return ScrollAlign.CENTER - if ((arg0) == (ScrollAlign.END.ordinal)) - return ScrollAlign.END - if ((arg0) == (ScrollAlign.AUTO.ordinal)) - return ScrollAlign.AUTO - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class ScrollBarDirection { - static readonly VERTICAL: ScrollBarDirection = new ScrollBarDirection(0,0) - static readonly Vertical: ScrollBarDirection = ScrollBarDirection.VERTICAL - static readonly HORIZONTAL: ScrollBarDirection = new ScrollBarDirection(1,1) - static readonly Horizontal: ScrollBarDirection = ScrollBarDirection.HORIZONTAL - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): ScrollBarDirection { - if ((arg0) == (ScrollBarDirection.VERTICAL.value)) - return ScrollBarDirection.VERTICAL - if ((arg0) == (ScrollBarDirection.HORIZONTAL.value)) - return ScrollBarDirection.HORIZONTAL - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): ScrollBarDirection { - if ((arg0) == (ScrollBarDirection.VERTICAL.ordinal)) - return ScrollBarDirection.VERTICAL - if ((arg0) == (ScrollBarDirection.HORIZONTAL.ordinal)) - return ScrollBarDirection.HORIZONTAL - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class CancelButtonStyle { - static readonly CONSTANT: CancelButtonStyle = new CancelButtonStyle(0,0) - static readonly INVISIBLE: CancelButtonStyle = new CancelButtonStyle(1,1) - static readonly INPUT: CancelButtonStyle = new CancelButtonStyle(2,2) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): CancelButtonStyle { - if ((arg0) == (CancelButtonStyle.CONSTANT.value)) - return CancelButtonStyle.CONSTANT - if ((arg0) == (CancelButtonStyle.INVISIBLE.value)) - return CancelButtonStyle.INVISIBLE - if ((arg0) == (CancelButtonStyle.INPUT.value)) - return CancelButtonStyle.INPUT - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): CancelButtonStyle { - if ((arg0) == (CancelButtonStyle.CONSTANT.ordinal)) - return CancelButtonStyle.CONSTANT - if ((arg0) == (CancelButtonStyle.INVISIBLE.ordinal)) - return CancelButtonStyle.INVISIBLE - if ((arg0) == (CancelButtonStyle.INPUT.ordinal)) - return CancelButtonStyle.INPUT - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class SearchType { - static readonly NORMAL: SearchType = new SearchType(0,0) - static readonly NUMBER: SearchType = new SearchType(2,1) - static readonly PHONE_NUMBER: SearchType = new SearchType(3,2) - static readonly EMAIL: SearchType = new SearchType(5,3) - static readonly NUMBER_DECIMAL: SearchType = new SearchType(12,4) - static readonly URL: SearchType = new SearchType(13,5) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): SearchType { - if ((arg0) == (SearchType.NORMAL.value)) - return SearchType.NORMAL - if ((arg0) == (SearchType.NUMBER.value)) - return SearchType.NUMBER - if ((arg0) == (SearchType.PHONE_NUMBER.value)) - return SearchType.PHONE_NUMBER - if ((arg0) == (SearchType.EMAIL.value)) - return SearchType.EMAIL - if ((arg0) == (SearchType.NUMBER_DECIMAL.value)) - return SearchType.NUMBER_DECIMAL - if ((arg0) == (SearchType.URL.value)) - return SearchType.URL - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): SearchType { - if ((arg0) == (SearchType.NORMAL.ordinal)) - return SearchType.NORMAL - if ((arg0) == (SearchType.NUMBER.ordinal)) - return SearchType.NUMBER - if ((arg0) == (SearchType.PHONE_NUMBER.ordinal)) - return SearchType.PHONE_NUMBER - if ((arg0) == (SearchType.EMAIL.ordinal)) - return SearchType.EMAIL - if ((arg0) == (SearchType.NUMBER_DECIMAL.ordinal)) - return SearchType.NUMBER_DECIMAL - if ((arg0) == (SearchType.URL.ordinal)) - return SearchType.URL - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class SecurityComponentLayoutDirection { - static readonly HORIZONTAL: SecurityComponentLayoutDirection = new SecurityComponentLayoutDirection(0,0) - static readonly VERTICAL: SecurityComponentLayoutDirection = new SecurityComponentLayoutDirection(1,1) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): SecurityComponentLayoutDirection { - if ((arg0) == (SecurityComponentLayoutDirection.HORIZONTAL.value)) - return SecurityComponentLayoutDirection.HORIZONTAL - if ((arg0) == (SecurityComponentLayoutDirection.VERTICAL.value)) - return SecurityComponentLayoutDirection.VERTICAL - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): SecurityComponentLayoutDirection { - if ((arg0) == (SecurityComponentLayoutDirection.HORIZONTAL.ordinal)) - return SecurityComponentLayoutDirection.HORIZONTAL - if ((arg0) == (SecurityComponentLayoutDirection.VERTICAL.ordinal)) - return SecurityComponentLayoutDirection.VERTICAL - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class ArrowPosition { - static readonly END: ArrowPosition = new ArrowPosition(0,0) - static readonly START: ArrowPosition = new ArrowPosition(1,1) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): ArrowPosition { - if ((arg0) == (ArrowPosition.END.value)) - return ArrowPosition.END - if ((arg0) == (ArrowPosition.START.value)) - return ArrowPosition.START - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): ArrowPosition { - if ((arg0) == (ArrowPosition.END.ordinal)) - return ArrowPosition.END - if ((arg0) == (ArrowPosition.START.ordinal)) - return ArrowPosition.START - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class MenuAlignType { - static readonly START: MenuAlignType = new MenuAlignType(0,0) - static readonly CENTER: MenuAlignType = new MenuAlignType(1,1) - static readonly END: MenuAlignType = new MenuAlignType(2,2) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): MenuAlignType { - if ((arg0) == (MenuAlignType.START.value)) - return MenuAlignType.START - if ((arg0) == (MenuAlignType.CENTER.value)) - return MenuAlignType.CENTER - if ((arg0) == (MenuAlignType.END.value)) - return MenuAlignType.END - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): MenuAlignType { - if ((arg0) == (MenuAlignType.START.ordinal)) - return MenuAlignType.START - if ((arg0) == (MenuAlignType.CENTER.ordinal)) - return MenuAlignType.CENTER - if ((arg0) == (MenuAlignType.END.ordinal)) - return MenuAlignType.END - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class SliderStyle { - static readonly OUT_SET: SliderStyle = new SliderStyle(0,0) - static readonly OutSet: SliderStyle = SliderStyle.OUT_SET - static readonly IN_SET: SliderStyle = new SliderStyle(1,1) - static readonly InSet: SliderStyle = SliderStyle.IN_SET - static readonly NONE: SliderStyle = new SliderStyle(2,2) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): SliderStyle { - if ((arg0) == (SliderStyle.OUT_SET.value)) - return SliderStyle.OUT_SET - if ((arg0) == (SliderStyle.IN_SET.value)) - return SliderStyle.IN_SET - if ((arg0) == (SliderStyle.NONE.value)) - return SliderStyle.NONE - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): SliderStyle { - if ((arg0) == (SliderStyle.OUT_SET.ordinal)) - return SliderStyle.OUT_SET - if ((arg0) == (SliderStyle.IN_SET.ordinal)) - return SliderStyle.IN_SET - if ((arg0) == (SliderStyle.NONE.ordinal)) - return SliderStyle.NONE - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class SliderChangeMode { - static readonly BEGIN: SliderChangeMode = new SliderChangeMode(0,0) - static readonly Begin: SliderChangeMode = SliderChangeMode.BEGIN - static readonly MOVING: SliderChangeMode = new SliderChangeMode(1,1) - static readonly Moving: SliderChangeMode = SliderChangeMode.MOVING - static readonly END: SliderChangeMode = new SliderChangeMode(2,2) - static readonly End: SliderChangeMode = SliderChangeMode.END - static readonly CLICK: SliderChangeMode = new SliderChangeMode(3,3) - static readonly Click: SliderChangeMode = SliderChangeMode.CLICK - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): SliderChangeMode { - if ((arg0) == (SliderChangeMode.BEGIN.value)) - return SliderChangeMode.BEGIN - if ((arg0) == (SliderChangeMode.MOVING.value)) - return SliderChangeMode.MOVING - if ((arg0) == (SliderChangeMode.END.value)) - return SliderChangeMode.END - if ((arg0) == (SliderChangeMode.CLICK.value)) - return SliderChangeMode.CLICK - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): SliderChangeMode { - if ((arg0) == (SliderChangeMode.BEGIN.ordinal)) - return SliderChangeMode.BEGIN - if ((arg0) == (SliderChangeMode.MOVING.ordinal)) - return SliderChangeMode.MOVING - if ((arg0) == (SliderChangeMode.END.ordinal)) - return SliderChangeMode.END - if ((arg0) == (SliderChangeMode.CLICK.ordinal)) - return SliderChangeMode.CLICK - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class SliderInteraction { - static readonly SLIDE_AND_CLICK: SliderInteraction = new SliderInteraction(0,0) - static readonly SLIDE_ONLY: SliderInteraction = new SliderInteraction(1,1) - static readonly SLIDE_AND_CLICK_UP: SliderInteraction = new SliderInteraction(2,2) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): SliderInteraction { - if ((arg0) == (SliderInteraction.SLIDE_AND_CLICK.value)) - return SliderInteraction.SLIDE_AND_CLICK - if ((arg0) == (SliderInteraction.SLIDE_ONLY.value)) - return SliderInteraction.SLIDE_ONLY - if ((arg0) == (SliderInteraction.SLIDE_AND_CLICK_UP.value)) - return SliderInteraction.SLIDE_AND_CLICK_UP - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): SliderInteraction { - if ((arg0) == (SliderInteraction.SLIDE_AND_CLICK.ordinal)) - return SliderInteraction.SLIDE_AND_CLICK - if ((arg0) == (SliderInteraction.SLIDE_ONLY.ordinal)) - return SliderInteraction.SLIDE_ONLY - if ((arg0) == (SliderInteraction.SLIDE_AND_CLICK_UP.ordinal)) - return SliderInteraction.SLIDE_AND_CLICK_UP - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class SliderBlockType { - static readonly DEFAULT: SliderBlockType = new SliderBlockType(0,0) - static readonly IMAGE: SliderBlockType = new SliderBlockType(1,1) - static readonly SHAPE: SliderBlockType = new SliderBlockType(2,2) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): SliderBlockType { - if ((arg0) == (SliderBlockType.DEFAULT.value)) - return SliderBlockType.DEFAULT - if ((arg0) == (SliderBlockType.IMAGE.value)) - return SliderBlockType.IMAGE - if ((arg0) == (SliderBlockType.SHAPE.value)) - return SliderBlockType.SHAPE - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): SliderBlockType { - if ((arg0) == (SliderBlockType.DEFAULT.ordinal)) - return SliderBlockType.DEFAULT - if ((arg0) == (SliderBlockType.IMAGE.ordinal)) - return SliderBlockType.IMAGE - if ((arg0) == (SliderBlockType.SHAPE.ordinal)) - return SliderBlockType.SHAPE - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class ColorMode { - static readonly LIGHT: ColorMode = new ColorMode(0,0) - static readonly DARK: ColorMode = new ColorMode(1,1) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): ColorMode { - if ((arg0) == (ColorMode.LIGHT.value)) - return ColorMode.LIGHT - if ((arg0) == (ColorMode.DARK.value)) - return ColorMode.DARK - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): ColorMode { - if ((arg0) == (ColorMode.LIGHT.ordinal)) - return ColorMode.LIGHT - if ((arg0) == (ColorMode.DARK.ordinal)) - return ColorMode.DARK - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class LayoutDirection { - static readonly LTR: LayoutDirection = new LayoutDirection(0,0) - static readonly RTL: LayoutDirection = new LayoutDirection(1,1) - static readonly AUTO: LayoutDirection = new LayoutDirection(2,2) - static readonly Auto: LayoutDirection = LayoutDirection.AUTO - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): LayoutDirection { - if ((arg0) == (LayoutDirection.LTR.value)) - return LayoutDirection.LTR - if ((arg0) == (LayoutDirection.RTL.value)) - return LayoutDirection.RTL - if ((arg0) == (LayoutDirection.AUTO.value)) - return LayoutDirection.AUTO - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): LayoutDirection { - if ((arg0) == (LayoutDirection.LTR.ordinal)) - return LayoutDirection.LTR - if ((arg0) == (LayoutDirection.RTL.ordinal)) - return LayoutDirection.RTL - if ((arg0) == (LayoutDirection.AUTO.ordinal)) - return LayoutDirection.AUTO - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class ItemState { - static readonly NORMAL: ItemState = new ItemState(0,0) - static readonly Normal: ItemState = ItemState.NORMAL - static readonly DISABLED: ItemState = new ItemState(1,1) - static readonly Disabled: ItemState = ItemState.DISABLED - static readonly WAITING: ItemState = new ItemState(2,2) - static readonly Waiting: ItemState = ItemState.WAITING - static readonly SKIP: ItemState = new ItemState(3,3) - static readonly Skip: ItemState = ItemState.SKIP - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): ItemState { - if ((arg0) == (ItemState.NORMAL.value)) - return ItemState.NORMAL - if ((arg0) == (ItemState.DISABLED.value)) - return ItemState.DISABLED - if ((arg0) == (ItemState.WAITING.value)) - return ItemState.WAITING - if ((arg0) == (ItemState.SKIP.value)) - return ItemState.SKIP - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): ItemState { - if ((arg0) == (ItemState.NORMAL.ordinal)) - return ItemState.NORMAL - if ((arg0) == (ItemState.DISABLED.ordinal)) - return ItemState.DISABLED - if ((arg0) == (ItemState.WAITING.ordinal)) - return ItemState.WAITING - if ((arg0) == (ItemState.SKIP.ordinal)) - return ItemState.SKIP - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class SwiperDisplayMode { - static readonly LEGACY_STRETCH: SwiperDisplayMode = new SwiperDisplayMode(0,0) - static readonly Stretch: SwiperDisplayMode = SwiperDisplayMode.LEGACY_STRETCH - static readonly LEGACY_AUTO_LINEAR: SwiperDisplayMode = new SwiperDisplayMode(1,1) - static readonly AutoLinear: SwiperDisplayMode = SwiperDisplayMode.LEGACY_AUTO_LINEAR - static readonly STRETCH: SwiperDisplayMode = new SwiperDisplayMode(2,2) - static readonly AUTO_LINEAR: SwiperDisplayMode = new SwiperDisplayMode(3,3) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): SwiperDisplayMode { - if ((arg0) == (SwiperDisplayMode.LEGACY_STRETCH.value)) - return SwiperDisplayMode.LEGACY_STRETCH - if ((arg0) == (SwiperDisplayMode.LEGACY_AUTO_LINEAR.value)) - return SwiperDisplayMode.LEGACY_AUTO_LINEAR - if ((arg0) == (SwiperDisplayMode.STRETCH.value)) - return SwiperDisplayMode.STRETCH - if ((arg0) == (SwiperDisplayMode.AUTO_LINEAR.value)) - return SwiperDisplayMode.AUTO_LINEAR - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): SwiperDisplayMode { - if ((arg0) == (SwiperDisplayMode.LEGACY_STRETCH.ordinal)) - return SwiperDisplayMode.LEGACY_STRETCH - if ((arg0) == (SwiperDisplayMode.LEGACY_AUTO_LINEAR.ordinal)) - return SwiperDisplayMode.LEGACY_AUTO_LINEAR - if ((arg0) == (SwiperDisplayMode.STRETCH.ordinal)) - return SwiperDisplayMode.STRETCH - if ((arg0) == (SwiperDisplayMode.AUTO_LINEAR.ordinal)) - return SwiperDisplayMode.AUTO_LINEAR - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class SwiperNestedScrollMode { - static readonly SELF_ONLY: SwiperNestedScrollMode = new SwiperNestedScrollMode(0,0) - static readonly SELF_FIRST: SwiperNestedScrollMode = new SwiperNestedScrollMode(1,1) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): SwiperNestedScrollMode { - if ((arg0) == (SwiperNestedScrollMode.SELF_ONLY.value)) - return SwiperNestedScrollMode.SELF_ONLY - if ((arg0) == (SwiperNestedScrollMode.SELF_FIRST.value)) - return SwiperNestedScrollMode.SELF_FIRST - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): SwiperNestedScrollMode { - if ((arg0) == (SwiperNestedScrollMode.SELF_ONLY.ordinal)) - return SwiperNestedScrollMode.SELF_ONLY - if ((arg0) == (SwiperNestedScrollMode.SELF_FIRST.ordinal)) - return SwiperNestedScrollMode.SELF_FIRST - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class SymbolRenderingStrategy { - static readonly SINGLE: SymbolRenderingStrategy = new SymbolRenderingStrategy(0,0) - static readonly MULTIPLE_COLOR: SymbolRenderingStrategy = new SymbolRenderingStrategy(1,1) - static readonly MULTIPLE_OPACITY: SymbolRenderingStrategy = new SymbolRenderingStrategy(2,2) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): SymbolRenderingStrategy { - if ((arg0) == (SymbolRenderingStrategy.SINGLE.value)) - return SymbolRenderingStrategy.SINGLE - if ((arg0) == (SymbolRenderingStrategy.MULTIPLE_COLOR.value)) - return SymbolRenderingStrategy.MULTIPLE_COLOR - if ((arg0) == (SymbolRenderingStrategy.MULTIPLE_OPACITY.value)) - return SymbolRenderingStrategy.MULTIPLE_OPACITY - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): SymbolRenderingStrategy { - if ((arg0) == (SymbolRenderingStrategy.SINGLE.ordinal)) - return SymbolRenderingStrategy.SINGLE - if ((arg0) == (SymbolRenderingStrategy.MULTIPLE_COLOR.ordinal)) - return SymbolRenderingStrategy.MULTIPLE_COLOR - if ((arg0) == (SymbolRenderingStrategy.MULTIPLE_OPACITY.ordinal)) - return SymbolRenderingStrategy.MULTIPLE_OPACITY - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class SymbolEffectStrategy { - static readonly NONE: SymbolEffectStrategy = new SymbolEffectStrategy(0,0) - static readonly SCALE: SymbolEffectStrategy = new SymbolEffectStrategy(1,1) - static readonly HIERARCHICAL: SymbolEffectStrategy = new SymbolEffectStrategy(2,2) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): SymbolEffectStrategy { - if ((arg0) == (SymbolEffectStrategy.NONE.value)) - return SymbolEffectStrategy.NONE - if ((arg0) == (SymbolEffectStrategy.SCALE.value)) - return SymbolEffectStrategy.SCALE - if ((arg0) == (SymbolEffectStrategy.HIERARCHICAL.value)) - return SymbolEffectStrategy.HIERARCHICAL - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): SymbolEffectStrategy { - if ((arg0) == (SymbolEffectStrategy.NONE.ordinal)) - return SymbolEffectStrategy.NONE - if ((arg0) == (SymbolEffectStrategy.SCALE.ordinal)) - return SymbolEffectStrategy.SCALE - if ((arg0) == (SymbolEffectStrategy.HIERARCHICAL.ordinal)) - return SymbolEffectStrategy.HIERARCHICAL - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class EffectDirection { - static readonly DOWN: EffectDirection = new EffectDirection(0,0) - static readonly UP: EffectDirection = new EffectDirection(1,1) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): EffectDirection { - if ((arg0) == (EffectDirection.DOWN.value)) - return EffectDirection.DOWN - if ((arg0) == (EffectDirection.UP.value)) - return EffectDirection.UP - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): EffectDirection { - if ((arg0) == (EffectDirection.DOWN.ordinal)) - return EffectDirection.DOWN - if ((arg0) == (EffectDirection.UP.ordinal)) - return EffectDirection.UP - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class EffectScope { - static readonly LAYER: EffectScope = new EffectScope(0,0) - static readonly WHOLE: EffectScope = new EffectScope(1,1) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): EffectScope { - if ((arg0) == (EffectScope.LAYER.value)) - return EffectScope.LAYER - if ((arg0) == (EffectScope.WHOLE.value)) - return EffectScope.WHOLE - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): EffectScope { - if ((arg0) == (EffectScope.LAYER.ordinal)) - return EffectScope.LAYER - if ((arg0) == (EffectScope.WHOLE.ordinal)) - return EffectScope.WHOLE - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class EffectFillStyle { - static readonly CUMULATIVE: EffectFillStyle = new EffectFillStyle(0,0) - static readonly ITERATIVE: EffectFillStyle = new EffectFillStyle(1,1) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): EffectFillStyle { - if ((arg0) == (EffectFillStyle.CUMULATIVE.value)) - return EffectFillStyle.CUMULATIVE - if ((arg0) == (EffectFillStyle.ITERATIVE.value)) - return EffectFillStyle.ITERATIVE - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): EffectFillStyle { - if ((arg0) == (EffectFillStyle.CUMULATIVE.ordinal)) - return EffectFillStyle.CUMULATIVE - if ((arg0) == (EffectFillStyle.ITERATIVE.ordinal)) - return EffectFillStyle.ITERATIVE - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class BarMode { - static readonly SCROLLABLE: BarMode = new BarMode(0,0) - static readonly Scrollable: BarMode = BarMode.SCROLLABLE - static readonly FIXED: BarMode = new BarMode(1,1) - static readonly Fixed: BarMode = BarMode.FIXED - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): BarMode { - if ((arg0) == (BarMode.SCROLLABLE.value)) - return BarMode.SCROLLABLE - if ((arg0) == (BarMode.FIXED.value)) - return BarMode.FIXED - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): BarMode { - if ((arg0) == (BarMode.SCROLLABLE.ordinal)) - return BarMode.SCROLLABLE - if ((arg0) == (BarMode.FIXED.ordinal)) - return BarMode.FIXED - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class AnimationMode { - static readonly CONTENT_FIRST: AnimationMode = new AnimationMode(0,0) - static readonly ACTION_FIRST: AnimationMode = new AnimationMode(1,1) - static readonly NO_ANIMATION: AnimationMode = new AnimationMode(2,2) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): AnimationMode { - if ((arg0) == (AnimationMode.CONTENT_FIRST.value)) - return AnimationMode.CONTENT_FIRST - if ((arg0) == (AnimationMode.ACTION_FIRST.value)) - return AnimationMode.ACTION_FIRST - if ((arg0) == (AnimationMode.NO_ANIMATION.value)) - return AnimationMode.NO_ANIMATION - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): AnimationMode { - if ((arg0) == (AnimationMode.CONTENT_FIRST.ordinal)) - return AnimationMode.CONTENT_FIRST - if ((arg0) == (AnimationMode.ACTION_FIRST.ordinal)) - return AnimationMode.ACTION_FIRST - if ((arg0) == (AnimationMode.NO_ANIMATION.ordinal)) - return AnimationMode.NO_ANIMATION - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class BarPosition { - static readonly START: BarPosition = new BarPosition(0,0) - static readonly Start: BarPosition = BarPosition.START - static readonly END: BarPosition = new BarPosition(1,1) - static readonly End: BarPosition = BarPosition.END - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): BarPosition { - if ((arg0) == (BarPosition.START.value)) - return BarPosition.START - if ((arg0) == (BarPosition.END.value)) - return BarPosition.END - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): BarPosition { - if ((arg0) == (BarPosition.START.ordinal)) - return BarPosition.START - if ((arg0) == (BarPosition.END.ordinal)) - return BarPosition.END - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class LayoutStyle { - static readonly ALWAYS_CENTER: LayoutStyle = new LayoutStyle(0,0) - static readonly ALWAYS_AVERAGE_SPLIT: LayoutStyle = new LayoutStyle(1,1) - static readonly SPACE_BETWEEN_OR_CENTER: LayoutStyle = new LayoutStyle(2,2) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): LayoutStyle { - if ((arg0) == (LayoutStyle.ALWAYS_CENTER.value)) - return LayoutStyle.ALWAYS_CENTER - if ((arg0) == (LayoutStyle.ALWAYS_AVERAGE_SPLIT.value)) - return LayoutStyle.ALWAYS_AVERAGE_SPLIT - if ((arg0) == (LayoutStyle.SPACE_BETWEEN_OR_CENTER.value)) - return LayoutStyle.SPACE_BETWEEN_OR_CENTER - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): LayoutStyle { - if ((arg0) == (LayoutStyle.ALWAYS_CENTER.ordinal)) - return LayoutStyle.ALWAYS_CENTER - if ((arg0) == (LayoutStyle.ALWAYS_AVERAGE_SPLIT.ordinal)) - return LayoutStyle.ALWAYS_AVERAGE_SPLIT - if ((arg0) == (LayoutStyle.SPACE_BETWEEN_OR_CENTER.ordinal)) - return LayoutStyle.SPACE_BETWEEN_OR_CENTER - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class SelectedMode { - static readonly INDICATOR: SelectedMode = new SelectedMode(0,0) - static readonly BOARD: SelectedMode = new SelectedMode(1,1) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): SelectedMode { - if ((arg0) == (SelectedMode.INDICATOR.value)) - return SelectedMode.INDICATOR - if ((arg0) == (SelectedMode.BOARD.value)) - return SelectedMode.BOARD - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): SelectedMode { - if ((arg0) == (SelectedMode.INDICATOR.ordinal)) - return SelectedMode.INDICATOR - if ((arg0) == (SelectedMode.BOARD.ordinal)) - return SelectedMode.BOARD - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class LayoutMode { - static readonly AUTO: LayoutMode = new LayoutMode(0,0) - static readonly VERTICAL: LayoutMode = new LayoutMode(1,1) - static readonly HORIZONTAL: LayoutMode = new LayoutMode(2,2) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): LayoutMode { - if ((arg0) == (LayoutMode.AUTO.value)) - return LayoutMode.AUTO - if ((arg0) == (LayoutMode.VERTICAL.value)) - return LayoutMode.VERTICAL - if ((arg0) == (LayoutMode.HORIZONTAL.value)) - return LayoutMode.HORIZONTAL - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): LayoutMode { - if ((arg0) == (LayoutMode.AUTO.ordinal)) - return LayoutMode.AUTO - if ((arg0) == (LayoutMode.VERTICAL.ordinal)) - return LayoutMode.VERTICAL - if ((arg0) == (LayoutMode.HORIZONTAL.ordinal)) - return LayoutMode.HORIZONTAL - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class TextSpanType { - static readonly TEXT: TextSpanType = new TextSpanType(0,0) - static readonly IMAGE: TextSpanType = new TextSpanType(1,1) - static readonly MIXED: TextSpanType = new TextSpanType(2,2) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): TextSpanType { - if ((arg0) == (TextSpanType.TEXT.value)) - return TextSpanType.TEXT - if ((arg0) == (TextSpanType.IMAGE.value)) - return TextSpanType.IMAGE - if ((arg0) == (TextSpanType.MIXED.value)) - return TextSpanType.MIXED - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): TextSpanType { - if ((arg0) == (TextSpanType.TEXT.ordinal)) - return TextSpanType.TEXT - if ((arg0) == (TextSpanType.IMAGE.ordinal)) - return TextSpanType.IMAGE - if ((arg0) == (TextSpanType.MIXED.ordinal)) - return TextSpanType.MIXED - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class TextResponseType { - static readonly RIGHT_CLICK: TextResponseType = new TextResponseType(0,0) - static readonly LONG_PRESS: TextResponseType = new TextResponseType(1,1) - static readonly SELECT: TextResponseType = new TextResponseType(2,2) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): TextResponseType { - if ((arg0) == (TextResponseType.RIGHT_CLICK.value)) - return TextResponseType.RIGHT_CLICK - if ((arg0) == (TextResponseType.LONG_PRESS.value)) - return TextResponseType.LONG_PRESS - if ((arg0) == (TextResponseType.SELECT.value)) - return TextResponseType.SELECT - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): TextResponseType { - if ((arg0) == (TextResponseType.RIGHT_CLICK.ordinal)) - return TextResponseType.RIGHT_CLICK - if ((arg0) == (TextResponseType.LONG_PRESS.ordinal)) - return TextResponseType.LONG_PRESS - if ((arg0) == (TextResponseType.SELECT.ordinal)) - return TextResponseType.SELECT - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class TextAreaType { - static readonly NORMAL: TextAreaType = new TextAreaType(0,0) - static readonly NUMBER: TextAreaType = new TextAreaType(2,1) - static readonly PHONE_NUMBER: TextAreaType = new TextAreaType(3,2) - static readonly EMAIL: TextAreaType = new TextAreaType(5,3) - static readonly NUMBER_DECIMAL: TextAreaType = new TextAreaType(12,4) - static readonly URL: TextAreaType = new TextAreaType(13,5) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): TextAreaType { - if ((arg0) == (TextAreaType.NORMAL.value)) - return TextAreaType.NORMAL - if ((arg0) == (TextAreaType.NUMBER.value)) - return TextAreaType.NUMBER - if ((arg0) == (TextAreaType.PHONE_NUMBER.value)) - return TextAreaType.PHONE_NUMBER - if ((arg0) == (TextAreaType.EMAIL.value)) - return TextAreaType.EMAIL - if ((arg0) == (TextAreaType.NUMBER_DECIMAL.value)) - return TextAreaType.NUMBER_DECIMAL - if ((arg0) == (TextAreaType.URL.value)) - return TextAreaType.URL - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): TextAreaType { - if ((arg0) == (TextAreaType.NORMAL.ordinal)) - return TextAreaType.NORMAL - if ((arg0) == (TextAreaType.NUMBER.ordinal)) - return TextAreaType.NUMBER - if ((arg0) == (TextAreaType.PHONE_NUMBER.ordinal)) - return TextAreaType.PHONE_NUMBER - if ((arg0) == (TextAreaType.EMAIL.ordinal)) - return TextAreaType.EMAIL - if ((arg0) == (TextAreaType.NUMBER_DECIMAL.ordinal)) - return TextAreaType.NUMBER_DECIMAL - if ((arg0) == (TextAreaType.URL.ordinal)) - return TextAreaType.URL - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class ContentType { - static readonly USER_NAME: ContentType = new ContentType(0,0) - static readonly PASSWORD: ContentType = new ContentType(1,1) - static readonly NEW_PASSWORD: ContentType = new ContentType(2,2) - static readonly FULL_STREET_ADDRESS: ContentType = new ContentType(3,3) - static readonly HOUSE_NUMBER: ContentType = new ContentType(4,4) - static readonly DISTRICT_ADDRESS: ContentType = new ContentType(5,5) - static readonly CITY_ADDRESS: ContentType = new ContentType(6,6) - static readonly PROVINCE_ADDRESS: ContentType = new ContentType(7,7) - static readonly COUNTRY_ADDRESS: ContentType = new ContentType(8,8) - static readonly PERSON_FULL_NAME: ContentType = new ContentType(9,9) - static readonly PERSON_LAST_NAME: ContentType = new ContentType(10,10) - static readonly PERSON_FIRST_NAME: ContentType = new ContentType(11,11) - static readonly PHONE_NUMBER: ContentType = new ContentType(12,12) - static readonly PHONE_COUNTRY_CODE: ContentType = new ContentType(13,13) - static readonly FULL_PHONE_NUMBER: ContentType = new ContentType(14,14) - static readonly EMAIL_ADDRESS: ContentType = new ContentType(15,15) - static readonly BANK_CARD_NUMBER: ContentType = new ContentType(16,16) - static readonly ID_CARD_NUMBER: ContentType = new ContentType(17,17) - static readonly NICKNAME: ContentType = new ContentType(23,18) - static readonly DETAIL_INFO_WITHOUT_STREET: ContentType = new ContentType(24,19) - static readonly FORMAT_ADDRESS: ContentType = new ContentType(25,20) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): ContentType { - if ((arg0) == (ContentType.USER_NAME.value)) - return ContentType.USER_NAME - if ((arg0) == (ContentType.PASSWORD.value)) - return ContentType.PASSWORD - if ((arg0) == (ContentType.NEW_PASSWORD.value)) - return ContentType.NEW_PASSWORD - if ((arg0) == (ContentType.FULL_STREET_ADDRESS.value)) - return ContentType.FULL_STREET_ADDRESS - if ((arg0) == (ContentType.HOUSE_NUMBER.value)) - return ContentType.HOUSE_NUMBER - if ((arg0) == (ContentType.DISTRICT_ADDRESS.value)) - return ContentType.DISTRICT_ADDRESS - if ((arg0) == (ContentType.CITY_ADDRESS.value)) - return ContentType.CITY_ADDRESS - if ((arg0) == (ContentType.PROVINCE_ADDRESS.value)) - return ContentType.PROVINCE_ADDRESS - if ((arg0) == (ContentType.COUNTRY_ADDRESS.value)) - return ContentType.COUNTRY_ADDRESS - if ((arg0) == (ContentType.PERSON_FULL_NAME.value)) - return ContentType.PERSON_FULL_NAME - if ((arg0) == (ContentType.PERSON_LAST_NAME.value)) - return ContentType.PERSON_LAST_NAME - if ((arg0) == (ContentType.PERSON_FIRST_NAME.value)) - return ContentType.PERSON_FIRST_NAME - if ((arg0) == (ContentType.PHONE_NUMBER.value)) - return ContentType.PHONE_NUMBER - if ((arg0) == (ContentType.PHONE_COUNTRY_CODE.value)) - return ContentType.PHONE_COUNTRY_CODE - if ((arg0) == (ContentType.FULL_PHONE_NUMBER.value)) - return ContentType.FULL_PHONE_NUMBER - if ((arg0) == (ContentType.EMAIL_ADDRESS.value)) - return ContentType.EMAIL_ADDRESS - if ((arg0) == (ContentType.BANK_CARD_NUMBER.value)) - return ContentType.BANK_CARD_NUMBER - if ((arg0) == (ContentType.ID_CARD_NUMBER.value)) - return ContentType.ID_CARD_NUMBER - if ((arg0) == (ContentType.NICKNAME.value)) - return ContentType.NICKNAME - if ((arg0) == (ContentType.DETAIL_INFO_WITHOUT_STREET.value)) - return ContentType.DETAIL_INFO_WITHOUT_STREET - if ((arg0) == (ContentType.FORMAT_ADDRESS.value)) - return ContentType.FORMAT_ADDRESS - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): ContentType { - if ((arg0) == (ContentType.USER_NAME.ordinal)) - return ContentType.USER_NAME - if ((arg0) == (ContentType.PASSWORD.ordinal)) - return ContentType.PASSWORD - if ((arg0) == (ContentType.NEW_PASSWORD.ordinal)) - return ContentType.NEW_PASSWORD - if ((arg0) == (ContentType.FULL_STREET_ADDRESS.ordinal)) - return ContentType.FULL_STREET_ADDRESS - if ((arg0) == (ContentType.HOUSE_NUMBER.ordinal)) - return ContentType.HOUSE_NUMBER - if ((arg0) == (ContentType.DISTRICT_ADDRESS.ordinal)) - return ContentType.DISTRICT_ADDRESS - if ((arg0) == (ContentType.CITY_ADDRESS.ordinal)) - return ContentType.CITY_ADDRESS - if ((arg0) == (ContentType.PROVINCE_ADDRESS.ordinal)) - return ContentType.PROVINCE_ADDRESS - if ((arg0) == (ContentType.COUNTRY_ADDRESS.ordinal)) - return ContentType.COUNTRY_ADDRESS - if ((arg0) == (ContentType.PERSON_FULL_NAME.ordinal)) - return ContentType.PERSON_FULL_NAME - if ((arg0) == (ContentType.PERSON_LAST_NAME.ordinal)) - return ContentType.PERSON_LAST_NAME - if ((arg0) == (ContentType.PERSON_FIRST_NAME.ordinal)) - return ContentType.PERSON_FIRST_NAME - if ((arg0) == (ContentType.PHONE_NUMBER.ordinal)) - return ContentType.PHONE_NUMBER - if ((arg0) == (ContentType.PHONE_COUNTRY_CODE.ordinal)) - return ContentType.PHONE_COUNTRY_CODE - if ((arg0) == (ContentType.FULL_PHONE_NUMBER.ordinal)) - return ContentType.FULL_PHONE_NUMBER - if ((arg0) == (ContentType.EMAIL_ADDRESS.ordinal)) - return ContentType.EMAIL_ADDRESS - if ((arg0) == (ContentType.BANK_CARD_NUMBER.ordinal)) - return ContentType.BANK_CARD_NUMBER - if ((arg0) == (ContentType.ID_CARD_NUMBER.ordinal)) - return ContentType.ID_CARD_NUMBER - if ((arg0) == (ContentType.NICKNAME.ordinal)) - return ContentType.NICKNAME - if ((arg0) == (ContentType.DETAIL_INFO_WITHOUT_STREET.ordinal)) - return ContentType.DETAIL_INFO_WITHOUT_STREET - if ((arg0) == (ContentType.FORMAT_ADDRESS.ordinal)) - return ContentType.FORMAT_ADDRESS - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class TextDataDetectorType { - static readonly PHONE_NUMBER: TextDataDetectorType = new TextDataDetectorType(0,0) - static readonly URL: TextDataDetectorType = new TextDataDetectorType(1,1) - static readonly EMAIL: TextDataDetectorType = new TextDataDetectorType(2,2) - static readonly ADDRESS: TextDataDetectorType = new TextDataDetectorType(3,3) - static readonly DATE_TIME: TextDataDetectorType = new TextDataDetectorType(4,4) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): TextDataDetectorType { - if ((arg0) == (TextDataDetectorType.PHONE_NUMBER.value)) - return TextDataDetectorType.PHONE_NUMBER - if ((arg0) == (TextDataDetectorType.URL.value)) - return TextDataDetectorType.URL - if ((arg0) == (TextDataDetectorType.EMAIL.value)) - return TextDataDetectorType.EMAIL - if ((arg0) == (TextDataDetectorType.ADDRESS.value)) - return TextDataDetectorType.ADDRESS - if ((arg0) == (TextDataDetectorType.DATE_TIME.value)) - return TextDataDetectorType.DATE_TIME - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): TextDataDetectorType { - if ((arg0) == (TextDataDetectorType.PHONE_NUMBER.ordinal)) - return TextDataDetectorType.PHONE_NUMBER - if ((arg0) == (TextDataDetectorType.URL.ordinal)) - return TextDataDetectorType.URL - if ((arg0) == (TextDataDetectorType.EMAIL.ordinal)) - return TextDataDetectorType.EMAIL - if ((arg0) == (TextDataDetectorType.ADDRESS.ordinal)) - return TextDataDetectorType.ADDRESS - if ((arg0) == (TextDataDetectorType.DATE_TIME.ordinal)) - return TextDataDetectorType.DATE_TIME - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class TextDeleteDirection { - static readonly BACKWARD: TextDeleteDirection = new TextDeleteDirection(0,0) - static readonly FORWARD: TextDeleteDirection = new TextDeleteDirection(1,1) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): TextDeleteDirection { - if ((arg0) == (TextDeleteDirection.BACKWARD.value)) - return TextDeleteDirection.BACKWARD - if ((arg0) == (TextDeleteDirection.FORWARD.value)) - return TextDeleteDirection.FORWARD - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): TextDeleteDirection { - if ((arg0) == (TextDeleteDirection.BACKWARD.ordinal)) - return TextDeleteDirection.BACKWARD - if ((arg0) == (TextDeleteDirection.FORWARD.ordinal)) - return TextDeleteDirection.FORWARD - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class MenuType { - static readonly SELECTION_MENU: MenuType = new MenuType(0,0) - static readonly PREVIEW_MENU: MenuType = new MenuType(1,1) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): MenuType { - if ((arg0) == (MenuType.SELECTION_MENU.value)) - return MenuType.SELECTION_MENU - if ((arg0) == (MenuType.PREVIEW_MENU.value)) - return MenuType.PREVIEW_MENU - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): MenuType { - if ((arg0) == (MenuType.SELECTION_MENU.ordinal)) - return MenuType.SELECTION_MENU - if ((arg0) == (MenuType.PREVIEW_MENU.ordinal)) - return MenuType.PREVIEW_MENU - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class InputType { - static readonly NORMAL: InputType = new InputType(0,0) - static readonly Normal: InputType = InputType.NORMAL - static readonly NUMBER: InputType = new InputType(1,1) - static readonly Number: InputType = InputType.NUMBER - static readonly PHONE_NUMBER: InputType = new InputType(2,2) - static readonly PhoneNumber: InputType = InputType.PHONE_NUMBER - static readonly EMAIL: InputType = new InputType(3,3) - static readonly Email: InputType = InputType.EMAIL - static readonly PASSWORD: InputType = new InputType(4,4) - static readonly Password: InputType = InputType.PASSWORD - static readonly NUMBER_PASSWORD: InputType = new InputType(8,5) - static readonly SCREEN_LOCK_PASSWORD: InputType = new InputType(9,6) - static readonly USER_NAME: InputType = new InputType(10,7) - static readonly NEW_PASSWORD: InputType = new InputType(11,8) - static readonly NUMBER_DECIMAL: InputType = new InputType(12,9) - static readonly URL: InputType = new InputType(13,10) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): InputType { - if ((arg0) == (InputType.NORMAL.value)) - return InputType.NORMAL - if ((arg0) == (InputType.NUMBER.value)) - return InputType.NUMBER - if ((arg0) == (InputType.PHONE_NUMBER.value)) - return InputType.PHONE_NUMBER - if ((arg0) == (InputType.EMAIL.value)) - return InputType.EMAIL - if ((arg0) == (InputType.PASSWORD.value)) - return InputType.PASSWORD - if ((arg0) == (InputType.NUMBER_PASSWORD.value)) - return InputType.NUMBER_PASSWORD - if ((arg0) == (InputType.SCREEN_LOCK_PASSWORD.value)) - return InputType.SCREEN_LOCK_PASSWORD - if ((arg0) == (InputType.USER_NAME.value)) - return InputType.USER_NAME - if ((arg0) == (InputType.NEW_PASSWORD.value)) - return InputType.NEW_PASSWORD - if ((arg0) == (InputType.NUMBER_DECIMAL.value)) - return InputType.NUMBER_DECIMAL - if ((arg0) == (InputType.URL.value)) - return InputType.URL - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): InputType { - if ((arg0) == (InputType.NORMAL.ordinal)) - return InputType.NORMAL - if ((arg0) == (InputType.NUMBER.ordinal)) - return InputType.NUMBER - if ((arg0) == (InputType.PHONE_NUMBER.ordinal)) - return InputType.PHONE_NUMBER - if ((arg0) == (InputType.EMAIL.ordinal)) - return InputType.EMAIL - if ((arg0) == (InputType.PASSWORD.ordinal)) - return InputType.PASSWORD - if ((arg0) == (InputType.NUMBER_PASSWORD.ordinal)) - return InputType.NUMBER_PASSWORD - if ((arg0) == (InputType.SCREEN_LOCK_PASSWORD.ordinal)) - return InputType.SCREEN_LOCK_PASSWORD - if ((arg0) == (InputType.USER_NAME.ordinal)) - return InputType.USER_NAME - if ((arg0) == (InputType.NEW_PASSWORD.ordinal)) - return InputType.NEW_PASSWORD - if ((arg0) == (InputType.NUMBER_DECIMAL.ordinal)) - return InputType.NUMBER_DECIMAL - if ((arg0) == (InputType.URL.ordinal)) - return InputType.URL - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class EnterKeyType { - static readonly GO: EnterKeyType = new EnterKeyType(2,0) - static readonly Go: EnterKeyType = EnterKeyType.GO - static readonly SEARCH: EnterKeyType = new EnterKeyType(3,1) - static readonly Search: EnterKeyType = EnterKeyType.SEARCH - static readonly SEND: EnterKeyType = new EnterKeyType(4,2) - static readonly Send: EnterKeyType = EnterKeyType.SEND - static readonly NEXT: EnterKeyType = new EnterKeyType(5,3) - static readonly Next: EnterKeyType = EnterKeyType.NEXT - static readonly DONE: EnterKeyType = new EnterKeyType(6,4) - static readonly Done: EnterKeyType = EnterKeyType.DONE - static readonly PREVIOUS: EnterKeyType = new EnterKeyType(7,5) - static readonly NEW_LINE: EnterKeyType = new EnterKeyType(8,6) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): EnterKeyType { - if ((arg0) == (EnterKeyType.GO.value)) - return EnterKeyType.GO - if ((arg0) == (EnterKeyType.SEARCH.value)) - return EnterKeyType.SEARCH - if ((arg0) == (EnterKeyType.SEND.value)) - return EnterKeyType.SEND - if ((arg0) == (EnterKeyType.NEXT.value)) - return EnterKeyType.NEXT - if ((arg0) == (EnterKeyType.DONE.value)) - return EnterKeyType.DONE - if ((arg0) == (EnterKeyType.PREVIOUS.value)) - return EnterKeyType.PREVIOUS - if ((arg0) == (EnterKeyType.NEW_LINE.value)) - return EnterKeyType.NEW_LINE - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): EnterKeyType { - if ((arg0) == (EnterKeyType.GO.ordinal)) - return EnterKeyType.GO - if ((arg0) == (EnterKeyType.SEARCH.ordinal)) - return EnterKeyType.SEARCH - if ((arg0) == (EnterKeyType.SEND.ordinal)) - return EnterKeyType.SEND - if ((arg0) == (EnterKeyType.NEXT.ordinal)) - return EnterKeyType.NEXT - if ((arg0) == (EnterKeyType.DONE.ordinal)) - return EnterKeyType.DONE - if ((arg0) == (EnterKeyType.PREVIOUS.ordinal)) - return EnterKeyType.PREVIOUS - if ((arg0) == (EnterKeyType.NEW_LINE.ordinal)) - return EnterKeyType.NEW_LINE - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class TextInputStyle { - static readonly DEFAULT: TextInputStyle = new TextInputStyle(0,0) - static readonly Default: TextInputStyle = TextInputStyle.DEFAULT - static readonly INLINE: TextInputStyle = new TextInputStyle(1,1) - static readonly Inline: TextInputStyle = TextInputStyle.INLINE - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): TextInputStyle { - if ((arg0) == (TextInputStyle.DEFAULT.value)) - return TextInputStyle.DEFAULT - if ((arg0) == (TextInputStyle.INLINE.value)) - return TextInputStyle.INLINE - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): TextInputStyle { - if ((arg0) == (TextInputStyle.DEFAULT.ordinal)) - return TextInputStyle.DEFAULT - if ((arg0) == (TextInputStyle.INLINE.ordinal)) - return TextInputStyle.INLINE - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class TimePickerFormat { - static readonly HOUR_MINUTE: TimePickerFormat = new TimePickerFormat(0,0) - static readonly HOUR_MINUTE_SECOND: TimePickerFormat = new TimePickerFormat(1,1) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): TimePickerFormat { - if ((arg0) == (TimePickerFormat.HOUR_MINUTE.value)) - return TimePickerFormat.HOUR_MINUTE - if ((arg0) == (TimePickerFormat.HOUR_MINUTE_SECOND.value)) - return TimePickerFormat.HOUR_MINUTE_SECOND - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): TimePickerFormat { - if ((arg0) == (TimePickerFormat.HOUR_MINUTE.ordinal)) - return TimePickerFormat.HOUR_MINUTE - if ((arg0) == (TimePickerFormat.HOUR_MINUTE_SECOND.ordinal)) - return TimePickerFormat.HOUR_MINUTE_SECOND - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class ToggleType { - static readonly CHECKBOX: ToggleType = new ToggleType(0,0) - static readonly Checkbox: ToggleType = ToggleType.CHECKBOX - static readonly SWITCH: ToggleType = new ToggleType(1,1) - static readonly Switch: ToggleType = ToggleType.SWITCH - static readonly BUTTON: ToggleType = new ToggleType(2,2) - static readonly Button: ToggleType = ToggleType.BUTTON - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): ToggleType { - if ((arg0) == (ToggleType.CHECKBOX.value)) - return ToggleType.CHECKBOX - if ((arg0) == (ToggleType.SWITCH.value)) - return ToggleType.SWITCH - if ((arg0) == (ToggleType.BUTTON.value)) - return ToggleType.BUTTON - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): ToggleType { - if ((arg0) == (ToggleType.CHECKBOX.ordinal)) - return ToggleType.CHECKBOX - if ((arg0) == (ToggleType.SWITCH.ordinal)) - return ToggleType.SWITCH - if ((arg0) == (ToggleType.BUTTON.ordinal)) - return ToggleType.BUTTON - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class SeekMode { - static readonly PREVIOUS_KEYFRAME: SeekMode = new SeekMode(0,0) - static readonly PreviousKeyframe: SeekMode = SeekMode.PREVIOUS_KEYFRAME - static readonly NEXT_KEYFRAME: SeekMode = new SeekMode(1,1) - static readonly NextKeyframe: SeekMode = SeekMode.NEXT_KEYFRAME - static readonly CLOSEST_KEYFRAME: SeekMode = new SeekMode(2,2) - static readonly ClosestKeyframe: SeekMode = SeekMode.CLOSEST_KEYFRAME - static readonly ACCURATE: SeekMode = new SeekMode(3,3) - static readonly Accurate: SeekMode = SeekMode.ACCURATE - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): SeekMode { - if ((arg0) == (SeekMode.PREVIOUS_KEYFRAME.value)) - return SeekMode.PREVIOUS_KEYFRAME - if ((arg0) == (SeekMode.NEXT_KEYFRAME.value)) - return SeekMode.NEXT_KEYFRAME - if ((arg0) == (SeekMode.CLOSEST_KEYFRAME.value)) - return SeekMode.CLOSEST_KEYFRAME - if ((arg0) == (SeekMode.ACCURATE.value)) - return SeekMode.ACCURATE - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): SeekMode { - if ((arg0) == (SeekMode.PREVIOUS_KEYFRAME.ordinal)) - return SeekMode.PREVIOUS_KEYFRAME - if ((arg0) == (SeekMode.NEXT_KEYFRAME.ordinal)) - return SeekMode.NEXT_KEYFRAME - if ((arg0) == (SeekMode.CLOSEST_KEYFRAME.ordinal)) - return SeekMode.CLOSEST_KEYFRAME - if ((arg0) == (SeekMode.ACCURATE.ordinal)) - return SeekMode.ACCURATE - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class PlaybackSpeed { - static readonly SPEED_FORWARD_0_75_X: PlaybackSpeed = new PlaybackSpeed(0,0) - static readonly Speed_Forward_0_75_X: PlaybackSpeed = PlaybackSpeed.SPEED_FORWARD_0_75_X - static readonly SPEED_FORWARD_1_00_X: PlaybackSpeed = new PlaybackSpeed(1,1) - static readonly Speed_Forward_1_00_X: PlaybackSpeed = PlaybackSpeed.SPEED_FORWARD_1_00_X - static readonly SPEED_FORWARD_1_25_X: PlaybackSpeed = new PlaybackSpeed(2,2) - static readonly Speed_Forward_1_25_X: PlaybackSpeed = PlaybackSpeed.SPEED_FORWARD_1_25_X - static readonly SPEED_FORWARD_1_75_X: PlaybackSpeed = new PlaybackSpeed(3,3) - static readonly Speed_Forward_1_75_X: PlaybackSpeed = PlaybackSpeed.SPEED_FORWARD_1_75_X - static readonly SPEED_FORWARD_2_00_X: PlaybackSpeed = new PlaybackSpeed(4,4) - static readonly Speed_Forward_2_00_X: PlaybackSpeed = PlaybackSpeed.SPEED_FORWARD_2_00_X - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): PlaybackSpeed { - if ((arg0) == (PlaybackSpeed.SPEED_FORWARD_0_75_X.value)) - return PlaybackSpeed.SPEED_FORWARD_0_75_X - if ((arg0) == (PlaybackSpeed.SPEED_FORWARD_1_00_X.value)) - return PlaybackSpeed.SPEED_FORWARD_1_00_X - if ((arg0) == (PlaybackSpeed.SPEED_FORWARD_1_25_X.value)) - return PlaybackSpeed.SPEED_FORWARD_1_25_X - if ((arg0) == (PlaybackSpeed.SPEED_FORWARD_1_75_X.value)) - return PlaybackSpeed.SPEED_FORWARD_1_75_X - if ((arg0) == (PlaybackSpeed.SPEED_FORWARD_2_00_X.value)) - return PlaybackSpeed.SPEED_FORWARD_2_00_X - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): PlaybackSpeed { - if ((arg0) == (PlaybackSpeed.SPEED_FORWARD_0_75_X.ordinal)) - return PlaybackSpeed.SPEED_FORWARD_0_75_X - if ((arg0) == (PlaybackSpeed.SPEED_FORWARD_1_00_X.ordinal)) - return PlaybackSpeed.SPEED_FORWARD_1_00_X - if ((arg0) == (PlaybackSpeed.SPEED_FORWARD_1_25_X.ordinal)) - return PlaybackSpeed.SPEED_FORWARD_1_25_X - if ((arg0) == (PlaybackSpeed.SPEED_FORWARD_1_75_X.ordinal)) - return PlaybackSpeed.SPEED_FORWARD_1_75_X - if ((arg0) == (PlaybackSpeed.SPEED_FORWARD_2_00_X.ordinal)) - return PlaybackSpeed.SPEED_FORWARD_2_00_X - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class MessageLevel { - static readonly DEBUG: MessageLevel = new MessageLevel(0,0) - static readonly Debug: MessageLevel = MessageLevel.DEBUG - static readonly ERROR: MessageLevel = new MessageLevel(1,1) - static readonly Error: MessageLevel = MessageLevel.ERROR - static readonly INFO: MessageLevel = new MessageLevel(2,2) - static readonly Info: MessageLevel = MessageLevel.INFO - static readonly LOG: MessageLevel = new MessageLevel(3,3) - static readonly Log: MessageLevel = MessageLevel.LOG - static readonly WARN: MessageLevel = new MessageLevel(4,4) - static readonly Warn: MessageLevel = MessageLevel.WARN - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): MessageLevel { - if ((arg0) == (MessageLevel.DEBUG.value)) - return MessageLevel.DEBUG - if ((arg0) == (MessageLevel.ERROR.value)) - return MessageLevel.ERROR - if ((arg0) == (MessageLevel.INFO.value)) - return MessageLevel.INFO - if ((arg0) == (MessageLevel.LOG.value)) - return MessageLevel.LOG - if ((arg0) == (MessageLevel.WARN.value)) - return MessageLevel.WARN - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): MessageLevel { - if ((arg0) == (MessageLevel.DEBUG.ordinal)) - return MessageLevel.DEBUG - if ((arg0) == (MessageLevel.ERROR.ordinal)) - return MessageLevel.ERROR - if ((arg0) == (MessageLevel.INFO.ordinal)) - return MessageLevel.INFO - if ((arg0) == (MessageLevel.LOG.ordinal)) - return MessageLevel.LOG - if ((arg0) == (MessageLevel.WARN.ordinal)) - return MessageLevel.WARN - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class MixedMode { - static readonly ALL: MixedMode = new MixedMode(0,0) - static readonly All: MixedMode = MixedMode.ALL - static readonly COMPATIBLE: MixedMode = new MixedMode(1,1) - static readonly Compatible: MixedMode = MixedMode.COMPATIBLE - static readonly NONE: MixedMode = new MixedMode(2,2) - static readonly None: MixedMode = MixedMode.NONE - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): MixedMode { - if ((arg0) == (MixedMode.ALL.value)) - return MixedMode.ALL - if ((arg0) == (MixedMode.COMPATIBLE.value)) - return MixedMode.COMPATIBLE - if ((arg0) == (MixedMode.NONE.value)) - return MixedMode.NONE - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): MixedMode { - if ((arg0) == (MixedMode.ALL.ordinal)) - return MixedMode.ALL - if ((arg0) == (MixedMode.COMPATIBLE.ordinal)) - return MixedMode.COMPATIBLE - if ((arg0) == (MixedMode.NONE.ordinal)) - return MixedMode.NONE - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class HitTestType { - static readonly EDIT_TEXT: HitTestType = new HitTestType(0,0) - static readonly EditText: HitTestType = HitTestType.EDIT_TEXT - static readonly EMAIL: HitTestType = new HitTestType(1,1) - static readonly Email: HitTestType = HitTestType.EMAIL - static readonly HTTP_ANCHOR: HitTestType = new HitTestType(2,2) - static readonly HttpAnchor: HitTestType = HitTestType.HTTP_ANCHOR - static readonly HTTP_ANCHOR_IMG: HitTestType = new HitTestType(3,3) - static readonly HttpAnchorImg: HitTestType = HitTestType.HTTP_ANCHOR_IMG - static readonly IMG: HitTestType = new HitTestType(4,4) - static readonly Img: HitTestType = HitTestType.IMG - static readonly MAP: HitTestType = new HitTestType(5,5) - static readonly Map: HitTestType = HitTestType.MAP - static readonly PHONE: HitTestType = new HitTestType(6,6) - static readonly Phone: HitTestType = HitTestType.PHONE - static readonly UNKNOWN: HitTestType = new HitTestType(7,7) - static readonly Unknown: HitTestType = HitTestType.UNKNOWN - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): HitTestType { - if ((arg0) == (HitTestType.EDIT_TEXT.value)) - return HitTestType.EDIT_TEXT - if ((arg0) == (HitTestType.EMAIL.value)) - return HitTestType.EMAIL - if ((arg0) == (HitTestType.HTTP_ANCHOR.value)) - return HitTestType.HTTP_ANCHOR - if ((arg0) == (HitTestType.HTTP_ANCHOR_IMG.value)) - return HitTestType.HTTP_ANCHOR_IMG - if ((arg0) == (HitTestType.IMG.value)) - return HitTestType.IMG - if ((arg0) == (HitTestType.MAP.value)) - return HitTestType.MAP - if ((arg0) == (HitTestType.PHONE.value)) - return HitTestType.PHONE - if ((arg0) == (HitTestType.UNKNOWN.value)) - return HitTestType.UNKNOWN - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): HitTestType { - if ((arg0) == (HitTestType.EDIT_TEXT.ordinal)) - return HitTestType.EDIT_TEXT - if ((arg0) == (HitTestType.EMAIL.ordinal)) - return HitTestType.EMAIL - if ((arg0) == (HitTestType.HTTP_ANCHOR.ordinal)) - return HitTestType.HTTP_ANCHOR - if ((arg0) == (HitTestType.HTTP_ANCHOR_IMG.ordinal)) - return HitTestType.HTTP_ANCHOR_IMG - if ((arg0) == (HitTestType.IMG.ordinal)) - return HitTestType.IMG - if ((arg0) == (HitTestType.MAP.ordinal)) - return HitTestType.MAP - if ((arg0) == (HitTestType.PHONE.ordinal)) - return HitTestType.PHONE - if ((arg0) == (HitTestType.UNKNOWN.ordinal)) - return HitTestType.UNKNOWN - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class CacheMode { - static readonly DEFAULT: CacheMode = new CacheMode(0,0) - static readonly Default: CacheMode = CacheMode.DEFAULT - static readonly NONE: CacheMode = new CacheMode(1,1) - static readonly None: CacheMode = CacheMode.NONE - static readonly ONLINE: CacheMode = new CacheMode(2,2) - static readonly Online: CacheMode = CacheMode.ONLINE - static readonly ONLY: CacheMode = new CacheMode(3,3) - static readonly Only: CacheMode = CacheMode.ONLY - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): CacheMode { - if ((arg0) == (CacheMode.DEFAULT.value)) - return CacheMode.DEFAULT - if ((arg0) == (CacheMode.NONE.value)) - return CacheMode.NONE - if ((arg0) == (CacheMode.ONLINE.value)) - return CacheMode.ONLINE - if ((arg0) == (CacheMode.ONLY.value)) - return CacheMode.ONLY - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): CacheMode { - if ((arg0) == (CacheMode.DEFAULT.ordinal)) - return CacheMode.DEFAULT - if ((arg0) == (CacheMode.NONE.ordinal)) - return CacheMode.NONE - if ((arg0) == (CacheMode.ONLINE.ordinal)) - return CacheMode.ONLINE - if ((arg0) == (CacheMode.ONLY.ordinal)) - return CacheMode.ONLY - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class OverScrollMode { - static readonly NEVER: OverScrollMode = new OverScrollMode(0,0) - static readonly ALWAYS: OverScrollMode = new OverScrollMode(1,1) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): OverScrollMode { - if ((arg0) == (OverScrollMode.NEVER.value)) - return OverScrollMode.NEVER - if ((arg0) == (OverScrollMode.ALWAYS.value)) - return OverScrollMode.ALWAYS - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): OverScrollMode { - if ((arg0) == (OverScrollMode.NEVER.ordinal)) - return OverScrollMode.NEVER - if ((arg0) == (OverScrollMode.ALWAYS.ordinal)) - return OverScrollMode.ALWAYS - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class WebDarkMode { - static readonly OFF: WebDarkMode = new WebDarkMode(0,0) - static readonly Off: WebDarkMode = WebDarkMode.OFF - static readonly ON: WebDarkMode = new WebDarkMode(1,1) - static readonly On: WebDarkMode = WebDarkMode.ON - static readonly AUTO: WebDarkMode = new WebDarkMode(2,2) - static readonly Auto: WebDarkMode = WebDarkMode.AUTO - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): WebDarkMode { - if ((arg0) == (WebDarkMode.OFF.value)) - return WebDarkMode.OFF - if ((arg0) == (WebDarkMode.ON.value)) - return WebDarkMode.ON - if ((arg0) == (WebDarkMode.AUTO.value)) - return WebDarkMode.AUTO - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): WebDarkMode { - if ((arg0) == (WebDarkMode.OFF.ordinal)) - return WebDarkMode.OFF - if ((arg0) == (WebDarkMode.ON.ordinal)) - return WebDarkMode.ON - if ((arg0) == (WebDarkMode.AUTO.ordinal)) - return WebDarkMode.AUTO - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class WebCaptureMode { - static readonly HOME_SCREEN: WebCaptureMode = new WebCaptureMode(0,0) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): WebCaptureMode { - if ((arg0) == (WebCaptureMode.HOME_SCREEN.value)) - return WebCaptureMode.HOME_SCREEN - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): WebCaptureMode { - if ((arg0) == (WebCaptureMode.HOME_SCREEN.ordinal)) - return WebCaptureMode.HOME_SCREEN - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class ThreatType { - static readonly THREAT_ILLEGAL: ThreatType = new ThreatType(0,0) - static readonly THREAT_FRAUD: ThreatType = new ThreatType(1,1) - static readonly THREAT_RISK: ThreatType = new ThreatType(2,2) - static readonly THREAT_WARNING: ThreatType = new ThreatType(3,3) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): ThreatType { - if ((arg0) == (ThreatType.THREAT_ILLEGAL.value)) - return ThreatType.THREAT_ILLEGAL - if ((arg0) == (ThreatType.THREAT_FRAUD.value)) - return ThreatType.THREAT_FRAUD - if ((arg0) == (ThreatType.THREAT_RISK.value)) - return ThreatType.THREAT_RISK - if ((arg0) == (ThreatType.THREAT_WARNING.value)) - return ThreatType.THREAT_WARNING - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): ThreatType { - if ((arg0) == (ThreatType.THREAT_ILLEGAL.ordinal)) - return ThreatType.THREAT_ILLEGAL - if ((arg0) == (ThreatType.THREAT_FRAUD.ordinal)) - return ThreatType.THREAT_FRAUD - if ((arg0) == (ThreatType.THREAT_RISK.ordinal)) - return ThreatType.THREAT_RISK - if ((arg0) == (ThreatType.THREAT_WARNING.ordinal)) - return ThreatType.THREAT_WARNING - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class RenderExitReason { - static readonly PROCESS_ABNORMAL_TERMINATION: RenderExitReason = new RenderExitReason(0,0) - static readonly ProcessAbnormalTermination: RenderExitReason = RenderExitReason.PROCESS_ABNORMAL_TERMINATION - static readonly PROCESS_WAS_KILLED: RenderExitReason = new RenderExitReason(1,1) - static readonly ProcessWasKilled: RenderExitReason = RenderExitReason.PROCESS_WAS_KILLED - static readonly PROCESS_CRASHED: RenderExitReason = new RenderExitReason(2,2) - static readonly ProcessCrashed: RenderExitReason = RenderExitReason.PROCESS_CRASHED - static readonly PROCESS_OOM: RenderExitReason = new RenderExitReason(3,3) - static readonly ProcessOom: RenderExitReason = RenderExitReason.PROCESS_OOM - static readonly PROCESS_EXIT_UNKNOWN: RenderExitReason = new RenderExitReason(4,4) - static readonly ProcessExitUnknown: RenderExitReason = RenderExitReason.PROCESS_EXIT_UNKNOWN - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): RenderExitReason { - if ((arg0) == (RenderExitReason.PROCESS_ABNORMAL_TERMINATION.value)) - return RenderExitReason.PROCESS_ABNORMAL_TERMINATION - if ((arg0) == (RenderExitReason.PROCESS_WAS_KILLED.value)) - return RenderExitReason.PROCESS_WAS_KILLED - if ((arg0) == (RenderExitReason.PROCESS_CRASHED.value)) - return RenderExitReason.PROCESS_CRASHED - if ((arg0) == (RenderExitReason.PROCESS_OOM.value)) - return RenderExitReason.PROCESS_OOM - if ((arg0) == (RenderExitReason.PROCESS_EXIT_UNKNOWN.value)) - return RenderExitReason.PROCESS_EXIT_UNKNOWN - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): RenderExitReason { - if ((arg0) == (RenderExitReason.PROCESS_ABNORMAL_TERMINATION.ordinal)) - return RenderExitReason.PROCESS_ABNORMAL_TERMINATION - if ((arg0) == (RenderExitReason.PROCESS_WAS_KILLED.ordinal)) - return RenderExitReason.PROCESS_WAS_KILLED - if ((arg0) == (RenderExitReason.PROCESS_CRASHED.ordinal)) - return RenderExitReason.PROCESS_CRASHED - if ((arg0) == (RenderExitReason.PROCESS_OOM.ordinal)) - return RenderExitReason.PROCESS_OOM - if ((arg0) == (RenderExitReason.PROCESS_EXIT_UNKNOWN.ordinal)) - return RenderExitReason.PROCESS_EXIT_UNKNOWN - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class SslError { - static readonly INVALID: SslError = new SslError(0,0) - static readonly Invalid: SslError = SslError.INVALID - static readonly HOST_MISMATCH: SslError = new SslError(1,1) - static readonly HostMismatch: SslError = SslError.HOST_MISMATCH - static readonly DATE_INVALID: SslError = new SslError(2,2) - static readonly DateInvalid: SslError = SslError.DATE_INVALID - static readonly UNTRUSTED: SslError = new SslError(3,3) - static readonly Untrusted: SslError = SslError.UNTRUSTED - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): SslError { - if ((arg0) == (SslError.INVALID.value)) - return SslError.INVALID - if ((arg0) == (SslError.HOST_MISMATCH.value)) - return SslError.HOST_MISMATCH - if ((arg0) == (SslError.DATE_INVALID.value)) - return SslError.DATE_INVALID - if ((arg0) == (SslError.UNTRUSTED.value)) - return SslError.UNTRUSTED - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): SslError { - if ((arg0) == (SslError.INVALID.ordinal)) - return SslError.INVALID - if ((arg0) == (SslError.HOST_MISMATCH.ordinal)) - return SslError.HOST_MISMATCH - if ((arg0) == (SslError.DATE_INVALID.ordinal)) - return SslError.DATE_INVALID - if ((arg0) == (SslError.UNTRUSTED.ordinal)) - return SslError.UNTRUSTED - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class FileSelectorMode { - static readonly FILE_OPEN_MODE: FileSelectorMode = new FileSelectorMode(0,0) - static readonly FileOpenMode: FileSelectorMode = FileSelectorMode.FILE_OPEN_MODE - static readonly FILE_OPEN_MULTIPLE_MODE: FileSelectorMode = new FileSelectorMode(1,1) - static readonly FileOpenMultipleMode: FileSelectorMode = FileSelectorMode.FILE_OPEN_MULTIPLE_MODE - static readonly FILE_OPEN_FOLDER_MODE: FileSelectorMode = new FileSelectorMode(2,2) - static readonly FileOpenFolderMode: FileSelectorMode = FileSelectorMode.FILE_OPEN_FOLDER_MODE - static readonly FILE_SAVE_MODE: FileSelectorMode = new FileSelectorMode(3,3) - static readonly FileSaveMode: FileSelectorMode = FileSelectorMode.FILE_SAVE_MODE - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): FileSelectorMode { - if ((arg0) == (FileSelectorMode.FILE_OPEN_MODE.value)) - return FileSelectorMode.FILE_OPEN_MODE - if ((arg0) == (FileSelectorMode.FILE_OPEN_MULTIPLE_MODE.value)) - return FileSelectorMode.FILE_OPEN_MULTIPLE_MODE - if ((arg0) == (FileSelectorMode.FILE_OPEN_FOLDER_MODE.value)) - return FileSelectorMode.FILE_OPEN_FOLDER_MODE - if ((arg0) == (FileSelectorMode.FILE_SAVE_MODE.value)) - return FileSelectorMode.FILE_SAVE_MODE - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): FileSelectorMode { - if ((arg0) == (FileSelectorMode.FILE_OPEN_MODE.ordinal)) - return FileSelectorMode.FILE_OPEN_MODE - if ((arg0) == (FileSelectorMode.FILE_OPEN_MULTIPLE_MODE.ordinal)) - return FileSelectorMode.FILE_OPEN_MULTIPLE_MODE - if ((arg0) == (FileSelectorMode.FILE_OPEN_FOLDER_MODE.ordinal)) - return FileSelectorMode.FILE_OPEN_FOLDER_MODE - if ((arg0) == (FileSelectorMode.FILE_SAVE_MODE.ordinal)) - return FileSelectorMode.FILE_SAVE_MODE - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class WebLayoutMode { - static readonly NONE: WebLayoutMode = new WebLayoutMode(0,0) - static readonly FIT_CONTENT: WebLayoutMode = new WebLayoutMode(1,1) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): WebLayoutMode { - if ((arg0) == (WebLayoutMode.NONE.value)) - return WebLayoutMode.NONE - if ((arg0) == (WebLayoutMode.FIT_CONTENT.value)) - return WebLayoutMode.FIT_CONTENT - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): WebLayoutMode { - if ((arg0) == (WebLayoutMode.NONE.ordinal)) - return WebLayoutMode.NONE - if ((arg0) == (WebLayoutMode.FIT_CONTENT.ordinal)) - return WebLayoutMode.FIT_CONTENT - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class RenderProcessNotRespondingReason { - static readonly INPUT_TIMEOUT: RenderProcessNotRespondingReason = new RenderProcessNotRespondingReason(0,0) - static readonly NAVIGATION_COMMIT_TIMEOUT: RenderProcessNotRespondingReason = new RenderProcessNotRespondingReason(1,1) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): RenderProcessNotRespondingReason { - if ((arg0) == (RenderProcessNotRespondingReason.INPUT_TIMEOUT.value)) - return RenderProcessNotRespondingReason.INPUT_TIMEOUT - if ((arg0) == (RenderProcessNotRespondingReason.NAVIGATION_COMMIT_TIMEOUT.value)) - return RenderProcessNotRespondingReason.NAVIGATION_COMMIT_TIMEOUT - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): RenderProcessNotRespondingReason { - if ((arg0) == (RenderProcessNotRespondingReason.INPUT_TIMEOUT.ordinal)) - return RenderProcessNotRespondingReason.INPUT_TIMEOUT - if ((arg0) == (RenderProcessNotRespondingReason.NAVIGATION_COMMIT_TIMEOUT.ordinal)) - return RenderProcessNotRespondingReason.NAVIGATION_COMMIT_TIMEOUT - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class ProtectedResourceType { - static readonly MIDI_SYSEX: ProtectedResourceType = new ProtectedResourceType("TYPE_MIDI_SYSEX",0) - static readonly MidiSysex: ProtectedResourceType = ProtectedResourceType.MIDI_SYSEX - static readonly VIDEO_CAPTURE: ProtectedResourceType = new ProtectedResourceType("TYPE_VIDEO_CAPTURE",1) - static readonly AUDIO_CAPTURE: ProtectedResourceType = new ProtectedResourceType("TYPE_AUDIO_CAPTURE",2) - static readonly SENSOR: ProtectedResourceType = new ProtectedResourceType("TYPE_SENSOR",3) - constructor(value: string, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: string - public readonly ordinal: int32 - public static of(arg0: string): ProtectedResourceType { - if ((arg0) == (ProtectedResourceType.MIDI_SYSEX.value)) - return ProtectedResourceType.MIDI_SYSEX - if ((arg0) == (ProtectedResourceType.VIDEO_CAPTURE.value)) - return ProtectedResourceType.VIDEO_CAPTURE - if ((arg0) == (ProtectedResourceType.AUDIO_CAPTURE.value)) - return ProtectedResourceType.AUDIO_CAPTURE - if ((arg0) == (ProtectedResourceType.SENSOR.value)) - return ProtectedResourceType.SENSOR - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): ProtectedResourceType { - if ((arg0) == (ProtectedResourceType.MIDI_SYSEX.ordinal)) - return ProtectedResourceType.MIDI_SYSEX - if ((arg0) == (ProtectedResourceType.VIDEO_CAPTURE.ordinal)) - return ProtectedResourceType.VIDEO_CAPTURE - if ((arg0) == (ProtectedResourceType.AUDIO_CAPTURE.ordinal)) - return ProtectedResourceType.AUDIO_CAPTURE - if ((arg0) == (ProtectedResourceType.SENSOR.ordinal)) - return ProtectedResourceType.SENSOR - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class ContextMenuSourceType { - static readonly NONE: ContextMenuSourceType = new ContextMenuSourceType(0,0) - static readonly None: ContextMenuSourceType = ContextMenuSourceType.NONE - static readonly MOUSE: ContextMenuSourceType = new ContextMenuSourceType(1,1) - static readonly Mouse: ContextMenuSourceType = ContextMenuSourceType.MOUSE - static readonly LONG_PRESS: ContextMenuSourceType = new ContextMenuSourceType(2,2) - static readonly LongPress: ContextMenuSourceType = ContextMenuSourceType.LONG_PRESS - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): ContextMenuSourceType { - if ((arg0) == (ContextMenuSourceType.NONE.value)) - return ContextMenuSourceType.NONE - if ((arg0) == (ContextMenuSourceType.MOUSE.value)) - return ContextMenuSourceType.MOUSE - if ((arg0) == (ContextMenuSourceType.LONG_PRESS.value)) - return ContextMenuSourceType.LONG_PRESS - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): ContextMenuSourceType { - if ((arg0) == (ContextMenuSourceType.NONE.ordinal)) - return ContextMenuSourceType.NONE - if ((arg0) == (ContextMenuSourceType.MOUSE.ordinal)) - return ContextMenuSourceType.MOUSE - if ((arg0) == (ContextMenuSourceType.LONG_PRESS.ordinal)) - return ContextMenuSourceType.LONG_PRESS - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class ContextMenuMediaType { - static readonly NONE: ContextMenuMediaType = new ContextMenuMediaType(0,0) - static readonly None: ContextMenuMediaType = ContextMenuMediaType.NONE - static readonly IMAGE: ContextMenuMediaType = new ContextMenuMediaType(1,1) - static readonly Image: ContextMenuMediaType = ContextMenuMediaType.IMAGE - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): ContextMenuMediaType { - if ((arg0) == (ContextMenuMediaType.NONE.value)) - return ContextMenuMediaType.NONE - if ((arg0) == (ContextMenuMediaType.IMAGE.value)) - return ContextMenuMediaType.IMAGE - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): ContextMenuMediaType { - if ((arg0) == (ContextMenuMediaType.NONE.ordinal)) - return ContextMenuMediaType.NONE - if ((arg0) == (ContextMenuMediaType.IMAGE.ordinal)) - return ContextMenuMediaType.IMAGE - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class ContextMenuInputFieldType { - static readonly NONE: ContextMenuInputFieldType = new ContextMenuInputFieldType(0,0) - static readonly None: ContextMenuInputFieldType = ContextMenuInputFieldType.NONE - static readonly PLAIN_TEXT: ContextMenuInputFieldType = new ContextMenuInputFieldType(1,1) - static readonly PlainText: ContextMenuInputFieldType = ContextMenuInputFieldType.PLAIN_TEXT - static readonly PASSWORD: ContextMenuInputFieldType = new ContextMenuInputFieldType(2,2) - static readonly Password: ContextMenuInputFieldType = ContextMenuInputFieldType.PASSWORD - static readonly NUMBER: ContextMenuInputFieldType = new ContextMenuInputFieldType(3,3) - static readonly Number: ContextMenuInputFieldType = ContextMenuInputFieldType.NUMBER - static readonly TELEPHONE: ContextMenuInputFieldType = new ContextMenuInputFieldType(4,4) - static readonly Telephone: ContextMenuInputFieldType = ContextMenuInputFieldType.TELEPHONE - static readonly OTHER: ContextMenuInputFieldType = new ContextMenuInputFieldType(5,5) - static readonly Other: ContextMenuInputFieldType = ContextMenuInputFieldType.OTHER - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): ContextMenuInputFieldType { - if ((arg0) == (ContextMenuInputFieldType.NONE.value)) - return ContextMenuInputFieldType.NONE - if ((arg0) == (ContextMenuInputFieldType.PLAIN_TEXT.value)) - return ContextMenuInputFieldType.PLAIN_TEXT - if ((arg0) == (ContextMenuInputFieldType.PASSWORD.value)) - return ContextMenuInputFieldType.PASSWORD - if ((arg0) == (ContextMenuInputFieldType.NUMBER.value)) - return ContextMenuInputFieldType.NUMBER - if ((arg0) == (ContextMenuInputFieldType.TELEPHONE.value)) - return ContextMenuInputFieldType.TELEPHONE - if ((arg0) == (ContextMenuInputFieldType.OTHER.value)) - return ContextMenuInputFieldType.OTHER - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): ContextMenuInputFieldType { - if ((arg0) == (ContextMenuInputFieldType.NONE.ordinal)) - return ContextMenuInputFieldType.NONE - if ((arg0) == (ContextMenuInputFieldType.PLAIN_TEXT.ordinal)) - return ContextMenuInputFieldType.PLAIN_TEXT - if ((arg0) == (ContextMenuInputFieldType.PASSWORD.ordinal)) - return ContextMenuInputFieldType.PASSWORD - if ((arg0) == (ContextMenuInputFieldType.NUMBER.ordinal)) - return ContextMenuInputFieldType.NUMBER - if ((arg0) == (ContextMenuInputFieldType.TELEPHONE.ordinal)) - return ContextMenuInputFieldType.TELEPHONE - if ((arg0) == (ContextMenuInputFieldType.OTHER.ordinal)) - return ContextMenuInputFieldType.OTHER - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class NativeEmbedStatus { - static readonly CREATE: NativeEmbedStatus = new NativeEmbedStatus(0,0) - static readonly UPDATE: NativeEmbedStatus = new NativeEmbedStatus(1,1) - static readonly DESTROY: NativeEmbedStatus = new NativeEmbedStatus(2,2) - static readonly ENTER_BFCACHE: NativeEmbedStatus = new NativeEmbedStatus(3,3) - static readonly LEAVE_BFCACHE: NativeEmbedStatus = new NativeEmbedStatus(4,4) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): NativeEmbedStatus { - if ((arg0) == (NativeEmbedStatus.CREATE.value)) - return NativeEmbedStatus.CREATE - if ((arg0) == (NativeEmbedStatus.UPDATE.value)) - return NativeEmbedStatus.UPDATE - if ((arg0) == (NativeEmbedStatus.DESTROY.value)) - return NativeEmbedStatus.DESTROY - if ((arg0) == (NativeEmbedStatus.ENTER_BFCACHE.value)) - return NativeEmbedStatus.ENTER_BFCACHE - if ((arg0) == (NativeEmbedStatus.LEAVE_BFCACHE.value)) - return NativeEmbedStatus.LEAVE_BFCACHE - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): NativeEmbedStatus { - if ((arg0) == (NativeEmbedStatus.CREATE.ordinal)) - return NativeEmbedStatus.CREATE - if ((arg0) == (NativeEmbedStatus.UPDATE.ordinal)) - return NativeEmbedStatus.UPDATE - if ((arg0) == (NativeEmbedStatus.DESTROY.ordinal)) - return NativeEmbedStatus.DESTROY - if ((arg0) == (NativeEmbedStatus.ENTER_BFCACHE.ordinal)) - return NativeEmbedStatus.ENTER_BFCACHE - if ((arg0) == (NativeEmbedStatus.LEAVE_BFCACHE.ordinal)) - return NativeEmbedStatus.LEAVE_BFCACHE - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class ContextMenuEditStateFlags { - static readonly NONE: ContextMenuEditStateFlags = new ContextMenuEditStateFlags(0,0) - static readonly CAN_CUT: ContextMenuEditStateFlags = new ContextMenuEditStateFlags(1,1) - static readonly CAN_COPY: ContextMenuEditStateFlags = new ContextMenuEditStateFlags(2,2) - static readonly CAN_PASTE: ContextMenuEditStateFlags = new ContextMenuEditStateFlags(4,3) - static readonly CAN_SELECT_ALL: ContextMenuEditStateFlags = new ContextMenuEditStateFlags(8,4) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): ContextMenuEditStateFlags { - if ((arg0) == (ContextMenuEditStateFlags.NONE.value)) - return ContextMenuEditStateFlags.NONE - if ((arg0) == (ContextMenuEditStateFlags.CAN_CUT.value)) - return ContextMenuEditStateFlags.CAN_CUT - if ((arg0) == (ContextMenuEditStateFlags.CAN_COPY.value)) - return ContextMenuEditStateFlags.CAN_COPY - if ((arg0) == (ContextMenuEditStateFlags.CAN_PASTE.value)) - return ContextMenuEditStateFlags.CAN_PASTE - if ((arg0) == (ContextMenuEditStateFlags.CAN_SELECT_ALL.value)) - return ContextMenuEditStateFlags.CAN_SELECT_ALL - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): ContextMenuEditStateFlags { - if ((arg0) == (ContextMenuEditStateFlags.NONE.ordinal)) - return ContextMenuEditStateFlags.NONE - if ((arg0) == (ContextMenuEditStateFlags.CAN_CUT.ordinal)) - return ContextMenuEditStateFlags.CAN_CUT - if ((arg0) == (ContextMenuEditStateFlags.CAN_COPY.ordinal)) - return ContextMenuEditStateFlags.CAN_COPY - if ((arg0) == (ContextMenuEditStateFlags.CAN_PASTE.ordinal)) - return ContextMenuEditStateFlags.CAN_PASTE - if ((arg0) == (ContextMenuEditStateFlags.CAN_SELECT_ALL.ordinal)) - return ContextMenuEditStateFlags.CAN_SELECT_ALL - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class WebNavigationType { - static readonly UNKNOWN: WebNavigationType = new WebNavigationType(0,0) - static readonly MAIN_FRAME_NEW_ENTRY: WebNavigationType = new WebNavigationType(1,1) - static readonly MAIN_FRAME_EXISTING_ENTRY: WebNavigationType = new WebNavigationType(2,2) - static readonly NAVIGATION_TYPE_NEW_SUBFRAME: WebNavigationType = new WebNavigationType(4,3) - static readonly NAVIGATION_TYPE_AUTO_SUBFRAME: WebNavigationType = new WebNavigationType(5,4) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): WebNavigationType { - if ((arg0) == (WebNavigationType.UNKNOWN.value)) - return WebNavigationType.UNKNOWN - if ((arg0) == (WebNavigationType.MAIN_FRAME_NEW_ENTRY.value)) - return WebNavigationType.MAIN_FRAME_NEW_ENTRY - if ((arg0) == (WebNavigationType.MAIN_FRAME_EXISTING_ENTRY.value)) - return WebNavigationType.MAIN_FRAME_EXISTING_ENTRY - if ((arg0) == (WebNavigationType.NAVIGATION_TYPE_NEW_SUBFRAME.value)) - return WebNavigationType.NAVIGATION_TYPE_NEW_SUBFRAME - if ((arg0) == (WebNavigationType.NAVIGATION_TYPE_AUTO_SUBFRAME.value)) - return WebNavigationType.NAVIGATION_TYPE_AUTO_SUBFRAME - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): WebNavigationType { - if ((arg0) == (WebNavigationType.UNKNOWN.ordinal)) - return WebNavigationType.UNKNOWN - if ((arg0) == (WebNavigationType.MAIN_FRAME_NEW_ENTRY.ordinal)) - return WebNavigationType.MAIN_FRAME_NEW_ENTRY - if ((arg0) == (WebNavigationType.MAIN_FRAME_EXISTING_ENTRY.ordinal)) - return WebNavigationType.MAIN_FRAME_EXISTING_ENTRY - if ((arg0) == (WebNavigationType.NAVIGATION_TYPE_NEW_SUBFRAME.ordinal)) - return WebNavigationType.NAVIGATION_TYPE_NEW_SUBFRAME - if ((arg0) == (WebNavigationType.NAVIGATION_TYPE_AUTO_SUBFRAME.ordinal)) - return WebNavigationType.NAVIGATION_TYPE_AUTO_SUBFRAME - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class RenderMode { - static readonly ASYNC_RENDER: RenderMode = new RenderMode(0,0) - static readonly SYNC_RENDER: RenderMode = new RenderMode(1,1) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): RenderMode { - if ((arg0) == (RenderMode.ASYNC_RENDER.value)) - return RenderMode.ASYNC_RENDER - if ((arg0) == (RenderMode.SYNC_RENDER.value)) - return RenderMode.SYNC_RENDER - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): RenderMode { - if ((arg0) == (RenderMode.ASYNC_RENDER.ordinal)) - return RenderMode.ASYNC_RENDER - if ((arg0) == (RenderMode.SYNC_RENDER.ordinal)) - return RenderMode.SYNC_RENDER - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class ViewportFit { - static readonly AUTO: ViewportFit = new ViewportFit(0,0) - static readonly CONTAINS: ViewportFit = new ViewportFit(1,1) - static readonly COVER: ViewportFit = new ViewportFit(2,2) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): ViewportFit { - if ((arg0) == (ViewportFit.AUTO.value)) - return ViewportFit.AUTO - if ((arg0) == (ViewportFit.CONTAINS.value)) - return ViewportFit.CONTAINS - if ((arg0) == (ViewportFit.COVER.value)) - return ViewportFit.COVER - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): ViewportFit { - if ((arg0) == (ViewportFit.AUTO.ordinal)) - return ViewportFit.AUTO - if ((arg0) == (ViewportFit.CONTAINS.ordinal)) - return ViewportFit.CONTAINS - if ((arg0) == (ViewportFit.COVER.ordinal)) - return ViewportFit.COVER - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class WebKeyboardAvoidMode { - static readonly RESIZE_VISUAL: WebKeyboardAvoidMode = new WebKeyboardAvoidMode(0,0) - static readonly RESIZE_CONTENT: WebKeyboardAvoidMode = new WebKeyboardAvoidMode(1,1) - static readonly OVERLAYS_CONTENT: WebKeyboardAvoidMode = new WebKeyboardAvoidMode(2,2) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): WebKeyboardAvoidMode { - if ((arg0) == (WebKeyboardAvoidMode.RESIZE_VISUAL.value)) - return WebKeyboardAvoidMode.RESIZE_VISUAL - if ((arg0) == (WebKeyboardAvoidMode.RESIZE_CONTENT.value)) - return WebKeyboardAvoidMode.RESIZE_CONTENT - if ((arg0) == (WebKeyboardAvoidMode.OVERLAYS_CONTENT.value)) - return WebKeyboardAvoidMode.OVERLAYS_CONTENT - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): WebKeyboardAvoidMode { - if ((arg0) == (WebKeyboardAvoidMode.RESIZE_VISUAL.ordinal)) - return WebKeyboardAvoidMode.RESIZE_VISUAL - if ((arg0) == (WebKeyboardAvoidMode.RESIZE_CONTENT.ordinal)) - return WebKeyboardAvoidMode.RESIZE_CONTENT - if ((arg0) == (WebKeyboardAvoidMode.OVERLAYS_CONTENT.ordinal)) - return WebKeyboardAvoidMode.OVERLAYS_CONTENT - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class WebElementType { - static readonly IMAGE: WebElementType = new WebElementType(1,0) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): WebElementType { - if ((arg0) == (WebElementType.IMAGE.value)) - return WebElementType.IMAGE - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): WebElementType { - if ((arg0) == (WebElementType.IMAGE.ordinal)) - return WebElementType.IMAGE - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class WebResponseType { - static readonly LONG_PRESS: WebResponseType = new WebResponseType(1,0) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): WebResponseType { - if ((arg0) == (WebResponseType.LONG_PRESS.value)) - return WebResponseType.LONG_PRESS - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): WebResponseType { - if ((arg0) == (WebResponseType.LONG_PRESS.ordinal)) - return WebResponseType.LONG_PRESS - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class SideBarContainerType { - static readonly EMBED: SideBarContainerType = new SideBarContainerType(0,0) - static readonly Embed: SideBarContainerType = SideBarContainerType.EMBED - static readonly OVERLAY: SideBarContainerType = new SideBarContainerType(1,1) - static readonly Overlay: SideBarContainerType = SideBarContainerType.OVERLAY - static readonly AUTO: SideBarContainerType = new SideBarContainerType(2,2) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): SideBarContainerType { - if ((arg0) == (SideBarContainerType.EMBED.value)) - return SideBarContainerType.EMBED - if ((arg0) == (SideBarContainerType.OVERLAY.value)) - return SideBarContainerType.OVERLAY - if ((arg0) == (SideBarContainerType.AUTO.value)) - return SideBarContainerType.AUTO - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): SideBarContainerType { - if ((arg0) == (SideBarContainerType.EMBED.ordinal)) - return SideBarContainerType.EMBED - if ((arg0) == (SideBarContainerType.OVERLAY.ordinal)) - return SideBarContainerType.OVERLAY - if ((arg0) == (SideBarContainerType.AUTO.ordinal)) - return SideBarContainerType.AUTO - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class SideBarPosition { - static readonly START: SideBarPosition = new SideBarPosition(0,0) - static readonly Start: SideBarPosition = SideBarPosition.START - static readonly END: SideBarPosition = new SideBarPosition(1,1) - static readonly End: SideBarPosition = SideBarPosition.END - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): SideBarPosition { - if ((arg0) == (SideBarPosition.START.value)) - return SideBarPosition.START - if ((arg0) == (SideBarPosition.END.value)) - return SideBarPosition.END - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): SideBarPosition { - if ((arg0) == (SideBarPosition.START.ordinal)) - return SideBarPosition.START - if ((arg0) == (SideBarPosition.END.ordinal)) - return SideBarPosition.END - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class WaterFlowLayoutMode { - static readonly ALWAYS_TOP_DOWN: WaterFlowLayoutMode = new WaterFlowLayoutMode(0,0) - static readonly SLIDING_WINDOW: WaterFlowLayoutMode = new WaterFlowLayoutMode(1,1) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): WaterFlowLayoutMode { - if ((arg0) == (WaterFlowLayoutMode.ALWAYS_TOP_DOWN.value)) - return WaterFlowLayoutMode.ALWAYS_TOP_DOWN - if ((arg0) == (WaterFlowLayoutMode.SLIDING_WINDOW.value)) - return WaterFlowLayoutMode.SLIDING_WINDOW - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): WaterFlowLayoutMode { - if ((arg0) == (WaterFlowLayoutMode.ALWAYS_TOP_DOWN.ordinal)) - return WaterFlowLayoutMode.ALWAYS_TOP_DOWN - if ((arg0) == (WaterFlowLayoutMode.SLIDING_WINDOW.ordinal)) - return WaterFlowLayoutMode.SLIDING_WINDOW - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class DpiFollowStrategy { - static readonly FOLLOW_HOST_DPI: DpiFollowStrategy = new DpiFollowStrategy(0,0) - static readonly FOLLOW_UI_EXTENSION_ABILITY_DPI: DpiFollowStrategy = new DpiFollowStrategy(1,1) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): DpiFollowStrategy { - if ((arg0) == (DpiFollowStrategy.FOLLOW_HOST_DPI.value)) - return DpiFollowStrategy.FOLLOW_HOST_DPI - if ((arg0) == (DpiFollowStrategy.FOLLOW_UI_EXTENSION_ABILITY_DPI.value)) - return DpiFollowStrategy.FOLLOW_UI_EXTENSION_ABILITY_DPI - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): DpiFollowStrategy { - if ((arg0) == (DpiFollowStrategy.FOLLOW_HOST_DPI.ordinal)) - return DpiFollowStrategy.FOLLOW_HOST_DPI - if ((arg0) == (DpiFollowStrategy.FOLLOW_UI_EXTENSION_ABILITY_DPI.ordinal)) - return DpiFollowStrategy.FOLLOW_UI_EXTENSION_ABILITY_DPI - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class StyledStringKey { - static readonly FONT: StyledStringKey = new StyledStringKey(0,0) - static readonly DECORATION: StyledStringKey = new StyledStringKey(1,1) - static readonly BASELINE_OFFSET: StyledStringKey = new StyledStringKey(2,2) - static readonly LETTER_SPACING: StyledStringKey = new StyledStringKey(3,3) - static readonly TEXT_SHADOW: StyledStringKey = new StyledStringKey(4,4) - static readonly LINE_HEIGHT: StyledStringKey = new StyledStringKey(5,5) - static readonly BACKGROUND_COLOR: StyledStringKey = new StyledStringKey(6,6) - static readonly URL: StyledStringKey = new StyledStringKey(7,7) - static readonly GESTURE: StyledStringKey = new StyledStringKey(100,8) - static readonly PARAGRAPH_STYLE: StyledStringKey = new StyledStringKey(200,9) - static readonly IMAGE: StyledStringKey = new StyledStringKey(300,10) - static readonly CUSTOM_SPAN: StyledStringKey = new StyledStringKey(400,11) - static readonly USER_DATA: StyledStringKey = new StyledStringKey(500,12) - constructor(value: int32, ordinal: int32) { - this.value = value - this.ordinal = ordinal - } - public readonly value: int32 - public readonly ordinal: int32 - public static of(arg0: int32): StyledStringKey { - if ((arg0) == (StyledStringKey.FONT.value)) - return StyledStringKey.FONT - if ((arg0) == (StyledStringKey.DECORATION.value)) - return StyledStringKey.DECORATION - if ((arg0) == (StyledStringKey.BASELINE_OFFSET.value)) - return StyledStringKey.BASELINE_OFFSET - if ((arg0) == (StyledStringKey.LETTER_SPACING.value)) - return StyledStringKey.LETTER_SPACING - if ((arg0) == (StyledStringKey.TEXT_SHADOW.value)) - return StyledStringKey.TEXT_SHADOW - if ((arg0) == (StyledStringKey.LINE_HEIGHT.value)) - return StyledStringKey.LINE_HEIGHT - if ((arg0) == (StyledStringKey.BACKGROUND_COLOR.value)) - return StyledStringKey.BACKGROUND_COLOR - if ((arg0) == (StyledStringKey.URL.value)) - return StyledStringKey.URL - if ((arg0) == (StyledStringKey.GESTURE.value)) - return StyledStringKey.GESTURE - if ((arg0) == (StyledStringKey.PARAGRAPH_STYLE.value)) - return StyledStringKey.PARAGRAPH_STYLE - if ((arg0) == (StyledStringKey.IMAGE.value)) - return StyledStringKey.IMAGE - if ((arg0) == (StyledStringKey.CUSTOM_SPAN.value)) - return StyledStringKey.CUSTOM_SPAN - if ((arg0) == (StyledStringKey.USER_DATA.value)) - return StyledStringKey.USER_DATA - throw new Error(`Enum member '${arg0}' not found`) - } - public static ofOrdinal(arg0: int32): StyledStringKey { - if ((arg0) == (StyledStringKey.FONT.ordinal)) - return StyledStringKey.FONT - if ((arg0) == (StyledStringKey.DECORATION.ordinal)) - return StyledStringKey.DECORATION - if ((arg0) == (StyledStringKey.BASELINE_OFFSET.ordinal)) - return StyledStringKey.BASELINE_OFFSET - if ((arg0) == (StyledStringKey.LETTER_SPACING.ordinal)) - return StyledStringKey.LETTER_SPACING - if ((arg0) == (StyledStringKey.TEXT_SHADOW.ordinal)) - return StyledStringKey.TEXT_SHADOW - if ((arg0) == (StyledStringKey.LINE_HEIGHT.ordinal)) - return StyledStringKey.LINE_HEIGHT - if ((arg0) == (StyledStringKey.BACKGROUND_COLOR.ordinal)) - return StyledStringKey.BACKGROUND_COLOR - if ((arg0) == (StyledStringKey.URL.ordinal)) - return StyledStringKey.URL - if ((arg0) == (StyledStringKey.GESTURE.ordinal)) - return StyledStringKey.GESTURE - if ((arg0) == (StyledStringKey.PARAGRAPH_STYLE.ordinal)) - return StyledStringKey.PARAGRAPH_STYLE - if ((arg0) == (StyledStringKey.IMAGE.ordinal)) - return StyledStringKey.IMAGE - if ((arg0) == (StyledStringKey.CUSTOM_SPAN.ordinal)) - return StyledStringKey.CUSTOM_SPAN - if ((arg0) == (StyledStringKey.USER_DATA.ordinal)) - return StyledStringKey.USER_DATA - throw new Error(`Enum member '${arg0}' not found`) - } +export enum PointerStyle { + DEFAULT, + EAST = 1, + WEST = 2, + SOUTH = 3, + NORTH = 4, + WEST_EAST = 5, + NORTH_SOUTH = 6, + NORTH_EAST = 7, + NORTH_WEST = 8, + SOUTH_EAST = 9, + SOUTH_WEST = 10, + NORTH_EAST_SOUTH_WEST = 11, + NORTH_WEST_SOUTH_EAST = 12, + CROSS = 13, + CURSOR_COPY = 14, + CURSOR_FORBID = 15, + COLOR_SUCKER = 16, + HAND_GRABBING = 17, + HAND_OPEN = 18, + HAND_POINTING = 19, + HELP = 20, + MOVE = 21, + RESIZE_LEFT_RIGHT = 22, + RESIZE_UP_DOWN = 23, + SCREENSHOT_CHOOSE = 24, + SCREENSHOT_CURSOR = 25, + TEXT_CURSOR = 26, + ZOOM_IN = 27, + ZOOM_OUT = 28, + MIDDLE_BTN_EAST = 29, + MIDDLE_BTN_WEST = 30, + MIDDLE_BTN_SOUTH = 31, + MIDDLE_BTN_NORTH = 32, + MIDDLE_BTN_NORTH_SOUTH = 33, + MIDDLE_BTN_NORTH_EAST = 34, + MIDDLE_BTN_NORTH_WEST = 35, + MIDDLE_BTN_SOUTH_EAST = 36, + MIDDLE_BTN_SOUTH_WEST = 37, + MIDDLE_BTN_NORTH_SOUTH_WEST_EAST = 38, + HORIZONTAL_TEXT_CURSOR = 39, + CURSOR_CROSS = 40, + CURSOR_CIRCLE = 41, + LOADING = 42, + RUNNING = 43, +} +export enum RectWidthStyle { + TIGHT, + MAX = 1, +} +export enum RectHeightStyle { + TIGHT, + MAX = 1, + INCLUDE_LINE_SPACE_MIDDLE = 2, + INCLUDE_LINE_SPACE_TOP = 3, + INCLUDE_LINE_SPACE_BOTTOM = 4, + STRUT = 5, +} +export enum LengthUnit { + PX, + VP = 1, + FP = 2, + PERCENT = 3, + LPX = 4, +} +export enum DialogAlignment { + TOP, + Top = TOP, + CENTER = 1, + Center = CENTER, + BOTTOM = 2, + Bottom = BOTTOM, + DEFAULT = 3, + Default = DEFAULT, + TOP_START = 4, + TopStart = TOP_START, + TOP_END = 5, + TopEnd = TOP_END, + CENTER_START = 6, + CenterStart = CENTER_START, + CENTER_END = 7, + CenterEnd = CENTER_END, + BOTTOM_START = 8, + BottomStart = BOTTOM_START, + BOTTOM_END = 9, + BottomEnd = BOTTOM_END, +} +export enum DialogButtonDirection { + AUTO, + HORIZONTAL = 1, + VERTICAL = 2, +} +export enum IndexerAlign { + LEFT, + Left = LEFT, + RIGHT = 1, + Right = RIGHT, + START = 2, + END = 3, +} +export enum BadgePosition { + RIGHT_TOP, + RightTop = RIGHT_TOP, + RIGHT = 1, + Right = RIGHT, + LEFT = 2, + Left = LEFT, +} +export enum ButtonType { + CAPSULE, + Capsule = CAPSULE, + CIRCLE = 1, + Circle = CIRCLE, + NORMAL = 2, + Normal = NORMAL, + ROUNDED_RECTANGLE = 3, +} +export enum ButtonStyleMode { + NORMAL, + EMPHASIZED = 1, + TEXTUAL = 2, +} +export enum ButtonRole { + NORMAL, + ERROR = 1, +} +export enum ControlSize { + SMALL = "small", + NORMAL = "normal", +} +export enum CalendarAlign { + START, + CENTER = 1, + END = 2, +} +export enum SelectStatus { + ALL, + All = ALL, + PART = 1, + Part = PART, + NONE = 2, + None = NONE, +} +export enum FinishCallbackType { + REMOVED, + LOGICALLY = 1, +} +export enum TouchTestStrategy { + DEFAULT, + FORWARD_COMPETITION = 1, + FORWARD = 2, +} +export enum TransitionHierarchyStrategy { + NONE, + ADAPTIVE = 1, +} +export enum ChainStyle { + SPREAD, + SPREAD_INSIDE = 1, + PACKED = 2, +} +export enum TransitionEdge { + TOP, + BOTTOM = 1, + START = 2, + END = 3, +} +export enum EffectType { + DEFAULT, + WINDOW_EFFECT = 1, +} +export enum PreDragStatus { + ACTION_DETECTING_STATUS, + READY_TO_TRIGGER_DRAG_ACTION = 1, + PREVIEW_LIFT_STARTED = 2, + PREVIEW_LIFT_FINISHED = 3, + PREVIEW_LANDING_STARTED = 4, + PREVIEW_LANDING_FINISHED = 5, + ACTION_CANCELED_BEFORE_DRAG = 6, +} +export enum SourceType { + UNKNOWN, + Unknown = UNKNOWN, + MOUSE = 1, + Mouse = MOUSE, + TOUCH_SCREEN = 2, + TouchScreen = TOUCH_SCREEN, +} +export enum SourceTool { + UNKNOWN, + Unknown = UNKNOWN, + FINGER = 1, + Finger = FINGER, + PEN = 2, + Pen = PEN, + MOUSE = 3, + TOUCHPAD = 4, + JOYSTICK = 5, +} +export enum RepeatMode { + REPEAT, + Repeat = REPEAT, + STRETCH = 1, + Stretch = STRETCH, + ROUND = 2, + Round = ROUND, + SPACE = 3, + Space = SPACE, +} +export enum BlurStyle { + THIN, + Thin = THIN, + REGULAR = 1, + Regular = REGULAR, + THICK = 2, + Thick = THICK, + BACKGROUND_THIN = 3, + BACKGROUND_REGULAR = 4, + BACKGROUND_THICK = 5, + BACKGROUND_ULTRA_THICK = 6, + NONE = 7, + COMPONENT_ULTRA_THIN = 8, + COMPONENT_THIN = 9, + COMPONENT_REGULAR = 10, + COMPONENT_THICK = 11, + COMPONENT_ULTRA_THICK = 12, +} +export enum BlurStyleActivePolicy { + FOLLOWS_WINDOW_ACTIVE_STATE, + ALWAYS_ACTIVE = 1, + ALWAYS_INACTIVE = 2, +} +export enum ThemeColorMode { + SYSTEM, + LIGHT = 1, + DARK = 2, +} +export enum AdaptiveColor { + DEFAULT, + AVERAGE = 1, +} +export enum ModalTransition { + DEFAULT, + NONE = 1, + ALPHA = 2, +} +export enum ShadowType { + COLOR, + BLUR = 1, +} +export enum ShadowStyle { + OUTER_DEFAULT_XS, + OUTER_DEFAULT_SM = 1, + OUTER_DEFAULT_MD = 2, + OUTER_DEFAULT_LG = 3, + OUTER_FLOATING_SM = 4, + OUTER_FLOATING_MD = 5, +} +export enum SafeAreaType { + SYSTEM, + CUTOUT = 1, + KEYBOARD = 2, +} +export enum SafeAreaEdge { + TOP, + BOTTOM = 1, + START = 2, + END = 3, +} +export enum LayoutSafeAreaType { + SYSTEM, +} +export enum LayoutSafeAreaEdge { + TOP, + BOTTOM = 1, +} +export enum SheetSize { + MEDIUM, + LARGE = 1, + FIT_CONTENT = 2, +} +export enum DragBehavior { + COPY, + MOVE = 1, +} +export enum DragResult { + DRAG_SUCCESSFUL, + DRAG_FAILED = 1, + DRAG_CANCELED = 2, + DROP_ENABLED = 3, + DROP_DISABLED = 4, +} +export enum BlendMode { + NONE, + CLEAR = 1, + SRC = 2, + DST = 3, + SRC_OVER = 4, + DST_OVER = 5, + SRC_IN = 6, + DST_IN = 7, + SRC_OUT = 8, + DST_OUT = 9, + SRC_ATOP = 10, + DST_ATOP = 11, + XOR = 12, + PLUS = 13, + MODULATE = 14, + SCREEN = 15, + OVERLAY = 16, + DARKEN = 17, + LIGHTEN = 18, + COLOR_DODGE = 19, + COLOR_BURN = 20, + HARD_LIGHT = 21, + SOFT_LIGHT = 22, + DIFFERENCE = 23, + EXCLUSION = 24, + MULTIPLY = 25, + HUE = 26, + SATURATION = 27, + COLOR = 28, + LUMINOSITY = 29, +} +export enum BlendApplyType { + FAST, + OFFSCREEN = 1, +} +export enum SheetType { + BOTTOM, + CENTER = 1, + POPUP = 2, +} +export enum SheetMode { + OVERLAY, + EMBEDDED = 1, +} +export enum ScrollSizeMode { + FOLLOW_DETENT, + CONTINUOUS = 1, +} +export enum SheetKeyboardAvoidMode { + NONE, + TRANSLATE_AND_RESIZE = 1, + RESIZE_ONLY = 2, + TRANSLATE_AND_SCROLL = 3, +} +export enum DismissReason { + PRESS_BACK, + TOUCH_OUTSIDE = 1, + CLOSE_BUTTON = 2, + SLIDE_DOWN = 3, +} +export enum MenuPreviewMode { + NONE, + IMAGE = 1, +} +export enum OutlineStyle { + SOLID, + DASHED = 1, + DOTTED = 2, +} +export enum DragPreviewMode { + AUTO = 1, + DISABLE_SCALE = 2, + ENABLE_DEFAULT_SHADOW = 3, + ENABLE_DEFAULT_RADIUS = 4, +} +export enum MenuPolicy { + DEFAULT, + HIDE = 1, + SHOW = 2, +} +export enum ContentClipMode { + CONTENT_ONLY, + BOUNDARY = 1, + SAFE_AREA = 2, +} +export enum KeyboardAvoidMode { + DEFAULT, + NONE = 1, +} +export enum HoverModeAreaType { + TOP_SCREEN, + BOTTOM_SCREEN = 1, +} +export enum ModelType { + TEXTURE, + SURFACE = 1, +} +export enum DataPanelType { + LINE, + Line = LINE, + CIRCLE = 1, + Circle = CIRCLE, +} +export enum CheckBoxShape { + CIRCLE, + ROUNDED_SQUARE = 1, +} +export enum Color { + WHITE, + White = WHITE, + BLACK = 1, + Black = BLACK, + BLUE = 2, + Blue = BLUE, + BROWN = 3, + Brown = BROWN, + GRAY = 4, + Gray = GRAY, + GREEN = 5, + Green = GREEN, + GREY = 6, + Grey = GREY, + ORANGE = 7, + Orange = ORANGE, + PINK = 8, + Pink = PINK, + RED = 9, + Red = RED, + YELLOW = 10, + Yellow = YELLOW, + TRANSPARENT = 11, + Transparent = TRANSPARENT, +} +export enum ColoringStrategy { + INVERT = "invert", + AVERAGE = "average", + PRIMARY = "primary", +} +export enum ImageFit { + CONTAIN, + Contain = CONTAIN, + COVER = 1, + Cover = COVER, + AUTO = 2, + Auto = AUTO, + FILL = 3, + Fill = FILL, + SCALE_DOWN = 4, + ScaleDown = SCALE_DOWN, + NONE = 5, + None = NONE, + TOP_START = 7, + TOP = 8, + TOP_END = 9, + START = 10, + CENTER = 11, + END = 12, + BOTTOM_START = 13, + BOTTOM = 14, + BOTTOM_END = 15, +} +export enum BorderStyle { + DOTTED, + Dotted = DOTTED, + DASHED = 1, + Dashed = DASHED, + SOLID = 2, + Solid = SOLID, +} +export enum LineJoinStyle { + MITER, + Miter = MITER, + ROUND = 1, + Round = ROUND, + BEVEL = 2, + Bevel = BEVEL, +} +export enum TouchType { + DOWN, + Down = DOWN, + UP = 1, + Up = UP, + MOVE = 2, + Move = MOVE, + CANCEL = 3, + Cancel = CANCEL, +} +export enum MouseButton { + LEFT, + Left = LEFT, + RIGHT = 1, + Right = RIGHT, + MIDDLE = 2, + Middle = MIDDLE, + BACK = 3, + Back = BACK, + FORWARD = 4, + Forward = FORWARD, + NONE = 5, + None = NONE, +} +export enum MouseAction { + PRESS, + Press = PRESS, + RELEASE = 1, + Release = RELEASE, + MOVE = 2, + Move = MOVE, + HOVER = 3, + Hover = HOVER, +} +export enum AnimationStatus { + INITIAL, + Initial = INITIAL, + RUNNING = 1, + Running = RUNNING, + PAUSED = 2, + Paused = PAUSED, + STOPPED = 3, + Stopped = STOPPED, +} +export enum Curve { + LINEAR, + Linear = LINEAR, + EASE = 1, + Ease = EASE, + EASE_IN = 2, + EaseIn = EASE_IN, + EASE_OUT = 3, + EaseOut = EASE_OUT, + EASE_IN_OUT = 4, + EaseInOut = EASE_IN_OUT, + FAST_OUT_SLOW_IN = 5, + FastOutSlowIn = FAST_OUT_SLOW_IN, + LINEAR_OUT_SLOW_IN = 6, + LinearOutSlowIn = LINEAR_OUT_SLOW_IN, + FAST_OUT_LINEAR_IN = 7, + FastOutLinearIn = FAST_OUT_LINEAR_IN, + EXTREME_DECELERATION = 8, + ExtremeDeceleration = EXTREME_DECELERATION, + SHARP = 9, + Sharp = SHARP, + RHYTHM = 10, + Rhythm = RHYTHM, + SMOOTH = 11, + Smooth = SMOOTH, + FRICTION = 12, + Friction = FRICTION, +} +export enum FillMode { + NONE, + None = NONE, + FORWARDS = 1, + Forwards = FORWARDS, + BACKWARDS = 2, + Backwards = BACKWARDS, + BOTH = 3, + Both = BOTH, +} +export enum PlayMode { + NORMAL, + Normal = NORMAL, + REVERSE = 1, + Reverse = REVERSE, + ALTERNATE = 2, + Alternate = ALTERNATE, + ALTERNATE_REVERSE = 3, + AlternateReverse = ALTERNATE_REVERSE, +} +export enum KeyType { + DOWN, + Down = DOWN, + UP = 1, + Up = UP, +} +export enum KeySource { + UNKNOWN, + Unknown = UNKNOWN, + KEYBOARD = 1, + Keyboard = KEYBOARD, +} +export enum Edge { + TOP, + Top = TOP, + CENTER = 1, + Center = CENTER, + BOTTOM = 2, + Bottom = BOTTOM, + BASELINE = 3, + Baseline = BASELINE, + START = 4, + Start = START, + MIDDLE = 5, + Middle = MIDDLE, + END = 6, + End = END, +} +export enum Week { + MON, + Mon = MON, + TUE = 1, + Tue = TUE, + WED = 2, + Wed = WED, + THUR = 3, + Thur = THUR, + FRI = 4, + Fri = FRI, + SAT = 5, + Sat = SAT, + SUN = 6, + Sun = SUN, +} +export enum Direction { + LTR, + Ltr = LTR, + RTL = 1, + Rtl = RTL, + AUTO = 2, + Auto = AUTO, +} +export enum BarState { + OFF, + Off = OFF, + AUTO = 1, + Auto = AUTO, + ON = 2, + On = ON, +} +export enum EdgeEffect { + SPRING, + Spring = SPRING, + FADE = 1, + Fade = FADE, + NONE = 2, + None = NONE, +} +export enum Alignment { + TOP_START, + TopStart = TOP_START, + TOP = 1, + Top = TOP, + TOP_END = 2, + TopEnd = TOP_END, + START = 3, + Start = START, + CENTER = 4, + Center = CENTER, + END = 5, + End = END, + BOTTOM_START = 6, + BottomStart = BOTTOM_START, + BOTTOM = 7, + Bottom = BOTTOM, + BOTTOM_END = 8, + BottomEnd = BOTTOM_END, +} +export enum TransitionType { + ALL, + All = ALL, + INSERT = 1, + Insert = INSERT, + DELETE = 2, + Delete = DELETE, +} +export enum RelateType { + FILL, + FIT = 1, +} +export enum Visibility { + VISIBLE, + Visible = VISIBLE, + HIDDEN = 1, + Hidden = HIDDEN, + NONE = 2, + None = NONE, +} +export enum LineCapStyle { + BUTT, + Butt = BUTT, + ROUND = 1, + Round = ROUND, + SQUARE = 2, + Square = SQUARE, +} +export enum Axis { + VERTICAL, + Vertical = VERTICAL, + HORIZONTAL = 1, + Horizontal = HORIZONTAL, +} +export enum HorizontalAlign { + START, + Start = START, + CENTER = 1, + Center = CENTER, + END = 2, + End = END, +} +export enum FlexAlign { + START, + Start = START, + CENTER = 1, + Center = CENTER, + END = 2, + End = END, + SPACE_BETWEEN = 3, + SpaceBetween = SPACE_BETWEEN, + SPACE_AROUND = 4, + SpaceAround = SPACE_AROUND, + SPACE_EVENLY = 5, + SpaceEvenly = SPACE_EVENLY, +} +export enum ItemAlign { + AUTO, + Auto = AUTO, + START = 1, + Start = START, + CENTER = 2, + Center = CENTER, + END = 3, + End = END, + BASELINE = 4, + Baseline = BASELINE, + STRETCH = 5, + Stretch = STRETCH, +} +export enum FlexDirection { + ROW, + Row = ROW, + COLUMN = 1, + Column = COLUMN, + ROW_REVERSE = 2, + RowReverse = ROW_REVERSE, + COLUMN_REVERSE = 3, + ColumnReverse = COLUMN_REVERSE, +} +export enum PixelRoundCalcPolicy { + NO_FORCE_ROUND, + FORCE_CEIL = 1, + FORCE_FLOOR = 2, +} +export enum FlexWrap { + NO_WRAP, + NoWrap = NO_WRAP, + WRAP = 1, + Wrap = WRAP, + WRAP_REVERSE = 2, + WrapReverse = WRAP_REVERSE, +} +export enum VerticalAlign { + TOP, + Top = TOP, + CENTER = 1, + Center = CENTER, + BOTTOM = 2, + Bottom = BOTTOM, +} +export enum ImageRepeat { + NO_REPEAT, + NoRepeat = NO_REPEAT, + X = 1, + Y = 2, + XY = 3, +} +export enum ImageSize { + AUTO, + Auto = AUTO, + COVER = 1, + Cover = COVER, + CONTAIN = 2, + Contain = CONTAIN, + FILL = 3, +} +export enum GradientDirection { + LEFT, + Left = LEFT, + TOP = 1, + Top = TOP, + RIGHT = 2, + Right = RIGHT, + BOTTOM = 3, + Bottom = BOTTOM, + LEFT_TOP = 4, + LeftTop = LEFT_TOP, + LEFT_BOTTOM = 5, + LeftBottom = LEFT_BOTTOM, + RIGHT_TOP = 6, + RightTop = RIGHT_TOP, + RIGHT_BOTTOM = 7, + RightBottom = RIGHT_BOTTOM, + NONE = 8, + None = NONE, +} +export enum SharedTransitionEffectType { + STATIC, + Static = STATIC, + EXCHANGE = 1, + Exchange = EXCHANGE, +} +export enum FontStyle { + NORMAL, + Normal = NORMAL, + ITALIC = 1, + Italic = ITALIC, +} +export enum FontWeight { + LIGHTER, + Lighter = LIGHTER, + NORMAL = 1, + Normal = NORMAL, + REGULAR = 2, + Regular = REGULAR, + MEDIUM = 3, + Medium = MEDIUM, + BOLD = 4, + Bold = BOLD, + BOLDER = 5, + Bolder = BOLDER, +} +export enum TextAlign { + CENTER, + Center = CENTER, + START = 1, + Start = START, + END = 2, + End = END, + JUSTIFY = 3, +} +export enum TextOverflow { + NONE, + None = NONE, + CLIP = 1, + Clip = CLIP, + ELLIPSIS = 2, + Ellipsis = ELLIPSIS, + MARQUEE = 3, +} +export enum TextDecorationType { + NONE, + None = NONE, + UNDERLINE = 1, + Underline = UNDERLINE, + OVERLINE = 2, + Overline = OVERLINE, + LINE_THROUGH = 3, + LineThrough = LINE_THROUGH, +} +export enum TextCase { + NORMAL, + Normal = NORMAL, + LOWER_CASE = 1, + LowerCase = LOWER_CASE, + UPPER_CASE = 2, + UpperCase = UPPER_CASE, +} +export enum TextHeightAdaptivePolicy { + MAX_LINES_FIRST, + MIN_FONT_SIZE_FIRST = 1, + LAYOUT_CONSTRAINT_FIRST = 2, +} +export enum ResponseType { + RIGHT_CLICK, + RightClick = RIGHT_CLICK, + LONG_PRESS = 1, + LongPress = LONG_PRESS, +} +export enum HoverEffect { + AUTO, + Auto = AUTO, + SCALE = 1, + Scale = SCALE, + HIGHLIGHT = 2, + Highlight = HIGHLIGHT, + NONE = 3, + None = NONE, +} +export enum Placement { + LEFT, + Left = LEFT, + RIGHT = 1, + Right = RIGHT, + TOP = 2, + Top = TOP, + BOTTOM = 3, + Bottom = BOTTOM, + TOP_LEFT = 4, + TopLeft = TOP_LEFT, + TOP_RIGHT = 5, + TopRight = TOP_RIGHT, + BOTTOM_LEFT = 6, + BottomLeft = BOTTOM_LEFT, + BOTTOM_RIGHT = 7, + BottomRight = BOTTOM_RIGHT, + LEFT_TOP = 8, + LeftTop = LEFT_TOP, + LEFT_BOTTOM = 9, + LeftBottom = LEFT_BOTTOM, + RIGHT_TOP = 10, + RightTop = RIGHT_TOP, + RIGHT_BOTTOM = 11, + RightBottom = RIGHT_BOTTOM, +} +export enum ArrowPointPosition { + START = "Start", + CENTER = "Center", + END = "End", +} +export enum CopyOptions { + NONE, + None = NONE, + IN_APP = 1, + InApp = IN_APP, + LOCAL_DEVICE = 2, + LocalDevice = LOCAL_DEVICE, + CROSS_DEVICE = 3, +} +export enum HitTestMode { + DEFAULT, + Default = DEFAULT, + BLOCK = 1, + Block = BLOCK, + TRANSPARENT = 2, + Transparent = TRANSPARENT, + NONE = 3, + None = NONE, +} +export enum TitleHeight { + MAIN_ONLY, + MainOnly = MAIN_ONLY, + MAIN_WITH_SUB = 1, + MainWithSub = MAIN_WITH_SUB, +} +export enum ModifierKey { + CTRL, + SHIFT = 1, + ALT = 2, +} +export enum FunctionKey { + ESC, + F1 = 1, + F2 = 2, + F3 = 3, + F4 = 4, + F5 = 5, + F6 = 6, + F7 = 7, + F8 = 8, + F9 = 9, + F10 = 10, + F11 = 11, + F12 = 12, + TAB = 13, + DPAD_UP = 14, + DPAD_DOWN = 15, + DPAD_LEFT = 16, + DPAD_RIGHT = 17, +} +export enum ImageSpanAlignment { + BASELINE, + BOTTOM = 1, + CENTER = 2, + TOP = 3, +} +export enum ObscuredReasons { + PLACEHOLDER, +} +export enum TextContentStyle { + DEFAULT, + INLINE = 1, +} +export enum ClickEffectLevel { + LIGHT, + MIDDLE = 1, + HEAVY = 2, +} +export enum XComponentType { + SURFACE, + COMPONENT = 1, + TEXTURE = 2, + NODE = 3, +} +export enum NestedScrollMode { + SELF_ONLY, + SELF_FIRST = 1, + PARENT_FIRST = 2, + PARALLEL = 3, +} +export enum ScrollSource { + DRAG, + FLING = 1, + EDGE_EFFECT = 2, + OTHER_USER_INPUT = 3, + SCROLL_BAR = 4, + SCROLL_BAR_FLING = 5, + SCROLLER = 6, + SCROLLER_ANIMATION = 7, +} +export enum RenderFit { + CENTER, + TOP = 1, + BOTTOM = 2, + LEFT = 3, + RIGHT = 4, + TOP_LEFT = 5, + TOP_RIGHT = 6, + BOTTOM_LEFT = 7, + BOTTOM_RIGHT = 8, + RESIZE_FILL = 9, + RESIZE_CONTAIN = 10, + RESIZE_CONTAIN_TOP_LEFT = 11, + RESIZE_CONTAIN_BOTTOM_RIGHT = 12, + RESIZE_COVER = 13, + RESIZE_COVER_TOP_LEFT = 14, + RESIZE_COVER_BOTTOM_RIGHT = 15, +} +export enum DialogButtonStyle { + DEFAULT, + HIGHLIGHT = 1, +} +export enum WordBreak { + NORMAL, + BREAK_ALL = 1, + BREAK_WORD = 2, +} +export enum LineBreakStrategy { + GREEDY, + HIGH_QUALITY = 1, + BALANCED = 2, +} +export enum EllipsisMode { + START, + CENTER = 1, + END = 2, +} +export enum OptionWidthMode { + FIT_CONTENT = "fit_content", + FIT_TRIGGER = "fit_trigger", +} +export enum IlluminatedType { + NONE, + BORDER = 1, + CONTENT = 2, + BORDER_CONTENT = 3, + BLOOM_BORDER = 4, + BLOOM_BORDER_CONTENT = 5, +} +export enum FoldStatus { + FOLD_STATUS_UNKNOWN, + FOLD_STATUS_EXPANDED = 1, + FOLD_STATUS_FOLDED = 2, + FOLD_STATUS_HALF_FOLDED = 3, +} +export enum AppRotation { + ROTATION_0, + ROTATION_90 = 1, + ROTATION_180 = 2, + ROTATION_270 = 3, +} +export enum EmbeddedType { + EMBEDDED_UI_EXTENSION, +} +export enum MarqueeUpdateStrategy { + DEFAULT, + PRESERVE_POSITION = 1, +} +export enum TextDecorationStyle { + SOLID, + DOUBLE = 1, + DOTTED = 2, + DASHED = 3, + WAVY = 4, +} +export enum TextSelectableMode { + SELECTABLE_UNFOCUSABLE, + SELECTABLE_FOCUSABLE = 1, + UNSELECTABLE = 2, +} +export enum AccessibilityHoverType { + HOVER_ENTER, + HOVER_MOVE = 1, + HOVER_EXIT = 2, + HOVER_CANCEL = 3, +} +export enum WidthBreakpoint { + WIDTH_XS, + WIDTH_SM = 1, + WIDTH_MD = 2, + WIDTH_LG = 3, + WIDTH_XL = 4, +} +export enum HeightBreakpoint { + HEIGHT_SM, + HEIGHT_MD = 1, + HEIGHT_LG = 2, +} +export enum FocusPriority { + AUTO, + PRIOR = 2000, + PREVIOUS = 3000, +} +export enum FormDimension { + DIMENSION_1_2, + Dimension_1_2 = DIMENSION_1_2, + DIMENSION_2_2 = 1, + Dimension_2_2 = DIMENSION_2_2, + DIMENSION_2_4 = 2, + Dimension_2_4 = DIMENSION_2_4, + DIMENSION_4_4 = 3, + Dimension_4_4 = DIMENSION_4_4, + DIMENSION_2_1 = 4, + Dimension_2_1 = DIMENSION_2_1, + DIMENSION_1_1 = 6, + DIMENSION_6_4 = 7, +} +export enum FormRenderingMode { + FULL_COLOR, + SINGLE_COLOR = 1, +} +export enum FormShape { + RECT = 1, + CIRCLE = 2, +} +export enum PanDirection { + NONE, + None = NONE, + HORIZONTAL = 1, + Horizontal = HORIZONTAL, + LEFT = 2, + Left = LEFT, + RIGHT = 3, + Right = RIGHT, + VERTICAL = 4, + Vertical = VERTICAL, + UP = 5, + Up = UP, + DOWN = 6, + Down = DOWN, + ALL = 7, + All = ALL, +} +export enum SwipeDirection { + NONE, + None = NONE, + HORIZONTAL = 1, + Horizontal = HORIZONTAL, + VERTICAL = 2, + Vertical = VERTICAL, + ALL = 3, + All = ALL, +} +export enum GestureMode { + SEQUENCE, + Sequence = SEQUENCE, + PARALLEL = 1, + Parallel = PARALLEL, + EXCLUSIVE = 2, + Exclusive = EXCLUSIVE, +} +export enum GestureMask { + NORMAL, + Normal = NORMAL, + IGNORE_INTERNAL = 1, + IgnoreInternal = IGNORE_INTERNAL, +} +export enum GestureJudgeResult { + CONTINUE, + REJECT = 1, +} +export namespace GestureControl { + export enum GestureType { + TAP_GESTURE, + LONG_PRESS_GESTURE = 1, + PAN_GESTURE = 2, + PINCH_GESTURE = 3, + SWIPE_GESTURE = 4, + ROTATION_GESTURE = 5, + DRAG = 6, + CLICK = 7, + } +} +export enum GesturePriority { + NORMAL, + PRIORITY = 1, +} +export enum GestureRecognizerState { + READY, + DETECTING = 1, + PENDING = 2, + BLOCKED = 3, + SUCCESSFUL = 4, + FAILED = 5, +} +export enum GridDirection { + ROW, + Row = ROW, + COLUMN = 1, + Column = COLUMN, + ROW_REVERSE = 2, + RowReverse = ROW_REVERSE, + COLUMN_REVERSE = 3, + ColumnReverse = COLUMN_REVERSE, +} +export enum GridItemAlignment { + DEFAULT, + STRETCH = 1, +} +export enum GridItemStyle { + NONE, + PLAIN = 1, +} +export enum SizeType { + AUTO, + Auto = AUTO, + XS = 1, + SM = 2, + MD = 3, + LG = 4, +} +export enum BreakpointsReference { + WINDOW_SIZE, + WindowSize = WINDOW_SIZE, + COMPONENT_SIZE = 1, + ComponentSize = COMPONENT_SIZE, +} +export enum GridRowDirection { + ROW, + Row = ROW, + ROW_REVERSE = 1, + RowReverse = ROW_REVERSE, +} +export enum ImageRenderMode { + ORIGINAL, + Original = ORIGINAL, + TEMPLATE = 1, + Template = TEMPLATE, +} +export enum ImageContent { + EMPTY, +} +export enum DynamicRangeMode { + HIGH, + CONSTRAINT = 1, + STANDARD = 2, +} +export enum ImageInterpolation { + NONE, + None = NONE, + LOW = 1, + Low = LOW, + MEDIUM = 2, + Medium = MEDIUM, + HIGH = 3, + High = HIGH, +} +export enum ImageAnalyzerType { + SUBJECT, + TEXT = 1, + OBJECT_LOOKUP = 2, +} +export enum DataOperationType { + ADD = "add", + DELETE = "delete", + EXCHANGE = "exchange", + MOVE = "move", + CHANGE = "change", + RELOAD = "reload", +} +export enum ScrollState { + IDLE, + Idle = IDLE, + SCROLL = 1, + Scroll = SCROLL, + FLING = 2, + Fling = FLING, +} +export enum ListItemAlign { + START, + Start = START, + CENTER = 1, + Center = CENTER, + END = 2, + End = END, +} +export enum ListItemGroupArea { + NONE, + IN_LIST_ITEM_AREA = 1, + IN_HEADER_AREA = 2, + IN_FOOTER_AREA = 3, +} +export enum StickyStyle { + NONE, + None = NONE, + HEADER = 1, + Header = HEADER, + FOOTER = 2, + Footer = FOOTER, +} +export enum ChainEdgeEffect { + DEFAULT, + STRETCH = 1, +} +export enum ScrollSnapAlign { + NONE, + START = 1, + CENTER = 2, + END = 3, +} +export enum Sticky { + NONE, + None = NONE, + NORMAL = 1, + Normal = NORMAL, + OPACITY = 2, + Opacity = OPACITY, +} +export enum EditMode { + NONE, + None = NONE, + DELETABLE = 1, + Deletable = DELETABLE, + MOVABLE = 2, + Movable = MOVABLE, +} +export enum SwipeEdgeEffect { + SPRING, + Spring = SPRING, + NONE = 1, + None = NONE, +} +export enum SwipeActionState { + COLLAPSED, + EXPANDED = 1, + ACTIONING = 2, +} +export enum ListItemStyle { + NONE, + CARD = 1, +} +export enum ListItemGroupStyle { + NONE, + CARD = 1, +} +export enum LoadingProgressStyle { + DEFAULT, + Default = DEFAULT, + CIRCULAR = 1, + Circular = CIRCULAR, + ORBITAL = 2, + Orbital = ORBITAL, +} +export enum LocationIconStyle { + FULL_FILLED, + LINES = 1, +} +export enum LocationDescription { + CURRENT_LOCATION, + ADD_LOCATION = 1, + SELECT_LOCATION = 2, + SHARE_LOCATION = 3, + SEND_LOCATION = 4, + LOCATING = 5, + LOCATION = 6, + SEND_CURRENT_LOCATION = 7, + RELOCATION = 8, + PUNCH_IN = 9, + CURRENT_POSITION = 10, +} +export enum LocationButtonOnClickResult { + SUCCESS, + TEMPORARY_AUTHORIZATION_FAILED = 1, +} +export enum SubMenuExpandingMode { + SIDE_EXPAND, + EMBEDDED_EXPAND = 1, + STACK_EXPAND = 2, +} +export enum NavigationSystemTransitionType { + DEFAULT, + NONE = 1, + TITLE = 2, + CONTENT = 3, +} +export enum NavDestinationMode { + STANDARD, + DIALOG = 1, +} +export enum NavRouteMode { + PUSH_WITH_RECREATE, + PUSH = 1, + REPLACE = 2, +} +export enum NavigationMode { + STACK, + Stack = STACK, + SPLIT = 1, + Split = SPLIT, + AUTO = 2, + Auto = AUTO, +} +export enum NavBarPosition { + START, + Start = START, + END = 1, + End = END, +} +export enum NavigationTitleMode { + FREE, + Free = FREE, + FULL = 1, + Full = FULL, + MINI = 2, + Mini = MINI, +} +export enum LaunchMode { + STANDARD, + MOVE_TO_TOP_SINGLETON = 1, + POP_TO_SINGLETON = 2, + NEW_INSTANCE = 3, +} +export enum ToolbarItemStatus { + NORMAL, + DISABLED = 1, + ACTIVE = 2, +} +export enum NavigationOperation { + PUSH = 1, + POP = 2, + REPLACE = 3, +} +export enum BarStyle { + STANDARD, + STACK = 1, + SAFE_AREA_PADDING = 2, +} +export enum NavigationType { + PUSH, + Push = PUSH, + BACK = 1, + Back = BACK, + REPLACE = 2, + Replace = REPLACE, +} +export enum RouteType { + NONE, + None = NONE, + PUSH = 1, + Push = PUSH, + POP = 2, + Pop = POP, +} +export enum SlideEffect { + LEFT, + Left = LEFT, + RIGHT = 1, + Right = RIGHT, + TOP = 2, + Top = TOP, + BOTTOM = 3, + Bottom = BOTTOM, + START = 5, + END = 6, +} +export enum PanelMode { + MINI, + Mini = MINI, + HALF = 1, + Half = HALF, + FULL = 2, + Full = FULL, +} +export enum PanelType { + MINIBAR, + Minibar = MINIBAR, + FOLDABLE = 1, + Foldable = FOLDABLE, + TEMPORARY = 2, + Temporary = TEMPORARY, + CUSTOM = 3, +} +export enum PanelHeight { + WRAP_CONTENT = "wrapContent", +} +export enum ParticleType { + POINT = "point", + IMAGE = "image", +} +export enum ParticleEmitterShape { + RECTANGLE = "rectangle", + CIRCLE = "circle", + ELLIPSE = "ellipse", +} +export enum DistributionType { + UNIFORM, + GAUSSIAN = 1, +} +export enum ParticleUpdater { + NONE = "none", + RANDOM = "random", + CURVE = "curve", +} +export enum DisturbanceFieldShape { + RECT, + CIRCLE = 1, + ELLIPSE = 2, +} +export enum PasteIconStyle { + LINES, +} +export enum PasteDescription { + PASTE, +} +export enum PasteButtonOnClickResult { + SUCCESS, + TEMPORARY_AUTHORIZATION_FAILED = 1, +} +export enum PatternLockChallengeResult { + CORRECT = 1, + WRONG = 2, +} +export enum ProgressType { + LINEAR, + Linear = LINEAR, + RING = 1, + Ring = RING, + ECLIPSE = 2, + Eclipse = ECLIPSE, + SCALE_RING = 3, + ScaleRing = SCALE_RING, + CAPSULE = 4, + Capsule = CAPSULE, +} +export enum ProgressStatus { + LOADING, + PROGRESSING = 1, +} +export enum ProgressStyle { + LINEAR, + Linear = LINEAR, + RING = 1, + Ring = RING, + ECLIPSE = 2, + Eclipse = ECLIPSE, + SCALE_RING = 3, + ScaleRing = SCALE_RING, + CAPSULE = 4, + Capsule = CAPSULE, +} +export enum RadioIndicatorType { + TICK, + DOT = 1, + CUSTOM = 2, +} +export enum RefreshStatus { + INACTIVE, + Inactive = INACTIVE, + DRAG = 1, + Drag = DRAG, + OVER_DRAG = 2, + OverDrag = OVER_DRAG, + REFRESH = 3, + Refresh = REFRESH, + DONE = 4, + Done = DONE, +} +export enum BarrierDirection { + LEFT, + RIGHT = 1, + TOP = 2, + BOTTOM = 3, +} +export enum LocalizedBarrierDirection { + START, + END = 1, + TOP = 2, + BOTTOM = 3, +} +export enum RichEditorDeleteDirection { + BACKWARD, + FORWARD = 1, +} +export enum RichEditorSpanType { + TEXT, + IMAGE = 1, + MIXED = 2, + BUILDER = 3, +} +export enum RichEditorResponseType { + RIGHT_CLICK, + LONG_PRESS = 1, + SELECT = 2, +} +export enum SaveIconStyle { + FULL_FILLED, + LINES = 1, + PICTURE = 2, +} +export enum SaveDescription { + DOWNLOAD, + DOWNLOAD_FILE = 1, + SAVE = 2, + SAVE_IMAGE = 3, + SAVE_FILE = 4, + DOWNLOAD_AND_SHARE = 5, + RECEIVE = 6, + CONTINUE_TO_RECEIVE = 7, + SAVE_TO_GALLERY = 8, + EXPORT_TO_GALLERY = 9, + QUICK_SAVE_TO_GALLERY = 10, + RESAVE_TO_GALLERY = 11, +} +export enum SaveButtonOnClickResult { + SUCCESS, + TEMPORARY_AUTHORIZATION_FAILED = 1, +} +export enum ScrollDirection { + VERTICAL, + Vertical = VERTICAL, + HORIZONTAL = 1, + Horizontal = HORIZONTAL, + FREE = 2, + Free = FREE, + NONE = 3, + None = NONE, +} +export enum ScrollAlign { + START, + CENTER = 1, + END = 2, + AUTO = 3, +} +export enum ScrollBarDirection { + VERTICAL, + Vertical = VERTICAL, + HORIZONTAL = 1, + Horizontal = HORIZONTAL, +} +export enum CancelButtonStyle { + CONSTANT, + INVISIBLE = 1, + INPUT = 2, +} +export enum SearchType { + NORMAL, + NUMBER = 2, + PHONE_NUMBER = 3, + EMAIL = 5, + NUMBER_DECIMAL = 12, + URL = 13, +} +export enum SecurityComponentLayoutDirection { + HORIZONTAL, + VERTICAL = 1, +} +export enum ArrowPosition { + END, + START = 1, +} +export enum MenuAlignType { + START, + CENTER = 1, + END = 2, +} +export enum SliderStyle { + OUT_SET, + OutSet = OUT_SET, + IN_SET = 1, + InSet = IN_SET, + NONE = 2, +} +export enum SliderChangeMode { + BEGIN, + Begin = BEGIN, + MOVING = 1, + Moving = MOVING, + END = 2, + End = END, + CLICK = 3, + Click = CLICK, +} +export enum SliderInteraction { + SLIDE_AND_CLICK, + SLIDE_ONLY = 1, + SLIDE_AND_CLICK_UP = 2, +} +export enum SliderBlockType { + DEFAULT, + IMAGE = 1, + SHAPE = 2, +} +export enum ColorMode { + LIGHT, + DARK = 1, +} +export enum LayoutDirection { + LTR, + RTL = 1, + AUTO = 2, + Auto = AUTO, +} +export enum ItemState { + NORMAL, + Normal = NORMAL, + DISABLED = 1, + Disabled = DISABLED, + WAITING = 2, + Waiting = WAITING, + SKIP = 3, + Skip = SKIP, +} +export enum SwiperDisplayMode { + LEGACY_STRETCH, + Stretch = LEGACY_STRETCH, + LEGACY_AUTO_LINEAR = 1, + AutoLinear = LEGACY_AUTO_LINEAR, + STRETCH = 2, + AUTO_LINEAR = 3, +} +export enum SwiperNestedScrollMode { + SELF_ONLY, + SELF_FIRST = 1, +} +export enum SymbolRenderingStrategy { + SINGLE, + MULTIPLE_COLOR = 1, + MULTIPLE_OPACITY = 2, +} +export enum SymbolEffectStrategy { + NONE, + SCALE = 1, + HIERARCHICAL = 2, +} +export enum EffectDirection { + DOWN, + UP = 1, +} +export enum EffectScope { + LAYER, + WHOLE = 1, +} +export enum EffectFillStyle { + CUMULATIVE, + ITERATIVE = 1, +} +export enum BarMode { + SCROLLABLE, + Scrollable = SCROLLABLE, + FIXED = 1, + Fixed = FIXED, +} +export enum AnimationMode { + CONTENT_FIRST, + ACTION_FIRST = 1, + NO_ANIMATION = 2, +} +export enum BarPosition { + START, + Start = START, + END = 1, + End = END, +} +export enum LayoutStyle { + ALWAYS_CENTER, + ALWAYS_AVERAGE_SPLIT = 1, + SPACE_BETWEEN_OR_CENTER = 2, +} +export enum SelectedMode { + INDICATOR, + BOARD = 1, +} +export enum LayoutMode { + AUTO, + VERTICAL = 1, + HORIZONTAL = 2, +} +export enum TextSpanType { + TEXT, + IMAGE = 1, + MIXED = 2, +} +export enum TextResponseType { + RIGHT_CLICK, + LONG_PRESS = 1, + SELECT = 2, +} +export enum TextAreaType { + NORMAL, + NUMBER = 2, + PHONE_NUMBER = 3, + EMAIL = 5, + NUMBER_DECIMAL = 12, + URL = 13, +} +export enum ContentType { + USER_NAME, + PASSWORD = 1, + NEW_PASSWORD = 2, + FULL_STREET_ADDRESS = 3, + HOUSE_NUMBER = 4, + DISTRICT_ADDRESS = 5, + CITY_ADDRESS = 6, + PROVINCE_ADDRESS = 7, + COUNTRY_ADDRESS = 8, + PERSON_FULL_NAME = 9, + PERSON_LAST_NAME = 10, + PERSON_FIRST_NAME = 11, + PHONE_NUMBER = 12, + PHONE_COUNTRY_CODE = 13, + FULL_PHONE_NUMBER = 14, + EMAIL_ADDRESS = 15, + BANK_CARD_NUMBER = 16, + ID_CARD_NUMBER = 17, + NICKNAME = 23, + DETAIL_INFO_WITHOUT_STREET = 24, + FORMAT_ADDRESS = 25, +} +export enum TextDataDetectorType { + PHONE_NUMBER, + URL = 1, + EMAIL = 2, + ADDRESS = 3, + DATE_TIME = 4, +} +export enum TextDeleteDirection { + BACKWARD, + FORWARD = 1, +} +export enum MenuType { + SELECTION_MENU, + PREVIEW_MENU = 1, +} +export enum InputType { + NORMAL, + Normal = NORMAL, + NUMBER = 1, + Number = NUMBER, + PHONE_NUMBER = 2, + PhoneNumber = PHONE_NUMBER, + EMAIL = 3, + Email = EMAIL, + PASSWORD = 4, + Password = PASSWORD, + NUMBER_PASSWORD = 8, + SCREEN_LOCK_PASSWORD = 9, + USER_NAME = 10, + NEW_PASSWORD = 11, + NUMBER_DECIMAL = 12, + URL = 13, +} +export enum EnterKeyType { + GO = 2, + Go = GO, + SEARCH = 3, + Search = SEARCH, + SEND = 4, + Send = SEND, + NEXT = 5, + Next = NEXT, + DONE = 6, + Done = DONE, + PREVIOUS = 7, + NEW_LINE = 8, +} +export enum TextInputStyle { + DEFAULT, + Default = DEFAULT, + INLINE = 1, + Inline = INLINE, +} +export enum TimePickerFormat { + HOUR_MINUTE, + HOUR_MINUTE_SECOND = 1, +} +export enum ToggleType { + CHECKBOX, + Checkbox = CHECKBOX, + SWITCH = 1, + Switch = SWITCH, + BUTTON = 2, + Button = BUTTON, +} +export enum SeekMode { + PREVIOUS_KEYFRAME, + PreviousKeyframe = PREVIOUS_KEYFRAME, + NEXT_KEYFRAME = 1, + NextKeyframe = NEXT_KEYFRAME, + CLOSEST_KEYFRAME = 2, + ClosestKeyframe = CLOSEST_KEYFRAME, + ACCURATE = 3, + Accurate = ACCURATE, +} +export enum PlaybackSpeed { + SPEED_FORWARD_0_75_X, + Speed_Forward_0_75_X = SPEED_FORWARD_0_75_X, + SPEED_FORWARD_1_00_X = 1, + Speed_Forward_1_00_X = SPEED_FORWARD_1_00_X, + SPEED_FORWARD_1_25_X = 2, + Speed_Forward_1_25_X = SPEED_FORWARD_1_25_X, + SPEED_FORWARD_1_75_X = 3, + Speed_Forward_1_75_X = SPEED_FORWARD_1_75_X, + SPEED_FORWARD_2_00_X = 4, + Speed_Forward_2_00_X = SPEED_FORWARD_2_00_X, +} +export enum MessageLevel { + DEBUG, + Debug = DEBUG, + ERROR = 1, + Error = ERROR, + INFO = 2, + Info = INFO, + LOG = 3, + Log = LOG, + WARN = 4, + Warn = WARN, +} +export enum MixedMode { + ALL, + All = ALL, + COMPATIBLE = 1, + Compatible = COMPATIBLE, + NONE = 2, + None = NONE, +} +export enum HitTestType { + EDIT_TEXT, + EditText = EDIT_TEXT, + EMAIL = 1, + Email = EMAIL, + HTTP_ANCHOR = 2, + HttpAnchor = HTTP_ANCHOR, + HTTP_ANCHOR_IMG = 3, + HttpAnchorImg = HTTP_ANCHOR_IMG, + IMG = 4, + Img = IMG, + MAP = 5, + Map = MAP, + PHONE = 6, + Phone = PHONE, + UNKNOWN = 7, + Unknown = UNKNOWN, +} +export enum CacheMode { + DEFAULT, + Default = DEFAULT, + NONE = 1, + None = NONE, + ONLINE = 2, + Online = ONLINE, + ONLY = 3, + Only = ONLY, +} +export enum OverScrollMode { + NEVER, + ALWAYS = 1, +} +export enum WebDarkMode { + OFF, + Off = OFF, + ON = 1, + On = ON, + AUTO = 2, + Auto = AUTO, +} +export enum WebCaptureMode { + HOME_SCREEN, +} +export enum ThreatType { + THREAT_ILLEGAL, + THREAT_FRAUD = 1, + THREAT_RISK = 2, + THREAT_WARNING = 3, +} +export enum RenderExitReason { + PROCESS_ABNORMAL_TERMINATION, + ProcessAbnormalTermination = PROCESS_ABNORMAL_TERMINATION, + PROCESS_WAS_KILLED = 1, + ProcessWasKilled = PROCESS_WAS_KILLED, + PROCESS_CRASHED = 2, + ProcessCrashed = PROCESS_CRASHED, + PROCESS_OOM = 3, + ProcessOom = PROCESS_OOM, + PROCESS_EXIT_UNKNOWN = 4, + ProcessExitUnknown = PROCESS_EXIT_UNKNOWN, +} +export enum SslError { + INVALID, + Invalid = INVALID, + HOST_MISMATCH = 1, + HostMismatch = HOST_MISMATCH, + DATE_INVALID = 2, + DateInvalid = DATE_INVALID, + UNTRUSTED = 3, + Untrusted = UNTRUSTED, +} +export enum FileSelectorMode { + FILE_OPEN_MODE, + FileOpenMode = FILE_OPEN_MODE, + FILE_OPEN_MULTIPLE_MODE = 1, + FileOpenMultipleMode = FILE_OPEN_MULTIPLE_MODE, + FILE_OPEN_FOLDER_MODE = 2, + FileOpenFolderMode = FILE_OPEN_FOLDER_MODE, + FILE_SAVE_MODE = 3, + FileSaveMode = FILE_SAVE_MODE, +} +export enum WebLayoutMode { + NONE, + FIT_CONTENT = 1, +} +export enum RenderProcessNotRespondingReason { + INPUT_TIMEOUT, + NAVIGATION_COMMIT_TIMEOUT = 1, +} +export enum ProtectedResourceType { + MIDI_SYSEX = "TYPE_MIDI_SYSEX", + MidiSysex = MIDI_SYSEX, + VIDEO_CAPTURE = "TYPE_VIDEO_CAPTURE", + AUDIO_CAPTURE = "TYPE_AUDIO_CAPTURE", + SENSOR = "TYPE_SENSOR", +} +export enum ContextMenuSourceType { + NONE, + None = NONE, + MOUSE = 1, + Mouse = MOUSE, + LONG_PRESS = 2, + LongPress = LONG_PRESS, +} +export enum ContextMenuMediaType { + NONE, + None = NONE, + IMAGE = 1, + Image = IMAGE, +} +export enum ContextMenuInputFieldType { + NONE, + None = NONE, + PLAIN_TEXT = 1, + PlainText = PLAIN_TEXT, + PASSWORD = 2, + Password = PASSWORD, + NUMBER = 3, + Number = NUMBER, + TELEPHONE = 4, + Telephone = TELEPHONE, + OTHER = 5, + Other = OTHER, +} +export enum NativeEmbedStatus { + CREATE, + UPDATE = 1, + DESTROY = 2, + ENTER_BFCACHE = 3, + LEAVE_BFCACHE = 4, +} +export enum ContextMenuEditStateFlags { + NONE, + CAN_CUT = 1, + CAN_COPY = 2, + CAN_PASTE = 4, + CAN_SELECT_ALL = 8, +} +export enum WebNavigationType { + UNKNOWN, + MAIN_FRAME_NEW_ENTRY = 1, + MAIN_FRAME_EXISTING_ENTRY = 2, + NAVIGATION_TYPE_NEW_SUBFRAME = 4, + NAVIGATION_TYPE_AUTO_SUBFRAME = 5, +} +export enum RenderMode { + ASYNC_RENDER, + SYNC_RENDER = 1, +} +export enum ViewportFit { + AUTO, + CONTAINS = 1, + COVER = 2, +} +export enum WebKeyboardAvoidMode { + RESIZE_VISUAL, + RESIZE_CONTENT = 1, + OVERLAYS_CONTENT = 2, +} +export enum WebElementType { + IMAGE = 1, +} +export enum WebResponseType { + LONG_PRESS = 1, +} +export enum SideBarContainerType { + EMBED, + Embed = EMBED, + OVERLAY = 1, + Overlay = OVERLAY, + AUTO = 2, +} +export enum SideBarPosition { + START, + Start = START, + END = 1, + End = END, +} +export enum WaterFlowLayoutMode { + ALWAYS_TOP_DOWN, + SLIDING_WINDOW = 1, +} +export enum DpiFollowStrategy { + FOLLOW_HOST_DPI, + FOLLOW_UI_EXTENSION_ABILITY_DPI = 1, +} +export enum StyledStringKey { + FONT, + DECORATION = 1, + BASELINE_OFFSET = 2, + LETTER_SPACING = 3, + TEXT_SHADOW = 4, + LINE_HEIGHT = 5, + BACKGROUND_COLOR = 6, + URL = 7, + GESTURE = 100, + PARAGRAPH_STYLE = 200, + IMAGE = 300, + CUSTOM_SPAN = 400, + USER_DATA = 500, } \ No newline at end of file -- Gitee From 3c250e60863697a4b1920f40c8c653ed46e8ce67 Mon Sep 17 00:00:00 2001 From: Kirill Kirichenko Date: Tue, 24 Dec 2024 14:23:53 +0300 Subject: [PATCH 05/11] Fix shopping build Signed-off-by: Kirill Kirichenko --- arkoala-arkts/package.json | 2 +- arkoala-arkts/shopping/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arkoala-arkts/package.json b/arkoala-arkts/package.json index 829aaaa51..58938cd52 100644 --- a/arkoala-arkts/package.json +++ b/arkoala-arkts/package.json @@ -55,7 +55,7 @@ "build:arkoala:inc": "npm run build:arkoala:components:inc && npm run link:arkoala", "link:arkoala": "mkdir -p build && ../incremental/tools/panda/arkts/arklink --output build/arkoala.abc -- ./arkui/build/arkui-no-common.abc ../arkoala/arkui-common/build/arkui-common.abc ../incremental/runtime/build/incremental.abc ../interop/build/interop.abc", "build:user": "npm run build:user --prefix user && mkdir -p ./build && cp -r user/build/user.abc ./build/", - "build:shopping": "npm run interface-sdk:download --prefix ../arkoala/arkui-common && npm run build:shopping --prefix shopping && mkdir -p ./build && cp -r shopping/build/shopping.abc ./build/", + "build:shopping": "npm run build:shopping --prefix shopping && mkdir -p ./build && cp -r shopping/build/shopping.abc ./build/", "run:node:user": "ACE_LIBRARY_PATH=build PANDA_HOME=../incremental/tools/panda/node_modules/@panda/sdk node build/index.js panda:TrivialApp", "run:node:user:navigation": "ACE_LIBRARY_PATH=build PANDA_HOME=../incremental/tools/panda/node_modules/@panda/sdk node build/index.js panda:NavigationApp", "run:node:shopping": "ACE_LIBRARY_PATH=build PANDA_HOME=../incremental/tools/panda/node_modules/@panda/sdk node build/index.js panda:ShoppingApp", diff --git a/arkoala-arkts/shopping/package.json b/arkoala-arkts/shopping/package.json index c007e709c..518ddaa40 100644 --- a/arkoala-arkts/shopping/package.json +++ b/arkoala-arkts/shopping/package.json @@ -11,7 +11,7 @@ "unmemoize:arkui-no-common": "npm run unmemoize --prefix ../arkui", "unmemoize:arkui-common": "npm run unmemoize --prefix ../../arkoala/arkui-common", "unmemoize:all": "npm run unmemoize:runtime && npm run unmemoize:arkui-no-common && npm run unmemoize:arkui-common && npm run unmemoize", - "build:shopping": "npm run unmemoize:all && npm run build:shopping:inc", + "build:shopping": "npm run interface-sdk:download --prefix ../../arkoala/arkui-common && npm run unmemoize:all && npm run build:shopping:inc", "build:shopping:inc": "fast-arktsc --input-files ./arktsconfig-run-unmemoized.json --output-dir ./build --compiler ../../incremental/tools/panda/arkts/arktsc --link-name shopping && ninja -f build/build.ninja", "pack": "npm run cli-tools:check && cd app && DEVECO_SDK_HOME=../../../arkoala/ohos-sdk/ohos-sdk ../command-line-tools/hvigor/bin/hvigorw --no-daemon --mode module -p product=default -p module=shopping@default assembleHar", -- Gitee From ea84065ab50a59cf75430b7357402843fafeaffc Mon Sep 17 00:00:00 2001 From: Kirill Kirichenko Date: Tue, 24 Dec 2024 15:27:13 +0300 Subject: [PATCH 06/11] M1 shopping working on the phone Signed-off-by: Kirill Kirichenko --- .../generated/ArkNavPathStackMaterialized.ts | 51 ++++++++++--------- .../generated/peers/ArkNavDestinationPeer.ts | 2 +- .../arkui/src/handwritten/ArkNavPathStack.ts | 2 +- .../har/arkoala-har-bundle/loader.js | 2 +- 4 files changed, 29 insertions(+), 28 deletions(-) diff --git a/arkoala-arkts/arkui/src/generated/ArkNavPathStackMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkNavPathStackMaterialized.ts index 22ce25a0b..40ccacdc9 100644 --- a/arkoala-arkts/arkui/src/generated/ArkNavPathStackMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkNavPathStackMaterialized.ts @@ -75,19 +75,19 @@ export class NavPathStack implements MaterializedBase,INTERFACE_NavPathStack { } pushPath(info: NavPathInfo, animated?: boolean | undefined | NavigationOptions | undefined): void { this._extender.push(info.name, info.param) - const info_type = runtimeType(info) - const animated_type = runtimeType(animated) - if ((((RuntimeType.OBJECT) == (info_type)) && (TypeChecker.isNavPathInfo(info, true, true, true, true))) && (((RuntimeType.BOOLEAN == animated_type)) || ((RuntimeType.UNDEFINED == animated_type)))) { - const info_casted = info as (NavPathInfo) - const animated_casted = animated as (boolean | undefined) - this.pushPath0_serialize(info_casted, animated_casted) - } - if ((((RuntimeType.OBJECT) == (info_type)) && (TypeChecker.isNavPathInfo(info, true, true, true, true))) && (((RuntimeType.OBJECT == animated_type)) || ((RuntimeType.UNDEFINED == animated_type)))) { - const info_casted = info as (NavPathInfo) - const animated_casted = animated as (NavigationOptions | undefined) - this.pushPath1_serialize(info_casted, animated_casted) - } - throw new Error("Can not select appropriate overload") + // const info_type = runtimeType(info) + // const animated_type = runtimeType(animated) + // if ((((RuntimeType.OBJECT) == (info_type)) && (TypeChecker.isNavPathInfo(info, true, true, true, true))) && (((RuntimeType.BOOLEAN == animated_type)) || ((RuntimeType.UNDEFINED == animated_type)))) { + // const info_casted = info as (NavPathInfo) + // const animated_casted = animated as (boolean | undefined) + // this.pushPath0_serialize(info_casted, animated_casted) + // } + // if ((((RuntimeType.OBJECT) == (info_type)) && (TypeChecker.isNavPathInfo(info, true, true, true, true))) && (((RuntimeType.OBJECT == animated_type)) || ((RuntimeType.UNDEFINED == animated_type)))) { + // const info_casted = info as (NavPathInfo) + // const animated_casted = animated as (NavigationOptions | undefined) + // this.pushPath1_serialize(info_casted, animated_casted) + // } + // throw new Error("Can not select appropriate overload") } pushDestination(info: NavPathInfo, animated?: boolean | undefined | NavigationOptions | undefined): Promise { this._extender.push(info.name, info.param) @@ -185,18 +185,19 @@ export class NavPathStack implements MaterializedBase,INTERFACE_NavPathStack { } pop(result?: Object | boolean | undefined, animated?: boolean): NavPathInfo | undefined { this._extender.pop() - const result_type = runtimeType(result) - const animated_type = runtimeType(animated) - if ((((RuntimeType.OBJECT == result_type))) && (((RuntimeType.BOOLEAN == animated_type)) || ((RuntimeType.UNDEFINED == animated_type)))) { - const result_casted = result as (Object) - const animated_casted = animated as (boolean | undefined) - return this.pop1_serialize(result_casted, animated_casted) - } - if ((((RuntimeType.BOOLEAN == result_type)) || ((RuntimeType.UNDEFINED == result_type))) && (((RuntimeType.UNDEFINED == animated_type)))) { - const result_casted = result as (boolean | undefined) - return this.pop0_serialize(result_casted) - } - throw new Error("Can not select appropriate overload") + // const result_type = runtimeType(result) + // const animated_type = runtimeType(animated) + // if ((((RuntimeType.OBJECT == result_type))) && (((RuntimeType.BOOLEAN == animated_type)) || ((RuntimeType.UNDEFINED == animated_type)))) { + // const result_casted = result as (Object) + // const animated_casted = animated as (boolean | undefined) + // return this.pop1_serialize(result_casted, animated_casted) + // } + // if ((((RuntimeType.BOOLEAN == result_type)) || ((RuntimeType.UNDEFINED == result_type))) && (((RuntimeType.UNDEFINED == animated_type)))) { + // const result_casted = result as (boolean | undefined) + // return this.pop0_serialize(result_casted) + // } + // throw new Error("Can not select appropriate overload") + return undefined } popToName(name: string, result?: Object | boolean | undefined, animated?: boolean): number { const name_type = runtimeType(name) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkNavDestinationPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkNavDestinationPeer.ts index 23e711906..23a137d65 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkNavDestinationPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkNavDestinationPeer.ts @@ -50,7 +50,7 @@ export class ArkNavDestinationPeer extends ArkCommonMethodPeer { } public static create(component?: ComponentBase, flags: int32 = 0): ArkNavDestinationPeer { const peerId = PeerNode.nextId() - const _peerPtr = NativeModule._NavDestination_construct(peerId, flags) + const _peerPtr = NativeModule._Stack_construct(peerId, flags) const _peer = new ArkNavDestinationPeer(_peerPtr, peerId, "NavDestination", flags) component?.setPeer(_peer) return _peer diff --git a/arkoala-arkts/arkui/src/handwritten/ArkNavPathStack.ts b/arkoala-arkts/arkui/src/handwritten/ArkNavPathStack.ts index fa6908cfb..dc190d595 100644 --- a/arkoala-arkts/arkui/src/handwritten/ArkNavPathStack.ts +++ b/arkoala-arkts/arkui/src/handwritten/ArkNavPathStack.ts @@ -39,7 +39,7 @@ export class NavPathStackExtender { pop(): void { console.log(" ### pop = ") this._stack.pop() - const page = this._stack[this._stack.length - 1] + const page = this._stack.at(this._stack.length - 1) this.currentName.value = page?.name ?? "" if (page?.param != undefined) { this.currentParam = page?.param! diff --git a/arkoala-arkts/har/arkoala-har-bundle/loader.js b/arkoala-arkts/har/arkoala-har-bundle/loader.js index 163c1778f..d94ad9a46 100644 --- a/arkoala-arkts/har/arkoala-har-bundle/loader.js +++ b/arkoala-arkts/har/arkoala-har-bundle/loader.js @@ -107,7 +107,7 @@ export function checkLoader(variant) { } let result = nativeModule()._LoadVirtualMachine(vm, classPath, nativePath); if (result == 0) { - rootPointer = nativeModule()._StartApplication("TrivialApp", "ArkTSLoaderParam"); + rootPointer = nativeModule()._StartApplication("ShoppingApp", "ArkTSLoaderParam"); if (rootPointer != 0) { setTimeout(async () => runEventLoop(), 0); } -- Gitee From c471a7bd97297208ab011f5d5d0c72ce5e6ca10f Mon Sep 17 00:00:00 2001 From: Korobeinikov Evgeny Date: Tue, 24 Dec 2024 10:56:46 +0000 Subject: [PATCH 07/11] !1561 Sign shopping * more * Shopping in loader * Sign shopping --- arkoala-arkts/application/.gitignore | 3 ++- arkoala-arkts/application/package.json | 16 +++++++++------- arkoala-arkts/package.json | 2 ++ package.json | 2 +- 4 files changed, 14 insertions(+), 9 deletions(-) diff --git a/arkoala-arkts/application/.gitignore b/arkoala-arkts/application/.gitignore index e47d1641e..9085d4a75 100644 --- a/arkoala-arkts/application/.gitignore +++ b/arkoala-arkts/application/.gitignore @@ -1 +1,2 @@ -oh_modules \ No newline at end of file +oh_modules +generated \ No newline at end of file diff --git a/arkoala-arkts/application/package.json b/arkoala-arkts/application/package.json index bc02cec36..93769caf1 100644 --- a/arkoala-arkts/application/package.json +++ b/arkoala-arkts/application/package.json @@ -5,13 +5,15 @@ "scripts": { "clean": "rimraf build generated unmemoized js_output abc lib ", - "build": "npm run cli-tools:check && cd shopping && ../command-line-tools/ohpm/bin/ohpm install --strict_ssl=false && DEVECO_SDK_HOME=../../../arkoala/ohos-sdk/ohos-sdk ../command-line-tools/hvigor/bin/hvigorw --mode module -p product=default assembleHap --analyze=normal --no-parallel --no-daemon", + "arkoala:har:arm32": "npm run arkoala:har-arm32 --prefix ../../arkoala-arkts", + "arkoala:har:arm64": "npm run arkoala:har-arm64 --prefix ../../arkoala-arkts", - "cli-tools:chmod:bz": "node ../../arkoala/ohos-sdk/scripts/openlab-cli.mjs chmod -p ./command-line-tools/ohpm/bin -b 755 && node ../../arkoala/ohos-sdk/scripts/openlab-cli.mjs chmod -p ./command-line-tools/hvigor/bin -b 755", - "cli-tools:chmod:yz": "node ../../../sdk/scripts/gitlab/gitlab-cli.mjs chmod -p ./command-line-tools/ohpm/bin -b 755 && node ../../../sdk/scripts/gitlab/gitlab-cli.mjs chmod -p ./command-line-tools/hvigor/bin -b 755", - "cli-tools:download:bz": "node ../../arkoala/ohos-sdk/scripts/openlab-cli.mjs download -p command-line-tools -v 5.0.3502 -f command-line-tools.5.0.3502.zip -d command-line-tools && npm run cli-tools:chmod:bz", - "cli-tools:download:yz": "node ../../../sdk/scripts/gitlab/gitlab-cli.mjs download -p deveco-tools -v 5.0.1300 -f deveco-tools.5.0.1300.zip -d command-line-tools && npm run cli-tools:chmod:yz", - "cli-tools:download": "test \"$KOALA_BZ\" = \"0\" && npm run cli-tools:download:yz || npm run cli-tools:download:bz", - "cli-tools:check": "test -d ./command-line-tools || npm run cli-tools:download" + "shopping:har:arm32": "npm run shopping:har-arm32 --prefix ../../arkoala-arkts", + "shopping:har:arm64": "npm run shopping:har-arm64 --prefix ../../arkoala-arkts", + + "build": "cd shopping && DEVECO_TOOLS_HOME=../../har/command-line-tools node ../../../arkoala/ohos-sdk/scripts/cli.mjs oh-build", + "sign": "cd shopping && node ../../../arkoala/ohos-sdk/scripts/cli.mjs oh-sign", + "exec": "cd shopping && node ../../../arkoala/ohos-sdk/scripts/cli.mjs oh-exec", + "launch": "npm run build && npm run sign && npm run exec" } } diff --git a/arkoala-arkts/package.json b/arkoala-arkts/package.json index 58938cd52..157dd8bc1 100644 --- a/arkoala-arkts/package.json +++ b/arkoala-arkts/package.json @@ -70,6 +70,8 @@ "arkoala:har-arm64": "npm run compile:native:hzvm-ohos-arm64 && npm run build:arkoala && npm run har-arm64 --prefix har", "user:har-arm32": "npm run har-arm32 --prefix user", "user:har-arm64": "npm run har-arm64 --prefix user", + "shopping:har-arm32": "npm run har-arm32 --prefix shopping", + "shopping:har-arm64": "npm run har-arm64 --prefix shopping", "clean": "rimraf build", "clean:native": "npm run clean --prefix ../arkoala/framework", "clean:all": "npm run clean && npm run clean:incremental && npm run clean:interop && npm run clean:arkui-common && npm run clean:arkui-no-common && npm run clean:native && npm run clean --prefix har && npm run clean --prefix user" diff --git a/package.json b/package.json index 45b82045f..75b0ea907 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "ets:plugin:compile": "npm run compile --prefix arkoala/ets-plugin", "compiler:plugin:compile": "npm run compile --prefix incremental/compiler-plugin", "plugins:compile": "npm run compiler:plugin:compile && npm run ets:plugin:compile", - "arkoala:plugin": "npm run plugins:compile && cd arkoala/tools/arkoala-transformer && npx rollup -c && cp -f arkoala-plugin.js ${HOS_SDK_HOME}/HarmonyOS-NEXT-DB1/openharmony/ets/build-tools/ets-loader/lib/fast_build/ets_ui", + "arkoala:plugin": "npm run plugins:compile && cd arkoala/tools/arkoala-transformer && npx rollup - && cp -f arkoala-plugin.js ${HOS_SDK_HOME}/HarmonyOS-NEXT-DB1/openharmony/ets/build-tools/ets-loader/lib/fast_build/ets_ui", "arkoala:har": "npm run all --prefix arkoala/har", "arkoala:har-arm32": "npm run all-arm32 --prefix arkoala/har" } -- Gitee From 9de047a7e6ad3b5928f349f0b55dd5e63b597188 Mon Sep 17 00:00:00 2001 From: Korobeinikov Evgeny Date: Tue, 24 Dec 2024 12:59:48 +0000 Subject: [PATCH 08/11] !1565 Exec for shopping --- arkoala-arkts/application/package.json | 4 ++-- arkoala-arkts/application/shopping/build-profile.json5 | 8 +------- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/arkoala-arkts/application/package.json b/arkoala-arkts/application/package.json index 93769caf1..203e2d25b 100644 --- a/arkoala-arkts/application/package.json +++ b/arkoala-arkts/application/package.json @@ -11,9 +11,9 @@ "shopping:har:arm32": "npm run shopping:har-arm32 --prefix ../../arkoala-arkts", "shopping:har:arm64": "npm run shopping:har-arm64 --prefix ../../arkoala-arkts", - "build": "cd shopping && DEVECO_TOOLS_HOME=../../har/command-line-tools node ../../../arkoala/ohos-sdk/scripts/cli.mjs oh-build", + "build": "cd shopping && DEVECO_TOOLS_HOME=../../har/command-line-tools node ../../../arkoala/ohos-sdk/scripts/cli.mjs oh-build -i", "sign": "cd shopping && node ../../../arkoala/ohos-sdk/scripts/cli.mjs oh-sign", - "exec": "cd shopping && node ../../../arkoala/ohos-sdk/scripts/cli.mjs oh-exec", + "exec": "cd shopping && node ../../../arkoala/ohos-sdk/scripts/cli.mjs oh-exec -i -r", "launch": "npm run build && npm run sign && npm run exec" } } diff --git a/arkoala-arkts/application/shopping/build-profile.json5 b/arkoala-arkts/application/shopping/build-profile.json5 index 6d93d9cd5..3ead1e058 100644 --- a/arkoala-arkts/application/shopping/build-profile.json5 +++ b/arkoala-arkts/application/shopping/build-profile.json5 @@ -5,13 +5,7 @@ "name": "default", "signingConfig": "default", "compatibleSdkVersion": "5.0.0(12)", - "runtimeOS": "HarmonyOS", - "buildOption": { - "strictMode": { - "caseSensitiveCheck": true, - "useNormalizedOHMUrl": true - } - } + "runtimeOS": "HarmonyOS" } ], "buildModeSet": [ -- Gitee From c71ee3b756aa4e7419de3491acafe889372218aa Mon Sep 17 00:00:00 2001 From: Kirill Kirichenko Date: Tue, 24 Dec 2024 18:09:25 +0300 Subject: [PATCH 09/11] Addition for app launch Signed-off-by: Kirill Kirichenko --- arkoala-arkts/application/package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arkoala-arkts/application/package.json b/arkoala-arkts/application/package.json index 203e2d25b..9d2d127b0 100644 --- a/arkoala-arkts/application/package.json +++ b/arkoala-arkts/application/package.json @@ -3,7 +3,7 @@ "version": "1.4.1", "description": "", "scripts": { - "clean": "rimraf build generated unmemoized js_output abc lib ", + "clean": "rimraf shopping/entry/build shopping/generated shopping/oh_modules", "arkoala:har:arm32": "npm run arkoala:har-arm32 --prefix ../../arkoala-arkts", "arkoala:har:arm64": "npm run arkoala:har-arm64 --prefix ../../arkoala-arkts", @@ -12,8 +12,8 @@ "shopping:har:arm64": "npm run shopping:har-arm64 --prefix ../../arkoala-arkts", "build": "cd shopping && DEVECO_TOOLS_HOME=../../har/command-line-tools node ../../../arkoala/ohos-sdk/scripts/cli.mjs oh-build -i", - "sign": "cd shopping && node ../../../arkoala/ohos-sdk/scripts/cli.mjs oh-sign", - "exec": "cd shopping && node ../../../arkoala/ohos-sdk/scripts/cli.mjs oh-exec -i -r", + "sign": "cd shopping && DEVECO_TOOLS_HOME=../../har/command-line-tools node ../../../arkoala/ohos-sdk/scripts/cli.mjs oh-sign", + "exec": "cd shopping && DEVECO_TOOLS_HOME=../../har/command-line-tools node ../../../arkoala/ohos-sdk/scripts/cli.mjs oh-exec -i -r", "launch": "npm run build && npm run sign && npm run exec" } } -- Gitee From d5fcd1fc5c6efa15150e3538603bf201482882b2 Mon Sep 17 00:00:00 2001 From: Anton Tarasov Date: Tue, 24 Dec 2024 09:38:04 +0000 Subject: [PATCH 10/11] !1552 Fix build and sign oh scripts --- .../cacert/OpenHarmonyApplication.pem | 44 ++++++++++ arkoala/ohos-sdk/scripts/cli.mjs | 85 +++++++++++++++++++ arkoala/ohos-sdk/scripts/ohos-app/sign.mjs | 7 +- arkoala/ohos-sdk/scripts/utils.mjs | 9 +- 4 files changed, 142 insertions(+), 3 deletions(-) create mode 100644 arkoala/ohos-sdk/cacert/OpenHarmonyApplication.pem create mode 100644 arkoala/ohos-sdk/scripts/cli.mjs diff --git a/arkoala/ohos-sdk/cacert/OpenHarmonyApplication.pem b/arkoala/ohos-sdk/cacert/OpenHarmonyApplication.pem new file mode 100644 index 000000000..825abdc7b --- /dev/null +++ b/arkoala/ohos-sdk/cacert/OpenHarmonyApplication.pem @@ -0,0 +1,44 @@ +-----BEGIN CERTIFICATE----- +MIICRDCCAcmgAwIBAgIED+E4izAMBggqhkjOPQQDAwUAMGgxCzAJBgNVBAYTAkNO +MRQwEgYDVQQKEwtPcGVuSGFybW9ueTEZMBcGA1UECxMQT3Blbkhhcm1vbnkgVGVh +bTEoMCYGA1UEAxMfT3Blbkhhcm1vbnkgQXBwbGljYXRpb24gUm9vdCBDQTAeFw0y +MTAyMDIxMjE0MThaFw00OTEyMzExMjE0MThaMGgxCzAJBgNVBAYTAkNOMRQwEgYD +VQQKEwtPcGVuSGFybW9ueTEZMBcGA1UECxMQT3Blbkhhcm1vbnkgVGVhbTEoMCYG +A1UEAxMfT3Blbkhhcm1vbnkgQXBwbGljYXRpb24gUm9vdCBDQTB2MBAGByqGSM49 +AgEGBSuBBAAiA2IABE023XmRaw2DnO8NSsb+KG/uY0FtS3u5LQucdr3qWVnRW5ui +QIL6ttNZBEeLTUeYcJZCpayg9Llf+1SmDA7dY4iP2EcRo4UN3rilovtfFfsmH4ty +3SApHVFzWUl+NwdH8KNCMEAwDwYDVR0TAQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMC +AQYwHQYDVR0OBBYEFBc6EKGrGXzlAE+s0Zgnsphadw7NMAwGCCqGSM49BAMDBQAD +ZwAwZAIwd1p3JzHN93eoPped1li0j64npgqNzwy4OrkehYAqNXpcpaEcLZ7UxW8E +I2lZJ3SbAjAkqySHb12sIwdSFKSN9KCMMEo/eUT5dUXlcKR2nZz0MJdxT5F51qcX +1CumzkcYhgU= +-----END CERTIFICATE----- +-----BEGIN CERTIFICATE----- +MIICYTCCAeWgAwIBAgIEHmXAPTAMBggqhkjOPQQDAwUAMGgxCzAJBgNVBAYTAkNO +MRQwEgYDVQQKEwtPcGVuSGFybW9ueTEZMBcGA1UECxMQT3Blbkhhcm1vbnkgVGVh +bTEoMCYGA1UEAxMfT3Blbkhhcm1vbnkgQXBwbGljYXRpb24gUm9vdCBDQTAeFw0y +MTAyMDIxMjE1MzJaFw00OTEyMzExMjE1MzJaMGMxCzAJBgNVBAYTAkNOMRQwEgYD +VQQKEwtPcGVuSGFybW9ueTEZMBcGA1UECxMQT3Blbkhhcm1vbnkgVGVhbTEjMCEG +A1UEAxMaT3Blbkhhcm1vbnkgQXBwbGljYXRpb24gQ0EwdjAQBgcqhkjOPQIBBgUr +gQQAIgNiAAQhnu7Hna8XNa2KyqRf5+lBJScE4xqf89N0g0OuqAb2re8nGsvWkw26 +uDekfnBYicd+G3Cydqa2zFIwV7Talyg2ULW3r8KbGpyl84mJEPPRmCGJ+H9gtCsf ++OrJ4Y76LVWjYzBhMB8GA1UdIwQYMBaAFBc6EKGrGXzlAE+s0Zgnsphadw7NMA8G +A1UdEwEB/wQFMAMBAf8wDgYDVR0PAQH/BAQDAgEGMB0GA1UdDgQWBBTbhrciFtUL +oUu33SV7ufEFfaItRzAMBggqhkjOPQQDAwUAA2gAMGUCMG3cXjiDmXTvf7D4Omhf +qcc2nuO+EMfWE+N9ZhBP5UhV34mAGWi3SfLU6rcV0urWEQIxAMYIb3epOnKhUrcm +Lfu1WKzFlpYQwmw73RaCHP2I3k6NcuWOYeNwWXSNZ8o0nzvaLg== +-----END CERTIFICATE----- +-----BEGIN CERTIFICATE----- +MIICMzCCAbegAwIBAgIEaOC/zDAMBggqhkjOPQQDAwUAMGMxCzAJBgNVBAYTAkNO +MRQwEgYDVQQKEwtPcGVuSGFybW9ueTEZMBcGA1UECxMQT3Blbkhhcm1vbnkgVGVh +bTEjMCEGA1UEAxMaT3Blbkhhcm1vbnkgQXBwbGljYXRpb24gQ0EwHhcNMjEwMjAy +MTIxOTMxWhcNNDkxMjMxMTIxOTMxWjBoMQswCQYDVQQGEwJDTjEUMBIGA1UEChML +T3Blbkhhcm1vbnkxGTAXBgNVBAsTEE9wZW5IYXJtb255IFRlYW0xKDAmBgNVBAMT +H09wZW5IYXJtb255IEFwcGxpY2F0aW9uIFJlbGVhc2UwWTATBgcqhkjOPQIBBggq +hkjOPQMBBwNCAATbYOCQQpW5fdkYHN45v0X3AHax12jPBdEDosFRIZ1eXmxOYzSG +JwMfsHhUU90E8lI0TXYZnNmgM1sovubeQqATo1IwUDAfBgNVHSMEGDAWgBTbhrci +FtULoUu33SV7ufEFfaItRzAOBgNVHQ8BAf8EBAMCB4AwHQYDVR0OBBYEFPtxruhl +cRBQsJdwcZqLu9oNUVgaMAwGCCqGSM49BAMDBQADaAAwZQIxAJta0PQ2p4DIu/ps +LMdLCDgQ5UH1l0B4PGhBlMgdi2zf8nk9spazEQI/0XNwpft8QAIwHSuA2WelVi/o +zAlF08DnbJrOOtOnQq5wHOPlDYB4OtUzOYJk9scotrEnJxJzGsh/ +-----END CERTIFICATE----- diff --git a/arkoala/ohos-sdk/scripts/cli.mjs b/arkoala/ohos-sdk/scripts/cli.mjs new file mode 100644 index 000000000..8375719ab --- /dev/null +++ b/arkoala/ohos-sdk/scripts/cli.mjs @@ -0,0 +1,85 @@ +#!/usr/bin/env node + +/* + * Copyright (c) 2022-2024 Huawei Device 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. + */ + +import { Command } from "commander" +import path from "path" +import { fileURLToPath } from 'url' +import { ensureEnvVarSet } from "./utils.mjs" + +const __filename = fileURLToPath(import.meta.url) +const __dirname = path.dirname(__filename) + +ensureEnvVarSet("DEVECO_TOOLS_HOME", path.join(__dirname, "../../har/command-line-tools"), true) +ensureEnvVarSet("DEVECO_SDK_HOME", path.join(__dirname, "../ohos-sdk"), true) + +const app = new Command("arkoala") + +app.command("oh-sign") + .description("Sign the OpenHarmony project hap file") + .option("-m, --mod ", "project mode: app, test", "app") + // .option("-c, --oh-conf ", "path to .ohconf.json", "./.ohconf.json") + .action(async (options) => { + const { sign } = await import("./ohos-app/sign.mjs") + await sign(options) + }) + +app.command("oh-build") + .description("Build the OpenHarmony project") + .option("-m, --mod ", "project mode: app, test", "app") + // .option("-c, --oh-conf ", "path to .ohconf.json", "./.ohconf.json") + // .option("-s, --sync", "sync the project config ws well") + // .option("--sync-only", "sync the project config only") + .option("-i, --install-ohpm-deps", "install ohpm dependencies as well") + .option("--install-ohpm-deps-only", "install ohpm dependencies only") + .option("-s, --sign", "sign the project as well") + .option("-e, --extra-options ", "comma-separated pass extra options") + .option("-V, --verbose", "log commands") + .action(async (options) => { + const { build } = await import("./ohos-app/build.mjs") + await build(options) + if (options.sign) { + const { sign } = await import("./ohos-app/sign.mjs") + await sign({ + mod: options.mod + }) + } + }) + +app.command("oh-exec") + .description("Execute an instruction on an OpenHarmony device") + .option("-i, --install", "install the project hap file on a device") + .option("-u, --uninstall", "uninstall the project hap file from a device") + .option("-r, --run", "run the project app on a device") + .option("-t, --run-timeout ", "run the project app on a device with timeout in ms") + .option("-m, --mod ", "project mode: app, test", "app") + // .option("-c, --oh-conf ", "path to .ohconf.json", "./.ohconf.json") + .option("-l, --list-devices", "list connected devices") + .option("-o, --hdc-extra-opts ", "extra options to pass to the HDC tool") + .option("-V, --verbose", "log commands") + .option("-e, --extra ", "extra options which will be added to hdc command if supported", "") + .action(async (options) => { + const { install, uninstall, run } = await import("./ohos-app/exec-on-device.mjs") + + if (options.install) + await install(options) + if (options.uninstall) + await uninstall(options) + if (options.run || options.runTimeout) + await run(options) + }) + +app.parse() \ No newline at end of file diff --git a/arkoala/ohos-sdk/scripts/ohos-app/sign.mjs b/arkoala/ohos-sdk/scripts/ohos-app/sign.mjs index 3cbf0a3e6..67ce98a9c 100644 --- a/arkoala/ohos-sdk/scripts/ohos-app/sign.mjs +++ b/arkoala/ohos-sdk/scripts/ohos-app/sign.mjs @@ -37,7 +37,9 @@ const LZ_OUTPUT = lazy(() => ensureExists(path.join(LZ_OHCONF().root, "generated const LZ_APP_BUNDLE_NAME = lazy(() => LZ_OHCONF().bundleName()) const LZ_APP_PROFILE_TEMPLATE = lazy(() => path.join(LZ_OUTPUT(), "KoalaApplicationReleaseProfile.json")) const LZ_APP_SIGNED_PROFILE = lazy(() => path.join(LZ_OUTPUT(), `${LZ_APP_BUNDLE_NAME()}.p7b`)) -const LZ_APP_CERT = lazy(() => path.join(LZ_OUTPUT(), "KoalaApplicationRelease.pem")) +// const LZ_APP_CERT = lazy(() => path.join(LZ_OUTPUT(), "KoalaApplicationRelease.pem")) +// from https://gitee.com/openharmony/developtools_hapsigner.git +const LZ_APP_CERT = lazy(() => path.join(CACERT_ROOT, "OpenHarmonyApplication.pem")) const SIGN_ALG = "SHA256withECDSA" const MODE = "localSign" @@ -119,7 +121,8 @@ export async function sign(options) { console.log("Previously generated certificates will be used to sign: " + `${LZ_APP_CERT()}, ${path.basename(LZ_APP_SIGNED_PROFILE())}\n`) } else { - await generateAppCert() + // Use stock OpenHarmonyApplication.pem + // await generateAppCert() await copyProfileTemplate() await signProfile() } diff --git a/arkoala/ohos-sdk/scripts/utils.mjs b/arkoala/ohos-sdk/scripts/utils.mjs index 623853240..635023d2f 100644 --- a/arkoala/ohos-sdk/scripts/utils.mjs +++ b/arkoala/ohos-sdk/scripts/utils.mjs @@ -375,4 +375,11 @@ export function splitFileLines(file) { return splitLines(content) } -export function noop(...args) {} \ No newline at end of file +export function noop(...args) {} + +export function ensureEnvVarSet(envVarName, defaultValue, log = false) { + if (!process.env[envVarName]) { + process.env[envVarName] = defaultValue + } + if (log) console.log(`> ${envVarName}=` + process.env[envVarName]) +} -- Gitee From 728f977da48ddc2c91d485ca65d88a4f52dac1df Mon Sep 17 00:00:00 2001 From: Kirill Kirichenko Date: Tue, 24 Dec 2024 18:15:10 +0300 Subject: [PATCH 11/11] Shopping App with Linux signer/launcher Signed-off-by: Kirill Kirichenko --- arkoala-arkts/application/shopping/AppScope/app.json5 | 2 +- .../shopping/AppScope/resources/base/element/string.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arkoala-arkts/application/shopping/AppScope/app.json5 b/arkoala-arkts/application/shopping/AppScope/app.json5 index 7e6080abe..c9219fbc3 100644 --- a/arkoala-arkts/application/shopping/AppScope/app.json5 +++ b/arkoala-arkts/application/shopping/AppScope/app.json5 @@ -1,6 +1,6 @@ { "app": { - "bundleName": "com.example.myapplicationteeeeeest", + "bundleName": "com.example.shopping.application", "vendor": "example", "versionCode": 1000000, "versionName": "1.0.0", diff --git a/arkoala-arkts/application/shopping/AppScope/resources/base/element/string.json b/arkoala-arkts/application/shopping/AppScope/resources/base/element/string.json index cda1d10ae..ea81d7501 100644 --- a/arkoala-arkts/application/shopping/AppScope/resources/base/element/string.json +++ b/arkoala-arkts/application/shopping/AppScope/resources/base/element/string.json @@ -2,7 +2,7 @@ "string": [ { "name": "app_name", - "value": "MyApplicationTEEEEEEST" + "value": "ShoppingApplication" } ] } -- Gitee