Important Note
This class is not intended to be subclassed.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv int | |
| pack-priv int | |
| pack-priv boolean | |
| pack-priv Canvas | |
| pack-priv int[] | |
| pack-priv int | |
| pack-priv TextStyle[] | |
| pack-priv String |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| public int | Returns: the caret offsetReturns the offset of the caret from the start of the document. |
| public int | |
| public int | Returns: the offset of the compositionReturns the offset of the composition from the start of the document. |
| public int[] | Returns: the ranges for the stylesReturns the ranges for the style that should be applied during the in-line edit session. |
| public TextStyle[] | |
| public String | |
| public boolean | Returns: the wide caret stateReturns |
| pack-priv long | gtk_button_press_event(long widget, long event)
Overrides org. |
| pack-priv long | |
| pack-priv long | |
| pack-priv long | |
| pack-priv boolean | |
| pack-priv void | |
| pack-priv void | |
| public void | setCompositionOffset(int
the offset of the composition offset)Sets the offset of the composition from the start of the document. |
| caretOffset | back to summary |
|---|---|
| pack-priv int caretOffset | |
| commitCount | back to summary |
|---|---|
| pack-priv int commitCount | |
| inComposition | back to summary |
|---|---|
| pack-priv boolean inComposition | |
| parent | back to summary |
|---|---|
| pack-priv Canvas parent | |
| ranges | back to summary |
|---|---|
| pack-priv int[] ranges | |
| startOffset | back to summary |
|---|---|
| pack-priv int startOffset | |
| styles | back to summary |
|---|---|
| pack-priv TextStyle[] styles | |
| text | back to summary |
|---|---|
| pack-priv String text | |
| IME | back to summary |
|---|---|
| pack-priv IME() Prevents uninitialized instances from being created outside the package. | |
| IME | back to summary |
|---|---|
| public IME(Canvas parent, int style) Constructs a new instance of this class given its parent and a style value describing its behavior and appearance.
The style value is either one of the style constants defined in
class
| |
| createWidget | back to summary |
|---|---|
| pack-priv void createWidget() | |
| getCaretOffset | back to summary |
|---|---|
| public int getCaretOffset() Returns the offset of the caret from the start of the document. -1 means that there is currently no active composition. The caret is within the current composition.
| |
| getCommitCount | back to summary |
|---|---|
| public int getCommitCount() Returns the commit count of the composition. This is the number of characters that have been composed. When the commit count is equal to the length of the composition text, then the in-line edit operation is complete.
| |
| getCompositionOffset | back to summary |
|---|---|
| public int getCompositionOffset() Returns the offset of the composition from the start of the document. This is the start offset of the composition within the document and in not changed by the input method editor itself during the in-line edit session.
| |
| getRanges | back to summary |
|---|---|
| public int[] getRanges() Returns the ranges for the style that should be applied during the in-line edit session.
The ranges array contains start and end pairs. Each pair refers to
the corresponding style in the styles array. For example, the pair
that starts at ranges[n] and ends at ranges[n+1] uses the style
at styles[n/2] returned by
| |
| getStyles | back to summary |
|---|---|
| public TextStyle[] getStyles() Returns the styles for the ranges. The ranges array contains start and end pairs. Each pair refers to the corresponding style in the styles array. For example, the pair that starts at ranges[n] and ends at ranges[n+1] uses the style at styles[n/2].
| |
| getText | back to summary |
|---|---|
| public String getText() Returns the composition text. The text for an IME is the characters in the widget that are in the current composition. When the commit count is equal to the length of the composition text, then the in-line edit operation is complete.
| |
| getWideCaret | back to summary |
|---|---|
| public boolean getWideCaret() Returns
| |
| gtk_button_press_event | back to summary |
|---|---|
| pack-priv long gtk_button_press_event(long widget, long event) Overrides org.
| |
| gtk_commit | back to summary |
|---|---|
| pack-priv long gtk_commit(long imcontext, long textPtr) Overrides org.
| |
| gtk_preedit_changed | back to summary |
|---|---|
| pack-priv long gtk_preedit_changed(long imcontext) Overrides org.
| |
| imHandle | back to summary |
|---|---|
| pack-priv long imHandle() | |
| isInlineEnabled | back to summary |
|---|---|
| pack-priv boolean isInlineEnabled() | |
| releaseParent | back to summary |
|---|---|
| pack-priv void releaseParent() Overrides org.
| |
| releaseWidget | back to summary |
|---|---|
| pack-priv void releaseWidget() Overrides org.
| |
| setCompositionOffset | back to summary |
|---|---|
| public void setCompositionOffset(int offset) Sets the offset of the composition from the start of the document. This is the start offset of the composition within the document and in not changed by the input method editor itself during the in-line edit session but may need to be changed by clients of the IME. For example, if during an in-line edit operation, a text editor inserts characters above the IME, then the IME must be informed that the composition offset has changed.
| |