forked from LeenkxTeam/LNXSDK
Update Files
This commit is contained in:
@ -0,0 +1,9 @@
|
||||
package flash.text.ime;
|
||||
|
||||
extern final class CompositionAttributeRange {
|
||||
var converted : Bool;
|
||||
var relativeEnd : Int;
|
||||
var relativeStart : Int;
|
||||
var selected : Bool;
|
||||
function new(relativeStart : Int, relativeEnd : Int, selected : Bool, converted : Bool) : Void;
|
||||
}
|
19
Kha/Tools/macos/std/flash/text/ime/IIMEClient.hx
Normal file
19
Kha/Tools/macos/std/flash/text/ime/IIMEClient.hx
Normal file
@ -0,0 +1,19 @@
|
||||
package flash.text.ime;
|
||||
|
||||
extern interface IIMEClient {
|
||||
@:flash.property var compositionEndIndex(get,never) : Int;
|
||||
@:flash.property var compositionStartIndex(get,never) : Int;
|
||||
@:flash.property var selectionActiveIndex(get,never) : Int;
|
||||
@:flash.property var selectionAnchorIndex(get,never) : Int;
|
||||
@:flash.property var verticalTextLayout(get,never) : Bool;
|
||||
function confirmComposition(?text : String, preserveSelection : Bool = false) : Void;
|
||||
function getTextBounds(startIndex : Int, endIndex : Int) : flash.geom.Rectangle;
|
||||
function getTextInRange(startIndex : Int, endIndex : Int) : String;
|
||||
private function get_compositionEndIndex() : Int;
|
||||
private function get_compositionStartIndex() : Int;
|
||||
private function get_selectionActiveIndex() : Int;
|
||||
private function get_selectionAnchorIndex() : Int;
|
||||
private function get_verticalTextLayout() : Bool;
|
||||
function selectRange(anchorIndex : Int, activeIndex : Int) : Void;
|
||||
function updateComposition(text : String, attributes : flash.Vector<CompositionAttributeRange>, compositionStartIndex : Int, compositionEndIndex : Int) : Void;
|
||||
}
|
Reference in New Issue
Block a user