Map

Constructors

this
this(void* ptr, Flag!"Take" take)
this
this()

Creates a new #GtkSourceMap.

Members

Functions

getView
gtksource.view.View getView()

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

self
Map self()

Returns this, for use in with statements.

setView
void setView(gtksource.view.View view)

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

Properties

_gType
GType _gType [@property getter]
fontDesc
pango.font_description.FontDescription fontDesc [@property getter]
fontDesc
pango.font_description.FontDescription fontDesc [@property setter]
view
gtksource.view.View view [@property getter]
view
gtksource.view.View view [@property setter]

Static functions

_getGType
GType _getGType()
builder
MapGidBuilder builder()

Get builder for gtksource.map.Map

Inherited Members

From View

_getGType
GType _getGType()
_gType
GType _gType [@property getter]
self
View self()

Returns this, for use in with statements.

builder
ViewGidBuilder builder()

Get builder for gtksource.view.View

autoIndent
bool autoIndent [@property getter]
autoIndent
bool autoIndent [@property setter]
backgroundPattern
gtksource.types.BackgroundPatternType backgroundPattern [@property getter]

Get backgroundPattern property.

backgroundPattern
gtksource.types.BackgroundPatternType backgroundPattern [@property setter]

Set backgroundPattern property.

completion
gtksource.completion.Completion completion [@property getter]

Get completion property.

highlightCurrentLine
bool highlightCurrentLine [@property getter]
highlightCurrentLine
bool highlightCurrentLine [@property setter]
indentOnTab
bool indentOnTab [@property getter]
indentOnTab
bool indentOnTab [@property setter]
indentWidth
int indentWidth [@property getter]

Get indentWidth property.

indentWidth
int indentWidth [@property setter]

Set indentWidth property.

insertSpacesInsteadOfTabs
bool insertSpacesInsteadOfTabs [@property getter]
insertSpacesInsteadOfTabs
bool insertSpacesInsteadOfTabs [@property setter]
rightMarginPosition
uint rightMarginPosition [@property getter]

Get rightMarginPosition property.

rightMarginPosition
uint rightMarginPosition [@property setter]

Set rightMarginPosition property.

showLineMarks
bool showLineMarks [@property getter]

Get showLineMarks property.

showLineMarks
bool showLineMarks [@property setter]

Set showLineMarks property.

showLineNumbers
bool showLineNumbers [@property getter]

Get showLineNumbers property.

showLineNumbers
bool showLineNumbers [@property setter]

Set showLineNumbers property.

showRightMargin
bool showRightMargin [@property getter]

Get showRightMargin property.

showRightMargin
bool showRightMargin [@property setter]

Set showRightMargin property.

smartBackspace
bool smartBackspace [@property getter]

Get smartBackspace property.

smartBackspace
bool smartBackspace [@property setter]

Set smartBackspace property.

smartHomeEnd
gtksource.types.SmartHomeEndType smartHomeEnd [@property getter]

Get smartHomeEnd property.

smartHomeEnd
gtksource.types.SmartHomeEndType smartHomeEnd [@property setter]

Set smartHomeEnd property.

spaceDrawer
gtksource.space_drawer.SpaceDrawer spaceDrawer [@property getter]

Get spaceDrawer property.

tabWidth
uint tabWidth [@property getter]

Get tabWidth property.

tabWidth
uint tabWidth [@property setter]

Set tabWidth property.

newWithBuffer
gtksource.view.View newWithBuffer(gtksource.buffer.Buffer buffer)

Creates a new #GtkSourceView widget displaying the buffer buffer. One buffer can be shared among many widgets.

getAutoIndent
bool getAutoIndent()

Returns whether auto-indentation of text is enabled.

getBackgroundPattern
gtksource.types.BackgroundPatternType getBackgroundPattern()

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

getCompletion
gtksource.completion.Completion 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.

getGutter
gtksource.gutter.Gutter getGutter(gtk.types.TextWindowType 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 gtksource.view.View.setIndentWidth for details.

getInsertSpacesInsteadOfTabs
bool getInsertSpacesInsteadOfTabs()

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

getMarkAttributes
gtksource.mark_attributes.MarkAttributes 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
gtksource.types.SmartHomeEndType getSmartHomeEnd()

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

getSpaceDrawer
gtksource.space_drawer.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(gtk.text_iter.TextIter iter)

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

indentLines
void indentLines(gtk.text_iter.TextIter start, gtk.text_iter.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(gtksource.types.BackgroundPatternType backgroundPattern)

Set if and how the background pattern should be displayed.

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, gtksource.mark_attributes.MarkAttributes 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(gtksource.types.SmartHomeEndType 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(gtk.text_iter.TextIter start, gtk.text_iter.TextIter end)

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

connectChangeCase
gulong connectChangeCase(T callback, Flag!"After" after)

Connect to ChangeCase signal.

connectChangeNumber
gulong connectChangeNumber(T callback, Flag!"After" after)

Connect to ChangeNumber signal.

connectJoinLines
gulong connectJoinLines(T callback, Flag!"After" after)

Connect to JoinLines signal.

connectLineMarkActivated
gulong connectLineMarkActivated(T callback, Flag!"After" after)

Connect to LineMarkActivated signal.

connectMoveLines
gulong connectMoveLines(T callback, Flag!"After" after)

Connect to MoveLines signal.

connectMoveToMatchingBracket
gulong connectMoveToMatchingBracket(T callback, Flag!"After" after)

Connect to MoveToMatchingBracket signal.

connectMoveWords
gulong connectMoveWords(T callback, Flag!"After" after)

Connect to MoveWords signal.

connectRedo
gulong connectRedo(T callback, Flag!"After" after)

Connect to Redo signal.

connectShowCompletion
gulong connectShowCompletion(T callback, Flag!"After" after)

Connect to ShowCompletion signal.

connectSmartHomeEnd
gulong connectSmartHomeEnd(T callback, Flag!"After" after)

Connect to SmartHomeEnd signal.

connectUndo
gulong connectUndo(T callback, Flag!"After" after)

Connect to Undo signal.