Package ch.bailu.gtk.gtk
Klasse IMContextSimple
java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Pointer
ch.bailu.gtk.gobject.Object
ch.bailu.gtk.type.PropertyHolder
ch.bailu.gtk.gtk.IMContext
ch.bailu.gtk.gtk.IMContextSimple
- Alle implementierten Schnittstellen:
PointerInterface
Supports compose sequences, dead keys and numeric Unicode input.
## 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). A subset of the file syntax described in the Compose(5)
manual page is supported. Additionally, `include "%L"` loads GTK’s built-in
table of compose sequences rather than the locale-specific one from X11.
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). A subset of the file syntax described in the Compose(5)
manual page is supported. Additionally, `include "%L"` loads GTK’s built-in
table of compose sequences rather than the locale-specific one from X11.
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.
-
Verschachtelte Klassen - Übersicht
Von Klasse geerbte verschachtelte Klassen/Schnittstellen ch.bailu.gtk.gtk.IMContext
IMContext.OnCommit, IMContext.OnDeleteSurrounding, IMContext.OnPreeditChanged, IMContext.OnPreeditEnd, IMContext.OnPreeditStart, IMContext.OnRetrieveSurroundingVon Klasse geerbte verschachtelte Klassen/Schnittstellen ch.bailu.gtk.gobject.Object
Object.OnBindingTransformFunc, Object.OnDestroyNotify, Object.OnDuplicateFunc, Object.OnNotify, Object.OnToggleNotify, Object.OnWeakNotify -
Feldübersicht
Von Klasse geerbte Felder 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_SURROUNDINGVon Klasse geerbte Felder ch.bailu.gtk.gobject.Object
SIGNAL_ON_NOTIFY -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungCreates a new `GtkIMContextSimple`.IMContextSimple(PointerContainer pointer) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidaddComposeFile(Str compose_file) Adds an additional table from the X11 compose file.voidaddComposeFile(String compose_file) Adds an additional table from the X11 compose file.static ClassHandlerstatic intstatic longstatic TypeSystem.TypeSizestatic longstatic TypeSystem.TypeSizeVon Klasse geerbte Methoden ch.bailu.gtk.gtk.IMContext
activateOsk, deleteSurrounding, filterKey, filterKeypress, focusIn, focusOut, getSurrounding, getSurroundingWithSelection, onCommit, onDeleteSurrounding, onPreeditChanged, onPreeditEnd, onPreeditStart, onRetrieveSurrounding, reset, setClientWidget, setCursorLocation, setSurrounding, setSurrounding, setSurroundingWithSelection, setSurroundingWithSelection, setUsePreeditVon Klasse geerbte Methoden ch.bailu.gtk.type.PropertyHolder
getBooleanProperty, getIntProperty, getObjectProperty, getStringProperty, getStrProperty, setBooleanProperty, setIntProperty, setObjectProperty, setStringProperty, setStrPropertyVon Klasse geerbte Methoden 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, weakUnrefVon Klasse geerbte Methoden ch.bailu.gtk.type.Pointer
asCPointer, cast, connectSignal, disconnectSignals, disconnectSignals, equals, hashCode, throwIfNull, throwNullPointerException, toString, unregisterCallbacks, unregisterCallbacksVon Klasse geerbte Methoden ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNullVon Klasse geerbte Methoden java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitVon Schnittstelle geerbte Methoden ch.bailu.gtk.type.PointerInterface
asCPointerNotNull, asJnaPointer, asPointer, isNotNull, isNull
-
Konstruktordetails
-
IMContextSimple
-
IMContextSimple
public IMContextSimple()Creates a new `GtkIMContextSimple`.
-
-
Methodendetails
-
getClassHandler
-
addComposeFile
Adds an additional table from the X11 compose file.- Parameter:
compose_file- The path of compose file
-
addComposeFile
Adds an additional table from the X11 compose file.- Parameter:
compose_file- The path of compose file
-
getTypeID
public static long getTypeID() -
getParentTypeID
public static long getParentTypeID() -
getTypeSize
-
getParentTypeSize
-
getInstanceSize
public static int getInstanceSize()
-