Class
IdeSourceView
Instance methods
ide_source_view_clear_search
ide_source_view_clear_snippets
ide_source_view_get_count
ide_source_view_get_current_snippet
Gets the current snippet if there is one, otherwise NULL
.
Available since: 3.32
ide_source_view_get_file_settings
Gets the IdeSourceView:file-settings
property. This contains various
settings for how the file should be rendered in the view, and preferences
such as spaces vs tabs.
Available since: 3.32
ide_source_view_get_font_desc
ide_source_view_get_highlight_current_line
ide_source_view_get_insert_matching_brace
ide_source_view_get_iter_at_visual_column
ide_source_view_get_mode_display_name
ide_source_view_get_mode_name
ide_source_view_get_overwrite
ide_source_view_get_overwrite_braces
ide_source_view_get_scaled_font_desc
Like ide_source_view_get_font_desc()
but takes the editor zoom into
account. You must free the result with pango_font_description_free()
.
Available since: 3.32
ide_source_view_get_scroll_offset
Gets the IdeSourceView: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.
Available since: 3.32
ide_source_view_get_show_grid_lines
ide_source_view_get_show_line_changes
ide_source_view_get_show_line_diagnostics
ide_source_view_get_show_line_numbers
ide_source_view_get_show_relative_line_numbers
ide_source_view_get_snippet_completion
ide_source_view_get_spell_checking
ide_source_view_get_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
IdeSourceView:scroll-offset
property to ensure there is space above and below the visible_rect.
Available since: 3.32
ide_source_view_get_visual_column
ide_source_view_get_visual_position
ide_source_view_is_processing_key
ide_source_view_jump
ide_source_view_move_mark_onscreen
ide_source_view_place_cursor_onscreen
ide_source_view_pop_snippet
ide_source_view_rollback_search
ide_source_view_save_search
ide_source_view_scroll_mark_onscreen
ide_source_view_scroll_to_insert
ide_source_view_scroll_to_iter
ide_source_view_scroll_to_mark
ide_source_view_set_count
ide_source_view_set_font_desc
ide_source_view_set_font_name
ide_source_view_set_highlight_current_line
ide_source_view_set_insert_matching_brace
ide_source_view_set_misspelled_word
ide_source_view_set_overwrite_braces
ide_source_view_set_scroll_offset
Sets the IdeSourceView:scroll-offset
property. See ide_source_view_get_scroll_offset()
for
more information. Set to 0 to unset this property.
Available since: 3.32
ide_source_view_set_show_grid_lines
ide_source_view_set_show_line_changes
ide_source_view_set_show_line_diagnostics
ide_source_view_set_show_line_numbers
ide_source_view_set_show_relative_line_numbers
ide_source_view_set_snippet_completion
ide_source_view_set_spell_checking
Properties
Ide.SourceView:completion-n-rows
Ide.SourceView:count
Ide.SourceView:file-settings
Ide.SourceView:font-desc
Ide.SourceView:font-name
Ide.SourceView:indent-style
Ide.SourceView:indenter
Ide.SourceView:insert-matching-brace
Ide.SourceView:interactive-completion
Ide.SourceView:mode-display-name
Ide.SourceView:overscroll
Ide.SourceView:overwrite-braces
Ide.SourceView:scroll-offset
Ide.SourceView:show-grid-lines
Ide.SourceView:show-line-changes
Ide.SourceView:show-line-diagnostics
If the diagnostics gutter should be visible.
Available since: 3.32
Ide.SourceView:show-relative-line-numbers
Signals
Ide.SourceView::action
Ide.SourceView::add-cursor
Ide.SourceView::append-to-count
Ide.SourceView::begin-macro
This signal will begin recording input to the IdeSourceView
. This includes the current
IdeSourceViewMode
, IdeSourceView:count
and IdeSourceView:modifier
which will be used
to replay the sequence starting from the correct state.
Available since: 3.32
Ide.SourceView::begin-rename
This signal is emitted when the source view should begin a rename
operation using the IdeRenameProvider
from the underlying buffer. The
cursor position will be used as the location when sending the request to
the provider.
Available since: 3.32
Ide.SourceView::begin-user-action
Ide.SourceView::capture-modifier
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.
Available since: 3.32
Ide.SourceView::clear-count
Ide.SourceView::clear-modifier
Ide.SourceView::clear-search
Ide.SourceView::clear-selection
Ide.SourceView::clear-snippets
Ide.SourceView::copy-clipboard-extended
Ide.SourceView::cycle-completion
Ide.SourceView::decrease-font-size
Ide.SourceView::delete-selection
Ide.SourceView::draw-bubbles
Ide.SourceView::duplicate-entire-line
Ide.SourceView::end-macro
You should call IdeSourceView::begin-macro
before emitting this signal.
Available since: 3.32
Ide.SourceView::end-user-action
Ide.SourceView::find-references
Ide.SourceView::focus-location
Ide.SourceView::format-selection
Ide.SourceView::goto-definition
Ide.SourceView::hide-completion
Ide.SourceView::increase-font-size
Ide.SourceView::indent-selection
Ide.SourceView::insert-modifier
Inserts the current modifier character at the insert mark in the buffer.
If use_count
is TRUE
, then the character will be inserted
IdeSourceView:count
times.
Available since: 3.32
Ide.SourceView::jump
Ide.SourceView::move-error
Moves to the next search result either forwards or backwards.
Available since: 3.32
Ide.SourceView::move-search
Ide.SourceView::movement
Ide.SourceView::paste-clipboard-extended
Ide.SourceView::pop-selection
Reselects a previousl selected range of text that was saved using IdeSourceView::push-selection.
Available since: 3.32
Ide.SourceView::pop-snippet
Pops the current snippet from the sourceview if there is one.
Available since: 3.32
Ide.SourceView::push-selection
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.
Available since: 3.32
Ide.SourceView::push-snippet
Pushes snippet
onto the snippet stack at either iter
or the insertion
mark if iter
is not provided.
Available since: 3.32
Ide.SourceView::rebuild-highlight
Ide.SourceView::reindent
Ide.SourceView::remove-cursors
Ide.SourceView::replay-macro
Ide.SourceView::request-documentation
Ide.SourceView::reset
This is a helper signal that will try to reset keyboard input and various stateful settings of the sourceview. This is a good signal to map to the “Escape” key.
Available since: 3.32
Ide.SourceView::reset-font-size
Ide.SourceView::restore-insert-mark
Ide.SourceView::save-command
Ide.SourceView::save-insert-mark
Ide.SourceView::save-search-char
Ide.SourceView::select-inner
Ide.SourceView::select-tag
Ide.SourceView::selection-theatric
Ide.SourceView::set-mode
Ide.SourceView::set-overwrite
Ide.SourceView::set-search-text
Ide.SourceView::sort
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()
.
Available since: 3.32
Ide.SourceView::swap-selection-bounds
Class structure
struct IdeSourceViewClass {
GtkSourceViewClass parent_class;
void (* append_to_count) (
IdeSourceView* self,
gint digit
);
void (* auto_indent) (
IdeSourceView* self
);
void (* begin_macro) (
IdeSourceView* self
);
void (* capture_modifier) (
IdeSourceView* self
);
void (* clear_count) (
IdeSourceView* self
);
void (* clear_modifier) (
IdeSourceView* self
);
void (* clear_search) (
IdeSourceView* self
);
void (* clear_selection) (
IdeSourceView* self
);
void (* clear_snippets) (
IdeSourceView* self
);
void (* cycle_completion) (
IdeSourceView* self,
GtkDirectionType direction
);
void (* delete_selection) (
IdeSourceView* self
);
void (* end_macro) (
IdeSourceView* self
);
void (* focus_location) (
IdeSourceView* self,
IdeLocation* location
);
void (* goto_definition) (
IdeSourceView* self
);
void (* hide_completion) (
IdeSourceView* self
);
void (* indent_selection) (
IdeSourceView* self,
gint level
);
void (* insert_at_cursor_and_indent) (
IdeSourceView* self,
const gchar* str
);
void (* insert_modifier) (
IdeSourceView* self,
gboolean use_count
);
void (* jump) (
IdeSourceView* self,
const GtkTextIter* from,
const GtkTextIter* to
);
void (* movement) (
IdeSourceView* self,
IdeSourceViewMovement movement,
gboolean extend_selection,
gboolean exclusive,
gboolean apply_count
);
void (* move_error) (
IdeSourceView* self,
GtkDirectionType dir
);
void (* move_search) (
IdeSourceView* self,
GtkDirectionType dir,
gboolean extend_selection,
gboolean select_match,
gboolean exclusive,
gboolean apply_count,
gboolean at_word_boundaries
);
void (* paste_clipboard_extended) (
IdeSourceView* self,
gboolean smart_lines,
gboolean after_cursor,
gboolean place_cursor_at_original
);
void (* push_selection) (
IdeSourceView* self
);
void (* pop_selection) (
IdeSourceView* self
);
void (* rebuild_highlight) (
IdeSourceView* self
);
void (* replay_macro) (
IdeSourceView* self,
gboolean use_count
);
void (* request_documentation) (
IdeSourceView* self
);
void (* restore_insert_mark) (
IdeSourceView* self
);
void (* save_command) (
IdeSourceView* self
);
void (* save_search_char) (
IdeSourceView* self
);
void (* save_insert_mark) (
IdeSourceView* self
);
void (* select_inner) (
IdeSourceView* self,
const gchar* inner_left,
const gchar* inner_right,
gboolean exclusive,
gboolean string_mode
);
void (* select_tag) (
IdeSourceView* self,
gboolean exclusive
);
void (* selection_theatric) (
IdeSourceView* self,
IdeSourceViewTheatric theatric
);
void (* set_mode) (
IdeSourceView* self,
const gchar* mode,
IdeSourceViewModeType type
);
void (* set_overwrite) (
IdeSourceView* self,
gboolean overwrite
);
void (* set_search_text) (
IdeSourceView* self,
const gchar* search_text,
gboolean from_selection
);
void (* sort) (
IdeSourceView* self,
gboolean ignore_case,
gboolean reverse
);
void (* swap_selection_bounds) (
IdeSourceView* self
);
void (* increase_font_size) (
IdeSourceView* self
);
void (* decrease_font_size) (
IdeSourceView* self
);
void (* reset_font_size) (
IdeSourceView* self
);
void (* begin_rename) (
IdeSourceView* self
);
void (* add_cursor) (
IdeSourceView* self,
guint type
);
void (* remove_cursors) (
IdeSourceView* self
);
void (* copy_clipboard_extended) (
IdeSourceView* self
);
}
Class members
parent_class |
|
No description available. | |
append_to_count |
|
No description available. | |
auto_indent |
|
No description available. | |
begin_macro |
|
No description available. | |
capture_modifier |
|
No description available. | |
clear_count |
|
No description available. | |
clear_modifier |
|
No description available. | |
clear_search |
|
No description available. | |
clear_selection |
|
No description available. | |
clear_snippets |
|
No description available. | |
cycle_completion |
|
No description available. | |
delete_selection |
|
No description available. | |
end_macro |
|
No description available. | |
focus_location |
|
No description available. | |
goto_definition |
|
No description available. | |
hide_completion |
|
No description available. | |
indent_selection |
|
No description available. | |
insert_at_cursor_and_indent |
|
No description available. | |
insert_modifier |
|
No description available. | |
jump |
|
No description available. | |
movement |
|
No description available. | |
move_error |
|
No description available. | |
move_search |
|
No description available. | |
paste_clipboard_extended |
|
No description available. | |
push_selection |
|
No description available. | |
pop_selection |
|
No description available. | |
rebuild_highlight |
|
No description available. | |
replay_macro |
|
No description available. | |
request_documentation |
|
No description available. | |
restore_insert_mark |
|
No description available. | |
save_command |
|
No description available. | |
save_search_char |
|
No description available. | |
save_insert_mark |
|
No description available. | |
select_inner |
|
No description available. | |
select_tag |
|
No description available. | |
selection_theatric |
|
No description available. | |
set_mode |
|
No description available. | |
set_overwrite |
|
No description available. | |
set_search_text |
|
No description available. | |
sort |
|
No description available. | |
swap_selection_bounds |
|
No description available. | |
increase_font_size |
|
No description available. | |
decrease_font_size |
|
No description available. | |
reset_font_size |
|
No description available. | |
begin_rename |
|
No description available. | |
add_cursor |
|
No description available. | |
remove_cursors |
|
No description available. | |
copy_clipboard_extended |
|
No description available. |