InputMethodCaretPosition (class)
public final InputMethodCaretPosition
Package: CURL.GUI.IME

Describes the position of the caret for the input manager.

Description

The input method requests the caret position from the InputMethodClient via the handle-caret-position-request method. The returned information is used by the input method to position input method windows relative to the caret.

Constructors
default:Initialize an InputMethodCaretPosition.
constructor public {InputMethodCaretPosition.default
index:int,
left:Distance,
top:Distance,
height:Distance
}
uninitialized:Construct uninitialized value.
factory public implicit inline {InputMethodCaretPosition.uninitialized
}:InputMethodCaretPosition

Properties
height:The height of the caret.
field public constant InputMethodCaretPosition.height:Distance
index:The index of the caret within the composition string.
field public constant InputMethodCaretPosition.index:int
left:The horizontal position of the caret.
field public constant InputMethodCaretPosition.left:Distance
top:The vertical position of the caret.
field public constant InputMethodCaretPosition.top:Distance



Constructor Details
default (constructor)
public {InputMethodCaretPosition.default
index:int,
left:Distance,
top:Distance,
height:Distance
}

Initialize an InputMethodCaretPosition.

Introduced in: version 6.0


uninitialized (factory)
public implicit inline {InputMethodCaretPosition.uninitialized
}:InputMethodCaretPosition

Construct uninitialized value.

Introduced in: version 6.0



Property Details
height (field)
public constant InputMethodCaretPosition.height:Distance

The height of the caret.



index (field)
public constant InputMethodCaretPosition.index:int

The index of the caret within the composition string.

Notes

When there is no composition string, this value typically has no meaning. Zero is a good choice in this situation.


left (field)
public constant InputMethodCaretPosition.left:Distance

The horizontal position of the caret.

Description

The position is relative to the graphical origin of the InputMethodClient. In particular, since InputMethodClients are intended to be mixed into Visuals, the position is relative to the graphical origin of the Visual.


top (field)
public constant InputMethodCaretPosition.top:Distance

The vertical position of the caret.

Description

The position is relative to the coordinate system of the InputMethodClient. In particular, since InputMethodClients are intended to be mixed into Visuals, the position is relative to the coordinate system of the Visual.