Package ch.bailu.gtk.gtk
Class IMContextSimple
java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Pointer
ch.bailu.gtk.gobject.Object
ch.bailu.gtk.gtk.IMContext
ch.bailu.gtk.gtk.IMContextSimple
- All Implemented Interfaces:
PointerInterface
`GtkIMContextSimple` is an input method supporting table-based input methods.
## Compose sequences
`GtkIMContextSimple` reads compose sequences from the first of the
following files that is found: ~/.config/gtk-4.0/Compose, ~/.XCompose,
/usr/share/X11/locale/$locale/Compose (for locales that have a nontrivial
Compose file). The syntax of these files is described in the Compose(5)
manual page.
If none of these files is found, `GtkIMContextSimple` uses a built-in table
of compose sequences that is derived from the X11 Compose files.
Note that compose sequences typically start with the Compose_key, which is
often not available as a dedicated key on keyboards. Keyboard layouts may
map this keysym to other keys, such as the right Control key.
## Unicode characters
`GtkIMContextSimple` also supports numeric entry of Unicode characters
by typing <kbd>Ctrl</kbd>-<kbd>Shift</kbd>-<kbd>u</kbd>, followed by a
hexadecimal Unicode codepoint.
For example,
Ctrl-Shift-u 1 2 3 Enter
yields U+0123 LATIN SMALL LETTER G WITH CEDILLA, i.e. ģ.
## Dead keys
`GtkIMContextSimple` supports dead keys. For example, typing
dead_acute a
yields U+00E! LATIN SMALL LETTER_A WITH ACUTE, i.e. á. Note that this
depends on the keyboard layout including dead keys.
## Compose sequences
`GtkIMContextSimple` reads compose sequences from the first of the
following files that is found: ~/.config/gtk-4.0/Compose, ~/.XCompose,
/usr/share/X11/locale/$locale/Compose (for locales that have a nontrivial
Compose file). The syntax of these files is described in the Compose(5)
manual page.
If none of these files is found, `GtkIMContextSimple` uses a built-in table
of compose sequences that is derived from the X11 Compose files.
Note that compose sequences typically start with the Compose_key, which is
often not available as a dedicated key on keyboards. Keyboard layouts may
map this keysym to other keys, such as the right Control key.
## Unicode characters
`GtkIMContextSimple` also supports numeric entry of Unicode characters
by typing <kbd>Ctrl</kbd>-<kbd>Shift</kbd>-<kbd>u</kbd>, followed by a
hexadecimal Unicode codepoint.
For example,
Ctrl-Shift-u 1 2 3 Enter
yields U+0123 LATIN SMALL LETTER G WITH CEDILLA, i.e. ģ.
## Dead keys
`GtkIMContextSimple` supports dead keys. For example, typing
dead_acute a
yields U+00E! LATIN SMALL LETTER_A WITH ACUTE, i.e. á. Note that this
depends on the keyboard layout including dead keys.
-
Nested Class Summary
Nested classes/interfaces inherited from class ch.bailu.gtk.gtk.IMContext
IMContext.OnCommit, IMContext.OnDeleteSurrounding, IMContext.OnPreeditChanged, IMContext.OnPreeditEnd, IMContext.OnPreeditStart, IMContext.OnRetrieveSurrounding
Nested classes/interfaces inherited from class ch.bailu.gtk.gobject.Object
Object.OnBindingTransformFunc, Object.OnDestroyNotify, Object.OnDuplicateFunc, Object.OnNotify, Object.OnToggleNotify, Object.OnWeakNotify
-
Field Summary
Fields inherited from class ch.bailu.gtk.gtk.IMContext
SIGNAL_ON_COMMIT, SIGNAL_ON_DELETE_SURROUNDING, SIGNAL_ON_PREEDIT_CHANGED, SIGNAL_ON_PREEDIT_END, SIGNAL_ON_PREEDIT_START, SIGNAL_ON_RETRIEVE_SURROUNDING
Fields inherited from class ch.bailu.gtk.gobject.Object
SIGNAL_ON_NOTIFY
-
Constructor Summary
ConstructorDescriptionCreates a new `GtkIMContextSimple`.IMContextSimple
(PointerContainer pointer) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addComposeFile
(Str compose_file) Adds an additional table from the X11 compose file.void
addComposeFile
(String compose_file) Adds an additional table from the X11 compose file.static ClassHandler
static int
static long
static TypeSystem.TypeSize
static long
static TypeSystem.TypeSize
Methods inherited from class ch.bailu.gtk.gtk.IMContext
deleteSurrounding, filterKey, filterKeypress, focusIn, focusOut, getSurroundingWithSelection, onCommit, onDeleteSurrounding, onPreeditChanged, onPreeditEnd, onPreeditStart, onRetrieveSurrounding, reset, setClientWidget, setCursorLocation, setSurroundingWithSelection, setSurroundingWithSelection, setUsePreedit
Methods inherited from class ch.bailu.gtk.gobject.Object
addToggleRef, bindProperty, bindProperty, bindPropertyFull, bindPropertyFull, bindPropertyWithClosures, bindPropertyWithClosures, compatControl, connect, connect, disconnect, disconnect, dupData, dupData, dupQdata, forceFloating, freezeNotify, get, get, getData, getData, getProperty, getProperty, getQdata, interfaceFindProperty, interfaceInstallProperty, isFloating, notify, notify, notifyByPspec, onNotify, ref, refSink, removeToggleRef, replaceData, replaceData, replaceQdata, runDispose, set, set, setData, setData, setDataFull, setDataFull, setProperty, setProperty, setQdata, setQdataFull, stealData, stealData, stealQdata, takeRef, thawNotify, unref, watchClosure, weakRef, weakUnref
Methods inherited from class ch.bailu.gtk.type.Pointer
asCPointer, cast, connectSignal, disconnectSignals, disconnectSignals, equals, hashCode, throwIfNull, throwNullPointerException, toString, unregisterCallbacks, unregisterCallbacks
Methods inherited from class ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNull
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface ch.bailu.gtk.type.PointerInterface
asCPointerNotNull, asJnaPointer, asPointer, isNotNull, isNull
-
Constructor Details
-
IMContextSimple
-
IMContextSimple
public IMContextSimple()Creates a new `GtkIMContextSimple`.
-
-
Method Details
-
getClassHandler
-
addComposeFile
Adds an additional table from the X11 compose file.- Parameters:
compose_file
- The path of compose file
-
addComposeFile
Adds an additional table from the X11 compose file.- Parameters:
compose_file
- The path of compose file
-
getTypeID
public static long getTypeID() -
getParentTypeID
public static long getParentTypeID() -
getTypeSize
-
getParentTypeSize
-
getInstanceSize
public static int getInstanceSize()
-