Top | ![]() |
![]() |
![]() |
![]() |
IdeBackForwardList * | back-forward-list | Read / Write |
guint | count | Read / Write |
gboolean | enable-word-completion | Read / Write |
IdeFileSettings * | file-settings | Read |
PangoFontDescription * | font-desc | Read / Write |
gchar * | font-name | Write / Construct |
IdeIndentStyle | indent-style | Write |
gboolean | insert-matching-brace | Read / Write |
gchar * | mode-display-name | Read |
gboolean | overwrite-braces | Read / Write |
gboolean | rubberband-search | Read / Write |
guint | scroll-offset | Read / Write |
GtkSourceSearchContext * | search-context | Read |
gboolean | show-grid-lines | Read / Write |
gboolean | show-line-changes | Read / Write |
gboolean | show-line-diagnostics | Read / Write |
gboolean | show-search-bubbles | Read / Write |
gboolean | show-search-shadow | Read / Write |
gboolean | smart-backspace | Read / Write |
gboolean | snippet-completion | Read / Write |
GEnum ├── IdeSourceViewModeType ├── IdeSourceViewMovement ╰── IdeSourceViewTheatric GObject ╰── GInitiallyUnowned ╰── GtkWidget ╰── GtkContainer ╰── GtkTextView ╰── GtkSourceView ╰── IdeSourceView
#define IDE_SOURCE_VIEW_CONST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), IDE_TYPE_SOURCE_VIEW, IdeSourceView const))
IdeBackForwardList *
ide_source_view_get_back_forward_list (IdeSourceView *self
);
Gets the “back-forward-list” property. This is the list that is used to manage navigation history between multiple IdeSourceView.
void ide_source_view_get_visual_position (IdeSourceView *self
,guint *line
,guint *line_offset
);
gboolean
ide_source_view_get_enable_word_completion
(IdeSourceView *self
);
IdeFileSettings *
ide_source_view_get_file_settings (IdeSourceView *self
);
Gets the “file-settings” property. This contains various settings for how the file should be rendered in the view, and preferences such as spaces vs tabs.
const PangoFontDescription *
ide_source_view_get_font_desc (IdeSourceView *self
);
gboolean
ide_source_view_get_highlight_current_line
(IdeSourceView *self
);
gboolean
ide_source_view_get_insert_matching_brace
(IdeSourceView *self
);
const gchar *
ide_source_view_get_mode_display_name (IdeSourceView *self
);
gboolean
ide_source_view_get_overwrite_braces (IdeSourceView *self
);
gboolean
ide_source_view_get_rubberband_search (IdeSourceView *self
);
guint
ide_source_view_get_scroll_offset (IdeSourceView *self
);
Gets the “scroll-offset” property. This property contains the number of lines that should be kept above or below the line containing the insertion cursor relative to the top and bottom of the visible text window.
GtkSourceSearchContext *
ide_source_view_get_search_context (IdeSourceView *self
);
Returns the GtkSourceSearchContext for the source view if there is one.
gboolean
ide_source_view_get_show_grid_lines (IdeSourceView *self
);
gboolean
ide_source_view_get_show_line_changes (IdeSourceView *self
);
gboolean
ide_source_view_get_show_line_diagnostics
(IdeSourceView *self
);
gboolean
ide_source_view_get_show_search_bubbles
(IdeSourceView *self
);
Gets the “show-search-bubbles” property.
If this is set to TRUE
, a bubble will be drawn around search results to
make them stand out.
The default is FALSE
.
gboolean
ide_source_view_get_show_search_shadow
(IdeSourceView *self
);
Gets the “show-search-shadow” property.
If this property is TRUE
, then when searching, a shadow will be drawn over
the portion of the visible region that does not contain a match. This can
be used to help bring focus to the matches.
The default is FALSE
.
gboolean
ide_source_view_get_smart_backspace (IdeSourceView *self
);
gboolean
ide_source_view_get_snippet_completion
(IdeSourceView *self
);
Gets the “snippet-completion” property.
If enabled, snippet expansion can be performed via the auto completion drop down.
void ide_source_view_get_visible_rect (IdeSourceView *self
,GdkRectangle *visible_rect
);
Gets the visible region in buffer coordinates that is the visible area of the buffer. This
is similar to gtk_text_view_get_visible_area()
except that it takes into account the
“scroll-offset” property to ensure there is space above and below the
visible_rect.
void ide_source_view_jump (IdeSourceView *self
,const GtkTextIter *location
);
void ide_source_view_push_snippet (IdeSourceView *self
,IdeSourceSnippet *snippet
);
void ide_source_view_set_enable_word_completion (IdeSourceView *self
,gboolean enable_word_copletion
);
void ide_source_view_set_font_desc (IdeSourceView *self
,const PangoFontDescription *font_desc
);
void ide_source_view_set_font_name (IdeSourceView *self
,const gchar *font_name
);
void ide_source_view_set_highlight_current_line (IdeSourceView *self
,gboolean highlight_current_line
);
void ide_source_view_set_insert_matching_brace (IdeSourceView *self
,gboolean insert_matching_brace
);
void ide_source_view_set_overwrite_braces (IdeSourceView *self
,gboolean overwrite_braces
);
void ide_source_view_set_rubberband_search (IdeSourceView *self
,gboolean rubberband_search
);
void ide_source_view_set_scroll_offset (IdeSourceView *self
,guint scroll_offset
);
Sets the “scroll-offset” property. See ide_source_view_get_scroll_offset()
for
more information. Set to 0 to unset this property.
void ide_source_view_set_show_grid_lines (IdeSourceView *self
,gboolean show_grid_lines
);
void ide_source_view_set_show_line_changes (IdeSourceView *self
,gboolean show_line_changes
);
void ide_source_view_set_show_line_diagnostics (IdeSourceView *self
,gboolean show_line_changes
);
void ide_source_view_set_show_search_bubbles (IdeSourceView *self
,gboolean show_search_bubbles
);
void ide_source_view_set_show_search_shadow (IdeSourceView *self
,gboolean show_search_bubbles
);
void ide_source_view_set_smart_backspace (IdeSourceView *self
,gboolean smart_backspace
);
void ide_source_view_set_snippet_completion (IdeSourceView *self
,gboolean snippet_completion
);
Sets the “snippet-completion” property. By setting this property to TRUE
,
snippets will be loaded for the currently activated source code language. See IdeSourceSnippet
for more information on what can be provided via a snippet.
See also: ide_source_view_get_snippet_completion()
void ide_source_view_set_back_forward_list (IdeSourceView *self
,IdeBackForwardList *back_forward_list
);
gboolean ide_source_view_move_mark_onscreen (IdeSourceView *self
,GtkTextMark *mark
);
gboolean
ide_source_view_place_cursor_onscreen (IdeSourceView *self
);
void ide_source_view_scroll_mark_onscreen (IdeSourceView *self
,GtkTextMark *mark
,gboolean use_align
,gdouble alignx
,gdouble aligny
);
void ide_source_view_scroll_to_mark (IdeSourceView *self
,GtkTextMark *mark
,gdouble within_margin
,gboolean use_align
,gdouble xalign
,gdouble yalign
,gboolean animate_scroll
);
void ide_source_view_scroll_to_iter (IdeSourceView *self
,const GtkTextIter *iter
,gdouble within_margin
,gboolean use_align
,gdouble xalign
,gdouble yalign
,gboolean animate_scroll
);
The type of movement.
Some of these movements may be modified by using the modify-repeat action. First adjust the repeat and then perform the "movement" action.
move to previous character in the file. This includes line breaks. |
||
move to next character in the file. This includes line breaks. |
||
move to nth character in line. Use a repeat to specify the target character within the line. |
||
move to previous character in line. |
||
move to next character in line. |
||
move to line offset of zero. |
||
move to first non-whitespace character in line. |
||
move to the middle character in the line. |
||
move to the last character in the line. this can be
inclusve or exclusive. inclusive is equivalent to |
||
move to beginning of next word. |
||
move to beginning of previous word. |
||
move to end of previous word. |
||
move to end of next word. |
||
move to beginning of sentance. |
||
move to end of sentance. |
||
move to start of paragraph. |
||
move to end of paragraph. |
||
move to previous line, keeping line offset if possible. |
||
move to next line, keeping line offset if possible. |
||
move to first line in file, line offset of zero. |
||
move to nth line, line offset of zero. use repeat to select the given line number. |
||
move to last line in file, with line offset of zero. |
||
move to line based on percentage. Use repeat to specify the percentage, 0 to 100. |
||
special selection to select all line characters up to the cursor position. special care will be taken if the line is blank to select only the blank space if any. otherwise, the line break will be selected. |
||
This will move you to the location of the newline at the end of the current line. It does not support exclusive will not select the newline, while inclusive will select the newline. |
||
move half a page up. |
||
move half a page down. |
||
move a full page up. |
||
move a full page down. |
||
move to viewport up by visible line, adjusting cursor to stay on screen if necessary. |
||
move to viewport down by visible line, adjusting cursor to stay on screen if necessary. |
||
move to the top of the screen. |
||
move to the middle of the screen. |
||
move to the bottom of the screen. |
||
move to match of brace, bracket, comment. |
||
scroll until insert cursor is at screen top. |
||
scroll until insert cursor is at screen center. |
||
scroll until insert cursor is at screen bottom. |
||
“back-forward-list”
property“back-forward-list” IdeBackForwardList *
The back-forward list to track jumps.
Flags: Read / Write
“count”
property “count” guint
The count for movements.
Flags: Read / Write
Allowed values: <= G_MAXINT
Default value: 0
“enable-word-completion”
property “enable-word-completion” gboolean
If words from all buffers can be used to autocomplete.
Flags: Read / Write
Default value: FALSE
“file-settings”
property“file-settings” IdeFileSettings *
The file settings that have been loaded for the file.
Flags: Read
“font-desc”
property “font-desc” PangoFontDescription *
The Pango font description to use for rendering source.
Flags: Read / Write
“font-name”
property “font-name” gchar *
The Pango font name to use for rendering source.
Flags: Write / Construct
Default value: "Monospace"
“indent-style”
property“indent-style” IdeIndentStyle
Indent Style.
Flags: Write
Default value: IDE_INDENT_STYLE_TABS
“insert-matching-brace”
property “insert-matching-brace” gboolean
Insert a matching brace/bracket/quotation/parenthesis.
Flags: Read / Write
Default value: FALSE
“mode-display-name”
property “mode-display-name” gchar *
The display name of the keybinding mode.
Flags: Read
Default value: NULL
“overwrite-braces”
property “overwrite-braces” gboolean
Overwrite a matching brace/bracket/quotation/parenthesis.
Flags: Read / Write
Default value: FALSE
“rubberband-search”
property “rubberband-search” gboolean
Auto scroll to next search result without moving insertion caret.
Flags: Read / Write
Default value: FALSE
“scroll-offset”
property “scroll-offset” guint
The number of lines between the insertion cursor and screen boundary.
Flags: Read / Write
Default value: 0
“search-context”
property “search-context” GtkSourceSearchContext *
The search context for the view.
Flags: Read
“show-grid-lines”
property “show-grid-lines” gboolean
If the background grid should be shown.
Flags: Read / Write
Default value: FALSE
“show-line-changes”
property “show-line-changes” gboolean
If line changes should be shown in the left gutter.
Flags: Read / Write
Default value: FALSE
“show-line-diagnostics”
property “show-line-diagnostics” gboolean
If the diagnostics gutter should be visible.
This also requires that IdeBuffer:highlight-diagnostics is set to TRUE
to generate diagnostics.
Flags: Read / Write
Default value: TRUE
“show-search-bubbles”
property “show-search-bubbles” gboolean
If search bubbles should be rendered.
Flags: Read / Write
Default value: FALSE
“show-search-shadow”
property “show-search-shadow” gboolean
If the shadow should be drawn when performing searches.
Flags: Read / Write
Default value: FALSE
“smart-backspace”
property “smart-backspace” gboolean
If smart Backspace should be used.
Flags: Read / Write
Default value: FALSE
“action”
signalvoid user_function (IdeSourceView *idesourceview, gchar *arg1, gchar *arg2, gchar *arg3, gpointer user_data)
Flags: Action
“append-to-count”
signalvoid user_function (IdeSourceView *idesourceview, gint arg1, gpointer user_data)
Flags: Action
“auto-indent”
signalvoid user_function (IdeSourceView *arg0, gpointer user_data)
Requests that the auto-indenter perform an indent request using the last inserted character. For example, if on the first character of a line, the last inserted character would be a newline and therefore "\n".
If on the first character of the buffer, this signal will do nothing.
Flags: Action
“begin-macro”
signalvoid user_function (IdeSourceView *arg0, gpointer user_data)
This signal will begin recording input to the IdeSourceView. This includes the current IdeSourceViewMode, “count” and “modifier” which will be used to replay the sequence starting from the correct state.
Pair this with an emission of “end-macro” to complete the sequence.
Flags: Action
“begin-user-action”
signalvoid user_function (IdeSourceView *idesourceview, gpointer user_data)
Flags: Action
“capture-modifier”
signalvoid user_function (IdeSourceView *arg0, gpointer user_data)
This signal will block the main loop in a similar fashion to how
gtk_dialog_run()
performs until a key-press has occurred that can be
captured for use in movements.
Pressing Escape or unfocusing the widget will break from this loop.
Use of this signal is not recommended except in very specific cases.
Flags: Action
“clear-count”
signalvoid user_function (IdeSourceView *idesourceview, gpointer user_data)
Flags: Action
“clear-modifier”
signalvoid user_function (IdeSourceView *idesourceview, gpointer user_data)
Flags: Action
“clear-selection”
signalvoid user_function (IdeSourceView *idesourceview, gpointer user_data)
Flags: Action
“clear-snippets”
signalvoid user_function (IdeSourceView *idesourceview, gpointer user_data)
Flags: Action
“cycle-completion”
signalvoid user_function (IdeSourceView *idesourceview, GtkDirectionType arg1, gpointer user_data)
Flags: Action
“delete-selection”
signalvoid user_function (IdeSourceView *idesourceview, gpointer user_data)
Flags: Action
“end-macro”
signalvoid user_function (IdeSourceView *arg0, gpointer user_data)
You should call “begin-macro” before emitting this signal.
Complete a macro recording sequence. This may be called more times than is necessary, since IdeSourceView will only keep the most recent macro recording. This can be helpful when implementing recording sequences such as in Vim.
Flags: Action
“end-user-action”
signalvoid user_function (IdeSourceView *idesourceview, gpointer user_data)
Flags: Action
“focus-location”
signalvoid user_function (IdeSourceView *idesourceview, IdeSourceLocation *arg1, gpointer user_data)
Flags: Run Last
“goto-definition”
signalvoid user_function (IdeSourceView *idesourceview, gpointer user_data)
Flags: Action
“hide-completion”
signalvoid user_function (IdeSourceView *idesourceview, gpointer user_data)
Flags: Action
“indent-selection”
signalvoid user_function (IdeSourceView *idesourceview, gint arg1, gpointer user_data)
Flags: Action
“insert-at-cursor-and-indent”
signalvoid user_function (IdeSourceView *idesourceview, gchar *arg1, gpointer user_data)
Flags: Action
“insert-modifier”
signalvoid user_function (IdeSourceView *self, gboolean use_count, gpointer user_data)
Inserts the current modifier character at the insert mark in the buffer.
If use_count
is TRUE
, then the character will be inserted
“count” times.
self |
||
use_count |
If the count property should be used to repeat. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Action
“jump”
signalvoid user_function (IdeSourceView *idesourceview, GtkTextIter *arg1, gpointer user_data)
Flags: Run Last
“move-error”
signalvoid user_function (IdeSourceView *self, GtkDirectionType dir, gpointer user_data)
Moves to the next search result either forwards or backwards.
self |
An IdeSourceView. |
|
dir |
The direction to move. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Action
“move-search”
signalvoid user_function (IdeSourceView *idesourceview, GtkDirectionType arg1, gboolean arg2, gboolean arg3, gboolean arg4, gboolean arg5, gboolean arg6, gpointer user_data)
Flags: Action
“movement”
signalvoid user_function (IdeSourceView *idesourceview, IdeSourceViewMovement arg1, gboolean arg2, gboolean arg3, gboolean arg4, gpointer user_data)
Flags: Action
“paste-clipboard-extended”
signalvoid user_function (IdeSourceView *idesourceview, gboolean arg1, gboolean arg2, gboolean arg3, gpointer user_data)
Flags: Action
“pop-selection”
signalvoid user_function (IdeSourceView *arg0, gpointer user_data)
Reselects a previousl selected range of text that was saved using IdeSourceView::push-selection.
Flags: Action
“pop-snippet”
signalvoid user_function (IdeSourceView *idesourceview, IdeSourceSnippet *arg1, gpointer user_data)
Flags: Run Last
“push-selection”
signalvoid user_function (IdeSourceView *arg0, gpointer user_data)
Saves the current selection away to be restored by a call to IdeSourceView::pop-selection. You must pop the selection to keep the selection stack in consistent order.
Flags: Action
“push-snippet”
signalvoid user_function (IdeSourceView *idesourceview, IdeSourceSnippet *arg1, IdeSourceSnippetContext *arg2, GtkTextIter *arg3, gpointer user_data)
Flags: Run Last
“rebuild-highlight”
signalvoid user_function (IdeSourceView *idesourceview, gpointer user_data)
Flags: Action
“replay-macro”
signalvoid user_function (IdeSourceView *idesourceview, gboolean arg1, gpointer user_data)
Flags: Action
“request-documentation”
signalvoid user_function (IdeSourceView *idesourceview, gpointer user_data)
Flags: Action
“restore-insert-mark”
signalvoid user_function (IdeSourceView *idesourceview, gpointer user_data)
Flags: Action
“save-insert-mark”
signalvoid user_function (IdeSourceView *idesourceview, gpointer user_data)
Flags: Action
“selection-theatric”
signalvoid user_function (IdeSourceView *idesourceview, IdeSourceViewTheatric arg1, gpointer user_data)
Flags: Action
“set-mode”
signalvoid user_function (IdeSourceView *idesourceview, gchar *arg1, IdeSourceViewModeType arg2, gpointer user_data)
Flags: Action
“set-overwrite”
signalvoid user_function (IdeSourceView *idesourceview, gboolean arg1, gpointer user_data)
Flags: Action
“set-search-text”
signalvoid user_function (IdeSourceView *idesourceview, gchar *arg1, gboolean arg2, gpointer user_data)
Flags: Action
“sort”
signalvoid user_function (IdeSourceView *self, gboolean ignore_case, gboolean reverse, gpointer user_data)
This signal is meant to be activated from keybindings to sort the currently selected lines.
The lines are sorted using qsort()
and either strcmp()
or strcasecmp()
.
self |
an IdeSourceView. |
|
ignore_case |
If character case should be ignored. |
|
reverse |
If the lines should be sorted in reverse order |
|
user_data |
user data set when the signal handler was connected. |
Flags: Action
“swap-selection-bounds”
signalvoid user_function (IdeSourceView *idesourceview, gpointer user_data)
Flags: Action