Nicolas Cannasse 14 years ago
parent
commit
0dadae59a5

+ 1 - 0
std/flash9/text/TextField.hx

@@ -35,6 +35,7 @@ extern class TextField extends flash.display.InteractiveObject {
 	var text : String;
 	var text : String;
 	var textColor : UInt;
 	var textColor : UInt;
 	var textHeight(default,null) : Float;
 	var textHeight(default,null) : Float;
+	@:require(flash11) var textInteractionMode(default,null) : TextInteractionMode;
 	var textWidth(default,null) : Float;
 	var textWidth(default,null) : Float;
 	var thickness : Float;
 	var thickness : Float;
 	var type : TextFieldType;
 	var type : TextFieldType;

+ 6 - 0
std/flash9/text/TextInteractionMode.hx

@@ -0,0 +1,6 @@
+package flash.text;
+
+@:fakeEnum(String) extern enum TextInteractionMode {
+	NORMAL;
+	SELECTION;
+}

+ 1 - 0
std/flash9/text/engine/EastAsianJustifier.hx

@@ -1,6 +1,7 @@
 package flash.text.engine;
 package flash.text.engine;
 
 
 @:final extern class EastAsianJustifier extends TextJustifier {
 @:final extern class EastAsianJustifier extends TextJustifier {
+	var composeTrailingIdeographicSpaces : Bool;
 	var justificationStyle : JustificationStyle;
 	var justificationStyle : JustificationStyle;
 	function new(?locale : String, ?lineJustification : LineJustification, ?justificationStyle : JustificationStyle) : Void;
 	function new(?locale : String, ?lineJustification : LineJustification, ?justificationStyle : JustificationStyle) : Void;
 }
 }

+ 2 - 1
std/flash9/text/engine/FontMetrics.hx

@@ -2,6 +2,7 @@ package flash.text.engine;
 
 
 @:final extern class FontMetrics {
 @:final extern class FontMetrics {
 	var emBox : flash.geom.Rectangle;
 	var emBox : flash.geom.Rectangle;
+	var lineGap : Float;
 	var strikethroughOffset : Float;
 	var strikethroughOffset : Float;
 	var strikethroughThickness : Float;
 	var strikethroughThickness : Float;
 	var subscriptOffset : Float;
 	var subscriptOffset : Float;
@@ -10,5 +11,5 @@ package flash.text.engine;
 	var superscriptScale : Float;
 	var superscriptScale : Float;
 	var underlineOffset : Float;
 	var underlineOffset : Float;
 	var underlineThickness : 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) : Void;
+	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;
 }
 }

+ 3 - 0
std/flash9/text/engine/TextLine.hx

@@ -15,6 +15,9 @@ package flash.text.engine;
 	var textBlockBeginIndex(default,null) : Int;
 	var textBlockBeginIndex(default,null) : Int;
 	var textHeight(default,null) : Float;
 	var textHeight(default,null) : Float;
 	var textWidth(default,null) : Float;
 	var textWidth(default,null) : Float;
+	var totalAscent(default,null) : Float;
+	var totalDescent(default,null) : Float;
+	var totalHeight(default,null) : Float;
 	var unjustifiedTextWidth(default,null) : Float;
 	var unjustifiedTextWidth(default,null) : Float;
 	var userData : Dynamic;
 	var userData : Dynamic;
 	var validity : String;
 	var validity : String;