forked from LeenkxTeam/LNXSDK
Update Files
This commit is contained in:
@ -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/linux_x64/std/flash/text/engine/CFFHinting.hx
Normal file
6
Kha/Tools/linux_x64/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/linux_x64/std/flash/text/engine/ContentElement.hx
Normal file
26
Kha/Tools/linux_x64/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/linux_x64/std/flash/text/engine/DigitCase.hx
Normal file
7
Kha/Tools/linux_x64/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/linux_x64/std/flash/text/engine/DigitWidth.hx
Normal file
7
Kha/Tools/linux_x64/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;
|
||||
}
|
@ -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/linux_x64/std/flash/text/engine/ElementFormat.hx
Normal file
61
Kha/Tools/linux_x64/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/linux_x64/std/flash/text/engine/FontDescription.hx
Normal file
29
Kha/Tools/linux_x64/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/linux_x64/std/flash/text/engine/FontLookup.hx
Normal file
6
Kha/Tools/linux_x64/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/linux_x64/std/flash/text/engine/FontMetrics.hx
Normal file
15
Kha/Tools/linux_x64/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/linux_x64/std/flash/text/engine/FontPosture.hx
Normal file
6
Kha/Tools/linux_x64/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/linux_x64/std/flash/text/engine/FontWeight.hx
Normal file
6
Kha/Tools/linux_x64/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/linux_x64/std/flash/text/engine/GraphicElement.hx
Normal file
14
Kha/Tools/linux_x64/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/linux_x64/std/flash/text/engine/GroupElement.hx
Normal file
16
Kha/Tools/linux_x64/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/linux_x64/std/flash/text/engine/Kerning.hx
Normal file
7
Kha/Tools/linux_x64/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;
|
||||
}
|
@ -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;
|
||||
}
|
@ -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/linux_x64/std/flash/text/engine/SpaceJustifier.hx
Normal file
17
Kha/Tools/linux_x64/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;
|
||||
}
|
@ -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/linux_x64/std/flash/text/engine/TabStop.hx
Normal file
14
Kha/Tools/linux_x64/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/linux_x64/std/flash/text/engine/TextBaseline.hx
Normal file
11
Kha/Tools/linux_x64/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/linux_x64/std/flash/text/engine/TextBlock.hx
Normal file
51
Kha/Tools/linux_x64/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/linux_x64/std/flash/text/engine/TextElement.hx
Normal file
7
Kha/Tools/linux_x64/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/linux_x64/std/flash/text/engine/TextJustifier.hx
Normal file
12
Kha/Tools/linux_x64/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/linux_x64/std/flash/text/engine/TextLine.hx
Normal file
60
Kha/Tools/linux_x64/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;
|
||||
}
|
@ -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/linux_x64/std/flash/text/engine/TypographicCase.hx
Normal file
11
Kha/Tools/linux_x64/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;
|
||||
}
|
Reference in New Issue
Block a user