IIMEClient.hx 1.1 KB

12345678910111213141516171819
  1. package flash.text.ime;
  2. extern interface IIMEClient {
  3. @:flash.property var compositionEndIndex(get,never) : Int;
  4. @:flash.property var compositionStartIndex(get,never) : Int;
  5. @:flash.property var selectionActiveIndex(get,never) : Int;
  6. @:flash.property var selectionAnchorIndex(get,never) : Int;
  7. @:flash.property var verticalTextLayout(get,never) : Bool;
  8. function confirmComposition(?text : String, preserveSelection : Bool = false) : Void;
  9. function getTextBounds(startIndex : Int, endIndex : Int) : flash.geom.Rectangle;
  10. function getTextInRange(startIndex : Int, endIndex : Int) : String;
  11. private function get_compositionEndIndex() : Int;
  12. private function get_compositionStartIndex() : Int;
  13. private function get_selectionActiveIndex() : Int;
  14. private function get_selectionAnchorIndex() : Int;
  15. private function get_verticalTextLayout() : Bool;
  16. function selectRange(anchorIndex : Int, activeIndex : Int) : Void;
  17. function updateComposition(text : String, attributes : flash.Vector<CompositionAttributeRange>, compositionStartIndex : Int, compositionEndIndex : Int) : Void;
  18. }