Package ch.bailu.gtk.gtk
Class Text
- All Implemented Interfaces:
PointerInterface
The `GtkText` widget is a single-line text entry widget.
`GtkText` is the common implementation of single-line text editing
that is shared between `GtkEntry`, `GtkPasswordEntry`, `GtkSpinButton`
and other widgets. In all of these, `GtkText` is used as the delegate
for the [iface@Gtk.Editable] implementation.
A fairly large set of key bindings are supported by default. If the
entered text is longer than the allocation of the widget, the widget
will scroll so that the cursor position is visible.
When using an entry for passwords and other sensitive information,
it can be put into “password mode” using [method@Gtk.Text.set_visibility].
In this mode, entered text is displayed using a “invisible” character.
By default, GTK picks the best invisible character that is available
in the current font, but it can be changed with
[method@Gtk.Text.set_invisible_char].
If you are looking to add icons or progress display in an entry, look
at `GtkEntry`. There other alternatives for more specialized use cases,
such as `GtkSearchEntry`.
If you need multi-line editable text, look at `GtkTextView`.
# CSS nodes
```
text[.read-only]
├── placeholder
├── undershoot.left
├── undershoot.right
├── [selection]
├── [block-cursor]
╰── [window.popup]
```
`GtkText` has a main node with the name text. Depending on the properties
of the widget, the .read-only style class may appear.
When the entry has a selection, it adds a subnode with the name selection.
When the entry is in overwrite mode, it adds a subnode with the name
block-cursor that determines how the block cursor is drawn.
The CSS node for a context menu is added as a subnode below text as well.
The undershoot nodes are used to draw the underflow indication when content
is scrolled out of view. These nodes get the .left and .right style classes
added depending on where the indication is drawn.
When touch is used and touch selection handles are shown, they are using
CSS nodes with name cursor-handle. They get the .top or .bottom style class
depending on where they are shown in relation to the selection. If there is
just a single handle for the text cursor, it gets the style class
.insertion-cursor.
# Accessibility
`GtkText` uses the %GTK_ACCESSIBLE_ROLE_NONE role, which causes it to be
skipped for accessibility. This is because `GtkText` is expected to be used
as a delegate for a `GtkEditable` implementation that will be represented
to accessibility.
`GtkText` is the common implementation of single-line text editing
that is shared between `GtkEntry`, `GtkPasswordEntry`, `GtkSpinButton`
and other widgets. In all of these, `GtkText` is used as the delegate
for the [iface@Gtk.Editable] implementation.
A fairly large set of key bindings are supported by default. If the
entered text is longer than the allocation of the widget, the widget
will scroll so that the cursor position is visible.
When using an entry for passwords and other sensitive information,
it can be put into “password mode” using [method@Gtk.Text.set_visibility].
In this mode, entered text is displayed using a “invisible” character.
By default, GTK picks the best invisible character that is available
in the current font, but it can be changed with
[method@Gtk.Text.set_invisible_char].
If you are looking to add icons or progress display in an entry, look
at `GtkEntry`. There other alternatives for more specialized use cases,
such as `GtkSearchEntry`.
If you need multi-line editable text, look at `GtkTextView`.
# CSS nodes
```
text[.read-only]
├── placeholder
├── undershoot.left
├── undershoot.right
├── [selection]
├── [block-cursor]
╰── [window.popup]
```
`GtkText` has a main node with the name text. Depending on the properties
of the widget, the .read-only style class may appear.
When the entry has a selection, it adds a subnode with the name selection.
When the entry is in overwrite mode, it adds a subnode with the name
block-cursor that determines how the block cursor is drawn.
The CSS node for a context menu is added as a subnode below text as well.
The undershoot nodes are used to draw the underflow indication when content
is scrolled out of view. These nodes get the .left and .right style classes
added depending on where the indication is drawn.
When touch is used and touch selection handles are shown, they are using
CSS nodes with name cursor-handle. They get the .top or .bottom style class
depending on where they are shown in relation to the selection. If there is
just a single handle for the text cursor, it gets the style class
.insertion-cursor.
# Accessibility
`GtkText` uses the %GTK_ACCESSIBLE_ROLE_NONE role, which causes it to be
skipped for accessibility. This is because `GtkText` is expected to be used
as a delegate for a `GtkEditable` implementation that will be represented
to accessibility.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
static interface
static interface
static interface
static interface
static interface
static interface
static interface
static interface
static interface
static interface
Nested classes/interfaces inherited from class ch.bailu.gtk.gtk.Widget
Widget.OnDestroy, Widget.OnDestroyNotify, Widget.OnDirectionChanged, Widget.OnHide, Widget.OnKeynavFailed, Widget.OnMap, Widget.OnMnemonicActivate, Widget.OnMoveFocus, Widget.OnQueryTooltip, Widget.OnRealize, Widget.OnShow, Widget.OnStateFlagsChanged, Widget.OnTickCallback, Widget.OnUnmap, Widget.OnUnrealize
Nested classes/interfaces inherited from class ch.bailu.gtk.gobject.Object
Object.OnBindingTransformFunc, Object.OnDuplicateFunc, Object.OnNotify, Object.OnToggleNotify, Object.OnWeakNotify
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
Fields inherited from class ch.bailu.gtk.gtk.Widget
SIGNAL_ON_DESTROY, SIGNAL_ON_DIRECTION_CHANGED, SIGNAL_ON_HIDE, SIGNAL_ON_KEYNAV_FAILED, SIGNAL_ON_MAP, SIGNAL_ON_MNEMONIC_ACTIVATE, SIGNAL_ON_MOVE_FOCUS, SIGNAL_ON_QUERY_TOOLTIP, SIGNAL_ON_REALIZE, SIGNAL_ON_SHOW, SIGNAL_ON_STATE_FLAGS_CHANGED, SIGNAL_ON_UNMAP, SIGNAL_ON_UNREALIZE
Fields inherited from class ch.bailu.gtk.gobject.Object
SIGNAL_ON_NOTIFY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionImplements interfaceAccessible
.Implements interfaceBuildable
.Implements interfaceConstraintTarget
.Implements interfaceEditable
.void
computeCursorExtents
(long position, Rect strong, Rect weak) Determine the positions of the strong and weak cursors if the
insertion point in the layout is at @position.boolean
Returns whether pressing Enter will activate
the default widget for the window containing @self.Gets the attribute list that was set on the `GtkText`.Get the `GtkEntryBuffer` object which holds the text for
this widget.static ClassHandler
boolean
Returns whether Emoji completion is enabled for this
`GtkText` widget.Gets the menu model for extra items in the context menu.int
Gets the input hints of the `GtkText`.int
Gets the input purpose of the `GtkText`.static int
byte
Retrieves the character displayed when visibility is set to false.int
Retrieves the maximum allowed length of the text in @self.boolean
Gets whether text is overwritten when typing in the `GtkText`.static long
static TypeSystem.TypeSize
Retrieves the text that will be displayed when
@self is empty and unfocused
If no placeholder text has been set, %NULL will be returned.boolean
Returns whether the `GtkText` will grow and shrink
with the content.getTabs()
Gets the tabstops that were set on the `GtkText`.int
Retrieves the current length of the text in @self.boolean
Returns whether the `GtkText` will truncate multi-line text
that is pasted into the widgetstatic long
static TypeSystem.TypeSize
boolean
Retrieves whether the text in @self is visible.boolean
Causes @self to have keyboard focus.static Text
newWithBufferText
(EntryBuffer buffer) Creates a new `GtkText` with the specified text buffer.onActivate
(Text.OnActivate signal) Connect to signal "activate".onBackspace
(Text.OnBackspace signal) Connect to signal "backspace".onCopyClipboard
(Text.OnCopyClipboard signal) Connect to signal "copy-clipboard".onCutClipboard
(Text.OnCutClipboard signal) Connect to signal "cut-clipboard".Connect to signal "delete-from-cursor".Connect to signal "insert-at-cursor".onInsertEmoji
(Text.OnInsertEmoji signal) Connect to signal "insert-emoji".onMoveCursor
(Text.OnMoveCursor signal) Connect to signal "move-cursor".Connect to signal "paste-clipboard".Connect to signal "preedit-changed".Connect to signal "toggle-overwrite".void
setActivatesDefault
(boolean activates) If @activates is %TRUE, pressing Enter will activate
the default widget for the window containing @self.void
setAttributes
(AttrList attrs) Sets attributes that are applied to the text.void
setBuffer
(EntryBuffer buffer) Set the `GtkEntryBuffer` object which holds the text for
this widget.void
setEnableEmojiCompletion
(boolean enable_emoji_completion) Sets whether Emoji completion is enabled.void
setExtraMenu
(MenuModel model) Sets a menu model to add when constructing
the context menu for @self.void
setInputHints
(int hints) Sets input hints that allow input methods
to fine-tune their behaviour.void
setInputPurpose
(int purpose) Sets the input purpose of the `GtkText`.void
setInvisibleChar
(byte ch) Sets the character to use when in “password mode”.void
setMaxLength
(int length) Sets the maximum allowed length of the contents of the widget.void
setOverwriteMode
(boolean overwrite) Sets whether the text is overwritten when typing
in the `GtkText`.void
setPlaceholderText
(Str text) Sets text to be displayed in @self when it is empty.void
setPlaceholderText
(String text) Sets text to be displayed in @self when it is empty.void
setPropagateTextWidth
(boolean propagate_text_width) Sets whether the `GtkText` should grow and shrink with the content.void
Sets tabstops that are applied to the text.void
setTruncateMultiline
(boolean truncate_multiline) Sets whether the `GtkText` should truncate multi-line text
that is pasted into the widget.void
setVisibility
(boolean visible) Sets whether the contents of the `GtkText` are visible or not.void
Unsets the invisible char.Methods inherited from class ch.bailu.gtk.gtk.Widget
actionSetEnabled, actionSetEnabled, activate, activateAction, activateAction, activateActionVariant, activateActionVariant, activateDefault, addController, addCssClass, addCssClass, addMnemonicLabel, addTickCallback, allocate, childFocus, computeBounds, computeExpand, computePoint, computeTransform, contains, createPangoContext, createPangoLayout, createPangoLayout, disposeTemplate, dragCheckThreshold, errorBell, getAllocatedBaseline, getAllocatedHeight, getAllocatedWidth, getAllocation, getAncestor, getCanFocus, getCanTarget, getChildVisible, getClipboard, getCssClasses, getCssName, getCursor, getDefaultDirection, getDirection, getDisplay, getFirstChild, getFocusable, getFocusChild, getFocusOnClick, getFontMap, getFontOptions, getFrameClock, getHalign, getHasTooltip, getHeight, getHexpand, getHexpandSet, getLastChild, getLayoutManager, getMapped, getMarginBottom, getMarginEnd, getMarginStart, getMarginTop, getName, getNative, getNextSibling, getOpacity, getOverflow, getPangoContext, getParent, getPreferredSize, getPrevSibling, getPrimaryClipboard, getRealized, getReceivesDefault, getRequestMode, getRoot, getScaleFactor, getSensitive, getSettings, getSize, getSizeRequest, getStateFlags, getStyleContext, getTemplateChild, getTemplateChild, getTooltipMarkup, getTooltipText, getValign, getVexpand, getVexpandSet, getVisible, getWidth, grabFocus, hasCssClass, hasCssClass, hasDefault, hasFocus, hasVisibleFocus, hide, inDestruction, initTemplate, insertActionGroup, insertActionGroup, insertAfter, insertBefore, isAncestor, isDrawable, isFocus, isSensitive, isVisible, keynavFailed, listMnemonicLabels, map, measure, mnemonicActivate, observeChildren, observeControllers, onDestroy, onDirectionChanged, onHide, onKeynavFailed, onMap, onMnemonicActivate, onMoveFocus, onQueryTooltip, onRealize, onShow, onStateFlagsChanged, onUnmap, onUnrealize, pick, queueAllocate, queueDraw, queueResize, realize, removeController, removeCssClass, removeCssClass, removeMnemonicLabel, removeTickCallback, setCanFocus, setCanTarget, setChildVisible, setCssClasses, setCursor, setCursorFromName, setCursorFromName, setDefaultDirection, setDirection, setFocusable, setFocusChild, setFocusOnClick, setFontMap, setFontOptions, setHalign, setHasTooltip, setHexpand, setHexpandSet, setLayoutManager, setMarginBottom, setMarginEnd, setMarginStart, setMarginTop, setName, setName, setOpacity, setOverflow, setParent, setReceivesDefault, setSensitive, setSizeRequest, setStateFlags, setTooltipMarkup, setTooltipMarkup, setTooltipText, setTooltipText, setValign, setVexpand, setVexpandSet, setVisible, shouldLayout, show, sizeAllocate, snapshotChild, triggerTooltipQuery, unmap, unparent, unrealize, unsetStateFlags
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
-
Field Details
-
SIGNAL_ON_ACTIVATE
- See Also:
-
SIGNAL_ON_BACKSPACE
- See Also:
-
SIGNAL_ON_COPY_CLIPBOARD
- See Also:
-
SIGNAL_ON_CUT_CLIPBOARD
- See Also:
-
SIGNAL_ON_DELETE_FROM_CURSOR
- See Also:
-
SIGNAL_ON_INSERT_AT_CURSOR
- See Also:
-
SIGNAL_ON_INSERT_EMOJI
- See Also:
-
SIGNAL_ON_MOVE_CURSOR
- See Also:
-
SIGNAL_ON_PASTE_CLIPBOARD
- See Also:
-
SIGNAL_ON_PREEDIT_CHANGED
- See Also:
-
SIGNAL_ON_TOGGLE_OVERWRITE
- See Also:
-
-
Constructor Details
-
Text
-
Text
public Text()Creates a new `GtkText`.
-
-
Method Details
-
getClassHandler
-
newWithBufferText
Creates a new `GtkText` with the specified text buffer.- Parameters:
buffer
- The buffer to use for the new `GtkText`.- Returns:
- a new `GtkText`
-
computeCursorExtents
Determine the positions of the strong and weak cursors if the
insertion point in the layout is at @position.
The position of each cursor is stored as a zero-width rectangle.
The strong cursor location is the location where characters of
the directionality equal to the base direction are inserted.
The weak cursor location is the location where characters of
the directionality opposite to the base direction are inserted.
The rectangle positions are in widget coordinates.- Parameters:
position
- the character positionstrong
- location to store the strong cursor positionweak
- location to store the weak cursor position
-
getActivatesDefault
public boolean getActivatesDefault()Returns whether pressing Enter will activate
the default widget for the window containing @self.
See [method@Gtk.Text.set_activates_default].- Returns:
- %TRUE if the `GtkText` will activate the default widget
-
getAttributes
Gets the attribute list that was set on the `GtkText`.
See [method@Gtk.Text.set_attributes].- Returns:
- the attribute list
-
getBuffer
Get the `GtkEntryBuffer` object which holds the text for
this widget.- Returns:
- A `GtkEntryBuffer` object.
-
getEnableEmojiCompletion
public boolean getEnableEmojiCompletion()Returns whether Emoji completion is enabled for this
`GtkText` widget.- Returns:
- %TRUE if Emoji completion is enabled
-
getExtraMenu
Gets the menu model for extra items in the context menu.
See [method@Gtk.Text.set_extra_menu].- Returns:
- the menu model
-
getInputHints
public int getInputHints()Gets the input hints of the `GtkText`.- Returns:
-
getInputPurpose
public int getInputPurpose()Gets the input purpose of the `GtkText`.- Returns:
-
getInvisibleChar
public byte getInvisibleChar()Retrieves the character displayed when visibility is set to false.
Note that GTK does not compute this value unless it needs it,
so the value returned by this function is not very useful unless
it has been explicitly set with [method@Gtk.Text.set_invisible_char].- Returns:
- the current invisible char, or 0, if @text does not show invisible text at all.
-
getMaxLength
public int getMaxLength()Retrieves the maximum allowed length of the text in @self.
See [method@Gtk.Text.set_max_length].
This is equivalent to getting @self's `GtkEntryBuffer` and
calling [method@Gtk.EntryBuffer.get_max_length] on it.- Returns:
- the maximum allowed number of characters in `GtkText`, or 0 if there is no maximum.
-
getOverwriteMode
public boolean getOverwriteMode()Gets whether text is overwritten when typing in the `GtkText`.
See [method@Gtk.Text.set_overwrite_mode].- Returns:
- whether the text is overwritten when typing
-
getPlaceholderText
Retrieves the text that will be displayed when
@self is empty and unfocused
If no placeholder text has been set, %NULL will be returned.- Returns:
- the placeholder text
-
getPropagateTextWidth
public boolean getPropagateTextWidth()Returns whether the `GtkText` will grow and shrink
with the content.- Returns:
- %TRUE if @self will propagate the text width
-
getTabs
Gets the tabstops that were set on the `GtkText`.
See [method@Gtk.Text.set_tabs].- Returns:
- the tabstops
-
getTextLength
public int getTextLength()Retrieves the current length of the text in @self.
This is equivalent to getting @self's `GtkEntryBuffer`
and calling [method@Gtk.EntryBuffer.get_length] on it.- Returns:
- the current number of characters in `GtkText`, or 0 if there are none.
-
getTruncateMultiline
public boolean getTruncateMultiline()Returns whether the `GtkText` will truncate multi-line text
that is pasted into the widget- Returns:
- %TRUE if @self will truncate multi-line text
-
getVisibility
public boolean getVisibility()Retrieves whether the text in @self is visible.- Returns:
- %TRUE if the text is currently visible
-
grabFocusWithoutSelecting
public boolean grabFocusWithoutSelecting()Causes @self to have keyboard focus.
It behaves like [method@Gtk.Widget.grab_focus],
except that it doesn't select the contents of @self.
You only want to call this on some special entries
which the user usually doesn't want to replace all text in,
such as search-as-you-type entries.- Returns:
- %TRUE if focus is now inside @self
-
setActivatesDefault
public void setActivatesDefault(boolean activates) If @activates is %TRUE, pressing Enter will activate
the default widget for the window containing @self.
This usually means that the dialog containing the `GtkText`
will be closed, since the default widget is usually one of
the dialog buttons.- Parameters:
activates
- %TRUE to activate window’s default widget on Enter keypress
-
setAttributes
Sets attributes that are applied to the text.- Parameters:
attrs
- a `PangoAttrList`
-
setBuffer
Set the `GtkEntryBuffer` object which holds the text for
this widget.- Parameters:
buffer
- a `GtkEntryBuffer`
-
setEnableEmojiCompletion
public void setEnableEmojiCompletion(boolean enable_emoji_completion) Sets whether Emoji completion is enabled.
If it is, typing ':', followed by a recognized keyword,
will pop up a window with suggested Emojis matching the
keyword.- Parameters:
enable_emoji_completion
- %TRUE to enable Emoji completion
-
setExtraMenu
Sets a menu model to add when constructing
the context menu for @self.- Parameters:
model
- a `GMenuModel`
-
setInputHints
public void setInputHints(int hints) Sets input hints that allow input methods
to fine-tune their behaviour.- Parameters:
hints
- the hints
-
setInputPurpose
public void setInputPurpose(int purpose) Sets the input purpose of the `GtkText`.
This can be used by on-screen keyboards and other
input methods to adjust their behaviour.- Parameters:
purpose
- the purpose
-
setInvisibleChar
public void setInvisibleChar(byte ch) Sets the character to use when in “password mode”.
By default, GTK picks the best invisible char available in the
current font. If you set the invisible char to 0, then the user
will get no feedback at all; there will be no text on the screen
as they type.- Parameters:
ch
- a Unicode character
-
setMaxLength
public void setMaxLength(int length) Sets the maximum allowed length of the contents of the widget.
If the current contents are longer than the given length, then
they will be truncated to fit.
This is equivalent to getting @self's `GtkEntryBuffer` and
calling [method@Gtk.EntryBuffer.set_max_length] on it.- Parameters:
length
- the maximum length of the `GtkText`, or 0 for no maximum. (other than the maximum length of entries.) The value passed in will be clamped to the range 0-65536.
-
setOverwriteMode
public void setOverwriteMode(boolean overwrite) Sets whether the text is overwritten when typing
in the `GtkText`.- Parameters:
overwrite
- new value
-
setPlaceholderText
Sets text to be displayed in @self when it is empty.
This can be used to give a visual hint of the expected
contents of the `GtkText`.- Parameters:
text
- a string to be displayed when @self is empty and unfocused
-
setPlaceholderText
Sets text to be displayed in @self when it is empty.
This can be used to give a visual hint of the expected
contents of the `GtkText`.- Parameters:
text
- a string to be displayed when @self is empty and unfocused
-
setPropagateTextWidth
public void setPropagateTextWidth(boolean propagate_text_width) Sets whether the `GtkText` should grow and shrink with the content.- Parameters:
propagate_text_width
- %TRUE to propagate the text width
-
setTabs
Sets tabstops that are applied to the text.- Parameters:
tabs
- a `PangoTabArray`
-
setTruncateMultiline
public void setTruncateMultiline(boolean truncate_multiline) Sets whether the `GtkText` should truncate multi-line text
that is pasted into the widget.- Parameters:
truncate_multiline
- %TRUE to truncate multi-line text
-
setVisibility
public void setVisibility(boolean visible) Sets whether the contents of the `GtkText` are visible or not.
When visibility is set to %FALSE, characters are displayed
as the invisible char, and will also appear that way when
the text in the widget is copied to the clipboard.
By default, GTK picks the best invisible character available
in the current font, but it can be changed with
[method@Gtk.Text.set_invisible_char].
Note that you probably want to set [property@Gtk.Text:input-purpose]
to %GTK_INPUT_PURPOSE_PASSWORD or %GTK_INPUT_PURPOSE_PIN to
inform input methods about the purpose of this self,
in addition to setting visibility to %FALSE.- Parameters:
visible
- %TRUE if the contents of the `GtkText` are displayed as plaintext
-
unsetInvisibleChar
public void unsetInvisibleChar()Unsets the invisible char.
After calling this, the default invisible
char is used again. -
onActivate
Connect to signal "activate".
SeeText.OnActivate.onActivate()
for signal description.
FieldSIGNAL_ON_ACTIVATE
contains original signal name and can be used as resource reference.- Parameters:
signal
- callback function (lambda).- Returns:
SignalHandler
. Can be used to disconnect signal and to release callback function.
-
onBackspace
Connect to signal "backspace".
SeeText.OnBackspace.onBackspace()
for signal description.
FieldSIGNAL_ON_BACKSPACE
contains original signal name and can be used as resource reference.- Parameters:
signal
- callback function (lambda).- Returns:
SignalHandler
. Can be used to disconnect signal and to release callback function.
-
onCopyClipboard
Connect to signal "copy-clipboard".
SeeText.OnCopyClipboard.onCopyClipboard()
for signal description.
FieldSIGNAL_ON_COPY_CLIPBOARD
contains original signal name and can be used as resource reference.- Parameters:
signal
- callback function (lambda).- Returns:
SignalHandler
. Can be used to disconnect signal and to release callback function.
-
onCutClipboard
Connect to signal "cut-clipboard".
SeeText.OnCutClipboard.onCutClipboard()
for signal description.
FieldSIGNAL_ON_CUT_CLIPBOARD
contains original signal name and can be used as resource reference.- Parameters:
signal
- callback function (lambda).- Returns:
SignalHandler
. Can be used to disconnect signal and to release callback function.
-
onDeleteFromCursor
Connect to signal "delete-from-cursor".
SeeText.OnDeleteFromCursor.onDeleteFromCursor(int, int)
for signal description.
FieldSIGNAL_ON_DELETE_FROM_CURSOR
contains original signal name and can be used as resource reference.- Parameters:
signal
- callback function (lambda).- Returns:
SignalHandler
. Can be used to disconnect signal and to release callback function.
-
onInsertAtCursor
Connect to signal "insert-at-cursor".
SeeText.OnInsertAtCursor.onInsertAtCursor(ch.bailu.gtk.type.Str)
for signal description.
FieldSIGNAL_ON_INSERT_AT_CURSOR
contains original signal name and can be used as resource reference.- Parameters:
signal
- callback function (lambda).- Returns:
SignalHandler
. Can be used to disconnect signal and to release callback function.
-
onInsertEmoji
Connect to signal "insert-emoji".
SeeText.OnInsertEmoji.onInsertEmoji()
for signal description.
FieldSIGNAL_ON_INSERT_EMOJI
contains original signal name and can be used as resource reference.- Parameters:
signal
- callback function (lambda).- Returns:
SignalHandler
. Can be used to disconnect signal and to release callback function.
-
onMoveCursor
Connect to signal "move-cursor".
SeeText.OnMoveCursor.onMoveCursor(int, int, boolean)
for signal description.
FieldSIGNAL_ON_MOVE_CURSOR
contains original signal name and can be used as resource reference.- Parameters:
signal
- callback function (lambda).- Returns:
SignalHandler
. Can be used to disconnect signal and to release callback function.
-
onPasteClipboard
Connect to signal "paste-clipboard".
SeeText.OnPasteClipboard.onPasteClipboard()
for signal description.
FieldSIGNAL_ON_PASTE_CLIPBOARD
contains original signal name and can be used as resource reference.- Parameters:
signal
- callback function (lambda).- Returns:
SignalHandler
. Can be used to disconnect signal and to release callback function.
-
onPreeditChanged
Connect to signal "preedit-changed".
SeeText.OnPreeditChanged.onPreeditChanged(ch.bailu.gtk.type.Str)
for signal description.
FieldSIGNAL_ON_PREEDIT_CHANGED
contains original signal name and can be used as resource reference.- Parameters:
signal
- callback function (lambda).- Returns:
SignalHandler
. Can be used to disconnect signal and to release callback function.
-
onToggleOverwrite
Connect to signal "toggle-overwrite".
SeeText.OnToggleOverwrite.onToggleOverwrite()
for signal description.
FieldSIGNAL_ON_TOGGLE_OVERWRITE
contains original signal name and can be used as resource reference.- Parameters:
signal
- callback function (lambda).- Returns:
SignalHandler
. Can be used to disconnect signal and to release callback function.
-
asAccessible
Implements interfaceAccessible
. Call this to get access to interface functions.- Overrides:
asAccessible
in classWidget
- Returns:
Accessible
-
asBuildable
Implements interfaceBuildable
. Call this to get access to interface functions.- Overrides:
asBuildable
in classWidget
- Returns:
Buildable
-
asConstraintTarget
Implements interfaceConstraintTarget
. Call this to get access to interface functions.- Overrides:
asConstraintTarget
in classWidget
- Returns:
ConstraintTarget
-
asEditable
Implements interfaceEditable
. Call this to get access to interface functions.- Returns:
Editable
-
getTypeID
public static long getTypeID() -
getParentTypeID
public static long getParentTypeID() -
getTypeSize
-
getParentTypeSize
-
getInstanceSize
public static int getInstanceSize()
-