forked from LeenkxTeam/LNXSDK
Update Files
This commit is contained in:
6
Kha/Tools/macos/std/flash/text/AntiAliasType.hx
Normal file
6
Kha/Tools/macos/std/flash/text/AntiAliasType.hx
Normal file
@ -0,0 +1,6 @@
|
||||
package flash.text;
|
||||
|
||||
@:native("flash.text.AntiAliasType") extern enum abstract AntiAliasType(String) {
|
||||
var ADVANCED;
|
||||
var NORMAL;
|
||||
}
|
8
Kha/Tools/macos/std/flash/text/CSMSettings.hx
Normal file
8
Kha/Tools/macos/std/flash/text/CSMSettings.hx
Normal file
@ -0,0 +1,8 @@
|
||||
package flash.text;
|
||||
|
||||
extern final class CSMSettings {
|
||||
var fontSize : Float;
|
||||
var insideCutoff : Float;
|
||||
var outsideCutoff : Float;
|
||||
function new(fontSize : Float, insideCutoff : Float, outsideCutoff : Float) : Void;
|
||||
}
|
14
Kha/Tools/macos/std/flash/text/Font.hx
Normal file
14
Kha/Tools/macos/std/flash/text/Font.hx
Normal file
@ -0,0 +1,14 @@
|
||||
package flash.text;
|
||||
|
||||
extern class Font {
|
||||
@:flash.property var fontName(get,never) : String;
|
||||
@:flash.property var fontStyle(get,never) : FontStyle;
|
||||
@:flash.property var fontType(get,never) : FontType;
|
||||
function new() : Void;
|
||||
private function get_fontName() : String;
|
||||
private function get_fontStyle() : FontStyle;
|
||||
private function get_fontType() : FontType;
|
||||
function hasGlyphs(str : String) : Bool;
|
||||
static function enumerateFonts(enumerateDeviceFonts : Bool = false) : Array<Font>;
|
||||
static function registerFont(font : Class<Dynamic>) : Void;
|
||||
}
|
8
Kha/Tools/macos/std/flash/text/FontStyle.hx
Normal file
8
Kha/Tools/macos/std/flash/text/FontStyle.hx
Normal file
@ -0,0 +1,8 @@
|
||||
package flash.text;
|
||||
|
||||
@:native("flash.text.FontStyle") extern enum abstract FontStyle(String) {
|
||||
var BOLD;
|
||||
var BOLD_ITALIC;
|
||||
var ITALIC;
|
||||
var REGULAR;
|
||||
}
|
7
Kha/Tools/macos/std/flash/text/FontType.hx
Normal file
7
Kha/Tools/macos/std/flash/text/FontType.hx
Normal file
@ -0,0 +1,7 @@
|
||||
package flash.text;
|
||||
|
||||
@:native("flash.text.FontType") extern enum abstract FontType(String) {
|
||||
var DEVICE;
|
||||
var EMBEDDED;
|
||||
var EMBEDDED_CFF;
|
||||
}
|
7
Kha/Tools/macos/std/flash/text/GridFitType.hx
Normal file
7
Kha/Tools/macos/std/flash/text/GridFitType.hx
Normal file
@ -0,0 +1,7 @@
|
||||
package flash.text;
|
||||
|
||||
@:native("flash.text.GridFitType") extern enum abstract GridFitType(String) {
|
||||
var NONE;
|
||||
var PIXEL;
|
||||
var SUBPIXEL;
|
||||
}
|
7
Kha/Tools/macos/std/flash/text/StaticText.hx
Normal file
7
Kha/Tools/macos/std/flash/text/StaticText.hx
Normal file
@ -0,0 +1,7 @@
|
||||
package flash.text;
|
||||
|
||||
extern final class StaticText extends flash.display.DisplayObject {
|
||||
@:flash.property var text(get,never) : String;
|
||||
function new() : Void;
|
||||
private function get_text() : String;
|
||||
}
|
12
Kha/Tools/macos/std/flash/text/StyleSheet.hx
Normal file
12
Kha/Tools/macos/std/flash/text/StyleSheet.hx
Normal file
@ -0,0 +1,12 @@
|
||||
package flash.text;
|
||||
|
||||
extern class StyleSheet extends flash.events.EventDispatcher implements Dynamic {
|
||||
@:flash.property var styleNames(get,never) : Array<Dynamic>;
|
||||
function new() : Void;
|
||||
function clear() : Void;
|
||||
function getStyle(styleName : String) : flash.utils.Object;
|
||||
private function get_styleNames() : Array<Dynamic>;
|
||||
function parseCSS(CSSText : String) : Void;
|
||||
function setStyle(styleName : String, styleObject : flash.utils.Object) : Void;
|
||||
function transform(formatObject : flash.utils.Object) : TextFormat;
|
||||
}
|
6
Kha/Tools/macos/std/flash/text/TextColorType.hx
Normal file
6
Kha/Tools/macos/std/flash/text/TextColorType.hx
Normal file
@ -0,0 +1,6 @@
|
||||
package flash.text;
|
||||
|
||||
@:native("flash.text.TextColorType") extern enum abstract TextColorType(String) {
|
||||
var DARK_COLOR;
|
||||
var LIGHT_COLOR;
|
||||
}
|
7
Kha/Tools/macos/std/flash/text/TextDisplayMode.hx
Normal file
7
Kha/Tools/macos/std/flash/text/TextDisplayMode.hx
Normal file
@ -0,0 +1,7 @@
|
||||
package flash.text;
|
||||
|
||||
@:native("flash.text.TextDisplayMode") extern enum abstract TextDisplayMode(String) {
|
||||
var CRT;
|
||||
var DEFAULT;
|
||||
var LCD;
|
||||
}
|
11
Kha/Tools/macos/std/flash/text/TextExtent.hx
Normal file
11
Kha/Tools/macos/std/flash/text/TextExtent.hx
Normal file
@ -0,0 +1,11 @@
|
||||
package flash.text;
|
||||
|
||||
extern class TextExtent {
|
||||
var ascent : Float;
|
||||
var descent : Float;
|
||||
var height : Float;
|
||||
var textFieldHeight : Float;
|
||||
var textFieldWidth : Float;
|
||||
var width : Float;
|
||||
function new(width : Float, height : Float, textFieldWidth : Float, textFieldHeight : Float, ascent : Float, descent : Float) : Void;
|
||||
}
|
137
Kha/Tools/macos/std/flash/text/TextField.hx
Normal file
137
Kha/Tools/macos/std/flash/text/TextField.hx
Normal file
@ -0,0 +1,137 @@
|
||||
package flash.text;
|
||||
|
||||
extern class TextField extends flash.display.InteractiveObject {
|
||||
@:flash.property var alwaysShowSelection(get,set) : Bool;
|
||||
@:flash.property var antiAliasType(get,set) : AntiAliasType;
|
||||
@:flash.property var autoSize(get,set) : TextFieldAutoSize;
|
||||
@:flash.property var background(get,set) : Bool;
|
||||
@:flash.property var backgroundColor(get,set) : UInt;
|
||||
@:flash.property var border(get,set) : Bool;
|
||||
@:flash.property var borderColor(get,set) : UInt;
|
||||
@:flash.property var bottomScrollV(get,never) : Int;
|
||||
@:flash.property var caretIndex(get,never) : Int;
|
||||
@:flash.property var condenseWhite(get,set) : Bool;
|
||||
@:flash.property var defaultTextFormat(get,set) : TextFormat;
|
||||
@:flash.property var displayAsPassword(get,set) : Bool;
|
||||
@:flash.property var embedFonts(get,set) : Bool;
|
||||
@:flash.property var gridFitType(get,set) : GridFitType;
|
||||
@:flash.property var htmlText(get,set) : String;
|
||||
@:flash.property var length(get,never) : Int;
|
||||
@:flash.property var maxChars(get,set) : Int;
|
||||
@:flash.property var maxScrollH(get,never) : Int;
|
||||
@:flash.property var maxScrollV(get,never) : Int;
|
||||
@:flash.property var mouseWheelEnabled(get,set) : Bool;
|
||||
@:flash.property var multiline(get,set) : Bool;
|
||||
@:flash.property var numLines(get,never) : Int;
|
||||
@:flash.property var restrict(get,set) : String;
|
||||
@:flash.property var scrollH(get,set) : Int;
|
||||
@:flash.property var scrollV(get,set) : Int;
|
||||
@:flash.property var selectable(get,set) : Bool;
|
||||
@:flash.property var selectedText(get,never) : String;
|
||||
@:flash.property var selectionBeginIndex(get,never) : Int;
|
||||
@:flash.property var selectionEndIndex(get,never) : Int;
|
||||
@:flash.property var sharpness(get,set) : Float;
|
||||
@:flash.property var styleSheet(get,set) : StyleSheet;
|
||||
@:flash.property var text(get,set) : String;
|
||||
@:flash.property var textColor(get,set) : UInt;
|
||||
@:flash.property var textHeight(get,never) : Float;
|
||||
@:flash.property @:require(flash11) var textInteractionMode(get,never) : TextInteractionMode;
|
||||
@:flash.property var textWidth(get,never) : Float;
|
||||
@:flash.property var thickness(get,set) : Float;
|
||||
@:flash.property var type(get,set) : TextFieldType;
|
||||
@:flash.property var useRichTextClipboard(get,set) : Bool;
|
||||
@:flash.property var wordWrap(get,set) : Bool;
|
||||
function new() : Void;
|
||||
function appendText(newText : String) : Void;
|
||||
@:ns("flash.text",internal) function copyRichText() : String;
|
||||
function getCharBoundaries(charIndex : Int) : flash.geom.Rectangle;
|
||||
function getCharIndexAtPoint(x : Float, y : Float) : Int;
|
||||
function getFirstCharInParagraph(charIndex : Int) : Int;
|
||||
function getImageReference(id : String) : flash.display.DisplayObject;
|
||||
function getLineIndexAtPoint(x : Float, y : Float) : Int;
|
||||
function getLineIndexOfChar(charIndex : Int) : Int;
|
||||
function getLineLength(lineIndex : Int) : Int;
|
||||
function getLineMetrics(lineIndex : Int) : TextLineMetrics;
|
||||
function getLineOffset(lineIndex : Int) : Int;
|
||||
function getLineText(lineIndex : Int) : String;
|
||||
function getParagraphLength(charIndex : Int) : Int;
|
||||
function getRawText() : String;
|
||||
function getTextFormat(beginIndex : Int = -1, endIndex : Int = -1) : TextFormat;
|
||||
function getTextRuns(beginIndex : Int = 0, endIndex : Int = 2147483647) : Array<Dynamic>;
|
||||
function getXMLText(beginIndex : Int = 0, endIndex : Int = 2147483647) : String;
|
||||
private function get_alwaysShowSelection() : Bool;
|
||||
private function get_antiAliasType() : AntiAliasType;
|
||||
private function get_autoSize() : TextFieldAutoSize;
|
||||
private function get_background() : Bool;
|
||||
private function get_backgroundColor() : UInt;
|
||||
private function get_border() : Bool;
|
||||
private function get_borderColor() : UInt;
|
||||
private function get_bottomScrollV() : Int;
|
||||
private function get_caretIndex() : Int;
|
||||
private function get_condenseWhite() : Bool;
|
||||
private function get_defaultTextFormat() : TextFormat;
|
||||
private function get_displayAsPassword() : Bool;
|
||||
private function get_embedFonts() : Bool;
|
||||
private function get_gridFitType() : GridFitType;
|
||||
private function get_htmlText() : String;
|
||||
private function get_length() : Int;
|
||||
private function get_maxChars() : Int;
|
||||
private function get_maxScrollH() : Int;
|
||||
private function get_maxScrollV() : Int;
|
||||
private function get_mouseWheelEnabled() : Bool;
|
||||
private function get_multiline() : Bool;
|
||||
private function get_numLines() : Int;
|
||||
private function get_restrict() : String;
|
||||
private function get_scrollH() : Int;
|
||||
private function get_scrollV() : Int;
|
||||
private function get_selectable() : Bool;
|
||||
private function get_selectedText() : String;
|
||||
private function get_selectionBeginIndex() : Int;
|
||||
private function get_selectionEndIndex() : Int;
|
||||
private function get_sharpness() : Float;
|
||||
private function get_styleSheet() : StyleSheet;
|
||||
private function get_text() : String;
|
||||
private function get_textColor() : UInt;
|
||||
private function get_textHeight() : Float;
|
||||
private function get_textInteractionMode() : TextInteractionMode;
|
||||
private function get_textWidth() : Float;
|
||||
private function get_thickness() : Float;
|
||||
private function get_type() : TextFieldType;
|
||||
private function get_useRichTextClipboard() : Bool;
|
||||
private function get_wordWrap() : Bool;
|
||||
function insertXMLText(beginIndex : Int, endIndex : Int, richText : String, pasting : Bool = false) : Void;
|
||||
@:ns("flash.text",internal) function pasteRichText(richText : String) : Bool;
|
||||
function replaceSelectedText(value : String) : Void;
|
||||
function replaceText(beginIndex : Int, endIndex : Int, newText : String) : Void;
|
||||
function setSelection(beginIndex : Int, endIndex : Int) : Void;
|
||||
function setTextFormat(format : TextFormat, beginIndex : Int = -1, endIndex : Int = -1) : Void;
|
||||
private function set_alwaysShowSelection(value : Bool) : Bool;
|
||||
private function set_antiAliasType(value : AntiAliasType) : AntiAliasType;
|
||||
private function set_autoSize(value : TextFieldAutoSize) : TextFieldAutoSize;
|
||||
private function set_background(value : Bool) : Bool;
|
||||
private function set_backgroundColor(value : UInt) : UInt;
|
||||
private function set_border(value : Bool) : Bool;
|
||||
private function set_borderColor(value : UInt) : UInt;
|
||||
private function set_condenseWhite(value : Bool) : Bool;
|
||||
private function set_defaultTextFormat(value : TextFormat) : TextFormat;
|
||||
private function set_displayAsPassword(value : Bool) : Bool;
|
||||
private function set_embedFonts(value : Bool) : Bool;
|
||||
private function set_gridFitType(value : GridFitType) : GridFitType;
|
||||
private function set_htmlText(value : String) : String;
|
||||
private function set_maxChars(value : Int) : Int;
|
||||
private function set_mouseWheelEnabled(value : Bool) : Bool;
|
||||
private function set_multiline(value : Bool) : Bool;
|
||||
private function set_restrict(value : String) : String;
|
||||
private function set_scrollH(value : Int) : Int;
|
||||
private function set_scrollV(value : Int) : Int;
|
||||
private function set_selectable(value : Bool) : Bool;
|
||||
private function set_sharpness(value : Float) : Float;
|
||||
private function set_styleSheet(value : StyleSheet) : StyleSheet;
|
||||
private function set_text(value : String) : String;
|
||||
private function set_textColor(value : UInt) : UInt;
|
||||
private function set_thickness(value : Float) : Float;
|
||||
private function set_type(value : TextFieldType) : TextFieldType;
|
||||
private function set_useRichTextClipboard(value : Bool) : Bool;
|
||||
private function set_wordWrap(value : Bool) : Bool;
|
||||
@:require(flash10) static function isFontCompatible(fontName : String, fontStyle : String) : Bool;
|
||||
}
|
8
Kha/Tools/macos/std/flash/text/TextFieldAutoSize.hx
Normal file
8
Kha/Tools/macos/std/flash/text/TextFieldAutoSize.hx
Normal file
@ -0,0 +1,8 @@
|
||||
package flash.text;
|
||||
|
||||
@:native("flash.text.TextFieldAutoSize") extern enum abstract TextFieldAutoSize(String) {
|
||||
var CENTER;
|
||||
var LEFT;
|
||||
var NONE;
|
||||
var RIGHT;
|
||||
}
|
6
Kha/Tools/macos/std/flash/text/TextFieldType.hx
Normal file
6
Kha/Tools/macos/std/flash/text/TextFieldType.hx
Normal file
@ -0,0 +1,6 @@
|
||||
package flash.text;
|
||||
|
||||
@:native("flash.text.TextFieldType") extern enum abstract TextFieldType(String) {
|
||||
var DYNAMIC;
|
||||
var INPUT;
|
||||
}
|
62
Kha/Tools/macos/std/flash/text/TextFormat.hx
Normal file
62
Kha/Tools/macos/std/flash/text/TextFormat.hx
Normal file
@ -0,0 +1,62 @@
|
||||
package flash.text;
|
||||
|
||||
extern class TextFormat {
|
||||
@:flash.property var align(get,set) : TextFormatAlign;
|
||||
@:flash.property var blockIndent(get,set) : Null<Float>;
|
||||
@:flash.property var bold(get,set) : Null<Bool>;
|
||||
@:flash.property var bullet(get,set) : Null<Bool>;
|
||||
@:flash.property var color(get,set) : Null<UInt>;
|
||||
@:flash.property var display(get,set) : TextFormatDisplay;
|
||||
@:flash.property var font(get,set) : String;
|
||||
@:flash.property var indent(get,set) : Null<Float>;
|
||||
@:flash.property var italic(get,set) : Null<Bool>;
|
||||
@:flash.property var kerning(get,set) : Null<Bool>;
|
||||
@:flash.property var leading(get,set) : Null<Float>;
|
||||
@:flash.property var leftMargin(get,set) : Null<Float>;
|
||||
@:flash.property var letterSpacing(get,set) : Null<Float>;
|
||||
@:flash.property var rightMargin(get,set) : Null<Float>;
|
||||
@:flash.property var size(get,set) : Null<Float>;
|
||||
@:flash.property var tabStops(get,set) : Array<UInt>;
|
||||
@:flash.property var target(get,set) : String;
|
||||
@:flash.property var underline(get,set) : Null<Bool>;
|
||||
@:flash.property var url(get,set) : String;
|
||||
function new(?font : String, size : Null<Float> = 0, color : Null<UInt> = 0, bold : Null<Bool> = false, italic : Null<Bool> = false, underline : Null<Bool> = false, ?url : String, ?target : String, ?align : TextFormatAlign, leftMargin : Null<Float> = 0, rightMargin : Null<Float> = 0, indent : Null<Float> = 0, leading : Null<Float> = 0) : Void;
|
||||
private function get_align() : TextFormatAlign;
|
||||
private function get_blockIndent() : Null<Float>;
|
||||
private function get_bold() : Null<Bool>;
|
||||
private function get_bullet() : Null<Bool>;
|
||||
private function get_color() : Null<UInt>;
|
||||
private function get_display() : TextFormatDisplay;
|
||||
private function get_font() : String;
|
||||
private function get_indent() : Null<Float>;
|
||||
private function get_italic() : Null<Bool>;
|
||||
private function get_kerning() : Null<Bool>;
|
||||
private function get_leading() : Null<Float>;
|
||||
private function get_leftMargin() : Null<Float>;
|
||||
private function get_letterSpacing() : Null<Float>;
|
||||
private function get_rightMargin() : Null<Float>;
|
||||
private function get_size() : Null<Float>;
|
||||
private function get_tabStops() : Array<UInt>;
|
||||
private function get_target() : String;
|
||||
private function get_underline() : Null<Bool>;
|
||||
private function get_url() : String;
|
||||
private function set_align(value : TextFormatAlign) : TextFormatAlign;
|
||||
private function set_blockIndent(value : Null<Float>) : Null<Float>;
|
||||
private function set_bold(value : Null<Bool>) : Null<Bool>;
|
||||
private function set_bullet(value : Null<Bool>) : Null<Bool>;
|
||||
private function set_color(value : Null<UInt>) : Null<UInt>;
|
||||
private function set_display(value : TextFormatDisplay) : TextFormatDisplay;
|
||||
private function set_font(value : String) : String;
|
||||
private function set_indent(value : Null<Float>) : Null<Float>;
|
||||
private function set_italic(value : Null<Bool>) : Null<Bool>;
|
||||
private function set_kerning(value : Null<Bool>) : Null<Bool>;
|
||||
private function set_leading(value : Null<Float>) : Null<Float>;
|
||||
private function set_leftMargin(value : Null<Float>) : Null<Float>;
|
||||
private function set_letterSpacing(value : Null<Float>) : Null<Float>;
|
||||
private function set_rightMargin(value : Null<Float>) : Null<Float>;
|
||||
private function set_size(value : Null<Float>) : Null<Float>;
|
||||
private function set_tabStops(value : Array<UInt>) : Array<UInt>;
|
||||
private function set_target(value : String) : String;
|
||||
private function set_underline(value : Null<Bool>) : Null<Bool>;
|
||||
private function set_url(value : String) : String;
|
||||
}
|
10
Kha/Tools/macos/std/flash/text/TextFormatAlign.hx
Normal file
10
Kha/Tools/macos/std/flash/text/TextFormatAlign.hx
Normal file
@ -0,0 +1,10 @@
|
||||
package flash.text;
|
||||
|
||||
@:native("flash.text.TextFormatAlign") extern enum abstract TextFormatAlign(String) {
|
||||
var CENTER;
|
||||
var END;
|
||||
var JUSTIFY;
|
||||
var LEFT;
|
||||
var RIGHT;
|
||||
var START;
|
||||
}
|
6
Kha/Tools/macos/std/flash/text/TextFormatDisplay.hx
Normal file
6
Kha/Tools/macos/std/flash/text/TextFormatDisplay.hx
Normal file
@ -0,0 +1,6 @@
|
||||
package flash.text;
|
||||
|
||||
@:native("flash.text.TextFormatDisplay") extern enum abstract TextFormatDisplay(String) {
|
||||
var BLOCK;
|
||||
var INLINE;
|
||||
}
|
6
Kha/Tools/macos/std/flash/text/TextInteractionMode.hx
Normal file
6
Kha/Tools/macos/std/flash/text/TextInteractionMode.hx
Normal file
@ -0,0 +1,6 @@
|
||||
package flash.text;
|
||||
|
||||
@:native("flash.text.TextInteractionMode") extern enum abstract TextInteractionMode(String) {
|
||||
var NORMAL;
|
||||
var SELECTION;
|
||||
}
|
11
Kha/Tools/macos/std/flash/text/TextLineMetrics.hx
Normal file
11
Kha/Tools/macos/std/flash/text/TextLineMetrics.hx
Normal file
@ -0,0 +1,11 @@
|
||||
package flash.text;
|
||||
|
||||
extern class TextLineMetrics {
|
||||
var ascent : Float;
|
||||
var descent : Float;
|
||||
var height : Float;
|
||||
var leading : Float;
|
||||
var width : Float;
|
||||
var x : Float;
|
||||
function new(x : Float, width : Float, height : Float, ascent : Float, descent : Float, leading : Float) : Void;
|
||||
}
|
14
Kha/Tools/macos/std/flash/text/TextRenderer.hx
Normal file
14
Kha/Tools/macos/std/flash/text/TextRenderer.hx
Normal file
@ -0,0 +1,14 @@
|
||||
package flash.text;
|
||||
|
||||
extern class TextRenderer {
|
||||
@:flash.property static var antiAliasType(get,set) : AntiAliasType;
|
||||
@:flash.property static var displayMode(get,set) : TextDisplayMode;
|
||||
@:flash.property static var maxLevel(get,set) : Int;
|
||||
private static function get_antiAliasType() : AntiAliasType;
|
||||
private static function get_displayMode() : TextDisplayMode;
|
||||
private static function get_maxLevel() : Int;
|
||||
static function setAdvancedAntiAliasingTable(fontName : String, fontStyle : FontStyle, colorType : TextColorType, advancedAntiAliasingTable : Array<Dynamic>) : Void;
|
||||
private static function set_antiAliasType(value : AntiAliasType) : AntiAliasType;
|
||||
private static function set_displayMode(value : TextDisplayMode) : TextDisplayMode;
|
||||
private static function set_maxLevel(value : Int) : Int;
|
||||
}
|
8
Kha/Tools/macos/std/flash/text/TextRun.hx
Normal file
8
Kha/Tools/macos/std/flash/text/TextRun.hx
Normal file
@ -0,0 +1,8 @@
|
||||
package flash.text;
|
||||
|
||||
extern class TextRun {
|
||||
var beginIndex : Int;
|
||||
var endIndex : Int;
|
||||
var textFormat : TextFormat;
|
||||
function new(beginIndex : Int, endIndex : Int, textFormat : TextFormat) : Void;
|
||||
}
|
15
Kha/Tools/macos/std/flash/text/TextSnapshot.hx
Normal file
15
Kha/Tools/macos/std/flash/text/TextSnapshot.hx
Normal file
@ -0,0 +1,15 @@
|
||||
package flash.text;
|
||||
|
||||
extern class TextSnapshot {
|
||||
@:flash.property var charCount(get,never) : Int;
|
||||
function new() : Void;
|
||||
function findText(beginIndex : Int, textToFind : String, caseSensitive : Bool) : Int;
|
||||
function getSelected(beginIndex : Int, endIndex : Int) : Bool;
|
||||
function getSelectedText(includeLineEndings : Bool = false) : String;
|
||||
function getText(beginIndex : Int, endIndex : Int, includeLineEndings : Bool = false) : String;
|
||||
function getTextRunInfo(beginIndex : Int, endIndex : Int) : Array<Dynamic>;
|
||||
private function get_charCount() : Int;
|
||||
function hitTestTextNearPos(x : Float, y : Float, maxDistance : Float = 0) : Float;
|
||||
function setSelectColor(hexColor : UInt = 16776960) : Void;
|
||||
function setSelected(beginIndex : Int, endIndex : Int, select : Bool) : Void;
|
||||
}
|
@ -0,0 +1,8 @@
|
||||
package flash.text.engine;
|
||||
|
||||
@:native("flash.text.engine.BreakOpportunity") extern enum abstract BreakOpportunity(String) {
|
||||
var ALL;
|
||||
var ANY;
|
||||
var AUTO;
|
||||
var NONE;
|
||||
}
|
6
Kha/Tools/macos/std/flash/text/engine/CFFHinting.hx
Normal file
6
Kha/Tools/macos/std/flash/text/engine/CFFHinting.hx
Normal file
@ -0,0 +1,6 @@
|
||||
package flash.text.engine;
|
||||
|
||||
@:native("flash.text.engine.CFFHinting") extern enum abstract CFFHinting(String) {
|
||||
var HORIZONTAL_STEM;
|
||||
var NONE;
|
||||
}
|
26
Kha/Tools/macos/std/flash/text/engine/ContentElement.hx
Normal file
26
Kha/Tools/macos/std/flash/text/engine/ContentElement.hx
Normal file
@ -0,0 +1,26 @@
|
||||
package flash.text.engine;
|
||||
|
||||
extern class ContentElement {
|
||||
@:flash.property var elementFormat(get,set) : ElementFormat;
|
||||
@:flash.property var eventMirror(get,set) : flash.events.EventDispatcher;
|
||||
@:flash.property var groupElement(get,never) : GroupElement;
|
||||
@:flash.property var rawText(get,never) : String;
|
||||
@:flash.property var text(get,never) : String;
|
||||
@:flash.property var textBlock(get,never) : TextBlock;
|
||||
@:flash.property var textBlockBeginIndex(get,never) : Int;
|
||||
@:flash.property var textRotation(get,set) : TextRotation;
|
||||
var userData : Dynamic;
|
||||
function new(?elementFormat : ElementFormat, ?eventMirror : flash.events.EventDispatcher, ?textRotation : TextRotation) : Void;
|
||||
private function get_elementFormat() : ElementFormat;
|
||||
private function get_eventMirror() : flash.events.EventDispatcher;
|
||||
private function get_groupElement() : GroupElement;
|
||||
private function get_rawText() : String;
|
||||
private function get_text() : String;
|
||||
private function get_textBlock() : TextBlock;
|
||||
private function get_textBlockBeginIndex() : Int;
|
||||
private function get_textRotation() : TextRotation;
|
||||
private function set_elementFormat(value : ElementFormat) : ElementFormat;
|
||||
private function set_eventMirror(value : flash.events.EventDispatcher) : flash.events.EventDispatcher;
|
||||
private function set_textRotation(value : TextRotation) : TextRotation;
|
||||
static final GRAPHIC_ELEMENT : UInt;
|
||||
}
|
7
Kha/Tools/macos/std/flash/text/engine/DigitCase.hx
Normal file
7
Kha/Tools/macos/std/flash/text/engine/DigitCase.hx
Normal file
@ -0,0 +1,7 @@
|
||||
package flash.text.engine;
|
||||
|
||||
@:native("flash.text.engine.DigitCase") extern enum abstract DigitCase(String) {
|
||||
var DEFAULT;
|
||||
var LINING;
|
||||
var OLD_STYLE;
|
||||
}
|
7
Kha/Tools/macos/std/flash/text/engine/DigitWidth.hx
Normal file
7
Kha/Tools/macos/std/flash/text/engine/DigitWidth.hx
Normal file
@ -0,0 +1,7 @@
|
||||
package flash.text.engine;
|
||||
|
||||
@:native("flash.text.engine.DigitWidth") extern enum abstract DigitWidth(String) {
|
||||
var DEFAULT;
|
||||
var PROPORTIONAL;
|
||||
var TABULAR;
|
||||
}
|
11
Kha/Tools/macos/std/flash/text/engine/EastAsianJustifier.hx
Normal file
11
Kha/Tools/macos/std/flash/text/engine/EastAsianJustifier.hx
Normal file
@ -0,0 +1,11 @@
|
||||
package flash.text.engine;
|
||||
|
||||
extern final class EastAsianJustifier extends TextJustifier {
|
||||
@:flash.property var composeTrailingIdeographicSpaces(get,set) : Bool;
|
||||
@:flash.property var justificationStyle(get,set) : JustificationStyle;
|
||||
function new(?locale : String, ?lineJustification : LineJustification, ?justificationStyle : JustificationStyle) : Void;
|
||||
private function get_composeTrailingIdeographicSpaces() : Bool;
|
||||
private function get_justificationStyle() : JustificationStyle;
|
||||
private function set_composeTrailingIdeographicSpaces(value : Bool) : Bool;
|
||||
private function set_justificationStyle(value : JustificationStyle) : JustificationStyle;
|
||||
}
|
61
Kha/Tools/macos/std/flash/text/engine/ElementFormat.hx
Normal file
61
Kha/Tools/macos/std/flash/text/engine/ElementFormat.hx
Normal file
@ -0,0 +1,61 @@
|
||||
package flash.text.engine;
|
||||
|
||||
extern final class ElementFormat {
|
||||
@:flash.property var alignmentBaseline(get,set) : TextBaseline;
|
||||
@:flash.property var alpha(get,set) : Float;
|
||||
@:flash.property var baselineShift(get,set) : Float;
|
||||
@:flash.property var breakOpportunity(get,set) : BreakOpportunity;
|
||||
@:flash.property var color(get,set) : UInt;
|
||||
@:flash.property var digitCase(get,set) : DigitCase;
|
||||
@:flash.property var digitWidth(get,set) : DigitWidth;
|
||||
@:flash.property var dominantBaseline(get,set) : TextBaseline;
|
||||
@:flash.property var fontDescription(get,set) : FontDescription;
|
||||
@:flash.property var fontSize(get,set) : Float;
|
||||
@:flash.property var kerning(get,set) : Kerning;
|
||||
@:flash.property var ligatureLevel(get,set) : LigatureLevel;
|
||||
@:flash.property var locale(get,set) : String;
|
||||
@:flash.property var locked(get,set) : Bool;
|
||||
@:flash.property var textRotation(get,set) : TextRotation;
|
||||
@:flash.property var trackingLeft(get,set) : Float;
|
||||
@:flash.property var trackingRight(get,set) : Float;
|
||||
@:flash.property var typographicCase(get,set) : TypographicCase;
|
||||
function new(?fontDescription : FontDescription, fontSize : Float = 12, color : UInt = 0, alpha : Float = 1, ?textRotation : TextRotation, ?dominantBaseline : TextBaseline, ?alignmentBaseline : TextBaseline, baselineShift : Float = 0, ?kerning : Kerning, trackingRight : Float = 0, trackingLeft : Float = 0, ?locale : String, ?breakOpportunity : BreakOpportunity, ?digitCase : DigitCase, ?digitWidth : DigitWidth, ?ligatureLevel : LigatureLevel, ?typographicCase : TypographicCase) : Void;
|
||||
function clone() : ElementFormat;
|
||||
function getFontMetrics() : FontMetrics;
|
||||
private function get_alignmentBaseline() : TextBaseline;
|
||||
private function get_alpha() : Float;
|
||||
private function get_baselineShift() : Float;
|
||||
private function get_breakOpportunity() : BreakOpportunity;
|
||||
private function get_color() : UInt;
|
||||
private function get_digitCase() : DigitCase;
|
||||
private function get_digitWidth() : DigitWidth;
|
||||
private function get_dominantBaseline() : TextBaseline;
|
||||
private function get_fontDescription() : FontDescription;
|
||||
private function get_fontSize() : Float;
|
||||
private function get_kerning() : Kerning;
|
||||
private function get_ligatureLevel() : LigatureLevel;
|
||||
private function get_locale() : String;
|
||||
private function get_locked() : Bool;
|
||||
private function get_textRotation() : TextRotation;
|
||||
private function get_trackingLeft() : Float;
|
||||
private function get_trackingRight() : Float;
|
||||
private function get_typographicCase() : TypographicCase;
|
||||
private function set_alignmentBaseline(value : TextBaseline) : TextBaseline;
|
||||
private function set_alpha(value : Float) : Float;
|
||||
private function set_baselineShift(value : Float) : Float;
|
||||
private function set_breakOpportunity(value : BreakOpportunity) : BreakOpportunity;
|
||||
private function set_color(value : UInt) : UInt;
|
||||
private function set_digitCase(value : DigitCase) : DigitCase;
|
||||
private function set_digitWidth(value : DigitWidth) : DigitWidth;
|
||||
private function set_dominantBaseline(value : TextBaseline) : TextBaseline;
|
||||
private function set_fontDescription(value : FontDescription) : FontDescription;
|
||||
private function set_fontSize(value : Float) : Float;
|
||||
private function set_kerning(value : Kerning) : Kerning;
|
||||
private function set_ligatureLevel(value : LigatureLevel) : LigatureLevel;
|
||||
private function set_locale(value : String) : String;
|
||||
private function set_locked(value : Bool) : Bool;
|
||||
private function set_textRotation(value : TextRotation) : TextRotation;
|
||||
private function set_trackingLeft(value : Float) : Float;
|
||||
private function set_trackingRight(value : Float) : Float;
|
||||
private function set_typographicCase(value : TypographicCase) : TypographicCase;
|
||||
}
|
29
Kha/Tools/macos/std/flash/text/engine/FontDescription.hx
Normal file
29
Kha/Tools/macos/std/flash/text/engine/FontDescription.hx
Normal file
@ -0,0 +1,29 @@
|
||||
package flash.text.engine;
|
||||
|
||||
extern final class FontDescription {
|
||||
@:flash.property var cffHinting(get,set) : CFFHinting;
|
||||
@:flash.property var fontLookup(get,set) : FontLookup;
|
||||
@:flash.property var fontName(get,set) : String;
|
||||
@:flash.property var fontPosture(get,set) : FontPosture;
|
||||
@:flash.property var fontWeight(get,set) : FontWeight;
|
||||
@:flash.property var locked(get,set) : Bool;
|
||||
@:flash.property var renderingMode(get,set) : RenderingMode;
|
||||
function new(?fontName : String, ?fontWeight : FontWeight, ?fontPosture : FontPosture, ?fontLookup : FontLookup, ?renderingMode : RenderingMode, ?cffHinting : CFFHinting) : Void;
|
||||
function clone() : FontDescription;
|
||||
private function get_cffHinting() : CFFHinting;
|
||||
private function get_fontLookup() : FontLookup;
|
||||
private function get_fontName() : String;
|
||||
private function get_fontPosture() : FontPosture;
|
||||
private function get_fontWeight() : FontWeight;
|
||||
private function get_locked() : Bool;
|
||||
private function get_renderingMode() : RenderingMode;
|
||||
private function set_cffHinting(value : CFFHinting) : CFFHinting;
|
||||
private function set_fontLookup(value : FontLookup) : FontLookup;
|
||||
private function set_fontName(value : String) : String;
|
||||
private function set_fontPosture(value : FontPosture) : FontPosture;
|
||||
private function set_fontWeight(value : FontWeight) : FontWeight;
|
||||
private function set_locked(value : Bool) : Bool;
|
||||
private function set_renderingMode(value : RenderingMode) : RenderingMode;
|
||||
@:require(flash10_1) static function isDeviceFontCompatible(fontName : String, fontWeight : FontWeight, fontPosture : FontPosture) : Bool;
|
||||
static function isFontCompatible(fontName : String, fontWeight : FontWeight, fontPosture : FontPosture) : Bool;
|
||||
}
|
6
Kha/Tools/macos/std/flash/text/engine/FontLookup.hx
Normal file
6
Kha/Tools/macos/std/flash/text/engine/FontLookup.hx
Normal file
@ -0,0 +1,6 @@
|
||||
package flash.text.engine;
|
||||
|
||||
@:native("flash.text.engine.FontLookup") extern enum abstract FontLookup(String) {
|
||||
var DEVICE;
|
||||
var EMBEDDED_CFF;
|
||||
}
|
15
Kha/Tools/macos/std/flash/text/engine/FontMetrics.hx
Normal file
15
Kha/Tools/macos/std/flash/text/engine/FontMetrics.hx
Normal file
@ -0,0 +1,15 @@
|
||||
package flash.text.engine;
|
||||
|
||||
extern final class FontMetrics {
|
||||
var emBox : flash.geom.Rectangle;
|
||||
var lineGap : Float;
|
||||
var strikethroughOffset : Float;
|
||||
var strikethroughThickness : Float;
|
||||
var subscriptOffset : Float;
|
||||
var subscriptScale : Float;
|
||||
var superscriptOffset : Float;
|
||||
var superscriptScale : Float;
|
||||
var underlineOffset : Float;
|
||||
var underlineThickness : Float;
|
||||
function new(emBox : flash.geom.Rectangle, strikethroughOffset : Float, strikethroughThickness : Float, underlineOffset : Float, underlineThickness : Float, subscriptOffset : Float, subscriptScale : Float, superscriptOffset : Float, superscriptScale : Float, lineGap : Float = 0) : Void;
|
||||
}
|
6
Kha/Tools/macos/std/flash/text/engine/FontPosture.hx
Normal file
6
Kha/Tools/macos/std/flash/text/engine/FontPosture.hx
Normal file
@ -0,0 +1,6 @@
|
||||
package flash.text.engine;
|
||||
|
||||
@:native("flash.text.engine.FontPosture") extern enum abstract FontPosture(String) {
|
||||
var ITALIC;
|
||||
var NORMAL;
|
||||
}
|
6
Kha/Tools/macos/std/flash/text/engine/FontWeight.hx
Normal file
6
Kha/Tools/macos/std/flash/text/engine/FontWeight.hx
Normal file
@ -0,0 +1,6 @@
|
||||
package flash.text.engine;
|
||||
|
||||
@:native("flash.text.engine.FontWeight") extern enum abstract FontWeight(String) {
|
||||
var BOLD;
|
||||
var NORMAL;
|
||||
}
|
14
Kha/Tools/macos/std/flash/text/engine/GraphicElement.hx
Normal file
14
Kha/Tools/macos/std/flash/text/engine/GraphicElement.hx
Normal file
@ -0,0 +1,14 @@
|
||||
package flash.text.engine;
|
||||
|
||||
extern final class GraphicElement extends ContentElement {
|
||||
@:flash.property var elementHeight(get,set) : Float;
|
||||
@:flash.property var elementWidth(get,set) : Float;
|
||||
@:flash.property var graphic(get,set) : flash.display.DisplayObject;
|
||||
function new(?graphic : flash.display.DisplayObject, elementWidth : Float = 15, elementHeight : Float = 15, ?elementFormat : ElementFormat, ?eventMirror : flash.events.EventDispatcher, ?textRotation : TextRotation) : Void;
|
||||
private function get_elementHeight() : Float;
|
||||
private function get_elementWidth() : Float;
|
||||
private function get_graphic() : flash.display.DisplayObject;
|
||||
private function set_elementHeight(value : Float) : Float;
|
||||
private function set_elementWidth(value : Float) : Float;
|
||||
private function set_graphic(value : flash.display.DisplayObject) : flash.display.DisplayObject;
|
||||
}
|
16
Kha/Tools/macos/std/flash/text/engine/GroupElement.hx
Normal file
16
Kha/Tools/macos/std/flash/text/engine/GroupElement.hx
Normal file
@ -0,0 +1,16 @@
|
||||
package flash.text.engine;
|
||||
|
||||
extern final class GroupElement extends ContentElement {
|
||||
@:flash.property var elementCount(get,never) : Int;
|
||||
function new(?elements : flash.Vector<ContentElement>, ?elementFormat : ElementFormat, ?eventMirror : flash.events.EventDispatcher, ?textRotation : TextRotation) : Void;
|
||||
function getElementAt(index : Int) : ContentElement;
|
||||
function getElementAtCharIndex(charIndex : Int) : ContentElement;
|
||||
function getElementIndex(element : ContentElement) : Int;
|
||||
private function get_elementCount() : Int;
|
||||
function groupElements(beginIndex : Int, endIndex : Int) : GroupElement;
|
||||
function mergeTextElements(beginIndex : Int, endIndex : Int) : TextElement;
|
||||
function replaceElements(beginIndex : Int, endIndex : Int, newElements : flash.Vector<ContentElement>) : flash.Vector<ContentElement>;
|
||||
function setElements(value : flash.Vector<ContentElement>) : Void;
|
||||
function splitTextElement(elementIndex : Int, splitIndex : Int) : TextElement;
|
||||
function ungroupElements(groupIndex : Int) : Void;
|
||||
}
|
@ -0,0 +1,7 @@
|
||||
package flash.text.engine;
|
||||
|
||||
@:native("flash.text.engine.JustificationStyle") extern enum abstract JustificationStyle(String) {
|
||||
var PRIORITIZE_LEAST_ADJUSTMENT;
|
||||
var PUSH_IN_KINSOKU;
|
||||
var PUSH_OUT_ONLY;
|
||||
}
|
7
Kha/Tools/macos/std/flash/text/engine/Kerning.hx
Normal file
7
Kha/Tools/macos/std/flash/text/engine/Kerning.hx
Normal file
@ -0,0 +1,7 @@
|
||||
package flash.text.engine;
|
||||
|
||||
@:native("flash.text.engine.Kerning") extern enum abstract Kerning(String) {
|
||||
var AUTO;
|
||||
var OFF;
|
||||
var ON;
|
||||
}
|
9
Kha/Tools/macos/std/flash/text/engine/LigatureLevel.hx
Normal file
9
Kha/Tools/macos/std/flash/text/engine/LigatureLevel.hx
Normal file
@ -0,0 +1,9 @@
|
||||
package flash.text.engine;
|
||||
|
||||
@:native("flash.text.engine.LigatureLevel") extern enum abstract LigatureLevel(String) {
|
||||
var COMMON;
|
||||
var EXOTIC;
|
||||
var MINIMUM;
|
||||
var NONE;
|
||||
var UNCOMMON;
|
||||
}
|
@ -0,0 +1,8 @@
|
||||
package flash.text.engine;
|
||||
|
||||
@:native("flash.text.engine.LineJustification") extern enum abstract LineJustification(String) {
|
||||
var ALL_BUT_LAST;
|
||||
var ALL_BUT_MANDATORY_BREAK;
|
||||
var ALL_INCLUDING_LAST;
|
||||
var UNJUSTIFIED;
|
||||
}
|
6
Kha/Tools/macos/std/flash/text/engine/RenderingMode.hx
Normal file
6
Kha/Tools/macos/std/flash/text/engine/RenderingMode.hx
Normal file
@ -0,0 +1,6 @@
|
||||
package flash.text.engine;
|
||||
|
||||
@:native("flash.text.engine.RenderingMode") extern enum abstract RenderingMode(String) {
|
||||
var CFF;
|
||||
var NORMAL;
|
||||
}
|
17
Kha/Tools/macos/std/flash/text/engine/SpaceJustifier.hx
Normal file
17
Kha/Tools/macos/std/flash/text/engine/SpaceJustifier.hx
Normal file
@ -0,0 +1,17 @@
|
||||
package flash.text.engine;
|
||||
|
||||
extern final class SpaceJustifier extends TextJustifier {
|
||||
@:flash.property var letterSpacing(get,set) : Bool;
|
||||
@:flash.property @:require(flash10_1) var maximumSpacing(get,set) : Float;
|
||||
@:flash.property @:require(flash10_1) var minimumSpacing(get,set) : Float;
|
||||
@:flash.property @:require(flash10_1) var optimumSpacing(get,set) : Float;
|
||||
function new(?locale : String, ?lineJustification : LineJustification, letterSpacing : Bool = false) : Void;
|
||||
private function get_letterSpacing() : Bool;
|
||||
private function get_maximumSpacing() : Float;
|
||||
private function get_minimumSpacing() : Float;
|
||||
private function get_optimumSpacing() : Float;
|
||||
private function set_letterSpacing(value : Bool) : Bool;
|
||||
private function set_maximumSpacing(value : Float) : Float;
|
||||
private function set_minimumSpacing(value : Float) : Float;
|
||||
private function set_optimumSpacing(value : Float) : Float;
|
||||
}
|
8
Kha/Tools/macos/std/flash/text/engine/TabAlignment.hx
Normal file
8
Kha/Tools/macos/std/flash/text/engine/TabAlignment.hx
Normal file
@ -0,0 +1,8 @@
|
||||
package flash.text.engine;
|
||||
|
||||
@:native("flash.text.engine.TabAlignment") extern enum abstract TabAlignment(String) {
|
||||
var CENTER;
|
||||
var DECIMAL;
|
||||
var END;
|
||||
var START;
|
||||
}
|
14
Kha/Tools/macos/std/flash/text/engine/TabStop.hx
Normal file
14
Kha/Tools/macos/std/flash/text/engine/TabStop.hx
Normal file
@ -0,0 +1,14 @@
|
||||
package flash.text.engine;
|
||||
|
||||
extern final class TabStop {
|
||||
@:flash.property var alignment(get,set) : TabAlignment;
|
||||
@:flash.property var decimalAlignmentToken(get,set) : String;
|
||||
@:flash.property var position(get,set) : Float;
|
||||
function new(?alignment : TabAlignment, position : Float = 0, ?decimalAlignmentToken : String) : Void;
|
||||
private function get_alignment() : TabAlignment;
|
||||
private function get_decimalAlignmentToken() : String;
|
||||
private function get_position() : Float;
|
||||
private function set_alignment(value : TabAlignment) : TabAlignment;
|
||||
private function set_decimalAlignmentToken(value : String) : String;
|
||||
private function set_position(value : Float) : Float;
|
||||
}
|
11
Kha/Tools/macos/std/flash/text/engine/TextBaseline.hx
Normal file
11
Kha/Tools/macos/std/flash/text/engine/TextBaseline.hx
Normal file
@ -0,0 +1,11 @@
|
||||
package flash.text.engine;
|
||||
|
||||
@:native("flash.text.engine.TextBaseline") extern enum abstract TextBaseline(String) {
|
||||
var ASCENT;
|
||||
var DESCENT;
|
||||
var IDEOGRAPHIC_BOTTOM;
|
||||
var IDEOGRAPHIC_CENTER;
|
||||
var IDEOGRAPHIC_TOP;
|
||||
var ROMAN;
|
||||
var USE_DOMINANT_BASELINE;
|
||||
}
|
51
Kha/Tools/macos/std/flash/text/engine/TextBlock.hx
Normal file
51
Kha/Tools/macos/std/flash/text/engine/TextBlock.hx
Normal file
@ -0,0 +1,51 @@
|
||||
package flash.text.engine;
|
||||
|
||||
extern final class TextBlock {
|
||||
@:flash.property var applyNonLinearFontScaling(get,set) : Bool;
|
||||
@:flash.property var baselineFontDescription(get,set) : FontDescription;
|
||||
@:flash.property var baselineFontSize(get,set) : Float;
|
||||
@:flash.property var baselineZero(get,set) : TextBaseline;
|
||||
@:flash.property var bidiLevel(get,set) : Int;
|
||||
@:flash.property var content(get,set) : ContentElement;
|
||||
@:flash.property var firstInvalidLine(get,never) : TextLine;
|
||||
@:flash.property var firstLine(get,never) : TextLine;
|
||||
@:flash.property var lastLine(get,never) : TextLine;
|
||||
@:flash.property var lineRotation(get,set) : TextRotation;
|
||||
@:flash.property var tabStops(get,set) : flash.Vector<TabStop>;
|
||||
@:flash.property var textJustifier(get,set) : TextJustifier;
|
||||
@:flash.property var textLineCreationResult(get,never) : TextLineCreationResult;
|
||||
var userData : Dynamic;
|
||||
function new(?content : ContentElement, ?tabStops : flash.Vector<TabStop>, ?textJustifier : TextJustifier, ?lineRotation : TextRotation, ?baselineZero : TextBaseline, bidiLevel : Int = 0, applyNonLinearFontScaling : Bool = true, ?baselineFontDescription : FontDescription, baselineFontSize : Float = 12) : Void;
|
||||
function createTextLine(?previousLine : TextLine, width : Float = 1000000, lineOffset : Float = 0, fitSomething : Bool = false) : TextLine;
|
||||
function dump() : String;
|
||||
function findNextAtomBoundary(afterCharIndex : Int) : Int;
|
||||
function findNextWordBoundary(afterCharIndex : Int) : Int;
|
||||
function findPreviousAtomBoundary(beforeCharIndex : Int) : Int;
|
||||
function findPreviousWordBoundary(beforeCharIndex : Int) : Int;
|
||||
function getTextLineAtCharIndex(charIndex : Int) : TextLine;
|
||||
private function get_applyNonLinearFontScaling() : Bool;
|
||||
private function get_baselineFontDescription() : FontDescription;
|
||||
private function get_baselineFontSize() : Float;
|
||||
private function get_baselineZero() : TextBaseline;
|
||||
private function get_bidiLevel() : Int;
|
||||
private function get_content() : ContentElement;
|
||||
private function get_firstInvalidLine() : TextLine;
|
||||
private function get_firstLine() : TextLine;
|
||||
private function get_lastLine() : TextLine;
|
||||
private function get_lineRotation() : TextRotation;
|
||||
private function get_tabStops() : flash.Vector<TabStop>;
|
||||
private function get_textJustifier() : TextJustifier;
|
||||
private function get_textLineCreationResult() : TextLineCreationResult;
|
||||
@:require(flash10_1) function recreateTextLine(textLine : TextLine, ?previousLine : TextLine, width : Float = 1000000, lineOffset : Float = 0, fitSomething : Bool = false) : TextLine;
|
||||
@:require(flash10_1) function releaseLineCreationData() : Void;
|
||||
function releaseLines(firstLine : TextLine, lastLine : TextLine) : Void;
|
||||
private function set_applyNonLinearFontScaling(value : Bool) : Bool;
|
||||
private function set_baselineFontDescription(value : FontDescription) : FontDescription;
|
||||
private function set_baselineFontSize(value : Float) : Float;
|
||||
private function set_baselineZero(value : TextBaseline) : TextBaseline;
|
||||
private function set_bidiLevel(value : Int) : Int;
|
||||
private function set_content(value : ContentElement) : ContentElement;
|
||||
private function set_lineRotation(value : TextRotation) : TextRotation;
|
||||
private function set_tabStops(value : flash.Vector<TabStop>) : flash.Vector<TabStop>;
|
||||
private function set_textJustifier(value : TextJustifier) : TextJustifier;
|
||||
}
|
7
Kha/Tools/macos/std/flash/text/engine/TextElement.hx
Normal file
7
Kha/Tools/macos/std/flash/text/engine/TextElement.hx
Normal file
@ -0,0 +1,7 @@
|
||||
package flash.text.engine;
|
||||
|
||||
extern final class TextElement extends ContentElement {
|
||||
function new(?text : String, ?elementFormat : ElementFormat, ?eventMirror : flash.events.EventDispatcher, ?textRotation : TextRotation) : Void;
|
||||
function replaceText(beginIndex : Int, endIndex : Int, newText : String) : Void;
|
||||
private function set_text(value : String) : String;
|
||||
}
|
12
Kha/Tools/macos/std/flash/text/engine/TextJustifier.hx
Normal file
12
Kha/Tools/macos/std/flash/text/engine/TextJustifier.hx
Normal file
@ -0,0 +1,12 @@
|
||||
package flash.text.engine;
|
||||
|
||||
extern class TextJustifier {
|
||||
@:flash.property var lineJustification(get,set) : LineJustification;
|
||||
@:flash.property var locale(get,never) : String;
|
||||
function new(locale : String, lineJustification : LineJustification) : Void;
|
||||
function clone() : TextJustifier;
|
||||
private function get_lineJustification() : LineJustification;
|
||||
private function get_locale() : String;
|
||||
private function set_lineJustification(value : LineJustification) : LineJustification;
|
||||
static function getJustifierForLocale(locale : String) : TextJustifier;
|
||||
}
|
60
Kha/Tools/macos/std/flash/text/engine/TextLine.hx
Normal file
60
Kha/Tools/macos/std/flash/text/engine/TextLine.hx
Normal file
@ -0,0 +1,60 @@
|
||||
package flash.text.engine;
|
||||
|
||||
extern final class TextLine extends flash.display.DisplayObjectContainer {
|
||||
@:flash.property var ascent(get,never) : Float;
|
||||
@:flash.property var atomCount(get,never) : Int;
|
||||
@:flash.property var descent(get,never) : Float;
|
||||
@:flash.property var hasGraphicElement(get,never) : Bool;
|
||||
@:flash.property @:require(flash10_1) var hasTabs(get,never) : Bool;
|
||||
@:flash.property var mirrorRegions(get,never) : flash.Vector<TextLineMirrorRegion>;
|
||||
@:flash.property var nextLine(get,never) : TextLine;
|
||||
@:flash.property var previousLine(get,never) : TextLine;
|
||||
@:flash.property var rawTextLength(get,never) : Int;
|
||||
@:flash.property var specifiedWidth(get,never) : Float;
|
||||
@:flash.property var textBlock(get,never) : TextBlock;
|
||||
@:flash.property var textBlockBeginIndex(get,never) : Int;
|
||||
@:flash.property var textHeight(get,never) : Float;
|
||||
@:flash.property var textWidth(get,never) : Float;
|
||||
@:flash.property var totalAscent(get,never) : Float;
|
||||
@:flash.property var totalDescent(get,never) : Float;
|
||||
@:flash.property var totalHeight(get,never) : Float;
|
||||
@:flash.property var unjustifiedTextWidth(get,never) : Float;
|
||||
var userData : Dynamic;
|
||||
@:flash.property var validity(get,set) : String;
|
||||
function new() : Void;
|
||||
function dump() : String;
|
||||
function flushAtomData() : Void;
|
||||
function getAtomBidiLevel(atomIndex : Int) : Int;
|
||||
function getAtomBounds(atomIndex : Int) : flash.geom.Rectangle;
|
||||
function getAtomCenter(atomIndex : Int) : Float;
|
||||
function getAtomGraphic(atomIndex : Int) : flash.display.DisplayObject;
|
||||
function getAtomIndexAtCharIndex(charIndex : Int) : Int;
|
||||
function getAtomIndexAtPoint(stageX : Float, stageY : Float) : Int;
|
||||
function getAtomTextBlockBeginIndex(atomIndex : Int) : Int;
|
||||
function getAtomTextBlockEndIndex(atomIndex : Int) : Int;
|
||||
function getAtomTextRotation(atomIndex : Int) : String;
|
||||
function getAtomWordBoundaryOnLeft(atomIndex : Int) : Bool;
|
||||
function getBaselinePosition(baseline : String) : Float;
|
||||
function getMirrorRegion(mirror : flash.events.EventDispatcher) : TextLineMirrorRegion;
|
||||
private function get_ascent() : Float;
|
||||
private function get_atomCount() : Int;
|
||||
private function get_descent() : Float;
|
||||
private function get_hasGraphicElement() : Bool;
|
||||
private function get_hasTabs() : Bool;
|
||||
private function get_mirrorRegions() : flash.Vector<TextLineMirrorRegion>;
|
||||
private function get_nextLine() : TextLine;
|
||||
private function get_previousLine() : TextLine;
|
||||
private function get_rawTextLength() : Int;
|
||||
private function get_specifiedWidth() : Float;
|
||||
private function get_textBlock() : TextBlock;
|
||||
private function get_textBlockBeginIndex() : Int;
|
||||
private function get_textHeight() : Float;
|
||||
private function get_textWidth() : Float;
|
||||
private function get_totalAscent() : Float;
|
||||
private function get_totalDescent() : Float;
|
||||
private function get_totalHeight() : Float;
|
||||
private function get_unjustifiedTextWidth() : Float;
|
||||
private function get_validity() : String;
|
||||
private function set_validity(value : String) : String;
|
||||
static final MAX_LINE_WIDTH : Int;
|
||||
}
|
@ -0,0 +1,8 @@
|
||||
package flash.text.engine;
|
||||
|
||||
@:native("flash.text.engine.TextLineCreationResult") extern enum abstract TextLineCreationResult(String) {
|
||||
var COMPLETE;
|
||||
var EMERGENCY;
|
||||
var INSUFFICIENT_WIDTH;
|
||||
var SUCCESS;
|
||||
}
|
@ -0,0 +1,17 @@
|
||||
package flash.text.engine;
|
||||
|
||||
extern final class TextLineMirrorRegion {
|
||||
@:flash.property var bounds(get,never) : flash.geom.Rectangle;
|
||||
@:flash.property var element(get,never) : ContentElement;
|
||||
@:flash.property var mirror(get,never) : flash.events.EventDispatcher;
|
||||
@:flash.property var nextRegion(get,never) : TextLineMirrorRegion;
|
||||
@:flash.property var previousRegion(get,never) : TextLineMirrorRegion;
|
||||
@:flash.property var textLine(get,never) : TextLine;
|
||||
function new() : Void;
|
||||
private function get_bounds() : flash.geom.Rectangle;
|
||||
private function get_element() : ContentElement;
|
||||
private function get_mirror() : flash.events.EventDispatcher;
|
||||
private function get_nextRegion() : TextLineMirrorRegion;
|
||||
private function get_previousRegion() : TextLineMirrorRegion;
|
||||
private function get_textLine() : TextLine;
|
||||
}
|
@ -0,0 +1,8 @@
|
||||
package flash.text.engine;
|
||||
|
||||
@:native("flash.text.engine.TextLineValidity") extern enum abstract TextLineValidity(String) {
|
||||
var INVALID;
|
||||
var POSSIBLY_INVALID;
|
||||
var STATIC;
|
||||
var VALID;
|
||||
}
|
9
Kha/Tools/macos/std/flash/text/engine/TextRotation.hx
Normal file
9
Kha/Tools/macos/std/flash/text/engine/TextRotation.hx
Normal file
@ -0,0 +1,9 @@
|
||||
package flash.text.engine;
|
||||
|
||||
@:native("flash.text.engine.TextRotation") extern enum abstract TextRotation(String) {
|
||||
var AUTO;
|
||||
var ROTATE_0;
|
||||
var ROTATE_180;
|
||||
var ROTATE_270;
|
||||
var ROTATE_90;
|
||||
}
|
11
Kha/Tools/macos/std/flash/text/engine/TypographicCase.hx
Normal file
11
Kha/Tools/macos/std/flash/text/engine/TypographicCase.hx
Normal file
@ -0,0 +1,11 @@
|
||||
package flash.text.engine;
|
||||
|
||||
@:native("flash.text.engine.TypographicCase") extern enum abstract TypographicCase(String) {
|
||||
var CAPS;
|
||||
var CAPS_AND_SMALL_CAPS;
|
||||
var DEFAULT;
|
||||
var LOWERCASE;
|
||||
var SMALL_CAPS;
|
||||
var TITLE;
|
||||
var UPPERCASE;
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
package flash.text.ime;
|
||||
|
||||
extern final class CompositionAttributeRange {
|
||||
var converted : Bool;
|
||||
var relativeEnd : Int;
|
||||
var relativeStart : Int;
|
||||
var selected : Bool;
|
||||
function new(relativeStart : Int, relativeEnd : Int, selected : Bool, converted : Bool) : Void;
|
||||
}
|
19
Kha/Tools/macos/std/flash/text/ime/IIMEClient.hx
Normal file
19
Kha/Tools/macos/std/flash/text/ime/IIMEClient.hx
Normal file
@ -0,0 +1,19 @@
|
||||
package flash.text.ime;
|
||||
|
||||
extern interface IIMEClient {
|
||||
@:flash.property var compositionEndIndex(get,never) : Int;
|
||||
@:flash.property var compositionStartIndex(get,never) : Int;
|
||||
@:flash.property var selectionActiveIndex(get,never) : Int;
|
||||
@:flash.property var selectionAnchorIndex(get,never) : Int;
|
||||
@:flash.property var verticalTextLayout(get,never) : Bool;
|
||||
function confirmComposition(?text : String, preserveSelection : Bool = false) : Void;
|
||||
function getTextBounds(startIndex : Int, endIndex : Int) : flash.geom.Rectangle;
|
||||
function getTextInRange(startIndex : Int, endIndex : Int) : String;
|
||||
private function get_compositionEndIndex() : Int;
|
||||
private function get_compositionStartIndex() : Int;
|
||||
private function get_selectionActiveIndex() : Int;
|
||||
private function get_selectionAnchorIndex() : Int;
|
||||
private function get_verticalTextLayout() : Bool;
|
||||
function selectRange(anchorIndex : Int, activeIndex : Int) : Void;
|
||||
function updateComposition(text : String, attributes : flash.Vector<CompositionAttributeRange>, compositionStartIndex : Int, compositionEndIndex : Int) : Void;
|
||||
}
|
Reference in New Issue
Block a user