IIMEClient.hx 758 B

1234567891011121314
  1. package flash.text.ime;
  2. extern interface IIMEClient {
  3. var compositionEndIndex(default,null) : Int;
  4. var compositionStartIndex(default,null) : Int;
  5. var selectionActiveIndex(default,null) : Int;
  6. var selectionAnchorIndex(default,null) : Int;
  7. var verticalTextLayout(default,null) : 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. function selectRange(anchorIndex : Int, activeIndex : Int) : Void;
  12. function updateComposition(text : String, attributes : flash.Vector<CompositionAttributeRange>, compositionStartIndex : Int, compositionEndIndex : Int) : Void;
  13. }