Class

IdeSourceView

Description

class Ide.SourceView : GtkSource.View {
  parent_instance: GtkSourceView
}
No description available.

Hierarchy

hierarchy this IdeSourceView implements_0 AtkImplementorIface this--implements_0 implements_1 GtkBuildable this--implements_1 implements_2 GtkScrollable this--implements_2 ancestor_0 GtkSourceView ancestor_0--this ancestor_1 GtkTextView ancestor_1--ancestor_0 ancestor_2 GtkContainer ancestor_2--ancestor_1 ancestor_3 GtkWidget ancestor_3--ancestor_2 ancestor_4 GInitiallyUnowned ancestor_4--ancestor_3 ancestor_5 GObject ancestor_5--ancestor_4

Ancestors

  • GtkSourceView
  • GtkTextView
  • GtkContainer
  • GtkWidget
  • GInitiallyUnowned
  • GObject

Implements

  • AtkImplementorIface
  • GtkBuildable
  • GtkScrollable

Instance methods

ide_source_view_clear_search
No description available.
ide_source_view_clear_snippets
No description available.
ide_source_view_get_completion

Get the completion for the IdeSourceView.

Available since: 3.32

ide_source_view_get_count
No description available.
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
No description available.
ide_source_view_get_highlight_current_line
No description available.
ide_source_view_get_insert_matching_brace
No description available.
ide_source_view_get_iter_at_visual_column
No description available.
ide_source_view_get_mode_display_name
No description available.
ide_source_view_get_mode_name
No description available.
ide_source_view_get_overwrite
No description available.
ide_source_view_get_overwrite_braces
No description available.
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
No description available.
ide_source_view_get_show_line_changes
No description available.
ide_source_view_get_show_line_diagnostics
No description available.
ide_source_view_get_show_line_numbers
No description available.
ide_source_view_get_snippet_completion
No description available.
ide_source_view_get_spell_checking
No description available.
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
No description available.
ide_source_view_get_visual_position
No description available.
ide_source_view_has_snippet

Checks if there is an active snippet.

Available since: 3.32

ide_source_view_is_processing_key
No description available.
ide_source_view_jump
No description available.
ide_source_view_move_mark_onscreen
No description available.
ide_source_view_place_cursor_onscreen
No description available.
ide_source_view_pop_snippet
No description available.
ide_source_view_push_snippet

Pushes a new snippet onto the source view.

Available since: 3.32

ide_source_view_rollback_search
No description available.
ide_source_view_save_search
No description available.
ide_source_view_scroll_mark_onscreen
No description available.
ide_source_view_scroll_to_insert
No description available.
ide_source_view_scroll_to_iter
No description available.
ide_source_view_scroll_to_mark
No description available.
ide_source_view_set_count
No description available.
ide_source_view_set_font_desc
No description available.
ide_source_view_set_font_name
No description available.
ide_source_view_set_gutter

Allows setting the gutter for the sourceview.

Available since: 3.32

ide_source_view_set_highlight_current_line
No description available.
ide_source_view_set_insert_matching_brace
No description available.
ide_source_view_set_misspelled_word
No description available.
ide_source_view_set_overwrite_braces
No description available.
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
No description available.
ide_source_view_set_show_line_changes
No description available.
ide_source_view_set_show_line_diagnostics
No description available.
ide_source_view_set_show_line_numbers
No description available.
ide_source_view_set_snippet_completion
No description available.
ide_source_view_set_spell_checking
No description available.

Properties

Ide.SourceView:completion-n-rows
No description available.
Ide.SourceView:count
No description available.
Ide.SourceView:file-settings
No description available.
Ide.SourceView:font-desc
No description available.
Ide.SourceView:font-name
No description available.
Ide.SourceView:indent-style
No description available.
Ide.SourceView:indenter
No description available.
Ide.SourceView:insert-matching-brace
No description available.
Ide.SourceView:interactive-completion
No description available.
Ide.SourceView:mode-display-name
No description available.
Ide.SourceView:overscroll
No description available.
Ide.SourceView:overwrite-braces
No description available.
Ide.SourceView:scroll-offset
No description available.
Ide.SourceView:show-grid-lines
No description available.
Ide.SourceView:show-line-changes
No description available.
Ide.SourceView:show-line-diagnostics

If the diagnostics gutter should be visible.

Available since: 3.32

Ide.SourceView:show-relative-line-numbers
No description available.

Signals

Ide.SourceView::action
No description available.
Ide.SourceView::add-cursor
No description available.
Ide.SourceView::append-to-count
No description available.
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
No description available.
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
No description available.
Ide.SourceView::clear-modifier
No description available.
Ide.SourceView::clear-search
No description available.
Ide.SourceView::clear-selection
No description available.
Ide.SourceView::clear-snippets
No description available.
Ide.SourceView::copy-clipboard-extended
No description available.
Ide.SourceView::cycle-completion
No description available.
Ide.SourceView::decrease-font-size
No description available.
Ide.SourceView::delete-selection
No description available.
Ide.SourceView::draw-bubbles
No description available.
Ide.SourceView::duplicate-entire-line
No description available.
Ide.SourceView::end-macro

You should call IdeSourceView::begin-macro before emitting this signal.

Available since: 3.32

Ide.SourceView::end-user-action
No description available.
Ide.SourceView::find-references
No description available.
Ide.SourceView::focus-location
No description available.
Ide.SourceView::format-selection
No description available.
Ide.SourceView::goto-definition
No description available.
Ide.SourceView::hide-completion
No description available.
Ide.SourceView::increase-font-size
No description available.
Ide.SourceView::indent-selection
No description available.
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
No description available.
Ide.SourceView::move-error

Moves to the next search result either forwards or backwards.

Available since: 3.32

Ide.SourceView::move-search
No description available.
Ide.SourceView::movement
No description available.
Ide.SourceView::paste-clipboard-extended
No description available.
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
No description available.
Ide.SourceView::reindent
No description available.
Ide.SourceView::remove-cursors
No description available.
Ide.SourceView::replay-macro
No description available.
Ide.SourceView::request-documentation
No description available.
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
No description available.
Ide.SourceView::restore-insert-mark
No description available.
Ide.SourceView::save-command
No description available.
Ide.SourceView::save-insert-mark
No description available.
Ide.SourceView::save-search-char
No description available.
Ide.SourceView::select-inner
No description available.
Ide.SourceView::select-tag
No description available.
Ide.SourceView::selection-theatric
No description available.
Ide.SourceView::set-mode
No description available.
Ide.SourceView::set-overwrite
No description available.
Ide.SourceView::set-search-text
No description available.
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
No description available.

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
GtkSourceViewClass
  No description available.
append_to_count
void (* append_to_count) (
    IdeSourceView* self,
    gint digit
  )
  No description available.
auto_indent
void (* auto_indent) (
    IdeSourceView* self
  )
  No description available.
begin_macro
void (* begin_macro) (
    IdeSourceView* self
  )
  No description available.
capture_modifier
void (* capture_modifier) (
    IdeSourceView* self
  )
  No description available.
clear_count
void (* clear_count) (
    IdeSourceView* self
  )
  No description available.
clear_modifier
void (* clear_modifier) (
    IdeSourceView* self
  )
  No description available.
clear_search
void (* clear_search) (
    IdeSourceView* self
  )
  No description available.
clear_selection
void (* clear_selection) (
    IdeSourceView* self
  )
  No description available.
clear_snippets
void (* clear_snippets) (
    IdeSourceView* self
  )
  No description available.
cycle_completion
void (* cycle_completion) (
    IdeSourceView* self,
    GtkDirectionType direction
  )
  No description available.
delete_selection
void (* delete_selection) (
    IdeSourceView* self
  )
  No description available.
end_macro
void (* end_macro) (
    IdeSourceView* self
  )
  No description available.
focus_location
void (* focus_location) (
    IdeSourceView* self,
    IdeLocation* location
  )
  No description available.
goto_definition
void (* goto_definition) (
    IdeSourceView* self
  )
  No description available.
hide_completion
void (* hide_completion) (
    IdeSourceView* self
  )
  No description available.
indent_selection
void (* indent_selection) (
    IdeSourceView* self,
    gint level
  )
  No description available.
insert_at_cursor_and_indent
void (* insert_at_cursor_and_indent) (
    IdeSourceView* self,
    const gchar* str
  )
  No description available.
insert_modifier
void (* insert_modifier) (
    IdeSourceView* self,
    gboolean use_count
  )
  No description available.
jump
void (* jump) (
    IdeSourceView* self,
    const GtkTextIter* from,
    const GtkTextIter* to
  )
  No description available.
movement
void (* movement) (
    IdeSourceView* self,
    IdeSourceViewMovement movement,
    gboolean extend_selection,
    gboolean exclusive,
    gboolean apply_count
  )
  No description available.
move_error
void (* move_error) (
    IdeSourceView* self,
    GtkDirectionType dir
  )
  No description available.
move_search
void (* move_search) (
    IdeSourceView* self,
    GtkDirectionType dir,
    gboolean extend_selection,
    gboolean select_match,
    gboolean exclusive,
    gboolean apply_count,
    gboolean at_word_boundaries
  )
  No description available.
paste_clipboard_extended
void (* paste_clipboard_extended) (
    IdeSourceView* self,
    gboolean smart_lines,
    gboolean after_cursor,
    gboolean place_cursor_at_original
  )
  No description available.
push_selection
void (* push_selection) (
    IdeSourceView* self
  )
  No description available.
pop_selection
void (* pop_selection) (
    IdeSourceView* self
  )
  No description available.
rebuild_highlight
void (* rebuild_highlight) (
    IdeSourceView* self
  )
  No description available.
replay_macro
void (* replay_macro) (
    IdeSourceView* self,
    gboolean use_count
  )
  No description available.
request_documentation
void (* request_documentation) (
    IdeSourceView* self
  )
  No description available.
restore_insert_mark
void (* restore_insert_mark) (
    IdeSourceView* self
  )
  No description available.
save_command
void (* save_command) (
    IdeSourceView* self
  )
  No description available.
save_search_char
void (* save_search_char) (
    IdeSourceView* self
  )
  No description available.
save_insert_mark
void (* save_insert_mark) (
    IdeSourceView* self
  )
  No description available.
select_inner
void (* select_inner) (
    IdeSourceView* self,
    const gchar* inner_left,
    const gchar* inner_right,
    gboolean exclusive,
    gboolean string_mode
  )
  No description available.
select_tag
void (* select_tag) (
    IdeSourceView* self,
    gboolean exclusive
  )
  No description available.
selection_theatric
void (* selection_theatric) (
    IdeSourceView* self,
    IdeSourceViewTheatric theatric
  )
  No description available.
set_mode
void (* set_mode) (
    IdeSourceView* self,
    const gchar* mode,
    IdeSourceViewModeType type
  )
  No description available.
set_overwrite
void (* set_overwrite) (
    IdeSourceView* self,
    gboolean overwrite
  )
  No description available.
set_search_text
void (* set_search_text) (
    IdeSourceView* self,
    const gchar* search_text,
    gboolean from_selection
  )
  No description available.
sort
void (* sort) (
    IdeSourceView* self,
    gboolean ignore_case,
    gboolean reverse
  )
  No description available.
swap_selection_bounds
void (* swap_selection_bounds) (
    IdeSourceView* self
  )
  No description available.
increase_font_size
void (* increase_font_size) (
    IdeSourceView* self
  )
  No description available.
decrease_font_size
void (* decrease_font_size) (
    IdeSourceView* self
  )
  No description available.
reset_font_size
void (* reset_font_size) (
    IdeSourceView* self
  )
  No description available.
begin_rename
void (* begin_rename) (
    IdeSourceView* self
  )
  No description available.
add_cursor
void (* add_cursor) (
    IdeSourceView* self,
    guint type
  )
  No description available.
remove_cursors
void (* remove_cursors) (
    IdeSourceView* self
  )
  No description available.
copy_clipboard_extended
void (* copy_clipboard_extended) (
    IdeSourceView* self
  )
  No description available.

Virtual methods

Ide.SourceViewClass.add_cursor
No description available.
Ide.SourceViewClass.append_to_count
No description available.
Ide.SourceViewClass.auto_indent
No description available.
Ide.SourceViewClass.begin_macro
No description available.
Ide.SourceViewClass.begin_rename
No description available.
Ide.SourceViewClass.capture_modifier
No description available.
Ide.SourceViewClass.clear_count
No description available.
Ide.SourceViewClass.clear_modifier
No description available.
No description available.
Ide.SourceViewClass.clear_selection
No description available.
Ide.SourceViewClass.clear_snippets
No description available.
Ide.SourceViewClass.cycle_completion
No description available.
Ide.SourceViewClass.decrease_font_size
No description available.
Ide.SourceViewClass.delete_selection
No description available.
Ide.SourceViewClass.end_macro
No description available.
Ide.SourceViewClass.focus_location
No description available.
Ide.SourceViewClass.goto_definition
No description available.
Ide.SourceViewClass.hide_completion
No description available.
Ide.SourceViewClass.increase_font_size
No description available.
Ide.SourceViewClass.indent_selection
No description available.
Ide.SourceViewClass.insert_modifier
No description available.
Ide.SourceViewClass.jump
No description available.
Ide.SourceViewClass.move_error
No description available.
No description available.
Ide.SourceViewClass.movement
No description available.
Ide.SourceViewClass.pop_selection
No description available.
Ide.SourceViewClass.push_selection
No description available.
Ide.SourceViewClass.rebuild_highlight
No description available.
Ide.SourceViewClass.remove_cursors
No description available.
Ide.SourceViewClass.replay_macro
No description available.
Ide.SourceViewClass.request_documentation
No description available.
Ide.SourceViewClass.reset_font_size
No description available.
Ide.SourceViewClass.restore_insert_mark
No description available.
Ide.SourceViewClass.save_command
No description available.
Ide.SourceViewClass.save_insert_mark
No description available.
Ide.SourceViewClass.save_search_char
No description available.
Ide.SourceViewClass.select_inner
No description available.
Ide.SourceViewClass.select_tag
No description available.
Ide.SourceViewClass.selection_theatric
No description available.
Ide.SourceViewClass.set_mode
No description available.
Ide.SourceViewClass.set_overwrite
No description available.
Ide.SourceViewClass.set_search_text
No description available.
Ide.SourceViewClass.sort
No description available.
Ide.SourceViewClass.swap_selection_bounds
No description available.