TextSnapshot.hx 615 B

123456789101112131415161718
  1. package flash;
  2. extern class TextSnapshot
  3. {
  4. function findText(startIndex:Int, textToFind:String, caseSensitive:Bool):Float;
  5. function getCount():Int;
  6. function getSelected(start:Int, ?end:Int):Bool;
  7. function getSelectedText(?includeLineEndings:Bool):String;
  8. function getText(start:Int, end:Int, ?includeLineEndings:Bool):String;
  9. function hitTestTextNearPos(x:Float, y:Float, ?closeDist:Float):Float;
  10. function setSelectColor(color:Int):Void;
  11. function setSelected(start:Int, end:Int, select:Bool):Void;
  12. private static function __init__() : Void untyped {
  13. flash.TextSnapshot = _global["TextSnapshot"];
  14. }
  15. }