TextBlock.hx 1.7 KB

1234567891011121314151617181920212223242526272829
  1. package flash.text.engine;
  2. @:final extern class TextBlock {
  3. var applyNonLinearFontScaling : Bool;
  4. var baselineFontDescription : FontDescription;
  5. var baselineFontSize : Float;
  6. var baselineZero : TextBaseline;
  7. var bidiLevel : Int;
  8. var content : ContentElement;
  9. var firstInvalidLine(default,null) : TextLine;
  10. var firstLine(default,null) : TextLine;
  11. var lastLine(default,null) : TextLine;
  12. var lineRotation : TextRotation;
  13. var tabStops : flash.Vector<TabStop>;
  14. var textJustifier : TextJustifier;
  15. var textLineCreationResult(default,null) : TextLineCreationResult;
  16. var userData : Dynamic;
  17. 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;
  18. function createTextLine(?previousLine : TextLine, width : Float = 1000000, lineOffset : Float = 0, fitSomething : Bool = false) : TextLine;
  19. function dump() : String;
  20. function findNextAtomBoundary(afterCharIndex : Int) : Int;
  21. function findNextWordBoundary(afterCharIndex : Int) : Int;
  22. function findPreviousAtomBoundary(beforeCharIndex : Int) : Int;
  23. function findPreviousWordBoundary(beforeCharIndex : Int) : Int;
  24. function getTextLineAtCharIndex(charIndex : Int) : TextLine;
  25. @:require(flash10_1) function recreateTextLine(textLine : TextLine, ?previousLine : TextLine, width : Float = 1000000, lineOffset : Float = 0, fitSomething : Bool = false) : TextLine;
  26. @:require(flash10_1) function releaseLineCreationData() : Void;
  27. function releaseLines(firstLine : TextLine, lastLine : TextLine) : Void;
  28. }