2
0

TextSnapshot.hx 787 B

123456789101112131415
  1. package flash.text;
  2. extern class TextSnapshot {
  3. @:flash.property var charCount(get,never) : Int;
  4. function new() : Void;
  5. function findText(beginIndex : Int, textToFind : String, caseSensitive : Bool) : Int;
  6. function getSelected(beginIndex : Int, endIndex : Int) : Bool;
  7. function getSelectedText(includeLineEndings : Bool = false) : String;
  8. function getText(beginIndex : Int, endIndex : Int, includeLineEndings : Bool = false) : String;
  9. function getTextRunInfo(beginIndex : Int, endIndex : Int) : Array<Dynamic>;
  10. private function get_charCount() : Int;
  11. function hitTestTextNearPos(x : Float, y : Float, maxDistance : Float = 0) : Float;
  12. function setSelectColor(hexColor : UInt = 16776960) : Void;
  13. function setSelected(beginIndex : Int, endIndex : Int, select : Bool) : Void;
  14. }