geany
1.38
About: Geany is a text editor (using GTK2) with basic features of an integrated development environment (syntax highlighting, code folding, symbol name auto-completion, ...). F: office T: editor programming GTK+ IDE
![]() ![]() |
Go to the source code of this file.
Macros | |
#define | SCI_STATUS_FORMAT_STRING |
Functions | |
sptr_t | sci_send_message_internal (const gchar *file, guint line, ScintillaObject *sci, guint msg, uptr_t wparam, sptr_t lparam) |
void | sci_set_line_numbers (ScintillaObject *sci, gboolean set) |
void | sci_set_mark_long_lines (ScintillaObject *sci, gint type, gint column, const gchar *colour) |
static gint | sci_text_height_cached (ScintillaObject *sci) |
static gint | margin_width_from_line_height (ScintillaObject *sci, gdouble ratio, gint threshold) |
void | sci_set_symbol_margin (ScintillaObject *sci, gboolean set) |
void | sci_set_folding_margin_visible (ScintillaObject *sci, gboolean set) |
void | sci_set_visible_eols (ScintillaObject *sci, gboolean set) |
void | sci_set_visible_white_spaces (ScintillaObject *sci, gboolean set) |
void | sci_set_lines_wrapped (ScintillaObject *sci, gboolean set) |
gint | sci_get_eol_mode (ScintillaObject *sci) |
void | sci_set_eol_mode (ScintillaObject *sci, gint eolmode) |
void | sci_convert_eols (ScintillaObject *sci, gint eolmode) |
void | sci_add_text (ScintillaObject *sci, const gchar *text) |
void | sci_set_text (ScintillaObject *sci, const gchar *text) |
Sets all text. More... | |
gboolean | sci_can_undo (ScintillaObject *sci) |
gboolean | sci_can_redo (ScintillaObject *sci) |
void | sci_undo (ScintillaObject *sci) |
void | sci_redo (ScintillaObject *sci) |
void | sci_start_undo_action (ScintillaObject *sci) |
Begins grouping a set of edits together as one Undo action. More... | |
void | sci_end_undo_action (ScintillaObject *sci) |
Ends grouping a set of edits together as one Undo action. More... | |
void | sci_set_undo_collection (ScintillaObject *sci, gboolean set) |
void | sci_empty_undo_buffer (ScintillaObject *sci) |
gboolean | sci_is_modified (ScintillaObject *sci) |
void | sci_zoom_in (ScintillaObject *sci) |
void | sci_zoom_out (ScintillaObject *sci) |
void | sci_zoom_off (ScintillaObject *sci) |
void | sci_set_marker_at_line (ScintillaObject *sci, gint line_number, gint marker) |
Sets a line marker. More... | |
void | sci_delete_marker_at_line (ScintillaObject *sci, gint line_number, gint marker) |
Deletes a line marker. More... | |
gboolean | sci_is_marker_set_at_line (ScintillaObject *sci, gint line, gint marker) |
Checks if a line has a marker set. More... | |
void | sci_toggle_marker_at_line (ScintillaObject *sci, gint line, gint marker) |
gint | sci_marker_next (ScintillaObject *sci, gint line, gint marker_mask, gboolean wrap) |
gint | sci_marker_previous (ScintillaObject *sci, gint line, gint marker_mask, gboolean wrap) |
gint | sci_get_line_from_position (ScintillaObject *sci, gint position) |
Gets the line number from position. More... | |
gint | sci_get_col_from_position (ScintillaObject *sci, gint position) |
Gets the column number relative to the start of the line that position is on. More... | |
gint | sci_get_position_from_col (ScintillaObject *sci, gint line, gint col) |
gint | sci_get_position_from_line (ScintillaObject *sci, gint line) |
Gets the position for the start of line. More... | |
gint | sci_get_current_position (ScintillaObject *sci) |
Gets the cursor position. More... | |
gint | sci_get_cursor_virtual_space (ScintillaObject *sci) |
void | sci_set_current_position (ScintillaObject *sci, gint position, gboolean scroll_to_caret) |
Sets the cursor position. More... | |
void | sci_set_current_line (ScintillaObject *sci, gint line) |
gint | sci_get_line_count (ScintillaObject *sci) |
Gets the total number of lines. More... | |
void | sci_set_selection_start (ScintillaObject *sci, gint position) |
Sets the selection start position. More... | |
void | sci_set_selection_end (ScintillaObject *sci, gint position) |
Sets the selection end position. More... | |
void | sci_set_selection (ScintillaObject *sci, gint anchorPos, gint currentPos) |
gint | sci_get_line_end_position (ScintillaObject *sci, gint line) |
Gets the position at the end of a line. More... | |
void | sci_cut (ScintillaObject *sci) |
void | sci_copy (ScintillaObject *sci) |
void | sci_paste (ScintillaObject *sci) |
void | sci_clear (ScintillaObject *sci) |
gint | sci_get_selection_start (ScintillaObject *sci) |
Gets the selection start position. More... | |
gint | sci_get_selection_end (ScintillaObject *sci) |
Gets the selection end position. More... | |
void | sci_replace_sel (ScintillaObject *sci, const gchar *text) |
Replaces selection. More... | |
gint | sci_get_length (ScintillaObject *sci) |
Gets the length of all text. More... | |
gint | sci_get_lexer (ScintillaObject *sci) |
Gets the currently used lexer. More... | |
void | sci_set_lexer (ScintillaObject *sci, guint lexer_id) |
gint | sci_get_line_length (ScintillaObject *sci, gint line) |
Gets line length. More... | |
gchar * | sci_get_string (ScintillaObject *sci, guint msg, gulong wParam) |
gchar * | sci_get_line (ScintillaObject *sci, gint line_num) |
Gets line contents. More... | |
void | sci_get_text (ScintillaObject *sci, gint len, gchar *text) |
Gets all text. More... | |
gchar * | sci_get_contents (ScintillaObject *sci, gint buffer_len) |
Allocates and fills a buffer with text from the start of the document. More... | |
void | sci_get_selected_text (ScintillaObject *sci, gchar *text) |
Gets selected text. More... | |
gchar * | sci_get_selection_contents (ScintillaObject *sci) |
Gets selected text. More... | |
gint | sci_get_selected_text_length (ScintillaObject *sci) |
Gets selected text length. More... | |
gint | sci_get_position_from_xy (ScintillaObject *sci, gint x, gint y, gboolean nearby) |
gboolean | sci_get_line_is_visible (ScintillaObject *sci, gint line) |
Checks if a line is visible (folding may have hidden it). More... | |
void | sci_ensure_line_is_visible (ScintillaObject *sci, gint line) |
Makes line visible (folding may have hidden it). More... | |
gint | sci_get_fold_level (ScintillaObject *sci, gint line) |
gint | sci_get_fold_parent (ScintillaObject *sci, gint start_line) |
void | sci_toggle_fold (ScintillaObject *sci, gint line) |
gboolean | sci_get_fold_expanded (ScintillaObject *sci, gint line) |
void | sci_colourise (ScintillaObject *sci, gint start, gint end) |
void | sci_clear_all (ScintillaObject *sci) |
gint | sci_get_end_styled (ScintillaObject *sci) |
void | sci_set_tab_width (ScintillaObject *sci, gint width) |
gint | sci_get_tab_width (ScintillaObject *sci) |
Gets display tab width (this is not indent width, see GeanyIndentPrefs). More... | |
gchar | sci_get_char_at (ScintillaObject *sci, gint pos) |
Gets a character. More... | |
void | sci_set_savepoint (ScintillaObject *sci) |
void | sci_set_indentation_guides (ScintillaObject *sci, gint mode) |
void | sci_use_popup (ScintillaObject *sci, gboolean enable) |
gboolean | sci_has_selection (ScintillaObject *sci) |
Checks if there's a selection. More... | |
void | sci_goto_pos (ScintillaObject *sci, gint pos, gboolean unfold) |
void | sci_set_search_anchor (ScintillaObject *sci) |
void | sci_set_anchor (ScintillaObject *sci, gint pos) |
void | sci_scroll_caret (ScintillaObject *sci) |
Scrolls the cursor in view. More... | |
void | sci_scroll_columns (ScintillaObject *sci, gint columns) |
gint | sci_search_next (ScintillaObject *sci, gint flags, const gchar *text) |
gint | sci_search_prev (ScintillaObject *sci, gint flags, const gchar *text) |
gint | sci_find_text (ScintillaObject *sci, gint flags, struct Sci_TextToFind *ttf) |
Finds text in the document. More... | |
void | sci_set_font_fractional (ScintillaObject *sci, gint style, const gchar *font, gdouble size) |
void | sci_set_font (ScintillaObject *sci, gint style, const gchar *font, gint size) |
Sets the font for a particular style. More... | |
void | sci_goto_line (ScintillaObject *sci, gint line, gboolean unfold) |
Jumps to the specified line in the document. More... | |
void | sci_marker_delete_all (ScintillaObject *sci, gint marker) |
gint | sci_get_style_at (ScintillaObject *sci, gint position) |
Gets style ID at position. More... | |
void | sci_set_codepage (ScintillaObject *sci, gint cp) |
void | sci_assign_cmdkey (ScintillaObject *sci, gint key, gint command) |
void | sci_clear_cmdkey (ScintillaObject *sci, gint key) |
void | sci_get_text_range (ScintillaObject *sci, gint start, gint end, gchar *text) |
Gets text between start and end. More... | |
gchar * | sci_get_contents_range (ScintillaObject *sci, gint start, gint end) |
Gets text between start and end. More... | |
void | sci_line_duplicate (ScintillaObject *sci) |
void | sci_selection_duplicate (ScintillaObject *sci) |
void | sci_insert_text (ScintillaObject *sci, gint pos, const gchar *text) |
Inserts text. More... | |
void | sci_set_target_start (ScintillaObject *sci, gint start) |
void | sci_set_target_end (ScintillaObject *sci, gint end) |
gint | sci_replace_target (ScintillaObject *sci, const gchar *text, gboolean regex) |
void | sci_set_keywords (ScintillaObject *sci, guint k, const gchar *text) |
void | sci_set_readonly (ScintillaObject *sci, gboolean readonly) |
void | sci_send_command (ScintillaObject *sci, gint cmd) |
Sends Scintilla commands without any parameters. More... | |
gint | sci_get_current_line (ScintillaObject *sci) |
Gets current line number. More... | |
gint | sci_get_lines_selected (ScintillaObject *sci) |
gint | sci_get_first_visible_line (ScintillaObject *sci) |
void | sci_indicator_set (ScintillaObject *sci, gint indic) |
Sets the current indicator. More... | |
void | sci_indicator_fill (ScintillaObject *sci, gint pos, gint len) |
void | sci_indicator_clear (ScintillaObject *sci, gint pos, gint len) |
Clears the currently set indicator from a range of text. More... | |
void | sci_select_all (ScintillaObject *sci) |
gint | sci_get_line_indent_position (ScintillaObject *sci, gint line) |
void | sci_set_autoc_max_height (ScintillaObject *sci, gint val) |
gint | sci_find_matching_brace (ScintillaObject *sci, gint pos) |
Finds a matching brace at pos. More... | |
gint | sci_get_overtype (ScintillaObject *sci) |
void | sci_set_tab_indents (ScintillaObject *sci, gboolean set) |
void | sci_set_use_tabs (ScintillaObject *sci, gboolean set) |
gint | sci_get_pos_at_line_sel_start (ScintillaObject *sci, gint line) |
gint | sci_get_pos_at_line_sel_end (ScintillaObject *sci, gint line) |
gint | sci_get_selection_mode (ScintillaObject *sci) |
Gets selection mode. More... | |
void | sci_set_selection_mode (ScintillaObject *sci, gint mode) |
Sets selection mode. More... | |
void | sci_set_scrollbar_mode (ScintillaObject *sci, gboolean visible) |
void | sci_set_line_indentation (ScintillaObject *sci, gint line, gint indent) |
Sets the indentation of a line. More... | |
gint | sci_get_line_indentation (ScintillaObject *sci, gint line) |
Gets the indentation width of a line. More... | |
void | sci_set_caret_policy_x (ScintillaObject *sci, gint policy, gint slop) |
void | sci_set_caret_policy_y (ScintillaObject *sci, gint policy, gint slop) |
void | sci_set_scroll_stop_at_last_line (ScintillaObject *sci, gboolean set) |
void | sci_cancel (ScintillaObject *sci) |
gint | sci_get_position_after (ScintillaObject *sci, gint start) |
void | sci_lines_join (ScintillaObject *sci) |
gint | sci_text_width (ScintillaObject *sci, gint styleNumber, const gchar *text) |
void | sci_move_selected_lines_down (ScintillaObject *sci) |
void | sci_move_selected_lines_up (ScintillaObject *sci) |
gint | sci_word_start_position (ScintillaObject *sci, gint position, gboolean onlyWordCharacters) |
gint | sci_word_end_position (ScintillaObject *sci, gint position, gboolean onlyWordCharacters) |
#define SCI_STATUS_FORMAT_STRING |
|
static |
Definition at line 185 of file sciwrappers.c.
References sci, and sci_text_height_cached().
Referenced by sci_set_folding_margin_visible(), and sci_set_symbol_margin().
void sci_add_text | ( | ScintillaObject * | sci, |
const gchar * | text | ||
) |
Definition at line 280 of file sciwrappers.c.
References NULL, sci, SCI_ADDTEXT, and text.
Referenced by auto_close_chars(), auto_multiline(), cb_func_editor_action(), editor_insert_alternative_whitespace(), editor_insert_color(), insert_indent_after_line(), and on_editor_notify().
void sci_assign_cmdkey | ( | ScintillaObject * | sci, |
gint | key, | ||
gint | command | ||
) |
Definition at line 1064 of file sciwrappers.c.
References command, sci, and SCI_ASSIGNCMDKEY.
Referenced by editor_apply_update_prefs(), and setup_sci_keys().
gboolean sci_can_redo | ( | ScintillaObject * | sci | ) |
Definition at line 307 of file sciwrappers.c.
References sci, and SCI_CANREDO.
Referenced by document_can_redo(), and sci_redo().
gboolean sci_can_undo | ( | ScintillaObject * | sci | ) |
Definition at line 301 of file sciwrappers.c.
References sci, and SCI_CANUNDO.
Referenced by document_can_undo(), and sci_undo().
void sci_cancel | ( | ScintillaObject * | sci | ) |
Definition at line 1400 of file sciwrappers.c.
References sci, and SCI_CANCEL.
Referenced by check_line_breaking(), editor_complete_snippet(), on_editor_notify(), on_redo1_activate(), and on_undo1_activate().
void sci_clear | ( | ScintillaObject * | sci | ) |
Definition at line 616 of file sciwrappers.c.
References sci, and SCI_CLEAR.
Referenced by delete_lines(), and on_delete1_activate().
void sci_clear_all | ( | ScintillaObject * | sci | ) |
Definition at line 853 of file sciwrappers.c.
References sci, and SCI_CLEARALL.
Referenced by document_new_file().
void sci_clear_cmdkey | ( | ScintillaObject * | sci, |
gint | key | ||
) |
Definition at line 1070 of file sciwrappers.c.
References sci, and SCI_CLEARCMDKEY.
Referenced by setup_sci_keys().
void sci_colourise | ( | ScintillaObject * | sci, |
gint | start, | ||
gint | end | ||
) |
Definition at line 847 of file sciwrappers.c.
References sci, and SCI_COLOURISE.
Referenced by brace_match(), and editor_check_colourise().
void sci_convert_eols | ( | ScintillaObject * | sci, |
gint | eolmode | ||
) |
Definition at line 274 of file sciwrappers.c.
References sci, and SCI_CONVERTEOLS.
Referenced by convert_eol(), and document_save_file().
void sci_copy | ( | ScintillaObject * | sci | ) |
Definition at line 604 of file sciwrappers.c.
Referenced by on_copy1_activate().
void sci_cut | ( | ScintillaObject * | sci | ) |
Definition at line 598 of file sciwrappers.c.
Referenced by on_cut1_activate().
void sci_delete_marker_at_line | ( | ScintillaObject * | sci, |
gint | line_number, | ||
gint | marker | ||
) |
Deletes a line marker.
sci | Scintilla widget. |
line_number | Line number. |
marker | Marker number. |
Definition at line 399 of file sciwrappers.c.
References sci, and SCI_MARKERDELETE.
Referenced by on_sci_notify(), and sci_toggle_marker_at_line().
void sci_empty_undo_buffer | ( | ScintillaObject * | sci | ) |
Definition at line 353 of file sciwrappers.c.
References sci, and SCI_EMPTYUNDOBUFFER.
Referenced by document_new_file(), document_open_file_full(), and on_config_file_clicked().
void sci_end_undo_action | ( | ScintillaObject * | sci | ) |
Ends grouping a set of edits together as one Undo action.
sci | Scintilla GtkWidget . |
Definition at line 341 of file sciwrappers.c.
References sci, and SCI_ENDUNDOACTION.
Referenced by document_replace_range(), document_replace_sel(), editor_complete_snippet(), editor_do_comment(), editor_do_comment_toggle(), editor_do_uncomment(), editor_indent(), editor_indentation_by_one_space(), editor_insert_multiline_comment(), editor_replace_spaces(), editor_replace_tabs(), editor_smart_line_indentation(), editor_strip_trailing_spaces(), insert_closing_tag(), insert_comment_template(), insert_date(), insert_include(), join_paragraph(), on_comments_changelog_activate(), on_comments_fileheader_activate(), on_comments_function_activate(), and reflow_paragraph().
void sci_ensure_line_is_visible | ( | ScintillaObject * | sci, |
gint | line | ||
) |
Makes line visible (folding may have hidden it).
sci | Scintilla widget. |
line | Line number. |
Definition at line 816 of file sciwrappers.c.
References line, sci, and SCI_ENSUREVISIBLE.
Referenced by document_find_text(), document_search_bar_find(), and editor_display_current_line().
gint sci_find_matching_brace | ( | ScintillaObject * | sci, |
gint | pos | ||
) |
Finds a matching brace at pos.
sci | Scintilla widget. |
pos | Position. |
Definition at line 1291 of file sciwrappers.c.
References pos, sci, and SCI_BRACEMATCH.
Referenced by auto_close_chars(), autocomplete_scope(), delay_match_brace(), editor_show_calltip(), get_fold_header_after(), and goto_matching_brace().
gint sci_find_text | ( | ScintillaObject * | sci, |
gint | flags, | ||
struct Sci_TextToFind * | ttf | ||
) |
Finds text in the document.
The ttf argument should be a pointer to a Sci_TextToFind structure which contains the text to find and the range in which the text should be searched.
Please refer to the Scintilla documentation for a more detailed description.
sci | Scintilla widget. |
flags | Bitmask of Scintilla search flags (SCFIND_* , see Scintilla documentation). |
ttf | Pointer to a TextToFind structure which contains the text to find and the range. |
-1
. The chrgText.cpMin
and chrgText.cpMax
members of TextToFind
are filled in with the start and end positions of the found text. Definition at line 995 of file sciwrappers.c.
References sci, and SCI_FINDTEXT.
Referenced by detect_tabs_and_spaces(), document_search_bar_find(), editor_replace_spaces(), editor_replace_tabs(), find_in_current_style(), and search_find_text().
gchar sci_get_char_at | ( | ScintillaObject * | sci, |
gint | pos | ||
) |
Gets a character.
sci | Scintilla widget. |
pos | Position. |
Definition at line 889 of file sciwrappers.c.
References pos, sci, and SCI_GETCHARAT.
Referenced by at_eol(), autocomplete_scope(), brace_match(), change_tab_indentation(), check_line_breaking(), delay_match_brace(), detect_indent_width(), document_detect_indent_type(), editor_complete_snippet(), editor_highlight_braces(), editor_indentation_by_one_space(), editor_insert_color(), editor_show_calltip(), editor_start_auto_complete(), editor_strip_line_trailing_spaces(), find_previous_brace(), find_start_bracket(), get_brace_indent(), get_fold_header_after(), get_line_column_from_pos(), get_python_indent(), get_sci_line_code_end_position(), get_xml_indent(), goto_matching_brace(), handle_xml(), insert_closing_tag(), parse_cpp_function_at_line(), split_line(), write_html_file(), and write_latex_file().
gint sci_get_col_from_position | ( | ScintillaObject * | sci, |
gint | position | ||
) |
Gets the column number relative to the start of the line that position is on.
sci | Scintilla widget. |
position | Position. |
Definition at line 480 of file sciwrappers.c.
References position, sci, and SCI_GETCOLUMN.
Referenced by auto_multiline(), check_line_breaking(), create_statusbar_statistics(), delay_match_brace(), editor_replace_tabs(), editor_select_lines(), editor_strip_trailing_spaces(), sci_deselect_last_newline(), split_line(), and ui_update_statusbar().
gchar * sci_get_contents | ( | ScintillaObject * | sci, |
gint | buffer_len | ||
) |
Allocates and fills a buffer with text from the start of the document.
sci | Scintilla widget. |
buffer_len | Buffer length to allocate, including the terminating null char, e.g. sci_get_length() + 1. Alternatively use -1 to get all text (since Geany 1.23). |
Definition at line 743 of file sciwrappers.c.
References sci, sci_get_length(), SCI_GETTEXT, and text.
Referenced by document_clone(), and tools_word_count().
gchar * sci_get_contents_range | ( | ScintillaObject * | sci, |
gint | start, | ||
gint | end | ||
) |
Gets text between start and end.
sci | Scintilla widget. |
start | Start position. |
end | End position. |
Definition at line 1104 of file sciwrappers.c.
References NULL, sci, sci_get_text_range(), and text.
Referenced by get_doc_words(), get_xml_indent(), insert_indent_after_line(), parse_cpp_function_at_line(), and parse_function_at_line().
gint sci_get_current_line | ( | ScintillaObject * | sci | ) |
Gets current line number.
sci | Scintilla widget. |
Definition at line 1190 of file sciwrappers.c.
References sci, SCI_GETCURRENTPOS, and SCI_LINEFROMPOSITION.
Referenced by build_replace_placeholder(), cb_func_document_action(), cb_func_goto_action(), check_line_breaking(), editor_display_current_line(), editor_goto_line(), editor_indent(), editor_scroll_to_line(), editor_select_indent_block(), editor_select_paragraph(), get_current_tag_name(), get_current_tag_name_cached(), goto_tag(), insert_line_before(), on_new_line_added(), real_uncomment_multiline(), reflow_paragraph(), and split_line().
gint sci_get_current_position | ( | ScintillaObject * | sci | ) |
Gets the cursor position.
sci | Scintilla widget. |
Definition at line 507 of file sciwrappers.c.
References sci, and SCI_GETCURRENTPOS.
Referenced by autocomplete_scope(), cb_func_editor_action(), cb_func_search_action(), check_snippet_completion(), delay_match_brace(), document_reload_force(), editor_find_current_word_sciwc(), editor_indent(), editor_replace_spaces(), editor_replace_tabs(), editor_show_calltip(), find_in_current_style(), find_next_snippet_indicator(), get_doc_words(), get_session_file_string(), get_xml_indent(), goto_matching_brace(), goto_popup_position_func(), ht_editor_notify_cb(), insert_comment_template(), insert_date(), insert_include(), insert_multiline_comment(), navqueue_go_back(), navqueue_goto_line(), on_char_added(), on_editor_button_press_event(), on_show_color_chooser1_activate(), on_snippet_keybinding_activate(), on_toggle_case1_activate(), on_update_ui(), partial_complete(), read_current_word(), sc_insert(), sci_set_anchor(), search_find_next(), set_cursor_position(), sync_to_current(), and ui_update_statusbar().
gint sci_get_cursor_virtual_space | ( | ScintillaObject * | sci | ) |
Definition at line 513 of file sciwrappers.c.
References SC_SEL_RECTANGLE, SC_SEL_THIN, sci, sci_get_selection_mode(), SCI_GETMAINSELECTION, SCI_GETRECTANGULARSELECTIONCARETVIRTUALSPACE, and SCI_GETSELECTIONNCARETVIRTUALSPACE.
Referenced by ui_update_statusbar().
gint sci_get_end_styled | ( | ScintillaObject * | sci | ) |
Definition at line 859 of file sciwrappers.c.
References sci, and SCI_GETENDSTYLED.
Referenced by brace_match().
gint sci_get_eol_mode | ( | ScintillaObject * | sci | ) |
Definition at line 262 of file sciwrappers.c.
References sci, and SCI_GETEOLMODE.
Referenced by convert_eol(), create_statusbar_statistics(), document_redo(), document_save_file(), document_undo(), editor_get_eol_char(), editor_get_eol_char_len(), editor_get_eol_char_mode(), editor_get_eol_char_name(), on_char_added(), and ui_document_show_hide().
gint sci_get_first_visible_line | ( | ScintillaObject * | sci | ) |
Definition at line 1216 of file sciwrappers.c.
References sci, and SCI_GETFIRSTVISIBLELINE.
Referenced by editor_toggle_fold(), and fold_all().
gboolean sci_get_fold_expanded | ( | ScintillaObject * | sci, |
gint | line | ||
) |
Definition at line 841 of file sciwrappers.c.
References line, sci, and SCI_GETFOLDEXPANDED.
Referenced by expand(), fold_all(), and fold_changed().
gint sci_get_fold_level | ( | ScintillaObject * | sci, |
gint | line | ||
) |
Definition at line 822 of file sciwrappers.c.
References line, sci, and SCI_GETFOLDLEVEL.
Referenced by editor_toggle_fold(), fold_all(), get_current_tag_name(), get_current_tag_name_cached(), and get_fold_header_after().
gint sci_get_fold_parent | ( | ScintillaObject * | sci, |
gint | start_line | ||
) |
Definition at line 829 of file sciwrappers.c.
References sci, and SCI_GETFOLDPARENT.
Referenced by editor_toggle_fold(), fold_changed(), and get_current_tag_name().
gint sci_get_length | ( | ScintillaObject * | sci | ) |
Gets the length of all text.
sci | Scintilla widget. |
Definition at line 656 of file sciwrappers.c.
References sci, and SCI_GETLENGTH.
Referenced by auto_multiline(), brace_match(), detect_tabs_and_spaces(), document_find_text(), document_replace_all(), document_save_file(), document_search_bar_find(), document_update_tags(), draw_page(), editor_indent(), editor_indicator_clear(), editor_replace_spaces(), editor_replace_tabs(), find_document_usage(), find_in_current_style(), find_next_snippet_indicator(), find_regex(), get_doc_words(), sci_get_contents(), sci_marker_previous(), search_mark_all(), setup_range(), ui_update_statusbar(), write_html_file(), and write_latex_file().
gint sci_get_lexer | ( | ScintillaObject * | sci | ) |
Gets the currently used lexer.
sci | Scintilla widget. |
Definition at line 667 of file sciwrappers.c.
References sci, and SCI_GETLEXER.
Referenced by auto_multiline(), autocomplete_check_html(), editor_set_indentation_guides(), editor_show_calltip(), editor_start_auto_complete(), get_brace_indent(), get_current_tag_name(), get_fold_header_after(), get_indent_size_after_line(), get_multiline_comment_style(), get_sci_line_code_end_position(), get_xml_indent(), handle_xml(), ht_editor_notify_cb(), lexer_has_braces(), parse_function_at_line(), and sci_set_lexer().
gchar * sci_get_line | ( | ScintillaObject * | sci, |
gint | line_num | ||
) |
Gets line contents.
sci | Scintilla widget. |
line_num | Line number. |
NULL-terminated
copy of the line text. Definition at line 713 of file sciwrappers.c.
References sci, sci_get_string(), and SCI_GETLINE.
Referenced by auto_multiline(), close_block(), editor_indicator_set_on_line(), editor_insert_text_block(), filetypes_detect_from_document(), find_document_usage(), read_current_word(), and read_indent().
gint sci_get_line_count | ( | ScintillaObject * | sci | ) |
Gets the total number of lines.
sci | Scintilla widget. |
Definition at line 555 of file sciwrappers.c.
References sci, and SCI_GETLINECOUNT.
Referenced by auto_update_margin_width(), create_statusbar_statistics(), detect_indent_width(), detect_tabs_and_spaces(), document_detect_indent_type(), document_open_file_full(), editor_ensure_final_newline(), editor_goto_line(), editor_strip_trailing_spaces(), find_block_stop(), find_paragraph_stop(), find_regex(), fold_all(), get_fold_header_after(), and get_line_number_width().
gint sci_get_line_end_position | ( | ScintillaObject * | sci, |
gint | line | ||
) |
Gets the position at the end of a line.
sci | Scintilla widget. |
line | Line. |
Definition at line 592 of file sciwrappers.c.
References line, sci, and SCI_GETLINEENDPOSITION.
Referenced by at_eol(), check_line_breaking(), close_block(), editor_do_comment(), editor_do_comment_toggle(), editor_do_uncomment(), editor_indicator_set_on_line(), editor_strip_line_trailing_spaces(), find_regex(), get_brace_indent(), get_fold_header_after(), get_sci_line_code_end_position(), reflow_lines(), reflow_paragraph(), sci_deselect_last_newline(), sci_is_blank_line(), and split_line().
gint sci_get_line_from_position | ( | ScintillaObject * | sci, |
gint | position | ||
) |
Gets the line number from position.
sci | Scintilla widget. |
position | Position. |
Definition at line 469 of file sciwrappers.c.
References position, sci, and SCI_LINEFROMPOSITION.
Referenced by at_eol(), close_block(), document_find_text(), document_replace_sel(), document_search_bar_find(), editor_do_comment(), editor_do_comment_toggle(), editor_do_uncomment(), editor_goto_pos(), editor_indent(), editor_indentation_by_one_space(), editor_insert_multiline_comment(), editor_insert_text_block(), editor_replace_spaces(), editor_select_lines(), editor_smart_line_indentation(), editor_strip_trailing_spaces(), ensure_range_visible(), find_document_usage(), find_regex(), get_fold_header_after(), get_line_column_from_pos(), goto_popup_position_func(), join_lines(), on_margin_click(), on_sci_notify(), read_current_word(), read_indent(), real_uncomment_multiline(), reflow_lines(), sci_deselect_last_newline(), sci_marker_previous(), ui_update_statusbar(), write_html_file(), and write_latex_file().
gint sci_get_line_indent_position | ( | ScintillaObject * | sci, |
gint | line | ||
) |
Definition at line 1271 of file sciwrappers.c.
References line, sci, and SCI_GETLINEINDENTPOSITION.
Referenced by auto_multiline(), detect_indent_width(), editor_indent(), editor_replace_spaces(), insert_indent_after_line(), insert_line_before(), and sci_is_blank_line().
gint sci_get_line_indentation | ( | ScintillaObject * | sci, |
gint | line | ||
) |
Gets the indentation width of a line.
sci | Scintilla widget. |
line | Line to get the indentation from. |
Definition at line 1376 of file sciwrappers.c.
References line, sci, and SCI_GETLINEINDENTATION.
Referenced by change_tab_indentation(), close_block(), detect_indent_width(), document_detect_indent_type(), editor_change_line_indent(), find_block_stop(), get_indent_size_after_line(), insert_indent_after_line(), and reflow_lines().
gboolean sci_get_line_is_visible | ( | ScintillaObject * | sci, |
gint | line | ||
) |
Checks if a line is visible (folding may have hidden it).
sci | Scintilla widget. |
line | Line number. |
Definition at line 806 of file sciwrappers.c.
References line, sci, and SCI_GETLINEVISIBLE.
Referenced by fold_changed().
gint sci_get_line_length | ( | ScintillaObject * | sci, |
gint | line | ||
) |
Gets line length.
sci | Scintilla widget. |
line | Line number. |
Definition at line 689 of file sciwrappers.c.
References line, sci, and SCI_LINELENGTH.
Referenced by document_replace_sel(), editor_indent(), read_indent(), and sci_delete_line().
gint sci_get_lines_selected | ( | ScintillaObject * | sci | ) |
Definition at line 1199 of file sciwrappers.c.
References sci, SCI_GETSELECTIONEND, SCI_GETSELECTIONSTART, and SCI_LINEFROMPOSITION.
Referenced by create_statusbar_statistics(), document_replace_sel(), duplicate_lines(), editor_get_default_selection(), editor_indent(), and reflow_lines().
gint sci_get_overtype | ( | ScintillaObject * | sci | ) |
Definition at line 1297 of file sciwrappers.c.
References sci, and SCI_GETOVERTYPE.
Referenced by create_statusbar_statistics().
gint sci_get_pos_at_line_sel_end | ( | ScintillaObject * | sci, |
gint | line | ||
) |
Definition at line 1321 of file sciwrappers.c.
References line, sci, and SCI_GETLINESELENDPOSITION.
Referenced by document_replace_sel().
gint sci_get_pos_at_line_sel_start | ( | ScintillaObject * | sci, |
gint | line | ||
) |
Definition at line 1315 of file sciwrappers.c.
References line, sci, and SCI_GETLINESELSTARTPOSITION.
Referenced by document_replace_sel().
gint sci_get_position_after | ( | ScintillaObject * | sci, |
gint | start | ||
) |
Definition at line 1406 of file sciwrappers.c.
References sci, and SCI_POSITIONAFTER.
gint sci_get_position_from_col | ( | ScintillaObject * | sci, |
gint | line, | ||
gint | col | ||
) |
Definition at line 486 of file sciwrappers.c.
References line, sci, and SCI_FINDCOLUMN.
Referenced by check_line_breaking(), and split_line().
gint sci_get_position_from_line | ( | ScintillaObject * | sci, |
gint | line | ||
) |
Gets the position for the start of line.
sci | Scintilla widget. |
line | Line. |
Definition at line 497 of file sciwrappers.c.
References line, sci, and SCI_POSITIONFROMLINE.
Referenced by change_tab_indentation(), check_line_breaking(), close_block(), document_detect_indent_type(), document_replace_sel(), editor_do_comment(), editor_do_comment_toggle(), editor_do_uncomment(), editor_ensure_final_newline(), editor_get_filetype_at_line(), editor_goto_line(), editor_indent(), editor_indicator_set_on_line(), editor_insert_multiline_comment(), editor_insert_text_block(), editor_select_lines(), editor_smart_line_indentation(), editor_strip_line_trailing_spaces(), find_regex(), get_brace_indent(), get_fold_header_after(), get_line_column_from_pos(), get_sci_line_code_end_position(), get_xml_indent(), insert_indent_after_line(), join_lines(), navqueue_goto_line(), on_comments_function_activate(), parse_cpp_function_at_line(), parse_function_at_line(), read_current_word(), real_comment_multiline(), reflow_lines(), replace_header_filename(), sci_delete_line(), sci_set_current_line(), smart_line_indentation(), and split_line().
gint sci_get_position_from_xy | ( | ScintillaObject * | sci, |
gint | x, | ||
gint | y, | ||
gboolean | nearby | ||
) |
Definition at line 794 of file sciwrappers.c.
References sci, SCI_POSITIONFROMPOINT, and SCI_POSITIONFROMPOINTCLOSE.
Referenced by on_editor_button_press_event().
void sci_get_selected_text | ( | ScintillaObject * | sci, |
gchar * | text | ||
) |
Gets selected text.
sci | Scintilla widget. |
text | Text buffer; must be allocated sci_get_selected_text_length() + 1 bytes for null-termination. |
Definition at line 764 of file sciwrappers.c.
References sci, SCI_GETSELTEXT, and text.
gint sci_get_selected_text_length | ( | ScintillaObject * | sci | ) |
Gets selected text length.
sci | Scintilla widget. |
Definition at line 788 of file sciwrappers.c.
References sci, and SCI_GETSELTEXT.
Referenced by create_statusbar_statistics().
gchar * sci_get_selection_contents | ( | ScintillaObject * | sci | ) |
Gets selected text.
sci | Scintilla widget. |
Definition at line 778 of file sciwrappers.c.
References sci, sci_get_string(), and SCI_GETSELTEXT.
Referenced by document_clone(), editor_get_default_selection(), find_usage(), get_current_word_or_sel(), on_context_action1_activate(), on_toggle_case1_activate(), replace_special_character(), search_find_selection(), tools_execute_custom_command(), and tools_word_count().
gint sci_get_selection_end | ( | ScintillaObject * | sci | ) |
Gets the selection end position.
sci | Scintilla widget. |
Definition at line 636 of file sciwrappers.c.
References sci, and SCI_GETSELECTIONEND.
Referenced by create_statusbar_statistics(), document_find_text(), document_replace_sel(), document_replace_text(), document_search_bar_find(), editor_do_comment(), editor_do_comment_toggle(), editor_do_uncomment(), editor_indent(), editor_indentation_by_one_space(), editor_insert_color(), editor_replace_spaces(), editor_replace_tabs(), editor_select_lines(), editor_smart_line_indentation(), editor_strip_trailing_spaces(), join_lines(), and sci_deselect_last_newline().
gint sci_get_selection_mode | ( | ScintillaObject * | sci | ) |
Gets selection mode.
sci | Scintilla widget. |
Definition at line 1331 of file sciwrappers.c.
References sci, and SCI_GETSELECTIONMODE.
Referenced by check_line_breaking(), document_replace_sel(), and sci_get_cursor_virtual_space().
gint sci_get_selection_start | ( | ScintillaObject * | sci | ) |
Gets the selection start position.
sci | Scintilla widget. |
Definition at line 626 of file sciwrappers.c.
References sci, and SCI_GETSELECTIONSTART.
Referenced by create_statusbar_statistics(), document_find_text(), document_replace_sel(), document_replace_text(), document_search_bar_find(), editor_do_comment(), editor_do_comment_toggle(), editor_do_uncomment(), editor_indent(), editor_indentation_by_one_space(), editor_insert_color(), editor_replace_spaces(), editor_replace_tabs(), editor_select_lines(), editor_smart_line_indentation(), editor_strip_trailing_spaces(), join_lines(), on_editor_button_press_event(), reflow_lines(), and sci_deselect_last_newline().
gchar * sci_get_string | ( | ScintillaObject * | sci, |
guint | msg, | ||
gulong | wParam | ||
) |
Definition at line 697 of file sciwrappers.c.
References sci.
Referenced by editor_complete_word_part(), sci_get_line(), sci_get_selection_contents(), and sci_text_height_cached().
gint sci_get_style_at | ( | ScintillaObject * | sci, |
gint | position | ||
) |
Gets style ID at position.
sci | Scintilla widget. |
position | Position. |
Definition at line 1051 of file sciwrappers.c.
References position, sci, and SCI_GETSTYLEAT.
Referenced by auto_multiline(), brace_match(), create_statusbar_statistics(), editor_do_comment(), editor_do_comment_toggle(), editor_do_uncomment(), editor_get_filetype_at_line(), editor_show_calltip(), editor_start_auto_complete(), find_in_current_style(), get_brace_indent(), get_fold_header_after(), get_multiline_comment_style(), get_python_indent(), get_sci_line_code_end_position(), get_xml_indent(), handle_xml(), on_update_ui(), parse_cpp_function_at_line(), parse_function_at_line(), write_html_file(), and write_latex_file().
gint sci_get_tab_width | ( | ScintillaObject * | sci | ) |
Gets display tab width (this is not indent width, see GeanyIndentPrefs).
sci | Scintilla widget. |
Definition at line 878 of file sciwrappers.c.
References sci, and SCI_GETTABWIDTH.
Referenced by count_indent_size(), editor_replace_spaces(), editor_replace_tabs(), fix_indentation(), write_html_file(), and write_latex_file().
void sci_get_text | ( | ScintillaObject * | sci, |
gint | len, | ||
gchar * | text | ||
) |
Gets all text.
sci | Scintilla widget. |
len | Length of text buffer, usually sci_get_length() + 1. |
text | Text buffer; must be allocated len + 1 bytes for null-termination. |
Definition at line 727 of file sciwrappers.c.
References sci, SCI_GETTEXT, and text.
Referenced by document_save_file().
void sci_get_text_range | ( | ScintillaObject * | sci, |
gint | start, | ||
gint | end, | ||
gchar * | text | ||
) |
Gets text between start and end.
sci | Scintilla widget. |
start | Start. |
end | End. |
text | Text will be zero terminated and must be allocated (end - start + 1) bytes. |
Definition at line 1085 of file sciwrappers.c.
References Sci_TextRange::chrg, Sci_CharacterRange::cpMax, Sci_CharacterRange::cpMin, Sci_TextRange::lpstrText, sci, SCI_GETTEXTRANGE, and text.
Referenced by editor_do_comment(), editor_do_comment_toggle(), editor_do_uncomment(), editor_find_current_word_sciwc(), handle_xml(), match_last_chars(), save_convert_to_encoding(), and sci_get_contents_range().
void sci_goto_line | ( | ScintillaObject * | sci, |
gint | line, | ||
gboolean | unfold | ||
) |
Jumps to the specified line in the document.
If unfold is set and line is hidden by a fold, it is unfolded first to ensure it is visible.
sci | Scintilla widget. |
line | Line. |
unfold | Whether to unfold first. |
Definition at line 1033 of file sciwrappers.c.
References line, sci, SCI_ENSUREVISIBLE, and SCI_GOTOLINE.
Referenced by set_cursor_position().
void sci_goto_pos | ( | ScintillaObject * | sci, |
gint | pos, | ||
gboolean | unfold | ||
) |
Definition at line 929 of file sciwrappers.c.
References pos, sci, SCI_ENSUREVISIBLE, SCI_GOTOPOS, and SCI_LINEFROMPOSITION.
Referenced by document_find_text(), document_replace_range(), document_replace_text(), document_search_bar_find(), editor_goto_pos(), insert_date(), insert_include(), on_comments_changelog_activate(), on_comments_fileheader_activate(), and reflow_paragraph().
gboolean sci_has_selection | ( | ScintillaObject * | sci | ) |
Checks if there's a selection.
sci | Scintilla widget. |
Definition at line 920 of file sciwrappers.c.
References sci, SCI_GETSELECTIONEND, and SCI_GETSELECTIONSTART.
Referenced by cb_func_search_action(), document_clone(), duplicate_lines(), editor_complete_snippet(), editor_insert_color(), editor_replace_spaces(), editor_replace_tabs(), editor_strip_trailing_spaces(), find_usage(), get_current_word_or_sel(), goto_tag(), join_paragraph(), on_context_action1_activate(), on_delete1_activate(), on_editor_button_press_event(), on_toggle_case1_activate(), reflow_paragraph(), replace_special_character(), search_find_selection(), tools_execute_custom_command(), tools_word_count(), ui_update_menu_copy_items(), and ui_update_popup_copy_items().
void sci_indicator_clear | ( | ScintillaObject * | sci, |
gint | pos, | ||
gint | len | ||
) |
Clears the currently set indicator from a range of text.
Starting at pos, len characters long. In order to make this function properly, you need to set the current indicator before with sci_indicator_set().
sci | Scintilla widget. |
pos | Starting position. |
len | Length. |
Definition at line 1259 of file sciwrappers.c.
References pos, sci, and SCI_INDICATORCLEARRANGE.
Referenced by editor_indicator_clear().
void sci_indicator_fill | ( | ScintillaObject * | sci, |
gint | pos, | ||
gint | len | ||
) |
Definition at line 1240 of file sciwrappers.c.
References pos, sci, and SCI_INDICATORFILLRANGE.
Referenced by editor_indicator_set_on_range().
void sci_indicator_set | ( | ScintillaObject * | sci, |
gint | indic | ||
) |
Sets the current indicator.
This is necessary to define an indicator for a range of text or clearing indicators for a range of text.
sci | Scintilla widget. |
indic | The indicator number to set. |
Definition at line 1234 of file sciwrappers.c.
References sci, and SCI_SETINDICATORCURRENT.
Referenced by editor_goto_next_snippet_cursor(), editor_indicator_clear(), and editor_indicator_set_on_range().
void sci_insert_text | ( | ScintillaObject * | sci, |
gint | pos, | ||
const gchar * | text | ||
) |
Inserts text.
sci | Scintilla widget. |
pos | Position, or -1 for current. |
text | Text. |
Definition at line 1133 of file sciwrappers.c.
References pos, sci, SCI_INSERTTEXT, and text.
Referenced by change_tab_indentation(), editor_do_comment(), editor_ensure_final_newline(), editor_indentation_by_one_space(), editor_insert_multiline_comment(), editor_insert_text_block(), insert_comment_template(), insert_date(), insert_include(), on_comments_changelog_activate(), on_comments_fileheader_activate(), on_comments_function_activate(), partial_complete(), real_comment_multiline(), sc_insert(), smart_line_indentation(), and split_line().
gboolean sci_is_marker_set_at_line | ( | ScintillaObject * | sci, |
gint | line, | ||
gint | marker | ||
) |
Checks if a line has a marker set.
sci | Scintilla widget. |
line | Line number. |
marker | Marker number. |
Definition at line 411 of file sciwrappers.c.
References line, sci, and SCI_MARKERGET.
Referenced by on_sci_notify(), and sci_toggle_marker_at_line().
gboolean sci_is_modified | ( | ScintillaObject * | sci | ) |
Definition at line 359 of file sciwrappers.c.
References sci, and SCI_GETMODIFY.
Referenced by update_changed_state().
void sci_line_duplicate | ( | ScintillaObject * | sci | ) |
Definition at line 1116 of file sciwrappers.c.
References sci, and SCI_LINEDUPLICATE.
Referenced by duplicate_lines().
void sci_lines_join | ( | ScintillaObject * | sci | ) |
Definition at line 1412 of file sciwrappers.c.
References sci, and SCI_LINESJOIN.
Referenced by join_lines().
void sci_marker_delete_all | ( | ScintillaObject * | sci, |
gint | marker | ||
) |
Definition at line 1040 of file sciwrappers.c.
References sci, and SCI_MARKERDELETEALL.
Referenced by editor_goto_pos(), editor_indicator_clear_errors(), and on_remove_markers1_activate().
gint sci_marker_next | ( | ScintillaObject * | sci, |
gint | line, | ||
gint | marker_mask, | ||
gboolean | wrap | ||
) |
Definition at line 434 of file sciwrappers.c.
References line, sci, and SCI_MARKERNEXT.
Referenced by cb_func_goto_action().
gint sci_marker_previous | ( | ScintillaObject * | sci, |
gint | line, | ||
gint | marker_mask, | ||
gboolean | wrap | ||
) |
Definition at line 448 of file sciwrappers.c.
References line, sci, sci_get_length(), sci_get_line_from_position(), and SCI_MARKERPREVIOUS.
Referenced by cb_func_goto_action().
void sci_move_selected_lines_down | ( | ScintillaObject * | sci | ) |
Definition at line 1424 of file sciwrappers.c.
References sci, and SCI_MOVESELECTEDLINESDOWN.
Referenced by cb_func_editor_action().
void sci_move_selected_lines_up | ( | ScintillaObject * | sci | ) |
Definition at line 1430 of file sciwrappers.c.
References sci, and SCI_MOVESELECTEDLINESUP.
Referenced by cb_func_editor_action().
void sci_paste | ( | ScintillaObject * | sci | ) |
Definition at line 610 of file sciwrappers.c.
References sci, and SCI_PASTE.
Referenced by on_paste1_activate().
void sci_redo | ( | ScintillaObject * | sci | ) |
Definition at line 320 of file sciwrappers.c.
References sci, sci_can_redo(), and SCI_REDO.
Referenced by document_redo().
void sci_replace_sel | ( | ScintillaObject * | sci, |
const gchar * | text | ||
) |
Replaces selection.
sci | Scintilla widget. |
text | Text. |
Definition at line 646 of file sciwrappers.c.
References sci, SCI_REPLACESEL, and text.
Referenced by change_tab_indentation(), close_block(), editor_do_uncomment(), editor_indentation_by_one_space(), editor_insert_color(), ht_editor_notify_cb(), insert_closing_tag(), on_toggle_case1_activate(), replace_special_character(), smart_line_indentation(), snippets_complete_constructs(), and tools_execute_custom_command().
gint sci_replace_target | ( | ScintillaObject * | sci, |
const gchar * | text, | ||
gboolean | regex | ||
) |
Definition at line 1154 of file sciwrappers.c.
References sci, SCI_REPLACETARGET, SCI_REPLACETARGETRE, and text.
Referenced by editor_replace_spaces(), editor_replace_tabs(), editor_strip_line_trailing_spaces(), replace_header_filename(), and search_replace_match().
void sci_scroll_caret | ( | ScintillaObject * | sci | ) |
Scrolls the cursor in view.
sci | Scintilla widget. |
Definition at line 955 of file sciwrappers.c.
References sci, and SCI_SCROLLCARET.
Referenced by check_line_breaking(), document_search_bar_find(), editor_display_current_line(), editor_do_comment_toggle(), editor_scroll_to_line(), on_snippet_keybinding_activate(), and snippets_complete_constructs().
void sci_scroll_columns | ( | ScintillaObject * | sci, |
gint | columns | ||
) |
Definition at line 961 of file sciwrappers.c.
References sci, and SCI_LINESCROLL.
Referenced by on_editor_scroll_event().
gint sci_search_next | ( | ScintillaObject * | sci, |
gint | flags, | ||
const gchar * | text | ||
) |
Definition at line 967 of file sciwrappers.c.
References sci, SCI_SEARCHNEXT, and text.
Referenced by search_find_next().
gint sci_search_prev | ( | ScintillaObject * | sci, |
gint | flags, | ||
const gchar * | text | ||
) |
Definition at line 974 of file sciwrappers.c.
References sci, SCI_SEARCHPREV, and text.
Referenced by search_find_prev().
void sci_select_all | ( | ScintillaObject * | sci | ) |
Definition at line 1265 of file sciwrappers.c.
References sci, and SCI_SELECTALL.
Referenced by on_config_file_clicked(), and on_menu_select_all1_activate().
void sci_selection_duplicate | ( | ScintillaObject * | sci | ) |
Definition at line 1122 of file sciwrappers.c.
References sci, and SCI_SELECTIONDUPLICATE.
Referenced by duplicate_lines().
void sci_send_command | ( | ScintillaObject * | sci, |
gint | cmd | ||
) |
Sends Scintilla commands without any parameters.
sci | The Scintilla GtkWidget . |
cmd | SCI_COMMAND . |
Definition at line 1180 of file sciwrappers.c.
References sci.
Referenced by cb_func_clipboard_action(), cb_func_editor_action(), cb_func_goto_action(), cb_func_select_action(), check_line_breaking(), editor_start_auto_complete(), insert_line_after(), insert_line_before(), on_editor_scroll_event(), on_toggle_case1_activate(), and show_autocomplete().
sptr_t sci_send_message_internal | ( | const gchar * | file, |
guint | line, | ||
ScintillaObject * | sci, | ||
guint | msg, | ||
uptr_t | wparam, | ||
sptr_t | lparam | ||
) |
Definition at line 46 of file sciwrappers.c.
References line, SC_STATUS_BADALLOC, SC_STATUS_FAILURE, SC_STATUS_WARN_REGEX, SC_STATUS_WARN_START, sci, SCI_GETSTATUS, SCI_SETSTATUS, SCI_STATUS_FORMAT_STRING, and scintilla_send_message().
void sci_set_anchor | ( | ScintillaObject * | sci, |
gint | pos | ||
) |
Definition at line 943 of file sciwrappers.c.
References pos, sci, sci_get_current_position(), and SCI_SETANCHOR.
Referenced by close_block(), editor_insert_multiline_comment(), join_paragraph(), and reflow_paragraph().
void sci_set_autoc_max_height | ( | ScintillaObject * | sci, |
gint | val | ||
) |
Definition at line 1277 of file sciwrappers.c.
References sci, and SCI_AUTOCSETMAXHEIGHT.
Referenced by editor_apply_update_prefs().
void sci_set_caret_policy_x | ( | ScintillaObject * | sci, |
gint | policy, | ||
gint | slop | ||
) |
Definition at line 1382 of file sciwrappers.c.
References sci, and SCI_SETXCARETPOLICY.
Referenced by create_new_sci().
void sci_set_caret_policy_y | ( | ScintillaObject * | sci, |
gint | policy, | ||
gint | slop | ||
) |
Definition at line 1388 of file sciwrappers.c.
References sci, and SCI_SETYCARETPOLICY.
Referenced by editor_apply_update_prefs().
void sci_set_codepage | ( | ScintillaObject * | sci, |
gint | cp | ||
) |
Definition at line 1057 of file sciwrappers.c.
References SC_CP_UTF8, sci, and SCI_SETCODEPAGE.
Referenced by create_new_sci().
void sci_set_current_line | ( | ScintillaObject * | sci, |
gint | line | ||
) |
Definition at line 544 of file sciwrappers.c.
References line, pos, sci, sci_get_position_from_line(), and sci_set_current_position().
Referenced by cb_func_goto_action(), and on_config_file_clicked().
void sci_set_current_position | ( | ScintillaObject * | sci, |
gint | position, | ||
gboolean | scroll_to_caret | ||
) |
Sets the cursor position.
sci | Scintilla widget. |
position | Position. |
scroll_to_caret | Whether to scroll the cursor in view. |
Definition at line 529 of file sciwrappers.c.
References position, sci, SCI_CHOOSECARETX, SCI_GOTOPOS, SCI_SETANCHOR, and SCI_SETCURRENTPOS.
Referenced by auto_close_chars(), check_line_breaking(), document_find_text(), editor_do_comment_toggle(), editor_indentation_by_one_space(), editor_insert_multiline_comment(), editor_insert_text_block(), editor_smart_line_indentation(), goto_matching_brace(), goto_tag(), insert_line_before(), on_editor_button_press_event(), partial_complete(), sci_set_current_line(), set_cursor_position(), and sync_to_current().
void sci_set_eol_mode | ( | ScintillaObject * | sci, |
gint | eolmode | ||
) |
Definition at line 268 of file sciwrappers.c.
References sci, and SCI_SETEOLMODE.
Referenced by convert_eol(), document_new_file(), document_open_file_full(), document_redo(), and document_undo().
void sci_set_folding_margin_visible | ( | ScintillaObject * | sci, |
gboolean | set | ||
) |
Definition at line 220 of file sciwrappers.c.
References margin_width_from_line_height(), sci, SCI_SETMARGINSENSITIVEN, SCI_SETMARGINWIDTHN, and set.
Referenced by editor_apply_update_prefs(), and update_margins().
void sci_set_font | ( | ScintillaObject * | sci, |
gint | style, | ||
const gchar * | font, | ||
gint | size | ||
) |
Sets the font for a particular style.
sci | Scintilla widget. |
style | The style. |
font | The font name. |
size | The font size. |
Definition at line 1019 of file sciwrappers.c.
References sci, and sci_set_font_fractional().
void sci_set_font_fractional | ( | ScintillaObject * | sci, |
gint | style, | ||
const gchar * | font, | ||
gdouble | size | ||
) |
Definition at line 1005 of file sciwrappers.c.
References SC_FONT_SIZE_MULTIPLIER, sci, SCI_STYLESETFONT, and SCI_STYLESETSIZEFRACTIONAL.
Referenced by sci_set_font(), and set_font().
void sci_set_indentation_guides | ( | ScintillaObject * | sci, |
gint | mode | ||
) |
Definition at line 901 of file sciwrappers.c.
References sci, and SCI_SETINDENTATIONGUIDES.
Referenced by editor_set_indentation_guides().
void sci_set_keywords | ( | ScintillaObject * | sci, |
guint | k, | ||
const gchar * | text | ||
) |
Definition at line 1160 of file sciwrappers.c.
References sci, SCI_SETKEYWORDS, and text.
Referenced by document_highlight_tags(), merge_type_keywords(), and styleset_from_mapping().
void sci_set_lexer | ( | ScintillaObject * | sci, |
guint | lexer_id | ||
) |
Definition at line 673 of file sciwrappers.c.
References sci, SCI_CLEARDOCUMENTSTYLE, sci_get_lexer(), and SCI_SETLEXER.
Referenced by styleset_default(), and styleset_from_mapping().
void sci_set_line_indentation | ( | ScintillaObject * | sci, |
gint | line, | ||
gint | indent | ||
) |
Sets the indentation of a line.
sci | Scintilla widget. |
line | Line to indent. |
indent | Indentation width. |
Definition at line 1362 of file sciwrappers.c.
References indent, line, sci, and SCI_SETLINEINDENTATION.
Referenced by change_tab_indentation(), close_block(), editor_change_line_indent(), join_lines(), and reflow_lines().
void sci_set_line_numbers | ( | ScintillaObject * | sci, |
gboolean | set | ||
) |
Definition at line 98 of file sciwrappers.c.
References sci, SCI_GETLINECOUNT, SCI_SETMARGINSENSITIVEN, SCI_SETMARGINWIDTHN, sci_text_width(), set, and STYLE_LINENUMBER.
Referenced by auto_update_margin_width(), begin_print(), document_new_file(), document_open_file_full(), editor_apply_update_prefs(), ui_toggle_editor_features(), and update_margins().
void sci_set_lines_wrapped | ( | ScintillaObject * | sci, |
gboolean | set | ||
) |
Definition at line 253 of file sciwrappers.c.
References SC_WRAP_NONE, SC_WRAP_WORD, sci, SCI_SETWRAPMODE, and set.
Referenced by create_new_sci(), document_clone(), and editor_set_line_wrapping().
void sci_set_mark_long_lines | ( | ScintillaObject * | sci, |
gint | type, | ||
gint | column, | ||
const gchar * | colour | ||
) |
Definition at line 118 of file sciwrappers.c.
References EDGE_BACKGROUND, EDGE_LINE, EDGE_NONE, sci, SCI_SETEDGECOLOUR, SCI_SETEDGECOLUMN, SCI_SETEDGEMODE, and utils_parse_color_to_bgr().
Referenced by editor_apply_update_prefs().
void sci_set_marker_at_line | ( | ScintillaObject * | sci, |
gint | line_number, | ||
gint | marker | ||
) |
Sets a line marker.
sci | Scintilla widget. |
line_number | Line number. |
marker | Marker number. |
Definition at line 388 of file sciwrappers.c.
References sci, and SCI_MARKERADD.
Referenced by editor_goto_pos(), on_sci_notify(), and sci_toggle_marker_at_line().
void sci_set_readonly | ( | ScintillaObject * | sci, |
gboolean | readonly | ||
) |
Definition at line 1166 of file sciwrappers.c.
References sci, and SCI_SETREADONLY.
Referenced by document_clone(), document_open_file_full(), document_save_file_as(), on_set_file_readonly1_toggled(), protect_document(), and unprotect_document().
void sci_set_savepoint | ( | ScintillaObject * | sci | ) |
Definition at line 895 of file sciwrappers.c.
References sci, and SCI_SETSAVEPOINT.
Referenced by document_open_file_full(), and document_save_file().
void sci_set_scroll_stop_at_last_line | ( | ScintillaObject * | sci, |
gboolean | set | ||
) |
Definition at line 1394 of file sciwrappers.c.
References sci, SCI_SETENDATLASTLINE, and set.
Referenced by editor_apply_update_prefs().
void sci_set_scrollbar_mode | ( | ScintillaObject * | sci, |
gboolean | visible | ||
) |
Definition at line 1347 of file sciwrappers.c.
References sci, SCI_SETHSCROLLBAR, and SCI_SETVSCROLLBAR.
Referenced by editor_apply_update_prefs().
void sci_set_search_anchor | ( | ScintillaObject * | sci | ) |
Definition at line 936 of file sciwrappers.c.
References sci, and SCI_SEARCHANCHOR.
Referenced by document_find_text().
void sci_set_selection | ( | ScintillaObject * | sci, |
gint | anchorPos, | ||
gint | currentPos | ||
) |
Definition at line 581 of file sciwrappers.c.
References sci, and SCI_SETSEL.
Referenced by change_tab_indentation(), editor_do_uncomment(), editor_goto_next_snippet_cursor(), editor_indentation_by_one_space(), editor_insert_text_block(), editor_replace_spaces(), editor_replace_tabs(), editor_select_indent_block(), editor_select_lines(), editor_select_paragraph(), editor_select_word(), insert_closing_tag(), sci_deselect_last_newline(), search_find_next(), and smart_line_indentation().
void sci_set_selection_end | ( | ScintillaObject * | sci, |
gint | position | ||
) |
Sets the selection end position.
sci | Scintilla widget. |
position | Position. |
Definition at line 575 of file sciwrappers.c.
References position, sci, and SCI_SETSELECTIONEND.
Referenced by document_replace_sel(), document_replace_text(), document_search_bar_find(), editor_do_comment(), editor_do_comment_toggle(), editor_do_uncomment(), editor_indentation_by_one_space(), editor_insert_color(), editor_insert_multiline_comment(), editor_smart_line_indentation(), ht_editor_notify_cb(), on_editor_button_press_event(), and snippets_complete_constructs().
void sci_set_selection_mode | ( | ScintillaObject * | sci, |
gint | mode | ||
) |
Sets selection mode.
sci | Scintilla widget. |
mode | Mode. |
Definition at line 1341 of file sciwrappers.c.
References sci, and SCI_SETSELECTIONMODE.
Referenced by document_replace_sel().
void sci_set_selection_start | ( | ScintillaObject * | sci, |
gint | position | ||
) |
Sets the selection start position.
sci | Scintilla widget. |
position | Position. |
Definition at line 565 of file sciwrappers.c.
References position, sci, and SCI_SETSELECTIONSTART.
Referenced by document_replace_sel(), document_replace_text(), document_search_bar_find(), editor_do_comment(), editor_do_comment_toggle(), editor_do_uncomment(), editor_indentation_by_one_space(), editor_insert_color(), editor_insert_multiline_comment(), editor_smart_line_indentation(), ht_editor_notify_cb(), on_toggle_case1_activate(), and snippets_complete_constructs().
void sci_set_symbol_margin | ( | ScintillaObject * | sci, |
gboolean | set | ||
) |
Definition at line 202 of file sciwrappers.c.
References margin_width_from_line_height(), sci, SCI_SETMARGINSENSITIVEN, SCI_SETMARGINWIDTHN, and set.
Referenced by editor_apply_update_prefs(), ui_toggle_editor_features(), and update_margins().
void sci_set_tab_indents | ( | ScintillaObject * | sci, |
gboolean | set | ||
) |
Definition at line 1303 of file sciwrappers.c.
References sci, SCI_SETTABINDENTS, and set.
Referenced by editor_apply_update_prefs().
void sci_set_tab_width | ( | ScintillaObject * | sci, |
gint | width | ||
) |
Definition at line 865 of file sciwrappers.c.
References sci, and SCI_SETTABWIDTH.
Referenced by detect_indent_width(), and editor_set_indent().
void sci_set_target_end | ( | ScintillaObject * | sci, |
gint | end | ||
) |
Definition at line 1147 of file sciwrappers.c.
References sci, and SCI_SETTARGETEND.
Referenced by editor_replace_spaces(), editor_replace_tabs(), editor_strip_line_trailing_spaces(), join_lines(), replace_header_filename(), and search_replace_match().
void sci_set_target_start | ( | ScintillaObject * | sci, |
gint | start | ||
) |
Definition at line 1140 of file sciwrappers.c.
References sci, and SCI_SETTARGETSTART.
Referenced by editor_replace_spaces(), editor_replace_tabs(), editor_strip_line_trailing_spaces(), join_lines(), replace_header_filename(), and search_replace_match().
void sci_set_text | ( | ScintillaObject * | sci, |
const gchar * | text | ||
) |
Sets all text.
sci | Scintilla widget. |
text | Text. |
Definition at line 293 of file sciwrappers.c.
References NULL, sci, SCI_SETTEXT, and text.
Referenced by document_new_file(), and document_open_file_full().
void sci_set_undo_collection | ( | ScintillaObject * | sci, |
gboolean | set | ||
) |
Definition at line 347 of file sciwrappers.c.
References sci, SCI_SETUNDOCOLLECTION, and set.
Referenced by document_new_file(), and document_open_file_full().
void sci_set_use_tabs | ( | ScintillaObject * | sci, |
gboolean | set | ||
) |
Definition at line 1309 of file sciwrappers.c.
References sci, SCI_SETUSETABS, and set.
Referenced by editor_set_indent().
void sci_set_visible_eols | ( | ScintillaObject * | sci, |
gboolean | set | ||
) |
Definition at line 238 of file sciwrappers.c.
References sci, SCI_SETVIEWEOL, and set.
Referenced by editor_apply_update_prefs(), and ui_toggle_editor_features().
void sci_set_visible_white_spaces | ( | ScintillaObject * | sci, |
gboolean | set | ||
) |
Definition at line 244 of file sciwrappers.c.
References sci, SCI_SETVIEWWS, SCWS_INVISIBLE, SCWS_VISIBLEALWAYS, and set.
Referenced by editor_apply_update_prefs(), and ui_toggle_editor_features().
void sci_start_undo_action | ( | ScintillaObject * | sci | ) |
Begins grouping a set of edits together as one Undo action.
You must call sci_end_undo_action() after making your edits.
sci | Scintilla GtkWidget . |
Definition at line 331 of file sciwrappers.c.
References sci, and SCI_BEGINUNDOACTION.
Referenced by document_replace_range(), document_replace_sel(), editor_complete_snippet(), editor_do_comment(), editor_do_comment_toggle(), editor_do_uncomment(), editor_indent(), editor_indentation_by_one_space(), editor_insert_multiline_comment(), editor_replace_spaces(), editor_replace_tabs(), editor_smart_line_indentation(), editor_strip_trailing_spaces(), insert_closing_tag(), insert_comment_template(), insert_date(), insert_include(), join_paragraph(), on_comments_changelog_activate(), on_comments_fileheader_activate(), on_comments_function_activate(), and reflow_paragraph().
|
static |
Definition at line 149 of file sciwrappers.c.
References sci, sci_get_string(), SCI_GETEXTRAASCENT, SCI_GETEXTRADESCENT, SCI_GETZOOM, SCI_STYLEGETFONT, SCI_STYLEGETSIZEFRACTIONAL, and SCI_TEXTHEIGHT.
Referenced by margin_width_from_line_height().
gint sci_text_width | ( | ScintillaObject * | sci, |
gint | styleNumber, | ||
const gchar * | text | ||
) |
Definition at line 1418 of file sciwrappers.c.
References sci, SCI_TEXTWIDTH, and text.
Referenced by sci_set_line_numbers().
void sci_toggle_fold | ( | ScintillaObject * | sci, |
gint | line | ||
) |
Definition at line 835 of file sciwrappers.c.
References line, sci, and SCI_TOGGLEFOLD.
Referenced by fold_all().
void sci_toggle_marker_at_line | ( | ScintillaObject * | sci, |
gint | line, | ||
gint | marker | ||
) |
Definition at line 420 of file sciwrappers.c.
References line, sci, sci_delete_marker_at_line(), sci_is_marker_set_at_line(), sci_set_marker_at_line(), and set.
Referenced by cb_func_goto_action(), and on_margin_click().
void sci_undo | ( | ScintillaObject * | sci | ) |
Definition at line 313 of file sciwrappers.c.
References sci, sci_can_undo(), and SCI_UNDO.
Referenced by document_undo().
void sci_use_popup | ( | ScintillaObject * | sci, |
gboolean | enable | ||
) |
Definition at line 907 of file sciwrappers.c.
References sci, and SCI_USEPOPUP.
Referenced by create_new_sci().
gint sci_word_end_position | ( | ScintillaObject * | sci, |
gint | position, | ||
gboolean | onlyWordCharacters | ||
) |
Definition at line 1442 of file sciwrappers.c.
References position, sci, and SCI_WORDENDPOSITION.
Referenced by editor_find_current_word_sciwc(), editor_select_word(), and get_doc_words().
gint sci_word_start_position | ( | ScintillaObject * | sci, |
gint | position, | ||
gboolean | onlyWordCharacters | ||
) |
Definition at line 1436 of file sciwrappers.c.
References position, sci, and SCI_WORDSTARTPOSITION.
Referenced by editor_find_current_word_sciwc(), and editor_select_word().
void sci_zoom_in | ( | ScintillaObject * | sci | ) |
Definition at line 365 of file sciwrappers.c.
References sci, and SCI_ZOOMIN.
Referenced by on_zoom_in1_activate().
void sci_zoom_off | ( | ScintillaObject * | sci | ) |
Definition at line 377 of file sciwrappers.c.
References sci, and SCI_SETZOOM.
Referenced by editor_set_font(), and on_normal_size1_activate().
void sci_zoom_out | ( | ScintillaObject * | sci | ) |
Definition at line 371 of file sciwrappers.c.
References sci, and SCI_ZOOMOUT.
Referenced by on_zoom_out1_activate().