Top | ![]() |
![]() |
![]() |
![]() |
IdeBuffer * | ide_editor_view_get_buffer () |
IdeSourceView * | ide_editor_view_get_view () |
IdeEditorSearch * | ide_editor_view_get_search () |
const gchar * | ide_editor_view_get_language_id () |
void | ide_editor_view_scroll_to_line () |
void | ide_editor_view_scroll_to_line_offset () |
gboolean | ide_editor_view_get_auto_hide_map () |
void | ide_editor_view_set_auto_hide_map () |
gboolean | ide_editor_view_get_show_map () |
void | ide_editor_view_set_show_map () |
GtkSourceLanguage * | ide_editor_view_get_language () |
void | ide_editor_view_set_language () |
void | ide_editor_view_move_next_error () |
void | ide_editor_view_move_previous_error () |
void | ide_editor_view_move_next_search_result () |
void | ide_editor_view_move_previous_search_result () |
gboolean | auto-hide-map | Read / Write |
IdeBuffer * | buffer | Read / Write / Construct Only |
IdeEditorSearch * | search | Read |
gboolean | show-map | Read / Write |
IdeSourceView * | view | Read |
GObject ╰── GInitiallyUnowned ╰── GtkWidget ╰── GtkContainer ╰── GtkBox ╰── IdeLayoutView ╰── IdeEditorView
IdeEditorView implements AtkImplementorIface, GtkBuildable and GtkOrientable.
IdeBuffer *
ide_editor_view_get_buffer (IdeEditorView *self
);
Gets the underlying buffer for the view.
Since: 3.26
IdeSourceView *
ide_editor_view_get_view (IdeEditorView *self
);
Gets the IdeSourceView that is part of the IdeEditorView.
Since: 3.26
IdeEditorSearch *
ide_editor_view_get_search (IdeEditorView *self
);
Gets the IdeEditorSearch used to search within the document.
const gchar *
ide_editor_view_get_language_id (IdeEditorView *self
);
This is a helper to get the language-id of the underlying buffer.
Since: 3.26
void ide_editor_view_scroll_to_line (IdeEditorView *self
,guint line
);
This is a helper to quickly jump to a given line without all the frills. It will also ensure focus on the editor view, so that refocusing the view afterwards does not cause the view to restore the cursor to the previous location.
This will move the insert cursor.
Lines start from 0.
void ide_editor_view_scroll_to_line_offset (IdeEditorView *self
,guint line
,guint line_offset
);
Like ide_editor_view_scroll_to_line()
but allows specifying the
line offset (column) to place the cursor on.
This will move the insert cursor.
Lines and offsets start from 0.
If line_offset
is zero, the first non-space character of line
will be
used instead.
gboolean
ide_editor_view_get_auto_hide_map (IdeEditorView *self
);
void ide_editor_view_set_auto_hide_map (IdeEditorView *self
,gboolean auto_hide_map
);
void ide_editor_view_set_show_map (IdeEditorView *self
,gboolean show_map
);
GtkSourceLanguage *
ide_editor_view_get_language (IdeEditorView *self
);
Gets the GtkSourceLanguage that is used by the underlying buffer.
Since: 3.26
void ide_editor_view_set_language (IdeEditorView *self
,GtkSourceLanguage *language
);
This is a convenience function to set the language on the underlying IdeBuffer text buffer.
Since: 3.26
void
ide_editor_view_move_next_error (IdeEditorView *self
);
Moves to the next error, if any.
If there is no error, the insertion cursor is not moved.
Since: 3.26
void
ide_editor_view_move_previous_error (IdeEditorView *self
);
Moves the insertion cursor to the previous error.
If there is no error, the insertion cursor is not moved.
Since: 3.26
void
ide_editor_view_move_next_search_result
(IdeEditorView *self
);
Moves the insertion cursor to the next search result.
If there is no search result, the insertion cursor is not moved.
Since: 3.26
void
ide_editor_view_move_previous_search_result
(IdeEditorView *self
);
Moves the insertion cursor to the previous search result.
If there is no search result, the insertion cursor is not moved.
Since: 3.26
“auto-hide-map”
property “auto-hide-map” gboolean
If the overview map should be auto-hidden.
Flags: Read / Write
Default value: FALSE
“buffer”
property“buffer” IdeBuffer *
The buffer for the view.
Flags: Read / Write / Construct Only
“show-map”
property “show-map” gboolean
If the overview map should be shown.
Flags: Read / Write
Default value: FALSE