Top |
Functions
Types and Values
#define | IDE_TYPE_SOURCE_VIEW |
enum | IdeSourceViewModeType |
enum | IdeSourceViewTheatric |
enum | IdeSourceViewMovement |
struct | IdeSourceViewClass |
IdeSourceView |
Functions
ide_source_view_get_current_snippet ()
IdeSourceSnippet *
ide_source_view_get_current_snippet (IdeSourceView *self
);
Gets the current snippet if there is one, otherwise NULL
.
ide_source_view_get_back_forward_list ()
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.
ide_source_view_get_visual_position ()
void ide_source_view_get_visual_position (IdeSourceView *self
,guint *line
,guint *line_offset
);
ide_source_view_get_enable_word_completion ()
gboolean
ide_source_view_get_enable_word_completion
(IdeSourceView *self
);
ide_source_view_get_file_settings ()
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.
ide_source_view_get_font_desc ()
const PangoFontDescription *
ide_source_view_get_font_desc (IdeSourceView *self
);
ide_source_view_get_highlight_current_line ()
gboolean
ide_source_view_get_highlight_current_line
(IdeSourceView *self
);
ide_source_view_get_insert_matching_brace ()
gboolean
ide_source_view_get_insert_matching_brace
(IdeSourceView *self
);
ide_source_view_get_mode_display_name ()
const gchar *
ide_source_view_get_mode_display_name (IdeSourceView *self
);
ide_source_view_get_overwrite_braces ()
gboolean
ide_source_view_get_overwrite_braces (IdeSourceView *self
);
ide_source_view_get_rubberband_search ()
gboolean
ide_source_view_get_rubberband_search (IdeSourceView *self
);
ide_source_view_get_scroll_offset ()
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.
ide_source_view_get_search_context ()
GtkSourceSearchContext *
ide_source_view_get_search_context (IdeSourceView *self
);
Returns the GtkSourceSearchContext for the source view if there is one.
ide_source_view_get_search_direction ()
GtkDirectionType
ide_source_view_get_search_direction (IdeSourceView *self
);
Gets the current search direction.
ide_source_view_get_show_grid_lines ()
gboolean
ide_source_view_get_show_grid_lines (IdeSourceView *self
);
ide_source_view_get_show_line_changes ()
gboolean
ide_source_view_get_show_line_changes (IdeSourceView *self
);
ide_source_view_get_show_line_diagnostics ()
gboolean
ide_source_view_get_show_line_diagnostics
(IdeSourceView *self
);
ide_source_view_get_show_search_bubbles ()
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
.
ide_source_view_get_show_search_shadow ()
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
.
ide_source_view_get_snippet_completion ()
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.
ide_source_view_get_visible_rect ()
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.
ide_source_view_jump ()
void ide_source_view_jump (IdeSourceView *self
,const GtkTextIter *location
);
ide_source_view_push_snippet ()
void ide_source_view_push_snippet (IdeSourceView *self
,IdeSourceSnippet *snippet
,const GtkTextIter *location
);
Pushes a new snippet onto the source view.
Parameters
self |
||
snippet |
An IdeSourceSnippet. |
|
location |
A location for the snippet or |
[allow-none] |
ide_source_view_set_enable_word_completion ()
void ide_source_view_set_enable_word_completion (IdeSourceView *self
,gboolean enable_word_copletion
);
ide_source_view_set_font_desc ()
void ide_source_view_set_font_desc (IdeSourceView *self
,const PangoFontDescription *font_desc
);
ide_source_view_set_font_name ()
void ide_source_view_set_font_name (IdeSourceView *self
,const gchar *font_name
);
ide_source_view_set_highlight_current_line ()
void ide_source_view_set_highlight_current_line (IdeSourceView *self
,gboolean highlight_current_line
);
ide_source_view_set_insert_matching_brace ()
void ide_source_view_set_insert_matching_brace (IdeSourceView *self
,gboolean insert_matching_brace
);
ide_source_view_set_overwrite_braces ()
void ide_source_view_set_overwrite_braces (IdeSourceView *self
,gboolean overwrite_braces
);
ide_source_view_set_rubberband_search ()
void ide_source_view_set_rubberband_search (IdeSourceView *self
,gboolean rubberband_search
);
ide_source_view_set_scroll_offset ()
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.
ide_source_view_set_search_direction ()
void ide_source_view_set_search_direction (IdeSourceView *self
,GtkDirectionType direction
);
Sets the search direction.
This can be used to invert the normal search direction so that a forward movement is towards the beginning of the document.
ide_source_view_set_show_grid_lines ()
void ide_source_view_set_show_grid_lines (IdeSourceView *self
,gboolean show_grid_lines
);
ide_source_view_set_show_line_changes ()
void ide_source_view_set_show_line_changes (IdeSourceView *self
,gboolean show_line_changes
);
ide_source_view_set_show_line_diagnostics ()
void ide_source_view_set_show_line_diagnostics (IdeSourceView *self
,gboolean show_line_changes
);
ide_source_view_set_show_search_bubbles ()
void ide_source_view_set_show_search_bubbles (IdeSourceView *self
,gboolean show_search_bubbles
);
ide_source_view_set_show_search_shadow ()
void ide_source_view_set_show_search_shadow (IdeSourceView *self
,gboolean show_search_bubbles
);
ide_source_view_set_snippet_completion ()
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()
ide_source_view_set_back_forward_list ()
void ide_source_view_set_back_forward_list (IdeSourceView *self
,IdeBackForwardList *back_forward_list
);
ide_source_view_move_mark_onscreen ()
gboolean ide_source_view_move_mark_onscreen (IdeSourceView *self
,GtkTextMark *mark
);
ide_source_view_place_cursor_onscreen ()
gboolean
ide_source_view_place_cursor_onscreen (IdeSourceView *self
);
ide_source_view_scroll_mark_onscreen ()
void ide_source_view_scroll_mark_onscreen (IdeSourceView *self
,GtkTextMark *mark
,gboolean use_align
,gdouble alignx
,gdouble aligny
);
ide_source_view_scroll_to_mark ()
void ide_source_view_scroll_to_mark (IdeSourceView *self
,GtkTextMark *mark
,gdouble within_margin
,gboolean use_align
,gdouble xalign
,gdouble yalign
,gboolean animate_scroll
);
ide_source_view_scroll_to_iter ()
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
);
Types and Values
enum IdeSourceViewMovement
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.
Members
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 the next sub-word start, similar to the default in GtkTextView. This includes the underline character as a word break, as is common in Emacs. |
||
move to the previous sub-wird start, similar to the default in GtkTextView. This includes the underline character as a word break, as is common in Emacs. |
||
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 half a page left. |
||
move half a page right. |
||
move a full page up. |
||
move a full page up, but extend to whole line. |
||
move a full page down. |
||
move a full page down, but extend to whole line. |
||
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 viewport left by visible char, adjusting cursor to stay on screen if necessary. |
||
move to viewport right by visible char, 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 or [count]th line is at screen top. |
||
scroll until insert cursor or [count]th line is at screen center. |
||
scroll until insert cursor or [count]th line is at screen bottom. |
||
scroll until insert cursor or [count]th char is at screen left. |
||
scroll until insert cursor or [count]th char is at screen right. |
||
move to the next matching char according to f and t in vim. |
||
move to the previous matching char according to F and T in vim. |
struct IdeSourceViewClass
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, IdeSourceLocation *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 *location); 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, gint 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); gpointer _reserved1; gpointer _reserved2; gpointer _reserved3; gpointer _reserved4; gpointer _reserved5; gpointer _reserved6; gpointer _reserved7; gpointer _reserved8; gpointer _reserved9; gpointer _reserved10; gpointer _reserved11; gpointer _reserved12; gpointer _reserved13; gpointer _reserved14; gpointer _reserved15; gpointer _reserved16; gpointer _reserved17; gpointer _reserved18; gpointer _reserved19; gpointer _reserved20; gpointer _reserved21; gpointer _reserved22; gpointer _reserved23; gpointer _reserved24; };