avm2: Stub simple flash.text.engine enums

This commit is contained in:
Daniel Jacobs 2023-01-23 14:05:23 -05:00 committed by Aaron Hill
parent ffc393e3e8
commit 0a04b22a79
19 changed files with 469 additions and 0 deletions

View File

@ -0,0 +1,26 @@
// The initial version of this file was autogenerated from the official AS3 reference at
// https://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/text/engine/BreakOpportunity.html
// by https://github.com/golfinq/ActionScript_Event_Builder
// It won't be regenerated in the future, so feel free to edit and/or fix
package flash.text.engine
{
public final class BreakOpportunity
{
// Treats all characters in the ContentElement object as line break opportunities, meaning that a line break will occur afer each character.
public static const ALL:String = "all";
// Treats any character in the ContentElement object as a line break opportunity.
public static const ANY:String = "any";
// Bases line break opportunities on Unicode character properties.
public static const AUTO:String = "auto";
// Treats no characters in the ContentElement object as line break opportunities.
public static const NONE:String = "none";
}
}

View File

@ -0,0 +1,20 @@
// The initial version of this file was autogenerated from the official AS3 reference at
// https://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/text/engine/CFFHinting.html
// by https://github.com/golfinq/ActionScript_Event_Builder
// It won't be regenerated in the future, so feel free to edit and/or fix
package flash.text.engine
{
public final class CFFHinting
{
// Fits strong horizontal stems to the pixel grid for improved readability.
public static const HORIZONTAL_STEM:String = "horizontalStem";
// No hinting is applied.
public static const NONE:String = "none";
}
}

View File

@ -0,0 +1,23 @@
// The initial version of this file was autogenerated from the official AS3 reference at
// https://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/text/engine/DigitCase.html
// by https://github.com/golfinq/ActionScript_Event_Builder
// It won't be regenerated in the future, so feel free to edit and/or fix
package flash.text.engine
{
public final class DigitCase
{
// Used to specify default digit case.
public static const DEFAULT:String = "default";
// Used to specify lining digit case.
public static const LINING:String = "lining";
// Used to specify old style digit case.
public static const OLD_STYLE:String = "oldStyle";
}
}

View File

@ -0,0 +1,23 @@
// The initial version of this file was autogenerated from the official AS3 reference at
// https://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/text/engine/DigitWidth.html
// by https://github.com/golfinq/ActionScript_Event_Builder
// It won't be regenerated in the future, so feel free to edit and/or fix
package flash.text.engine
{
public final class DigitWidth
{
// Used to specify default digit width.
public static const DEFAULT:String = "default";
// Used to specify proportional digit width.
public static const PROPORTIONAL:String = "proportional";
// Used to specify tabular digit width.
public static const TABULAR:String = "tabular";
}
}

View File

@ -0,0 +1,20 @@
// The initial version of this file was autogenerated from the official AS3 reference at
// https://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/text/engine/FontLookup.html
// by https://github.com/golfinq/ActionScript_Event_Builder
// It won't be regenerated in the future, so feel free to edit and/or fix
package flash.text.engine
{
public final class FontLookup
{
// Used to indicate device font lookup.
public static const DEVICE:String = "device";
// Used to indicate embedded CFF (Compact Font Format) font lookup.
public static const EMBEDDED_CFF:String = "embeddedCFF";
}
}

View File

@ -0,0 +1,20 @@
// The initial version of this file was autogenerated from the official AS3 reference at
// https://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/text/engine/FontPosture.html
// by https://github.com/golfinq/ActionScript_Event_Builder
// It won't be regenerated in the future, so feel free to edit and/or fix
package flash.text.engine
{
public final class FontPosture
{
// Used to indicate italic font posture.
public static const ITALIC:String = "italic";
// Used to indicate normal font posture.
public static const NORMAL:String = "normal";
}
}

View File

@ -0,0 +1,20 @@
// The initial version of this file was autogenerated from the official AS3 reference at
// https://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/text/engine/FontWeight.html
// by https://github.com/golfinq/ActionScript_Event_Builder
// It won't be regenerated in the future, so feel free to edit and/or fix
package flash.text.engine
{
public final class FontWeight
{
// Used to indicate bold font weight.
public static const BOLD:String = "bold";
// Used to indicate normal font weight.
public static const NORMAL:String = "normal";
}
}

View File

@ -0,0 +1,23 @@
// The initial version of this file was autogenerated from the official AS3 reference at
// https://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/text/engine/JustificationStyle.html
// by https://github.com/golfinq/ActionScript_Event_Builder
// It won't be regenerated in the future, so feel free to edit and/or fix
package flash.text.engine
{
public final class JustificationStyle
{
// Bases justification on either expanding or compressing the line, whichever gives a result closest to the desired width.
public static const PRIORITIZE_LEAST_ADJUSTMENT:String = "prioritizeLeastAdjustment";
// Bases justification on compressing kinsoku at the end of the line, or expanding it if no kinsoku occurs or if that space is insufficient.
public static const PUSH_IN_KINSOKU:String = "pushInKinsoku";
// Bases justification on expanding the line.
public static const PUSH_OUT_ONLY:String = "pushOutOnly";
}
}

View File

@ -0,0 +1,23 @@
// The initial version of this file was autogenerated from the official AS3 reference at
// https://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/text/engine/Kerning.html
// by https://github.com/golfinq/ActionScript_Event_Builder
// It won't be regenerated in the future, so feel free to edit and/or fix
package flash.text.engine
{
public final class Kerning
{
// Used to indicate that kerning is enabled except where inappropriate in Asian typography.
public static const AUTO:String = "auto";
// Used to indicate kerning is disabled.
public static const OFF:String = "off";
// Used to indicate kerning is enabled.
public static const ON:String = "on";
}
}

View File

@ -0,0 +1,29 @@
// The initial version of this file was autogenerated from the official AS3 reference at
// https://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/text/engine/LigatureLevel.html
// by https://github.com/golfinq/ActionScript_Event_Builder
// It won't be regenerated in the future, so feel free to edit and/or fix
package flash.text.engine
{
public final class LigatureLevel
{
// Used to specify common ligatures.
public static const COMMON:String = "common";
// Used to specify exotic ligatures.
public static const EXOTIC:String = "exotic";
// Used to specify minimum ligatures.
public static const MINIMUM:String = "minimum";
// Used to specify no ligatures.
public static const NONE:String = "none";
// Used to specify uncommon ligatures.
public static const UNCOMMON:String = "uncommon";
}
}

View File

@ -0,0 +1,26 @@
// The initial version of this file was autogenerated from the official AS3 reference at
// https://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/text/engine/LineJustification.html
// by https://github.com/golfinq/ActionScript_Event_Builder
// It won't be regenerated in the future, so feel free to edit and/or fix
package flash.text.engine
{
public final class LineJustification
{
// Justify all but the last line.
public static const ALL_BUT_LAST:String = "allButLast";
// Justify all but the last line and lines ending in mandatory breaks.
public static const ALL_BUT_MANDATORY_BREAK:String = "allButMandatoryBreak";
// Justify all lines.
public static const ALL_INCLUDING_LAST:String = "allIncludingLast";
// Do not justify lines.
public static const UNJUSTIFIED:String = "unjustified";
}
}

View File

@ -0,0 +1,20 @@
// The initial version of this file was autogenerated from the official AS3 reference at
// https://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/text/engine/RenderingMode.html
// by https://github.com/golfinq/ActionScript_Event_Builder
// It won't be regenerated in the future, so feel free to edit and/or fix
package flash.text.engine
{
public final class RenderingMode
{
// Sets rendering mode to CFF (Compact Font Format).
public static const CFF:String = "cff";
// Sets rendering mode to the rendering mode that is used in Flash Player 7 and earlier.
public static const NORMAL:String = "normal";
}
}

View File

@ -0,0 +1,26 @@
// The initial version of this file was autogenerated from the official AS3 reference at
// https://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/text/engine/TabAlignment.html
// by https://github.com/golfinq/ActionScript_Event_Builder
// It won't be regenerated in the future, so feel free to edit and/or fix
package flash.text.engine
{
public final class TabAlignment
{
// Positions the center of the tabbed text at the tab stop.
public static const CENTER:String = "center";
// Positions the alignment token of the tabbed text at the tab stop.
public static const DECIMAL:String = "decimal";
// Positions the end of the tabbed text at the tab stop.
public static const END:String = "end";
// Positions the start of the tabbed text at the tab stop.
public static const START:String = "start";
}
}

View File

@ -0,0 +1,35 @@
// The initial version of this file was autogenerated from the official AS3 reference at
// https://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/text/engine/TextBaseline.html
// by https://github.com/golfinq/ActionScript_Event_Builder
// It won't be regenerated in the future, so feel free to edit and/or fix
package flash.text.engine
{
public final class TextBaseline
{
// Specifies an ascent baseline.
public static const ASCENT:String = "ascent";
// Specifies a descent baseline.
public static const DESCENT:String = "descent";
// Specifies an ideographic bottom baseline.
public static const IDEOGRAPHIC_BOTTOM:String = "ideographicBottom";
// Specifies an ideographic center baseline.
public static const IDEOGRAPHIC_CENTER:String = "ideographicCenter";
// Specifies an ideographic top baseline.
public static const IDEOGRAPHIC_TOP:String = "ideographicTop";
// Specifies a roman baseline.
public static const ROMAN:String = "roman";
// Specifies that the alignmentBaseline is the same as the dominantBaseline.
public static const USE_DOMINANT_BASELINE:String = "useDominantBaseline";
}
}

View File

@ -0,0 +1,26 @@
// The initial version of this file was autogenerated from the official AS3 reference at
// https://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/text/engine/TextLineCreationResult.html
// by https://github.com/golfinq/ActionScript_Event_Builder
// It won't be regenerated in the future, so feel free to edit and/or fix
package flash.text.engine
{
public final class TextLineCreationResult
{
// Indicates no line was created because all text in the block had already been broken.
public static const COMPLETE:String = "complete";
// Indicates the line was created with an emergency break because no break opportunity was available in the specified width.
public static const EMERGENCY:String = "emergency";
// Indicates no line was created because no text could fit in the specified width and fitSomething was not specified in the call to createTextLine().
public static const INSUFFICIENT_WIDTH:String = "insufficientWidth";
// Indicates the line was successfully broken.
public static const SUCCESS:String = "success";
}
}

View File

@ -0,0 +1,26 @@
// The initial version of this file was autogenerated from the official AS3 reference at
// https://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/text/engine/TextLineValidity.html
// by https://github.com/golfinq/ActionScript_Event_Builder
// It won't be regenerated in the future, so feel free to edit and/or fix
package flash.text.engine
{
public final class TextLineValidity
{
// Specifies that the line is invalid.
public static const INVALID:String = "invalid";
// Specifies that the text line is possibly invalid.
public static const POSSIBLY_INVALID:String = "possiblyInvalid";
// Specifies that the line is static, and that the connection between the line and the text block has been severed.
public static const STATIC:String = "static";
// Specifies that the text line is valid.
public static const VALID:String = "valid";
}
}

View File

@ -0,0 +1,29 @@
// The initial version of this file was autogenerated from the official AS3 reference at
// https://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/text/engine/TextRotation.html
// by https://github.com/golfinq/ActionScript_Event_Builder
// It won't be regenerated in the future, so feel free to edit and/or fix
package flash.text.engine
{
public final class TextRotation
{
// Specifies a 90 degree counter clockwise rotation for full width and wide glyphs only, as determined by the Unicode properties of the glyph.
public static const AUTO:String = "auto";
// Specifies no rotation.
public static const ROTATE_0:String = "rotate0";
// Specifies a 180 degree rotation.
public static const ROTATE_180:String = "rotate180";
// Specifies a 270 degree clockwise rotation.
public static const ROTATE_270:String = "rotate270";
// Specifies a 90 degree clockwise rotation.
public static const ROTATE_90:String = "rotate90";
}
}

View File

@ -0,0 +1,35 @@
// The initial version of this file was autogenerated from the official AS3 reference at
// https://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/text/engine/TypographicCase.html
// by https://github.com/golfinq/ActionScript_Event_Builder
// It won't be regenerated in the future, so feel free to edit and/or fix
package flash.text.engine
{
public final class TypographicCase
{
// Specifies that spacing is adjusted for uppercase characters on output.
public static const CAPS:String = "caps";
// Specifies that all lowercase characters use small-caps glyphs on output.
public static const CAPS_AND_SMALL_CAPS:String = "capsAndSmallCaps";
// Specifies default typographic case.
public static const DEFAULT:String = "default";
// Specifies that all characters use lowercase glyphs on output.
public static const LOWERCASE:String = "lowercase";
// Specifies that uppercase characters use small-caps glyphs on output.
public static const SMALL_CAPS:String = "smallCaps";
// Specifies that uppercase characters use title glyphs on output.
public static const TITLE:String = "title";
// Specifies that all characters use uppercase glyphs on output.
public static const UPPERCASE:String = "uppercase";
}
}

View File

@ -216,6 +216,25 @@ include "flash/text/TextFormatAlign.as"
include "flash/text/TextInteractionMode.as"
include "flash/text/TextLineMetrics.as"
include "flash/text/engine/BreakOpportunity.as"
include "flash/text/engine/CFFHinting.as"
include "flash/text/engine/DigitCase.as"
include "flash/text/engine/DigitWidth.as"
include "flash/text/engine/FontLookup.as"
include "flash/text/engine/FontPosture.as"
include "flash/text/engine/FontWeight.as"
include "flash/text/engine/JustificationStyle.as"
include "flash/text/engine/Kerning.as"
include "flash/text/engine/LigatureLevel.as"
include "flash/text/engine/LineJustification.as"
include "flash/text/engine/RenderingMode.as"
include "flash/text/engine/TabAlignment.as"
include "flash/text/engine/TextBaseline.as"
include "flash/text/engine/TextLineCreationResult.as"
include "flash/text/engine/TextLineValidity.as"
include "flash/text/engine/TextRotation.as"
include "flash/text/engine/TypographicCase.as"
include "flash/ui/ContextMenu.as"
include "flash/ui/ContextMenuBuiltInItems.as"
include "flash/ui/ContextMenuItem.as"