SourceMap

Constructors

this
this(GtkSourceMap* gtkSourceMap, bool ownedRef)

Sets our main struct and passes it to the parent class.

this
this()

Creates a new #GtkSourceMap.

Members

Functions

getSourceMapStruct
GtkSourceMap* getSourceMapStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

getView
SourceView getView()

Gets the #GtkSourceMap:view property, which is the view this widget is mapping.

setStruct
void setStruct(GObject* obj)
Undocumented in source. Be warned that the author may not have intended to support it.
setView
void setView(SourceView view)

Sets the view that @map will be doing the mapping to.

Static functions

getType
GType getType()

Variables

gtkSourceMap
GtkSourceMap* gtkSourceMap;

the main Gtk struct

Inherited Members

From SourceView

gtkSourceView
GtkSourceView* gtkSourceView;

the main Gtk struct

getSourceViewStruct
GtkSourceView* getSourceViewStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

setStruct
void setStruct(GObject* obj)
Undocumented in source. Be warned that the author may not have intended to support it.
getBuffer
SourceBuffer getBuffer()

Returns the GtkSourceBuffer being displayed by this source view. The reference count on the buffer is not incremented; the caller of this function won't own a new reference.

getType
GType getType()
getAutoIndent
bool getAutoIndent()

Returns whether auto-indentation of text is enabled.

getBackgroundPattern
GtkSourceBackgroundPatternType getBackgroundPattern()

Returns the #GtkSourceBackgroundPatternType specifying if and how the background pattern should be displayed for this @view.

getCompletion
SourceCompletion getCompletion()

Gets the #GtkSourceCompletion associated with @view. The returned object is guaranteed to be the same for the lifetime of @view. Each #GtkSourceView object has a different #GtkSourceCompletion.

getDrawSpaces
GtkSourceDrawSpacesFlags getDrawSpaces()

Returns the #GtkSourceDrawSpacesFlags specifying if and how spaces should be displayed for this @view.

getGutter
SourceGutter getGutter(GtkTextWindowType windowType)

Returns the #GtkSourceGutter object associated with @window_type for @view. Only GTK_TEXT_WINDOW_LEFT and GTK_TEXT_WINDOW_RIGHT are supported, respectively corresponding to the left and right gutter. The line numbers and mark category icons are rendered in the left gutter.

getHighlightCurrentLine
bool getHighlightCurrentLine()

Returns whether the current line is highlighted.

getIndentOnTab
bool getIndentOnTab()

Returns whether when the tab key is pressed the current selection should get indented instead of replaced with the \t character.

getIndentWidth
int getIndentWidth()

Returns the number of spaces to use for each step of indent. See gtk_source_view_set_indent_width() for details.

getInsertSpacesInsteadOfTabs
bool getInsertSpacesInsteadOfTabs()

Returns whether when inserting a tabulator character it should be replaced by a group of space characters.

getMarkAttributes
SourceMarkAttributes getMarkAttributes(string category, int* priority)

Gets attributes and priority for the @category.

getRightMarginPosition
uint getRightMarginPosition()

Gets the position of the right margin in the given @view.

getShowLineMarks
bool getShowLineMarks()

Returns whether line marks are displayed beside the text.

getShowLineNumbers
bool getShowLineNumbers()

Returns whether line numbers are displayed beside the text.

getShowRightMargin
bool getShowRightMargin()

Returns whether a right margin is displayed.

getSmartBackspace
bool getSmartBackspace()

Returns %TRUE if pressing the Backspace key will try to delete spaces up to the previous tab stop.

getSmartHomeEnd
GtkSourceSmartHomeEndType getSmartHomeEnd()

Returns a #GtkSourceSmartHomeEndType end value specifying how the cursor will move when HOME and END keys are pressed.

getSpaceDrawer
SpaceDrawer getSpaceDrawer()

Gets the #GtkSourceSpaceDrawer associated with @view. The returned object is guaranteed to be the same for the lifetime of @view. Each #GtkSourceView object has a different #GtkSourceSpaceDrawer.

getTabWidth
uint getTabWidth()

Returns the width of tabulation in characters.

getVisualColumn
uint getVisualColumn(TextIter iter)

Determines the visual column at @iter taking into consideration the #GtkSourceView:tab-width of @view.

indentLines
void indentLines(TextIter start, TextIter end)

Inserts one indentation level at the beginning of the specified lines. The empty lines are not indented.

setAutoIndent
void setAutoIndent(bool enable)

If %TRUE auto-indentation of text is enabled.

setBackgroundPattern
void setBackgroundPattern(GtkSourceBackgroundPatternType backgroundPattern)

Set if and how the background pattern should be displayed.

setDrawSpaces
void setDrawSpaces(GtkSourceDrawSpacesFlags flags)

Set if and how the spaces should be visualized. Specifying @flags as 0 will disable display of spaces.

setHighlightCurrentLine
void setHighlightCurrentLine(bool highlight)

If @highlight is %TRUE the current line will be highlighted.

setIndentOnTab
void setIndentOnTab(bool enable)

If %TRUE, when the tab key is pressed when several lines are selected, the selected lines are indented of one level instead of being replaced with a \t character. Shift+Tab unindents the selection.

setIndentWidth
void setIndentWidth(int width)

Sets the number of spaces to use for each step of indent when the tab key is pressed. If @width is -1, the value of the #GtkSourceView:tab-width property will be used.

setInsertSpacesInsteadOfTabs
void setInsertSpacesInsteadOfTabs(bool enable)

If %TRUE a tab key pressed is replaced by a group of space characters. Of course it is still possible to insert a real \t programmatically with the #GtkTextBuffer API.

setMarkAttributes
void setMarkAttributes(string category, SourceMarkAttributes attributes, int priority)

Sets attributes and priority for the @category.

setRightMarginPosition
void setRightMarginPosition(uint pos)

Sets the position of the right margin in the given @view.

setShowLineMarks
void setShowLineMarks(bool show)

If %TRUE line marks will be displayed beside the text.

setShowLineNumbers
void setShowLineNumbers(bool show)

If %TRUE line numbers will be displayed beside the text.

setShowRightMargin
void setShowRightMargin(bool show)

If %TRUE a right margin is displayed.

setSmartBackspace
void setSmartBackspace(bool smartBackspace)

When set to %TRUE, pressing the Backspace key will try to delete spaces up to the previous tab stop.

setSmartHomeEnd
void setSmartHomeEnd(GtkSourceSmartHomeEndType smartHomeEnd)

Set the desired movement of the cursor when HOME and END keys are pressed.

setTabWidth
void setTabWidth(uint width)

Sets the width of tabulation in characters. The #GtkTextBuffer still contains \t characters, but they can take a different visual width in a #GtkSourceView widget.

unindentLines
void unindentLines(TextIter start, TextIter end)

Removes one indentation level at the beginning of the specified lines.

OnChangeCaseDelegateWrapper
class OnChangeCaseDelegateWrapper
Undocumented in source.
onChangeCaseListeners
OnChangeCaseDelegateWrapper[] onChangeCaseListeners;
Undocumented in source.
addOnChangeCase
gulong addOnChangeCase(void delegate(GtkSourceChangeCaseType, SourceView) dlg, ConnectFlags connectFlags)

Keybinding signal to change case of the text at the current cursor position.

callBackChangeCase
void callBackChangeCase(GtkSourceView* sourceviewStruct, GtkSourceChangeCaseType caseType, OnChangeCaseDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackChangeCaseDestroy
void callBackChangeCaseDestroy(OnChangeCaseDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
OnChangeNumberDelegateWrapper
class OnChangeNumberDelegateWrapper
Undocumented in source.
onChangeNumberListeners
OnChangeNumberDelegateWrapper[] onChangeNumberListeners;
Undocumented in source.
addOnChangeNumber
gulong addOnChangeNumber(void delegate(int, SourceView) dlg, ConnectFlags connectFlags)

Keybinding signal to edit a number at the current cursor position.

callBackChangeNumber
void callBackChangeNumber(GtkSourceView* sourceviewStruct, int count, OnChangeNumberDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackChangeNumberDestroy
void callBackChangeNumberDestroy(OnChangeNumberDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
OnJoinLinesDelegateWrapper
class OnJoinLinesDelegateWrapper
Undocumented in source.
onJoinLinesListeners
OnJoinLinesDelegateWrapper[] onJoinLinesListeners;
Undocumented in source.
addOnJoinLines
gulong addOnJoinLines(void delegate(SourceView) dlg, ConnectFlags connectFlags)

Keybinding signal to join the lines currently selected.

callBackJoinLines
void callBackJoinLines(GtkSourceView* sourceviewStruct, OnJoinLinesDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackJoinLinesDestroy
void callBackJoinLinesDestroy(OnJoinLinesDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
OnLineMarkActivatedDelegateWrapper
class OnLineMarkActivatedDelegateWrapper
Undocumented in source.
onLineMarkActivatedListeners
OnLineMarkActivatedDelegateWrapper[] onLineMarkActivatedListeners;
Undocumented in source.
addOnLineMarkActivated
gulong addOnLineMarkActivated(void delegate(TextIter, Event, SourceView) dlg, ConnectFlags connectFlags)

Emitted when a line mark has been activated (for instance when there was a button press in the line marks gutter). You can use @iter to determine on which line the activation took place.

callBackLineMarkActivated
void callBackLineMarkActivated(GtkSourceView* sourceviewStruct, GtkTextIter* iter, GdkEvent* event, OnLineMarkActivatedDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackLineMarkActivatedDestroy
void callBackLineMarkActivatedDestroy(OnLineMarkActivatedDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
OnMoveLinesDelegateWrapper
class OnMoveLinesDelegateWrapper
Undocumented in source.
onMoveLinesListeners
OnMoveLinesDelegateWrapper[] onMoveLinesListeners;
Undocumented in source.
addOnMoveLines
gulong addOnMoveLines(void delegate(bool, int, SourceView) dlg, ConnectFlags connectFlags)

The ::move-lines signal is a keybinding which gets emitted when the user initiates moving a line. The default binding key is Alt+Up/Down arrow. And moves the currently selected lines, or the current line by @count. For the moment, only @count of -1 or 1 is valid.

callBackMoveLines
void callBackMoveLines(GtkSourceView* sourceviewStruct, bool copy, int count, OnMoveLinesDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackMoveLinesDestroy
void callBackMoveLinesDestroy(OnMoveLinesDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
OnMoveToMatchingBracketDelegateWrapper
class OnMoveToMatchingBracketDelegateWrapper
Undocumented in source.
onMoveToMatchingBracketListeners
OnMoveToMatchingBracketDelegateWrapper[] onMoveToMatchingBracketListeners;
Undocumented in source.
addOnMoveToMatchingBracket
gulong addOnMoveToMatchingBracket(void delegate(bool, SourceView) dlg, ConnectFlags connectFlags)

Keybinding signal to move the cursor to the matching bracket.

callBackMoveToMatchingBracket
void callBackMoveToMatchingBracket(GtkSourceView* sourceviewStruct, bool extendSelection, OnMoveToMatchingBracketDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackMoveToMatchingBracketDestroy
void callBackMoveToMatchingBracketDestroy(OnMoveToMatchingBracketDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
OnMoveWordsDelegateWrapper
class OnMoveWordsDelegateWrapper
Undocumented in source.
onMoveWordsListeners
OnMoveWordsDelegateWrapper[] onMoveWordsListeners;
Undocumented in source.
addOnMoveWords
gulong addOnMoveWords(void delegate(int, SourceView) dlg, ConnectFlags connectFlags)

The ::move-words signal is a keybinding which gets emitted when the user initiates moving a word. The default binding key is Alt+Left/Right Arrow and moves the current selection, or the current word by one word.

callBackMoveWords
void callBackMoveWords(GtkSourceView* sourceviewStruct, int count, OnMoveWordsDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackMoveWordsDestroy
void callBackMoveWordsDestroy(OnMoveWordsDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
OnRedoDelegateWrapper
class OnRedoDelegateWrapper
Undocumented in source.
onRedoListeners
OnRedoDelegateWrapper[] onRedoListeners;
Undocumented in source.
addOnRedo
gulong addOnRedo(void delegate(SourceView) dlg, ConnectFlags connectFlags)
callBackRedo
void callBackRedo(GtkSourceView* sourceviewStruct, OnRedoDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackRedoDestroy
void callBackRedoDestroy(OnRedoDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
OnShowCompletionDelegateWrapper
class OnShowCompletionDelegateWrapper
Undocumented in source.
onShowCompletionListeners
OnShowCompletionDelegateWrapper[] onShowCompletionListeners;
Undocumented in source.
addOnShowCompletion
gulong addOnShowCompletion(void delegate(SourceView) dlg, ConnectFlags connectFlags)

The ::show-completion signal is a key binding signal which gets emitted when the user requests a completion, by pressing <keycombo><keycap>Control</keycap><keycap>space</keycap></keycombo>.

callBackShowCompletion
void callBackShowCompletion(GtkSourceView* sourceviewStruct, OnShowCompletionDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackShowCompletionDestroy
void callBackShowCompletionDestroy(OnShowCompletionDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
OnSmartHomeEndDelegateWrapper
class OnSmartHomeEndDelegateWrapper
Undocumented in source.
onSmartHomeEndListeners
OnSmartHomeEndDelegateWrapper[] onSmartHomeEndListeners;
Undocumented in source.
addOnSmartHomeEnd
gulong addOnSmartHomeEnd(void delegate(TextIter, int, SourceView) dlg, ConnectFlags connectFlags)

Emitted when a the cursor was moved according to the smart home end setting. The signal is emitted after the cursor is moved, but during the GtkTextView::move-cursor action. This can be used to find out whether the cursor was moved by a normal home/end or by a smart home/end.

callBackSmartHomeEnd
void callBackSmartHomeEnd(GtkSourceView* sourceviewStruct, GtkTextIter* iter, int count, OnSmartHomeEndDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackSmartHomeEndDestroy
void callBackSmartHomeEndDestroy(OnSmartHomeEndDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
OnUndoDelegateWrapper
class OnUndoDelegateWrapper
Undocumented in source.
onUndoListeners
OnUndoDelegateWrapper[] onUndoListeners;
Undocumented in source.
addOnUndo
gulong addOnUndo(void delegate(SourceView) dlg, ConnectFlags connectFlags)
callBackUndo
void callBackUndo(GtkSourceView* sourceviewStruct, OnUndoDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackUndoDestroy
void callBackUndoDestroy(OnUndoDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.

Meta