TextLine.hx 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. package flash.text.engine;
  2. extern final class TextLine extends flash.display.DisplayObjectContainer {
  3. @:flash.property var ascent(get,never) : Float;
  4. @:flash.property var atomCount(get,never) : Int;
  5. @:flash.property var descent(get,never) : Float;
  6. @:flash.property var hasGraphicElement(get,never) : Bool;
  7. @:flash.property @:require(flash10_1) var hasTabs(get,never) : Bool;
  8. @:flash.property var mirrorRegions(get,never) : flash.Vector<TextLineMirrorRegion>;
  9. @:flash.property var nextLine(get,never) : TextLine;
  10. @:flash.property var previousLine(get,never) : TextLine;
  11. @:flash.property var rawTextLength(get,never) : Int;
  12. @:flash.property var specifiedWidth(get,never) : Float;
  13. @:flash.property var textBlock(get,never) : TextBlock;
  14. @:flash.property var textBlockBeginIndex(get,never) : Int;
  15. @:flash.property var textHeight(get,never) : Float;
  16. @:flash.property var textWidth(get,never) : Float;
  17. @:flash.property var totalAscent(get,never) : Float;
  18. @:flash.property var totalDescent(get,never) : Float;
  19. @:flash.property var totalHeight(get,never) : Float;
  20. @:flash.property var unjustifiedTextWidth(get,never) : Float;
  21. var userData : Dynamic;
  22. @:flash.property var validity(get,set) : String;
  23. function new() : Void;
  24. function dump() : String;
  25. function flushAtomData() : Void;
  26. function getAtomBidiLevel(atomIndex : Int) : Int;
  27. function getAtomBounds(atomIndex : Int) : flash.geom.Rectangle;
  28. function getAtomCenter(atomIndex : Int) : Float;
  29. function getAtomGraphic(atomIndex : Int) : flash.display.DisplayObject;
  30. function getAtomIndexAtCharIndex(charIndex : Int) : Int;
  31. function getAtomIndexAtPoint(stageX : Float, stageY : Float) : Int;
  32. function getAtomTextBlockBeginIndex(atomIndex : Int) : Int;
  33. function getAtomTextBlockEndIndex(atomIndex : Int) : Int;
  34. function getAtomTextRotation(atomIndex : Int) : String;
  35. function getAtomWordBoundaryOnLeft(atomIndex : Int) : Bool;
  36. function getBaselinePosition(baseline : String) : Float;
  37. function getMirrorRegion(mirror : flash.events.EventDispatcher) : TextLineMirrorRegion;
  38. private function get_ascent() : Float;
  39. private function get_atomCount() : Int;
  40. private function get_descent() : Float;
  41. private function get_hasGraphicElement() : Bool;
  42. private function get_hasTabs() : Bool;
  43. private function get_mirrorRegions() : flash.Vector<TextLineMirrorRegion>;
  44. private function get_nextLine() : TextLine;
  45. private function get_previousLine() : TextLine;
  46. private function get_rawTextLength() : Int;
  47. private function get_specifiedWidth() : Float;
  48. private function get_textBlock() : TextBlock;
  49. private function get_textBlockBeginIndex() : Int;
  50. private function get_textHeight() : Float;
  51. private function get_textWidth() : Float;
  52. private function get_totalAscent() : Float;
  53. private function get_totalDescent() : Float;
  54. private function get_totalHeight() : Float;
  55. private function get_unjustifiedTextWidth() : Float;
  56. private function get_validity() : String;
  57. private function set_validity(value : String) : String;
  58. static final MAX_LINE_WIDTH : Int;
  59. }