textsnapshot.hx
来自「ocaml编写的一个flash编译器」· HX 代码 · 共 15 行
HX
15 行
package flash.text;extern class TextSnapshot { function new() : Void; var charCount(default,null) : Int; function findText(beginIndex : Int, textToFind : String, caseSensitive : Bool) : Int; function getSelected(beginIndex : Int, endIndex : Int) : Bool; function getSelectedText(?includeLineEndings : Bool) : String; function getText(beginIndex : Int, endIndex : Int, ?includeLineEndings : Bool) : String; function getTextRunInfo(beginIndex : Int, endIndex : Int) : Array<Dynamic>; function hitTestTextNearPos(x : Float, y : Float, ?maxDistance : Float) : Float; function setSelectColor(?hexColor : UInt) : Void; function setSelected(beginIndex : Int, endIndex : Int, select : Bool) : Void;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?