TextChildAnchor

Description You may wish to begin by reading the text widget conceptual overview which gives an overview of all the objects and data types related to the text widget and how they work together.

class TextChildAnchor {}

Constructors

this
this(GtkTextChildAnchor* gtkTextChildAnchor)

Sets our main struct and passes it to the parent class

this
this()

Creates a new GtkTextChildAnchor. Usually you would then insert it into a GtkTextBuffer with gtk_text_buffer_insert_child_anchor(). To perform the creation and insertion in one step, use the convenience function gtk_text_buffer_create_child_anchor().

Members

Functions

addOnBackspace
void addOnBackspace(void delegate(TextChildAnchor) dlg, ConnectFlags connectFlags)

The ::backspace signal is a keybinding signal which gets emitted when the user asks for it. The default bindings for this signal are Backspace and Shift-Backspace.

addOnCopyClipboard
void addOnCopyClipboard(void delegate(TextChildAnchor) dlg, ConnectFlags connectFlags)

The ::copy-clipboard signal is a keybinding signal which gets emitted to copy the selection to the clipboard. The default bindings for this signal are Ctrl-c and Ctrl-Insert.

addOnCutClipboard
void addOnCutClipboard(void delegate(TextChildAnchor) dlg, ConnectFlags connectFlags)

The ::cut-clipboard signal is a keybinding signal which gets emitted to cut the selection to the clipboard. The default bindings for this signal are Ctrl-x and Shift-Delete.

addOnDeleteFromCursor
void addOnDeleteFromCursor(void delegate(GtkDeleteType, gint, TextChildAnchor) dlg, ConnectFlags connectFlags)

The ::delete-from-cursor signal is a keybinding signal which gets emitted when the user initiates a text deletion. If the type is GTK_DELETE_CHARS, GTK+ deletes the selection if there is one, otherwise it deletes the requested number of characters. The default bindings for this signal are Delete for deleting a character, Ctrl-Delete for deleting a word and Ctrl-Backspace for deleting a word backwords.

addOnInsertAtCursor
void addOnInsertAtCursor(void delegate(string, TextChildAnchor) dlg, ConnectFlags connectFlags)

The ::insert-at-cursor signal is a keybinding signal which gets emitted when the user initiates the insertion of a fixed string at the cursor. This signal has no default bindings.

addOnMoveCursor
void addOnMoveCursor(void delegate(GtkMovementStep, gint, gboolean, TextChildAnchor) dlg, ConnectFlags connectFlags)

The ::move-cursor signal is a keybinding signal which gets emitted when the user initiates a cursor movement. If the cursor is not visible in text_view, this signal causes the viewport to be moved instead. Applications should not connect to it, but may emit it with g_signal_emit_by_name() if they need to control the cursor programmatically. The default bindings for this signal come in two variants, the variant with the Shift modifier extends the selection, the variant without the Shift modifer does not. There are too many key combinations to list them all here. Arrow keys move by individual characters/lines Ctrl-arrow key combinations move by words/paragraphs Home/End keys move to the ends of the buffer PageUp/PageDown keys move vertically by pages Ctrl-PageUp/PageDown keys move horizontally by pages TRUE if the move should extend the selection

addOnMoveViewport
void addOnMoveViewport(void delegate(GtkScrollStep, gint, TextChildAnchor) dlg, ConnectFlags connectFlags)

The ::move-viewport signal is a keybinding signal which can be bound to key combinations to allow the user to move the viewport, i.e. change what part of the text view is visible in a containing scrolled window. There are no default bindings for this signal.

addOnPageHorizontally
void addOnPageHorizontally(void delegate(gint, gboolean, TextChildAnchor) dlg, ConnectFlags connectFlags)

The ::page-horizontally signal is a keybinding signal which can be bound to key combinations to allow the user to initiate horizontal cursor movement by pages. This signal should not be used anymore, instead use the "move-cursor" signal with the GTK_MOVEMENT_HORIZONTAL_PAGES granularity. TRUE if the move should extend the selection

addOnPasteClipboard
void addOnPasteClipboard(void delegate(TextChildAnchor) dlg, ConnectFlags connectFlags)

The ::paste-clipboard signal is a keybinding signal which gets emitted to paste the contents of the clipboard into the text view. The default bindings for this signal are Ctrl-v and Shift-Insert.

addOnPopulatePopup
void addOnPopulatePopup(void delegate(GtkMenu*, TextChildAnchor) dlg, ConnectFlags connectFlags)

The ::populate-popup signal gets emitted before showing the context menu of the text view. If you need to add items to the context menu, connect to this signal and append your menuitems to the menu.

addOnPreeditChanged
void addOnPreeditChanged(void delegate(string, TextChildAnchor) dlg, ConnectFlags connectFlags)

If an input method is used, the typed text will not immediately be committed to the buffer. So if you are interested in the text, connect to this signal. This signal is only emitted if the text at the given position is actually editable. Since 2.20

addOnSelectAll
void addOnSelectAll(void delegate(gboolean, TextChildAnchor) dlg, ConnectFlags connectFlags)

The ::select-all signal is a keybinding signal which gets emitted to select or unselect the complete contents of the text view. The default bindings for this signal are Ctrl-a and Ctrl-/ for selecting and Shift-Ctrl-a and Ctrl-\ for unselecting. TRUE to select, FALSE to unselect

addOnSetAnchor
void addOnSetAnchor(void delegate(TextChildAnchor) dlg, ConnectFlags connectFlags)

The ::set-anchor signal is a keybinding signal which gets emitted when the user initiates setting the "anchor" mark. The "anchor" mark gets placed at the same position as the "insert" mark. This signal has no default bindings.

addOnSetScrollAdjustments
void addOnSetScrollAdjustments(void delegate(GtkAdjustment*, GtkAdjustment*, TextChildAnchor) dlg, ConnectFlags connectFlags)

Set the scroll adjustments for the text view. Usually scrolled containers like GtkScrolledWindow will emit this signal to connect two instances of GtkScrollbar to the scroll directions of the GtkTextView.

addOnToggleCursorVisible
void addOnToggleCursorVisible(void delegate(TextChildAnchor) dlg, ConnectFlags connectFlags)

The ::toggle-cursor-visible signal is a keybinding signal which gets emitted to toggle the visibility of the cursor. The default binding for this signal is F7.

addOnToggleOverwrite
void addOnToggleOverwrite(void delegate(TextChildAnchor) dlg, ConnectFlags connectFlags)

The ::toggle-overwrite signal is a keybinding signal which gets emitted to toggle the overwrite mode of the text view. The default bindings for this signal is Insert. See Also GtkTextBuffer, GtkTextIter

getDeleted
int getDeleted()

Determines whether a child anchor has been deleted from the buffer. Keep in mind that the child anchor will be unreferenced when removed from the buffer, so you need to hold your own reference (with g_object_ref()) if you plan to use this function — otherwise all deleted child anchors will also be finalized.

getStruct
void* getStruct()

the main Gtk struct as a void*

getTextChildAnchorStruct
GtkTextChildAnchor* getTextChildAnchorStruct()
Undocumented in source. Be warned that the author may not have intended to support it.
getWidgets
ListG getWidgets()

Gets a list of all widgets anchored at this child anchor. The returned list should be freed with g_list_free().

Static functions

callBackBackspace
void callBackBackspace(GtkTextView* textViewStruct, TextChildAnchor _textChildAnchor)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackCopyClipboard
void callBackCopyClipboard(GtkTextView* textViewStruct, TextChildAnchor _textChildAnchor)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackCutClipboard
void callBackCutClipboard(GtkTextView* textViewStruct, TextChildAnchor _textChildAnchor)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackDeleteFromCursor
void callBackDeleteFromCursor(GtkTextView* textViewStruct, GtkDeleteType type, gint count, TextChildAnchor _textChildAnchor)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackInsertAtCursor
void callBackInsertAtCursor(GtkTextView* textViewStruct, gchar* str, TextChildAnchor _textChildAnchor)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackMoveCursor
void callBackMoveCursor(GtkTextView* textViewStruct, GtkMovementStep step, gint count, gboolean extendSelection, TextChildAnchor _textChildAnchor)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackMoveViewport
void callBackMoveViewport(GtkTextView* textViewStruct, GtkScrollStep step, gint count, TextChildAnchor _textChildAnchor)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackPageHorizontally
void callBackPageHorizontally(GtkTextView* textViewStruct, gint count, gboolean extendSelection, TextChildAnchor _textChildAnchor)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackPasteClipboard
void callBackPasteClipboard(GtkTextView* textViewStruct, TextChildAnchor _textChildAnchor)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackPopulatePopup
void callBackPopulatePopup(GtkTextView* entryStruct, GtkMenu* menu, TextChildAnchor _textChildAnchor)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackPreeditChanged
void callBackPreeditChanged(GtkTextView* textViewStruct, gchar* preedit, TextChildAnchor _textChildAnchor)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackSelectAll
void callBackSelectAll(GtkTextView* textViewStruct, gboolean select, TextChildAnchor _textChildAnchor)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackSetAnchor
void callBackSetAnchor(GtkTextView* textViewStruct, TextChildAnchor _textChildAnchor)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackSetScrollAdjustments
void callBackSetScrollAdjustments(GtkTextView* horizontalStruct, GtkAdjustment* vertical, GtkAdjustment* arg2, TextChildAnchor _textChildAnchor)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackToggleCursorVisible
void callBackToggleCursorVisible(GtkTextView* textViewStruct, TextChildAnchor _textChildAnchor)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackToggleOverwrite
void callBackToggleOverwrite(GtkTextView* textViewStruct, TextChildAnchor _textChildAnchor)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

connectedSignals
int[string] connectedSignals;
gtkTextChildAnchor
GtkTextChildAnchor* gtkTextChildAnchor;

the main Gtk struct

onBackspaceListeners
void delegate(TextChildAnchor)[] onBackspaceListeners;
Undocumented in source.
onCopyClipboardListeners
void delegate(TextChildAnchor)[] onCopyClipboardListeners;
Undocumented in source.
onCutClipboardListeners
void delegate(TextChildAnchor)[] onCutClipboardListeners;
Undocumented in source.
onDeleteFromCursorListeners
void delegate(GtkDeleteType, gint, TextChildAnchor)[] onDeleteFromCursorListeners;
Undocumented in source.
onInsertAtCursorListeners
void delegate(string, TextChildAnchor)[] onInsertAtCursorListeners;
Undocumented in source.
onMoveCursorListeners
void delegate(GtkMovementStep, gint, gboolean, TextChildAnchor)[] onMoveCursorListeners;
Undocumented in source.
onMoveViewportListeners
void delegate(GtkScrollStep, gint, TextChildAnchor)[] onMoveViewportListeners;
Undocumented in source.
onPageHorizontallyListeners
void delegate(gint, gboolean, TextChildAnchor)[] onPageHorizontallyListeners;
Undocumented in source.
onPasteClipboardListeners
void delegate(TextChildAnchor)[] onPasteClipboardListeners;
Undocumented in source.
onPopulatePopupListeners
void delegate(GtkMenu*, TextChildAnchor)[] onPopulatePopupListeners;
Undocumented in source.
onPreeditChangedListeners
void delegate(string, TextChildAnchor)[] onPreeditChangedListeners;
Undocumented in source.
onSelectAllListeners
void delegate(gboolean, TextChildAnchor)[] onSelectAllListeners;
Undocumented in source.
onSetAnchorListeners
void delegate(TextChildAnchor)[] onSetAnchorListeners;
Undocumented in source.
onSetScrollAdjustmentsListeners
void delegate(GtkAdjustment*, GtkAdjustment*, TextChildAnchor)[] onSetScrollAdjustmentsListeners;
Undocumented in source.
onToggleCursorVisibleListeners
void delegate(TextChildAnchor)[] onToggleCursorVisibleListeners;
Undocumented in source.
onToggleOverwriteListeners
void delegate(TextChildAnchor)[] onToggleOverwriteListeners;
Undocumented in source.

Meta