Package ch.bailu.gtk.gtk
Klasse TextView
- Alle implementierten Schnittstellen:
PointerInterface
Displays the contents of a [class@Gtk.TextBuffer].
<picture>
<source srcset="multiline-text-dark.png" media="(prefers-color-scheme: dark)">
<img alt="An example GtkTextView" src="multiline-text.png">
</picture>
You may wish to begin by reading the [conceptual overview](section-text-widget.html),
which gives an overview of all the objects and data types related to the
text widget and how they work together.
## Shortcuts and Gestures
`GtkTextView` supports the following keyboard shortcuts:
- <kbd>Shift</kbd>+<kbd>F10</kbd> or <kbd>Menu</kbd> opens the context menu.
- <kbd>Ctrl</kbd>+<kbd>Z</kbd> undoes the last modification.
- <kbd>Ctrl</kbd>+<kbd>Y</kbd> or <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>Z</kbd>
redoes the last undone modification.
Additionally, the following signals have default keybindings:
- [signal@Gtk.TextView::backspace]
- [signal@Gtk.TextView::copy-clipboard]
- [signal@Gtk.TextView::cut-clipboard]
- [signal@Gtk.TextView::delete-from-cursor]
- [signal@Gtk.TextView::insert-emoji]
- [signal@Gtk.TextView::move-cursor]
- [signal@Gtk.TextView::paste-clipboard]
- [signal@Gtk.TextView::select-all]
- [signal@Gtk.TextView::toggle-cursor-visible]
- [signal@Gtk.TextView::toggle-overwrite]
## Actions
`GtkTextView` defines a set of built-in actions:
- `clipboard.copy` copies the contents to the clipboard.
- `clipboard.cut` copies the contents to the clipboard and deletes it from
the widget.
- `clipboard.paste` inserts the contents of the clipboard into the widget.
- `menu.popup` opens the context menu.
- `misc.insert-emoji` opens the Emoji chooser.
- `selection.delete` deletes the current selection.
- `selection.select-all` selects all of the widgets content.
- `text.redo` redoes the last change to the contents.
- `text.undo` undoes the last change to the contents.
## CSS nodes
```
textview.view
├── border.top
├── border.left
├── text
│ ╰── [selection]
├── border.right
├── border.bottom
╰── [window.popup]
```
`GtkTextView` has a main css node with name textview and style class .view,
and subnodes for each of the border windows, and the main text area,
with names border and text, respectively. The border nodes each get
one of the style classes .left, .right, .top or .bottom.
A node representing the selection will appear below the text node.
If a context menu is opened, the window node will appear as a subnode
of the main node.
## Accessibility
`GtkTextView` uses the [enum@Gtk.AccessibleRole.text_box] role.
<picture>
<source srcset="multiline-text-dark.png" media="(prefers-color-scheme: dark)">
<img alt="An example GtkTextView" src="multiline-text.png">
</picture>
You may wish to begin by reading the [conceptual overview](section-text-widget.html),
which gives an overview of all the objects and data types related to the
text widget and how they work together.
## Shortcuts and Gestures
`GtkTextView` supports the following keyboard shortcuts:
- <kbd>Shift</kbd>+<kbd>F10</kbd> or <kbd>Menu</kbd> opens the context menu.
- <kbd>Ctrl</kbd>+<kbd>Z</kbd> undoes the last modification.
- <kbd>Ctrl</kbd>+<kbd>Y</kbd> or <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>Z</kbd>
redoes the last undone modification.
Additionally, the following signals have default keybindings:
- [signal@Gtk.TextView::backspace]
- [signal@Gtk.TextView::copy-clipboard]
- [signal@Gtk.TextView::cut-clipboard]
- [signal@Gtk.TextView::delete-from-cursor]
- [signal@Gtk.TextView::insert-emoji]
- [signal@Gtk.TextView::move-cursor]
- [signal@Gtk.TextView::paste-clipboard]
- [signal@Gtk.TextView::select-all]
- [signal@Gtk.TextView::toggle-cursor-visible]
- [signal@Gtk.TextView::toggle-overwrite]
## Actions
`GtkTextView` defines a set of built-in actions:
- `clipboard.copy` copies the contents to the clipboard.
- `clipboard.cut` copies the contents to the clipboard and deletes it from
the widget.
- `clipboard.paste` inserts the contents of the clipboard into the widget.
- `menu.popup` opens the context menu.
- `misc.insert-emoji` opens the Emoji chooser.
- `selection.delete` deletes the current selection.
- `selection.select-all` selects all of the widgets content.
- `text.redo` redoes the last change to the contents.
- `text.undo` undoes the last change to the contents.
## CSS nodes
```
textview.view
├── border.top
├── border.left
├── text
│ ╰── [selection]
├── border.right
├── border.bottom
╰── [window.popup]
```
`GtkTextView` has a main css node with name textview and style class .view,
and subnodes for each of the border windows, and the main text area,
with names border and text, respectively. The border nodes each get
one of the style classes .left, .right, .top or .bottom.
A node representing the selection will appear below the text node.
If a context menu is opened, the window node will appear as a subnode
of the main node.
## Accessibility
`GtkTextView` uses the [enum@Gtk.AccessibleRole.text_box] role.
-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenModifizierer und TypKlasseBeschreibungstatic interface
static interface
static interface
static interface
static interface
static interface
static interface
static interface
static interface
static interface
static interface
static interface
static interface
static interface
static interface
Von Klasse geerbte verschachtelte Klassen/Schnittstellen 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
Von Klasse geerbte verschachtelte Klassen/Schnittstellen ch.bailu.gtk.gobject.Object
Object.OnBindingTransformFunc, Object.OnDuplicateFunc, Object.OnNotify, Object.OnToggleNotify, Object.OnWeakNotify
-
Feldübersicht
FelderModifizierer und TypFeldBeschreibungstatic 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
static final String
static final String
static final String
static final String
Von Klasse geerbte Felder 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
Von Klasse geerbte Felder ch.bailu.gtk.gobject.Object
SIGNAL_ON_NOTIFY
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
addChildAtAnchor
(Widget child, TextChildAnchor anchor) Adds a child widget in the text buffer, at the given @anchor.void
addOverlay
(Widget child, int xpos, int ypos) Adds @child at a fixed coordinate in the `GtkTextView`'s text window.Implements interfaceAccessible
.Implements interfaceAccessibleText
.Implements interfaceBuildable
.Implements interfaceConstraintTarget
.Implements interfaceScrollable
.boolean
backwardDisplayLine
(TextIter iter) Moves the given @iter backward by one display (wrapped) line.boolean
Moves the given @iter backward to the next display line start.void
bufferToWindowCoords
(int win, int buffer_x, int buffer_y, Int window_x, Int window_y) Converts buffer coordinates to window coordinates.boolean
forwardDisplayLine
(TextIter iter) Moves the given @iter forward by one display (wrapped) line.boolean
Moves the given @iter forward to the next display line end.boolean
Returns whether pressing the <kbd>Tab</kbd> key inserts a tab characters.int
Gets the bottom margin for text in the @text_view.Returns the `GtkTextBuffer` being displayed by this text view.static ClassHandler
void
getCursorLocations
(TextIter iter, Rectangle strong, Rectangle weak) Determine the positions of the strong and weak cursors if the
insertion point is at @iter.boolean
Find out whether the cursor should be displayed.boolean
Returns the default editability of the `GtkTextView`.Gets the menu model that gets added to the context menu
or %NULL if none has been set.getGutter
(int win) Gets a `GtkWidget` that has previously been set as gutter.int
Gets the default indentation of paragraphs in @text_view.int
Gets the `input-hints` of the `GtkTextView`.int
Gets the `input-purpose` of the `GtkTextView`.static int
boolean
getIterAtLocation
(TextIter iter, int x, int y) Retrieves the iterator at buffer coordinates @x and @y.boolean
getIterAtPosition
(TextIter iter, Int trailing, int x, int y) Retrieves the iterator pointing to the character at buffer
coordinates @x and @y.void
getIterLocation
(TextIter iter, Rectangle location) Gets a rectangle which roughly contains the character at @iter.int
Gets the default justification of paragraphs in @text_view.int
Gets the default left margin size of paragraphs in the @text_view.void
getLineAtY
(TextIter target_iter, int y, Int line_top) Gets the `GtkTextIter` at the start of the line containing
the coordinate @y.void
getLineYrange
(TextIter iter, Int y, Int height) Gets the y coordinate of the top of the line containing @iter,
and the height of the line.Gets the `PangoContext` that is used for rendering LTR directed
text layouts.boolean
Gets whether the `GtkTextView` uses monospace styling.boolean
Returns whether the `GtkTextView` is in overwrite mode or not.static long
static TypeSystem.TypeSize
int
Gets the default number of pixels to put above paragraphs.int
Gets the default number of pixels to put below paragraphs.int
Gets the default number of pixels to put between wrapped lines
inside a paragraph.int
Gets the default right margin for text in @text_view.Gets the `PangoContext` that is used for rendering RTL directed
text layouts.getTabs()
Gets the default tabs for @text_view.int
Gets the top margin for text in the @text_view.static long
static TypeSystem.TypeSize
void
getVisibleRect
(Rectangle visible_rect) Fills @visible_rect with the currently-visible
region of the buffer, in buffer coordinates.int
Gets the line wrapping for the view.boolean
imContextFilterKeypress
(Event event) Allow the `GtkTextView` input method to internally handle key press
and release events.boolean
moveMarkOnscreen
(TextMark mark) Moves a mark within the buffer so that it's
located within the currently-visible text area.void
moveOverlay
(Widget child, int xpos, int ypos) Updates the position of a child.boolean
moveVisually
(TextIter iter, int count) Move the iterator a given number of characters visually, treating
it as the strong cursor position.static TextView
newWithBufferTextView
(TextBuffer buffer) Creates a new `GtkTextView` widget displaying the buffer @buffer.onBackspace
(TextView.OnBackspace signal) Connect to signal "backspace".Connect to signal "copy-clipboard".Connect to signal "cut-clipboard".Connect to signal "delete-from-cursor".Connect to signal "extend-selection".Connect to signal "insert-at-cursor".onInsertEmoji
(TextView.OnInsertEmoji signal) Connect to signal "insert-emoji".onMoveCursor
(TextView.OnMoveCursor signal) Connect to signal "move-cursor".Connect to signal "move-viewport".Connect to signal "paste-clipboard".Connect to signal "preedit-changed".onSelectAll
(TextView.OnSelectAll signal) Connect to signal "select-all".onSetAnchor
(TextView.OnSetAnchor signal) Connect to signal "set-anchor".Connect to signal "toggle-cursor-visible".Connect to signal "toggle-overwrite".boolean
Moves the cursor to the currently visible region of the
buffer.void
Removes a child widget from @text_view.void
Ensures that the cursor is shown.void
Reset the input method context of the text view if needed.void
scrollMarkOnscreen
(TextMark mark) Scrolls @text_view the minimum distance such that @mark is contained
within the visible area of the widget.boolean
scrollToIter
(TextIter iter, double within_margin, boolean use_align, double xalign, double yalign) Scrolls @text_view so that @iter is on the screen in the position
indicated by @xalign and @yalign.void
scrollToMark
(TextMark mark, double within_margin, boolean use_align, double xalign, double yalign) Scrolls @text_view so that @mark is on the screen in the position
indicated by @xalign and @yalign.void
setAcceptsTab
(boolean accepts_tab) Sets the behavior of the text widget when the <kbd>Tab</kbd> key is pressed.void
setBottomMargin
(int bottom_margin) Sets the bottom margin for text in @text_view.void
setBuffer
(TextBuffer buffer) Sets @buffer as the buffer being displayed by @text_view.void
setCursorVisible
(boolean setting) Toggles whether the insertion point should be displayed.void
setEditable
(boolean setting) Sets the default editability of the `GtkTextView`.void
setExtraMenu
(MenuModel model) Sets a menu model to add when constructing the context
menu for @text_view.void
Places @widget into the gutter specified by @win.void
setIndent
(int indent) Sets the default indentation for paragraphs in @text_view.void
setInputHints
(int hints) Sets the `input-hints` of the `GtkTextView`.void
setInputPurpose
(int purpose) Sets the `input-purpose` of the `GtkTextView`.void
setJustification
(int justification) Sets the default justification of text in @text_view.void
setLeftMargin
(int left_margin) Sets the default left margin for text in @text_view.void
setMonospace
(boolean monospace) Sets whether the `GtkTextView` should display text in
monospace styling.void
setOverwrite
(boolean overwrite) Changes the `GtkTextView` overwrite mode.void
setPixelsAboveLines
(int pixels_above_lines) Sets the default number of blank pixels above paragraphs in @text_view.void
setPixelsBelowLines
(int pixels_below_lines) Sets the default number of pixels of blank space
to put below paragraphs in @text_view.void
setPixelsInsideWrap
(int pixels_inside_wrap) Sets the default number of pixels of blank space to leave between
display/wrapped lines within a paragraph.void
setRightMargin
(int right_margin) Sets the default right margin for text in the text view.void
Sets the default tab stops for paragraphs in @text_view.void
setTopMargin
(int top_margin) Sets the top margin for text in @text_view.void
setWrapMode
(int wrap_mode) Sets the line wrapping for the view.boolean
startsDisplayLine
(TextIter iter) Determines whether @iter is at the start of a display line.void
windowToBufferCoords
(int win, int window_x, int window_y, Int buffer_x, Int buffer_y) Converts coordinates on the window identified by @win to buffer
coordinates.Von Klasse geerbte Methoden 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, getBaseline, getCanFocus, getCanTarget, getChildVisible, getClipboard, getColor, getCssClasses, getCssName, getCursor, getDefaultDirection, getDirection, getDisplay, getFirstChild, getFocusable, getFocusChild, getFocusOnClick, getFontMap, getFontOptions, getFrameClock, getHalign, getHasTooltip, getHeight, getHexpand, getHexpandSet, getLastChild, getLayoutManager, getLimitEvents, 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, setLimitEvents, 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
Von Klasse geerbte Methoden ch.bailu.gtk.type.PropertyHolder
getBooleanProperty, getIntProperty, getObjectProperty, getStringProperty, getStrProperty, setBooleanProperty, setIntProperty, setObjectProperty, setStringProperty, setStrProperty
Von 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, weakUnref
Von Klasse geerbte Methoden ch.bailu.gtk.type.Pointer
asCPointer, cast, connectSignal, disconnectSignals, disconnectSignals, equals, hashCode, throwIfNull, throwNullPointerException, toString, unregisterCallbacks, unregisterCallbacks
Von Klasse geerbte Methoden ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNull
Von Klasse geerbte Methoden java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Von Schnittstelle geerbte Methoden ch.bailu.gtk.type.PointerInterface
asCPointerNotNull, asJnaPointer, asPointer, isNotNull, isNull
-
Felddetails
-
SIGNAL_ON_BACKSPACE
- Siehe auch:
-
SIGNAL_ON_COPY_CLIPBOARD
- Siehe auch:
-
SIGNAL_ON_CUT_CLIPBOARD
- Siehe auch:
-
SIGNAL_ON_DELETE_FROM_CURSOR
- Siehe auch:
-
SIGNAL_ON_EXTEND_SELECTION
- Siehe auch:
-
SIGNAL_ON_INSERT_AT_CURSOR
- Siehe auch:
-
SIGNAL_ON_INSERT_EMOJI
- Siehe auch:
-
SIGNAL_ON_MOVE_CURSOR
- Siehe auch:
-
SIGNAL_ON_MOVE_VIEWPORT
- Siehe auch:
-
SIGNAL_ON_PASTE_CLIPBOARD
- Siehe auch:
-
SIGNAL_ON_PREEDIT_CHANGED
- Siehe auch:
-
SIGNAL_ON_SELECT_ALL
- Siehe auch:
-
SIGNAL_ON_SET_ANCHOR
- Siehe auch:
-
SIGNAL_ON_TOGGLE_CURSOR_VISIBLE
- Siehe auch:
-
SIGNAL_ON_TOGGLE_OVERWRITE
- Siehe auch:
-
-
Konstruktordetails
-
TextView
-
TextView
public TextView()Creates a new `GtkTextView`.
If you don’t call [method@Gtk.TextView.set_buffer] before using the
text view, an empty default buffer will be created for you. Get the
buffer with [method@Gtk.TextView.get_buffer]. If you want to specify
your own buffer, consider [ctor@Gtk.TextView.new_with_buffer].
-
-
Methodendetails
-
getClassHandler
-
newWithBufferTextView
Creates a new `GtkTextView` widget displaying the buffer @buffer.
One buffer can be shared among many widgets. @buffer may be %NULL
to create a default buffer, in which case this function is equivalent
to [ctor@Gtk.TextView.new]. The text view adds its own reference count
to the buffer; it does not take over an existing reference.- Parameter:
buffer
- a `GtkTextBuffer`- Gibt zurück:
- a new `GtkTextView`.
-
addChildAtAnchor
Adds a child widget in the text buffer, at the given @anchor.- Parameter:
child
- a `GtkWidget`anchor
- a `GtkTextChildAnchor` in the `GtkTextBuffer` for @text_view
-
addOverlay
Adds @child at a fixed coordinate in the `GtkTextView`'s text window.
The @xpos and @ypos must be in buffer coordinates (see
[method@Gtk.TextView.get_iter_location] to convert to
buffer coordinates).
@child will scroll with the text view.
If instead you want a widget that will not move with the
`GtkTextView` contents see `GtkOverlay`.- Parameter:
child
- a `GtkWidget`xpos
- X position of child in window coordinatesypos
- Y position of child in window coordinates
-
backwardDisplayLine
Moves the given @iter backward by one display (wrapped) line.
A display line is different from a paragraph. Paragraphs are
separated by newlines or other paragraph separator characters.
Display lines are created by line-wrapping a paragraph. If
wrapping is turned off, display lines and paragraphs will be the
same. Display lines are divided differently for each view, since
they depend on the view’s width; paragraphs are the same in all
views, since they depend on the contents of the `GtkTextBuffer`.- Parameter:
iter
- a `GtkTextIter`- Gibt zurück:
- %TRUE if @iter was moved and is not on the end iterator
-
backwardDisplayLineStart
Moves the given @iter backward to the next display line start.
A display line is different from a paragraph. Paragraphs are
separated by newlines or other paragraph separator characters.
Display lines are created by line-wrapping a paragraph. If
wrapping is turned off, display lines and paragraphs will be the
same. Display lines are divided differently for each view, since
they depend on the view’s width; paragraphs are the same in all
views, since they depend on the contents of the `GtkTextBuffer`.- Parameter:
iter
- a `GtkTextIter`- Gibt zurück:
- %TRUE if @iter was moved and is not on the end iterator
-
bufferToWindowCoords
public void bufferToWindowCoords(int win, int buffer_x, int buffer_y, @Nullable Int window_x, @Nullable Int window_y) Converts buffer coordinates to window coordinates.- Parameter:
win
- a `GtkTextWindowType`buffer_x
- buffer x coordinatebuffer_y
- buffer y coordinatewindow_x
- window x coordinate return locationwindow_y
- window y coordinate return location
-
forwardDisplayLine
Moves the given @iter forward by one display (wrapped) line.
A display line is different from a paragraph. Paragraphs are
separated by newlines or other paragraph separator characters.
Display lines are created by line-wrapping a paragraph. If
wrapping is turned off, display lines and paragraphs will be the
same. Display lines are divided differently for each view, since
they depend on the view’s width; paragraphs are the same in all
views, since they depend on the contents of the `GtkTextBuffer`.- Parameter:
iter
- a `GtkTextIter`- Gibt zurück:
- %TRUE if @iter was moved and is not on the end iterator
-
forwardDisplayLineEnd
Moves the given @iter forward to the next display line end.
A display line is different from a paragraph. Paragraphs are
separated by newlines or other paragraph separator characters.
Display lines are created by line-wrapping a paragraph. If
wrapping is turned off, display lines and paragraphs will be the
same. Display lines are divided differently for each view, since
they depend on the view’s width; paragraphs are the same in all
views, since they depend on the contents of the `GtkTextBuffer`.- Parameter:
iter
- a `GtkTextIter`- Gibt zurück:
- %TRUE if @iter was moved and is not on the end iterator
-
getAcceptsTab
public boolean getAcceptsTab()Returns whether pressing the <kbd>Tab</kbd> key inserts a tab characters.
See [method@Gtk.TextView.set_accepts_tab].- Gibt zurück:
- %TRUE if pressing the Tab key inserts a tab character, %FALSE if pressing the Tab key moves the keyboard focus.
-
getBottomMargin
public int getBottomMargin()Gets the bottom margin for text in the @text_view.- Gibt zurück:
- bottom margin in pixels
-
getBuffer
Returns the `GtkTextBuffer` being displayed by this text view.
The reference count on the buffer is not incremented; the caller
of this function won’t own a new reference.- Gibt zurück:
- a `GtkTextBuffer`
-
getCursorLocations
public void getCursorLocations(@Nullable TextIter iter, @Nullable Rectangle strong, @Nullable Rectangle weak) Determine the positions of the strong and weak cursors if the
insertion point is at @iter.
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 of the paragraph
are inserted. The weak cursor location is the location where
characters of the directionality opposite to the base direction
of the paragraph are inserted.
If @iter is %NULL, the actual cursor position is used.
Note that if @iter happens to be the actual cursor position, and
there is currently an IM preedit sequence being entered, the
returned locations will be adjusted to account for the preedit
cursor’s offset within the preedit sequence.
The rectangle position is in buffer coordinates; use
[method@Gtk.TextView.buffer_to_window_coords] to convert these
coordinates to coordinates for one of the windows in the text view.- Parameter:
iter
- a `GtkTextIter`strong
- location to store the strong cursor positionweak
- location to store the weak cursor position
-
getCursorVisible
public boolean getCursorVisible()Find out whether the cursor should be displayed.- Gibt zurück:
- whether the insertion mark is visible
-
getEditable
public boolean getEditable()Returns the default editability of the `GtkTextView`.
Tags in the buffer may override this setting for some ranges of text.- Gibt zurück:
- whether text is editable by default
-
getExtraMenu
Gets the menu model that gets added to the context menu
or %NULL if none has been set.- Gibt zurück:
- the menu model
-
getGutter
Gets a `GtkWidget` that has previously been set as gutter.
See [method@Gtk.TextView.set_gutter].
@win must be one of %GTK_TEXT_WINDOW_LEFT, %GTK_TEXT_WINDOW_RIGHT,
%GTK_TEXT_WINDOW_TOP, or %GTK_TEXT_WINDOW_BOTTOM.- Parameter:
win
- a `GtkTextWindowType`- Gibt zurück:
- a `GtkWidget`
-
getIndent
public int getIndent()Gets the default indentation of paragraphs in @text_view.
Tags in the view’s buffer may override the default.
The indentation may be negative.- Gibt zurück:
- number of pixels of indentation
-
getInputHints
public int getInputHints()Gets the `input-hints` of the `GtkTextView`.- Gibt zurück:
- the input hints
-
getInputPurpose
public int getInputPurpose()Gets the `input-purpose` of the `GtkTextView`.- Gibt zurück:
- the input purpose
-
getIterAtLocation
Retrieves the iterator at buffer coordinates @x and @y.
Buffer coordinates are coordinates for the entire buffer, not just
the currently-displayed portion. If you have coordinates from an
event, you have to convert those to buffer coordinates with
[method@Gtk.TextView.window_to_buffer_coords].- Parameter:
iter
- a `GtkTextIter`x
- x position, in buffer coordinatesy
- y position, in buffer coordinates- Gibt zurück:
- %TRUE if the position is over text
-
getIterAtPosition
Retrieves the iterator pointing to the character at buffer
coordinates @x and @y.
Buffer coordinates are coordinates for the entire buffer, not just
the currently-displayed portion. If you have coordinates from an event,
you have to convert those to buffer coordinates with
[method@Gtk.TextView.window_to_buffer_coords].
Note that this is different from [method@Gtk.TextView.get_iter_at_location],
which returns cursor locations, i.e. positions between characters.- Parameter:
iter
- a `GtkTextIter`trailing
- if non-%NULL, location to store an integer indicating where in the grapheme the user clicked. It will either be zero, or the number of characters in the grapheme. 0 represents the trailing edge of the grapheme.x
- x position, in buffer coordinatesy
- y position, in buffer coordinates- Gibt zurück:
- %TRUE if the position is over text
-
getIterLocation
Gets a rectangle which roughly contains the character at @iter.
The rectangle position is in buffer coordinates; use
[method@Gtk.TextView.buffer_to_window_coords] to convert these
coordinates to coordinates for one of the windows in the text view.- Parameter:
iter
- a `GtkTextIter`location
- bounds of the character at @iter
-
getJustification
public int getJustification()Gets the default justification of paragraphs in @text_view.
Tags in the buffer may override the default.- Gibt zurück:
- default justification
-
getLeftMargin
public int getLeftMargin()Gets the default left margin size of paragraphs in the @text_view.
Tags in the buffer may override the default.- Gibt zurück:
- left margin in pixels
-
getLineAtY
Gets the `GtkTextIter` at the start of the line containing
the coordinate @y.
@y is in buffer coordinates, convert from window coordinates with
[method@Gtk.TextView.window_to_buffer_coords]. If non-%NULL,
@line_top will be filled with the coordinate of the top edge
of the line.- Parameter:
target_iter
- a `GtkTextIter`y
- a y coordinateline_top
- return location for top coordinate of the line
-
getLineYrange
Gets the y coordinate of the top of the line containing @iter,
and the height of the line.
The coordinate is a buffer coordinate; convert to window
coordinates with [method@Gtk.TextView.buffer_to_window_coords].- Parameter:
iter
- a `GtkTextIter`y
- return location for a y coordinateheight
- return location for a height
-
getLtrContext
Gets the `PangoContext` that is used for rendering LTR directed
text layouts.
The context may be replaced when CSS changes occur.- Gibt zurück:
- a `PangoContext`
-
getMonospace
public boolean getMonospace()Gets whether the `GtkTextView` uses monospace styling.- Gibt zurück:
- %TRUE if monospace fonts are desired
-
getOverwrite
public boolean getOverwrite()Returns whether the `GtkTextView` is in overwrite mode or not.- Gibt zurück:
- whether @text_view is in overwrite mode or not.
-
getPixelsAboveLines
public int getPixelsAboveLines()Gets the default number of pixels to put above paragraphs.
Adding this function with [method@Gtk.TextView.get_pixels_below_lines]
is equal to the line space between each paragraph.- Gibt zurück:
- default number of pixels above paragraphs
-
getPixelsBelowLines
public int getPixelsBelowLines()Gets the default number of pixels to put below paragraphs.
The line space is the sum of the value returned by this function and
the value returned by [method@Gtk.TextView.get_pixels_above_lines].- Gibt zurück:
- default number of blank pixels below paragraphs
-
getPixelsInsideWrap
public int getPixelsInsideWrap()Gets the default number of pixels to put between wrapped lines
inside a paragraph.- Gibt zurück:
- default number of pixels of blank space between wrapped lines
-
getRightMargin
public int getRightMargin()Gets the default right margin for text in @text_view.
Tags in the buffer may override the default.- Gibt zurück:
- right margin in pixels
-
getRtlContext
Gets the `PangoContext` that is used for rendering RTL directed
text layouts.
The context may be replaced when CSS changes occur.- Gibt zurück:
- a `PangoContext`
-
getTabs
Gets the default tabs for @text_view.
Tags in the buffer may override the defaults. The returned array
will be %NULL if “standard” (8-space) tabs are used. Free the
return value with [method@Pango.TabArray.free].- Gibt zurück:
- copy of default tab array, or %NULL if standard tabs are used; must be freed with [method@Pango.TabArray.free].
-
getTopMargin
public int getTopMargin()Gets the top margin for text in the @text_view.- Gibt zurück:
- top margin in pixels
-
getVisibleRect
Fills @visible_rect with the currently-visible
region of the buffer, in buffer coordinates.
Convert to window coordinates with
[method@Gtk.TextView.buffer_to_window_coords].- Parameter:
visible_rect
- rectangle to fill
-
getWrapMode
public int getWrapMode()Gets the line wrapping for the view.- Gibt zurück:
- the line wrap setting
-
imContextFilterKeypress
Allow the `GtkTextView` input method to internally handle key press
and release events.
If this function returns %TRUE, then no further processing should be
done for this key event. See [method@Gtk.IMContext.filter_keypress].
Note that you are expected to call this function from your handler
when overriding key event handling. This is needed in the case when
you need to insert your own key handling between the input method
and the default key event handling of the `GtkTextView`.
```c
static gboolean
gtk_foo_bar_key_press_event (GtkWidget *widget,
GdkEvent *event)
{
guint keyval;
gdk_event_get_keyval ((GdkEvent*)event, &keyval);
if (keyval == GDK_KEY_Return || keyval == GDK_KEY_KP_Enter)
{
if (gtk_text_view_im_context_filter_keypress (GTK_TEXT_VIEW (widget), event))
return TRUE;
}
// Do some stuff
return GTK_WIDGET_CLASS (gtk_foo_bar_parent_class)->key_press_event (widget, event);
}
```- Parameter:
event
- the key event- Gibt zurück:
- %TRUE if the input method handled the key event.
-
moveMarkOnscreen
Moves a mark within the buffer so that it's
located within the currently-visible text area.- Parameter:
mark
- a `GtkTextMark`- Gibt zurück:
- %TRUE if the mark moved (wasn’t already onscreen)
-
moveOverlay
Updates the position of a child.
See [method@Gtk.TextView.add_overlay].- Parameter:
child
- a widget already added with [method@Gtk.TextView.add_overlay]xpos
- new X position in buffer coordinatesypos
- new Y position in buffer coordinates
-
moveVisually
Move the iterator a given number of characters visually, treating
it as the strong cursor position.
If @count is positive, then the new strong cursor position will
be @count positions to the right of the old cursor position.
If @count is negative then the new strong cursor position will
be @count positions to the left of the old cursor position.
In the presence of bi-directional text, the correspondence
between logical and visual order will depend on the direction
of the current run, and there may be jumps when the cursor
is moved off of the end of a run.- Parameter:
iter
- a `GtkTextIter`count
- number of characters to move (negative moves left, positive moves right)- Gibt zurück:
- %TRUE if @iter moved and is not on the end iterator
-
placeCursorOnscreen
public boolean placeCursorOnscreen()Moves the cursor to the currently visible region of the
buffer.- Gibt zurück:
- %TRUE if the cursor had to be moved.
-
remove
Removes a child widget from @text_view.- Parameter:
child
- the child to remove
-
resetCursorBlink
public void resetCursorBlink()Ensures that the cursor is shown.
This also resets the time that it will stay blinking (or
visible, in case blinking is disabled).
This function should be called in response to user input
(e.g. from derived classes that override the textview's
event handlers). -
resetImContext
public void resetImContext()Reset the input method context of the text view if needed.
This can be necessary in the case where modifying the buffer
would confuse on-going input method behavior. -
scrollMarkOnscreen
Scrolls @text_view the minimum distance such that @mark is contained
within the visible area of the widget.- Parameter:
mark
- a mark in the buffer for @text_view
-
scrollToIter
public boolean scrollToIter(@Nonnull TextIter iter, double within_margin, boolean use_align, double xalign, double yalign) Scrolls @text_view so that @iter is on the screen in the position
indicated by @xalign and @yalign.
An alignment of 0.0 indicates left or top, 1.0 indicates right or
bottom, 0.5 means center. If @use_align is %FALSE, the text scrolls
the minimal distance to get the mark onscreen, possibly not scrolling
at all. The effective screen for purposes of this function is reduced
by a margin of size @within_margin.
Note that this function uses the currently-computed height of the
lines in the text buffer. Line heights are computed in an idle
handler; so this function may not have the desired effect if it’s
called before the height computations. To avoid oddness, consider
using [method@Gtk.TextView.scroll_to_mark] which saves a point to be
scrolled to after line validation.- Parameter:
iter
- a `GtkTextIter`within_margin
- margin as a [0.0,0.5) fraction of screen sizeuse_align
- whether to use alignment arguments (if %FALSE, just get the mark onscreen)xalign
- horizontal alignment of mark within visible areayalign
- vertical alignment of mark within visible area- Gibt zurück:
- %TRUE if scrolling occurred
-
scrollToMark
public void scrollToMark(@Nonnull TextMark mark, double within_margin, boolean use_align, double xalign, double yalign) Scrolls @text_view so that @mark is on the screen in the position
indicated by @xalign and @yalign.
An alignment of 0.0 indicates left or top, 1.0 indicates right or
bottom, 0.5 means center. If @use_align is %FALSE, the text scrolls
the minimal distance to get the mark onscreen, possibly not scrolling
at all. The effective screen for purposes of this function is reduced
by a margin of size @within_margin.- Parameter:
mark
- a `GtkTextMark`within_margin
- margin as a [0.0,0.5) fraction of screen sizeuse_align
- whether to use alignment arguments (if %FALSE, just get the mark onscreen)xalign
- horizontal alignment of mark within visible areayalign
- vertical alignment of mark within visible area
-
setAcceptsTab
public void setAcceptsTab(boolean accepts_tab) Sets the behavior of the text widget when the <kbd>Tab</kbd> key is pressed.
If @accepts_tab is %TRUE, a tab character is inserted. If @accepts_tab
is %FALSE the keyboard focus is moved to the next widget in the focus
chain.
Focus can always be moved using <kbd>Ctrl</kbd>+<kbd>Tab</kbd>.- Parameter:
accepts_tab
- %TRUE if pressing the Tab key should insert a tab character, %FALSE, if pressing the Tab key should move the keyboard focus.
-
setBottomMargin
public void setBottomMargin(int bottom_margin) Sets the bottom margin for text in @text_view.
Note that this function is confusingly named.
In CSS terms, the value set here is padding.- Parameter:
bottom_margin
- bottom margin in pixels
-
setBuffer
Sets @buffer as the buffer being displayed by @text_view.
The previous buffer displayed by the text view is unreferenced, and
a reference is added to @buffer. If you owned a reference to @buffer
before passing it to this function, you must remove that reference
yourself; `GtkTextView` will not “adopt” it.- Parameter:
buffer
- a `GtkTextBuffer`
-
setCursorVisible
public void setCursorVisible(boolean setting) Toggles whether the insertion point should be displayed.
A buffer with no editable text probably shouldn’t have a visible
cursor, so you may want to turn the cursor off.
Note that this property may be overridden by the
[property@Gtk.Settings:gtk-keynav-use-caret] setting.- Parameter:
setting
- whether to show the insertion cursor
-
setEditable
public void setEditable(boolean setting) Sets the default editability of the `GtkTextView`.
You can override this default setting with tags in the buffer,
using the “editable” attribute of tags.- Parameter:
setting
- whether it’s editable
-
setExtraMenu
Sets a menu model to add when constructing the context
menu for @text_view.
You can pass %NULL to remove a previously set extra menu.- Parameter:
model
- a `GMenuModel`
-
setGutter
Places @widget into the gutter specified by @win.
@win must be one of %GTK_TEXT_WINDOW_LEFT, %GTK_TEXT_WINDOW_RIGHT,
%GTK_TEXT_WINDOW_TOP, or %GTK_TEXT_WINDOW_BOTTOM.- Parameter:
win
- a `GtkTextWindowType`widget
- a `GtkWidget`
-
setIndent
public void setIndent(int indent) Sets the default indentation for paragraphs in @text_view.
Tags in the buffer may override the default.- Parameter:
indent
- indentation in pixels
-
setInputHints
public void setInputHints(int hints) Sets the `input-hints` of the `GtkTextView`.
The `input-hints` allow input methods to fine-tune
their behaviour.- Parameter:
hints
- the hints
-
setInputPurpose
public void setInputPurpose(int purpose) Sets the `input-purpose` of the `GtkTextView`.
The `input-purpose` can be used by on-screen keyboards
and other input methods to adjust their behaviour.- Parameter:
purpose
- the purpose
-
setJustification
public void setJustification(int justification) Sets the default justification of text in @text_view.
Tags in the view’s buffer may override the default.- Parameter:
justification
- justification
-
setLeftMargin
public void setLeftMargin(int left_margin) Sets the default left margin for text in @text_view.
Tags in the buffer may override the default.
Note that this function is confusingly named.
In CSS terms, the value set here is padding.- Parameter:
left_margin
- left margin in pixels
-
setMonospace
public void setMonospace(boolean monospace) Sets whether the `GtkTextView` should display text in
monospace styling.- Parameter:
monospace
- %TRUE to request monospace styling
-
setOverwrite
public void setOverwrite(boolean overwrite) Changes the `GtkTextView` overwrite mode.- Parameter:
overwrite
- %TRUE to turn on overwrite mode, %FALSE to turn it off
-
setPixelsAboveLines
public void setPixelsAboveLines(int pixels_above_lines) Sets the default number of blank pixels above paragraphs in @text_view.
Tags in the buffer for @text_view may override the defaults.- Parameter:
pixels_above_lines
- pixels above paragraphs
-
setPixelsBelowLines
public void setPixelsBelowLines(int pixels_below_lines) Sets the default number of pixels of blank space
to put below paragraphs in @text_view.
May be overridden by tags applied to @text_view’s buffer.- Parameter:
pixels_below_lines
- pixels below paragraphs
-
setPixelsInsideWrap
public void setPixelsInsideWrap(int pixels_inside_wrap) Sets the default number of pixels of blank space to leave between
display/wrapped lines within a paragraph.
May be overridden by tags in @text_view’s buffer.- Parameter:
pixels_inside_wrap
- default number of pixels between wrapped lines
-
setRightMargin
public void setRightMargin(int right_margin) Sets the default right margin for text in the text view.
Tags in the buffer may override the default.
Note that this function is confusingly named.
In CSS terms, the value set here is padding.- Parameter:
right_margin
- right margin in pixels
-
setTabs
Sets the default tab stops for paragraphs in @text_view.
Tags in the buffer may override the default.- Parameter:
tabs
- tabs as a `PangoTabArray`
-
setTopMargin
public void setTopMargin(int top_margin) Sets the top margin for text in @text_view.
Note that this function is confusingly named.
In CSS terms, the value set here is padding.- Parameter:
top_margin
- top margin in pixels
-
setWrapMode
public void setWrapMode(int wrap_mode) Sets the line wrapping for the view.- Parameter:
wrap_mode
- a `GtkWrapMode`
-
startsDisplayLine
Determines whether @iter is at the start of a display line.
See [method@Gtk.TextView.forward_display_line] for an
explanation of display lines vs. paragraphs.- Parameter:
iter
- a `GtkTextIter`- Gibt zurück:
- %TRUE if @iter begins a wrapped line
-
windowToBufferCoords
public void windowToBufferCoords(int win, int window_x, int window_y, @Nullable Int buffer_x, @Nullable Int buffer_y) Converts coordinates on the window identified by @win to buffer
coordinates.- Parameter:
win
- a `GtkTextWindowType`window_x
- window x coordinatewindow_y
- window y coordinatebuffer_x
- buffer x coordinate return locationbuffer_y
- buffer y coordinate return location
-
onBackspace
Connect to signal "backspace".
SeeTextView.OnBackspace.onBackspace()
for signal description.
FieldSIGNAL_ON_BACKSPACE
contains original signal name and can be used as resource reference.- Parameter:
signal
- callback function (lambda).- Gibt zurück:
SignalHandler
. Can be used to disconnect signal and to release callback function.
-
onCopyClipboard
Connect to signal "copy-clipboard".
SeeTextView.OnCopyClipboard.onCopyClipboard()
for signal description.
FieldSIGNAL_ON_COPY_CLIPBOARD
contains original signal name and can be used as resource reference.- Parameter:
signal
- callback function (lambda).- Gibt zurück:
SignalHandler
. Can be used to disconnect signal and to release callback function.
-
onCutClipboard
Connect to signal "cut-clipboard".
SeeTextView.OnCutClipboard.onCutClipboard()
for signal description.
FieldSIGNAL_ON_CUT_CLIPBOARD
contains original signal name and can be used as resource reference.- Parameter:
signal
- callback function (lambda).- Gibt zurück:
SignalHandler
. Can be used to disconnect signal and to release callback function.
-
onDeleteFromCursor
Connect to signal "delete-from-cursor".
SeeTextView.OnDeleteFromCursor.onDeleteFromCursor(int, int)
for signal description.
FieldSIGNAL_ON_DELETE_FROM_CURSOR
contains original signal name and can be used as resource reference.- Parameter:
signal
- callback function (lambda).- Gibt zurück:
SignalHandler
. Can be used to disconnect signal and to release callback function.
-
onExtendSelection
Connect to signal "extend-selection".
SeeTextView.OnExtendSelection.onExtendSelection(int, ch.bailu.gtk.gtk.TextIter, ch.bailu.gtk.gtk.TextIter, ch.bailu.gtk.gtk.TextIter)
for signal description.
FieldSIGNAL_ON_EXTEND_SELECTION
contains original signal name and can be used as resource reference.- Parameter:
signal
- callback function (lambda).- Gibt zurück:
SignalHandler
. Can be used to disconnect signal and to release callback function.
-
onInsertAtCursor
Connect to signal "insert-at-cursor".
SeeTextView.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.- Parameter:
signal
- callback function (lambda).- Gibt zurück:
SignalHandler
. Can be used to disconnect signal and to release callback function.
-
onInsertEmoji
Connect to signal "insert-emoji".
SeeTextView.OnInsertEmoji.onInsertEmoji()
for signal description.
FieldSIGNAL_ON_INSERT_EMOJI
contains original signal name and can be used as resource reference.- Parameter:
signal
- callback function (lambda).- Gibt zurück:
SignalHandler
. Can be used to disconnect signal and to release callback function.
-
onMoveCursor
Connect to signal "move-cursor".
SeeTextView.OnMoveCursor.onMoveCursor(int, int, boolean)
for signal description.
FieldSIGNAL_ON_MOVE_CURSOR
contains original signal name and can be used as resource reference.- Parameter:
signal
- callback function (lambda).- Gibt zurück:
SignalHandler
. Can be used to disconnect signal and to release callback function.
-
onMoveViewport
Connect to signal "move-viewport".
SeeTextView.OnMoveViewport.onMoveViewport(int, int)
for signal description.
FieldSIGNAL_ON_MOVE_VIEWPORT
contains original signal name and can be used as resource reference.- Parameter:
signal
- callback function (lambda).- Gibt zurück:
SignalHandler
. Can be used to disconnect signal and to release callback function.
-
onPasteClipboard
Connect to signal "paste-clipboard".
SeeTextView.OnPasteClipboard.onPasteClipboard()
for signal description.
FieldSIGNAL_ON_PASTE_CLIPBOARD
contains original signal name and can be used as resource reference.- Parameter:
signal
- callback function (lambda).- Gibt zurück:
SignalHandler
. Can be used to disconnect signal and to release callback function.
-
onPreeditChanged
Connect to signal "preedit-changed".
SeeTextView.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.- Parameter:
signal
- callback function (lambda).- Gibt zurück:
SignalHandler
. Can be used to disconnect signal and to release callback function.
-
onSelectAll
Connect to signal "select-all".
SeeTextView.OnSelectAll.onSelectAll(boolean)
for signal description.
FieldSIGNAL_ON_SELECT_ALL
contains original signal name and can be used as resource reference.- Parameter:
signal
- callback function (lambda).- Gibt zurück:
SignalHandler
. Can be used to disconnect signal and to release callback function.
-
onSetAnchor
Connect to signal "set-anchor".
SeeTextView.OnSetAnchor.onSetAnchor()
for signal description.
FieldSIGNAL_ON_SET_ANCHOR
contains original signal name and can be used as resource reference.- Parameter:
signal
- callback function (lambda).- Gibt zurück:
SignalHandler
. Can be used to disconnect signal and to release callback function.
-
onToggleCursorVisible
Connect to signal "toggle-cursor-visible".
SeeTextView.OnToggleCursorVisible.onToggleCursorVisible()
for signal description.
FieldSIGNAL_ON_TOGGLE_CURSOR_VISIBLE
contains original signal name and can be used as resource reference.- Parameter:
signal
- callback function (lambda).- Gibt zurück:
SignalHandler
. Can be used to disconnect signal and to release callback function.
-
onToggleOverwrite
Connect to signal "toggle-overwrite".
SeeTextView.OnToggleOverwrite.onToggleOverwrite()
for signal description.
FieldSIGNAL_ON_TOGGLE_OVERWRITE
contains original signal name and can be used as resource reference.- Parameter:
signal
- callback function (lambda).- Gibt zurück:
SignalHandler
. Can be used to disconnect signal and to release callback function.
-
asAccessible
Implements interfaceAccessible
. Call this to get access to interface functions.- Setzt außer Kraft:
asAccessible
in KlasseWidget
- Gibt zurück:
Accessible
-
asAccessibleText
Implements interfaceAccessibleText
. Call this to get access to interface functions.- Gibt zurück:
AccessibleText
-
asBuildable
Implements interfaceBuildable
. Call this to get access to interface functions.- Setzt außer Kraft:
asBuildable
in KlasseWidget
- Gibt zurück:
Buildable
-
asConstraintTarget
Implements interfaceConstraintTarget
. Call this to get access to interface functions.- Setzt außer Kraft:
asConstraintTarget
in KlasseWidget
- Gibt zurück:
ConstraintTarget
-
asScrollable
Implements interfaceScrollable
. Call this to get access to interface functions.- Gibt zurück:
Scrollable
-
getTypeID
public static long getTypeID() -
getParentTypeID
public static long getParentTypeID() -
getTypeSize
-
getParentTypeSize
-
getInstanceSize
public static int getInstanceSize()
-