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
  Fossies Dox: geany-1.38.tar.bz2  ("unofficial" and yet experimental doxygen-generated source code documentation)  

Go to the documentation of this file.
2 * sciwrappers.h - this file is part of Geany, a fast and lightweight IDE
3 *
4 * Copyright 2005 The Geany contributors
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License along
17 * with this program; if not, write to the Free Software Foundation, Inc.,
18 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19 */
24#include "geany.h" /* for GEANY_DEPRECATED */
25#include "gtkcompat.h" /* Needed by ScintillaWidget.h */
26#include "Scintilla.h" /* Needed by ScintillaWidget.h */
27#include "ScintillaWidget.h" /* for ScintillaObject */
33# ifndef NDEBUG
34# define SSM(s, m, w, l) sci_send_message_internal(__FILE__, __LINE__, s, m, w, l)
35sptr_t sci_send_message_internal (const gchar *file, guint line, ScintillaObject *sci,
36 guint msg, uptr_t wparam, sptr_t lparam);
37# else
38# define SSM(s, m, w, l) scintilla_send_message(s, m, w, l)
39# endif
42void sci_set_text (ScintillaObject *sci, const gchar *text);
43gboolean sci_has_selection (ScintillaObject *sci);
44void sci_end_undo_action (ScintillaObject *sci);
45void sci_start_undo_action (ScintillaObject *sci);
47void sci_set_marker_at_line (ScintillaObject *sci, gint line_number, gint marker);
48void sci_delete_marker_at_line (ScintillaObject *sci, gint line_number, gint marker);
49gboolean sci_is_marker_set_at_line (ScintillaObject *sci, gint line, gint marker);
51gint sci_get_col_from_position (ScintillaObject *sci, gint position);
52gint sci_get_line_from_position (ScintillaObject *sci, gint position);
53gint sci_get_position_from_line (ScintillaObject *sci, gint line);
54gint sci_get_current_position (ScintillaObject *sci);
55void sci_set_current_position (ScintillaObject *sci, gint position, gboolean scroll_to_caret);
57gint sci_get_selection_start (ScintillaObject *sci);
58gint sci_get_selection_end (ScintillaObject *sci);
59void sci_replace_sel (ScintillaObject *sci, const gchar *text);
60gint sci_get_selection_mode (ScintillaObject *sci);
61void sci_set_selection_mode (ScintillaObject *sci, gint mode);
62void sci_set_selection_start (ScintillaObject *sci, gint position);
63void sci_set_selection_end (ScintillaObject *sci, gint position);
65gint sci_get_length (ScintillaObject *sci);
66gchar* sci_get_contents (ScintillaObject *sci, gint buffer_len);
67gint sci_get_selected_text_length(ScintillaObject *sci);
68gchar* sci_get_selection_contents (ScintillaObject *sci);
69gchar* sci_get_line (ScintillaObject *sci, gint line_num);
70gint sci_get_line_length (ScintillaObject *sci, gint line);
71gint sci_get_line_count (ScintillaObject *sci);
73gint sci_get_line_end_position (ScintillaObject *sci, gint line);
75gboolean sci_get_line_is_visible (ScintillaObject *sci, gint line);
76void sci_ensure_line_is_visible (ScintillaObject *sci, gint line);
78gint sci_get_tab_width (ScintillaObject *sci);
79gchar sci_get_char_at (ScintillaObject *sci, gint pos);
81void sci_scroll_caret (ScintillaObject *sci);
82gint sci_find_text (ScintillaObject *sci, gint flags, struct Sci_TextToFind *ttf);
83void sci_set_font (ScintillaObject *sci, gint style, const gchar *font, gint size);
84void sci_goto_line (ScintillaObject *sci, gint line, gboolean unfold);
85gint sci_get_style_at (ScintillaObject *sci, gint position);
86gchar* sci_get_contents_range (ScintillaObject *sci, gint start, gint end);
87void sci_insert_text (ScintillaObject *sci, gint pos, const gchar *text);
89void sci_set_target_start (ScintillaObject *sci, gint start);
90void sci_set_target_end (ScintillaObject *sci, gint end);
91gint sci_replace_target (ScintillaObject *sci, const gchar *text, gboolean regex);
93gint sci_get_lexer (ScintillaObject *sci);
94void sci_send_command (ScintillaObject *sci, gint cmd);
96gint sci_get_current_line (ScintillaObject *sci);
98void sci_indicator_set (ScintillaObject *sci, gint indic);
99void sci_indicator_clear (ScintillaObject *sci, gint pos, gint len);
101void sci_set_line_indentation (ScintillaObject *sci, gint line, gint indent);
102gint sci_get_line_indentation (ScintillaObject *sci, gint line);
103gint sci_find_matching_brace (ScintillaObject *sci, gint pos);
106void sci_get_text (ScintillaObject *sci, gint len, gchar *text) GEANY_DEPRECATED_FOR(sci_get_contents);
108void sci_get_text_range (ScintillaObject *sci, gint start, gint end, gchar *text) GEANY_DEPRECATED_FOR(sci_get_contents_range);
113gchar* sci_get_string (ScintillaObject *sci, guint msg, gulong wParam);
115void sci_set_line_numbers (ScintillaObject *sci, gboolean set);
116void sci_set_mark_long_lines (ScintillaObject *sci, gint type, gint column, const gchar *color);
118void sci_add_text (ScintillaObject *sci, const gchar *text);
119gboolean sci_can_redo (ScintillaObject *sci);
120gboolean sci_can_undo (ScintillaObject *sci);
121void sci_undo (ScintillaObject *sci);
122void sci_redo (ScintillaObject *sci);
123void sci_empty_undo_buffer (ScintillaObject *sci);
124gboolean sci_is_modified (ScintillaObject *sci);
126void sci_set_visible_eols (ScintillaObject *sci, gboolean set);
127void sci_set_lines_wrapped (ScintillaObject *sci, gboolean set);
128void sci_set_visible_white_spaces(ScintillaObject *sci, gboolean set);
129void sci_convert_eols (ScintillaObject *sci, gint eolmode);
130gint sci_get_eol_mode (ScintillaObject *sci);
131void sci_set_eol_mode (ScintillaObject *sci, gint eolmode);
132void sci_zoom_in (ScintillaObject *sci);
133void sci_zoom_out (ScintillaObject *sci);
134void sci_zoom_off (ScintillaObject *sci);
135void sci_toggle_marker_at_line (ScintillaObject *sci, gint line, gint marker);
136gint sci_marker_next (ScintillaObject *sci, gint line, gint marker_mask, gboolean wrap);
137gint sci_marker_previous (ScintillaObject *sci, gint line, gint marker_mask, gboolean wrap);
139gint sci_get_position_from_col (ScintillaObject *sci, gint line, gint col);
140void sci_set_current_line (ScintillaObject *sci, gint line);
141gint sci_get_cursor_virtual_space(ScintillaObject *sci);
143void sci_cut (ScintillaObject *sci);
144void sci_copy (ScintillaObject *sci);
145void sci_paste (ScintillaObject *sci);
146void sci_clear (ScintillaObject *sci);
148gint sci_get_pos_at_line_sel_start(ScintillaObject*sci, gint line);
149gint sci_get_pos_at_line_sel_end (ScintillaObject *sci, gint line);
150void sci_set_selection (ScintillaObject *sci, gint anchorPos, gint currentPos);
152gint sci_get_position_from_xy (ScintillaObject *sci, gint x, gint y, gboolean nearby);
154void sci_set_undo_collection (ScintillaObject *sci, gboolean set);
156void sci_toggle_fold (ScintillaObject *sci, gint line);
157gint sci_get_fold_level (ScintillaObject *sci, gint line);
158gint sci_get_fold_parent (ScintillaObject *sci, gint start_line);
160void sci_set_folding_margin_visible (ScintillaObject *sci, gboolean set);
161gboolean sci_get_fold_expanded (ScintillaObject *sci, gint line);
163void sci_colourise (ScintillaObject *sci, gint start, gint end);
164void sci_clear_all (ScintillaObject *sci);
165gint sci_get_end_styled (ScintillaObject *sci);
166void sci_set_tab_width (ScintillaObject *sci, gint width);
167void sci_set_savepoint (ScintillaObject *sci);
168void sci_set_indentation_guides (ScintillaObject *sci, gint mode);
169void sci_use_popup (ScintillaObject *sci, gboolean enable);
170void sci_goto_pos (ScintillaObject *sci, gint pos, gboolean unfold);
171void sci_set_search_anchor (ScintillaObject *sci);
172void sci_set_anchor (ScintillaObject *sci, gint pos);
173void sci_scroll_columns (ScintillaObject *sci, gint columns);
174gint sci_search_next (ScintillaObject *sci, gint flags, const gchar *text);
175gint sci_search_prev (ScintillaObject *sci, gint flags, const gchar *text);
176void sci_marker_delete_all (ScintillaObject *sci, gint marker);
177void sci_set_symbol_margin (ScintillaObject *sci, gboolean set);
178void sci_set_codepage (ScintillaObject *sci, gint cp);
179void sci_clear_cmdkey (ScintillaObject *sci, gint key);
180void sci_assign_cmdkey (ScintillaObject *sci, gint key, gint command);
181void sci_selection_duplicate (ScintillaObject *sci);
182void sci_line_duplicate (ScintillaObject *sci);
184void sci_set_keywords (ScintillaObject *sci, guint k, const gchar *text);
185void sci_set_lexer (ScintillaObject *sci, guint lexer_id);
186void sci_set_readonly (ScintillaObject *sci, gboolean readonly);
188gint sci_get_lines_selected (ScintillaObject *sci);
189gint sci_get_first_visible_line (ScintillaObject *sci);
191void sci_indicator_fill (ScintillaObject *sci, gint pos, gint len);
193void sci_select_all (ScintillaObject *sci);
194gint sci_get_line_indent_position(ScintillaObject *sci, gint line);
195void sci_set_autoc_max_height (ScintillaObject *sci, gint val);
197gint sci_get_overtype (ScintillaObject *sci);
198void sci_set_tab_indents (ScintillaObject *sci, gboolean set);
199void sci_set_use_tabs (ScintillaObject *sci, gboolean set);
201void sci_set_scrollbar_mode (ScintillaObject *sci, gboolean visible);
202void sci_set_caret_policy_x (ScintillaObject *sci, gint policy, gint slop);
203void sci_set_caret_policy_y (ScintillaObject *sci, gint policy, gint slop);
205void sci_set_scroll_stop_at_last_line (ScintillaObject *sci, gboolean set);
207void sci_cancel (ScintillaObject *sci);
209gint sci_get_position_after (ScintillaObject *sci, gint start);
210gint sci_word_start_position (ScintillaObject *sci, gint position, gboolean onlyWordCharacters);
211gint sci_word_end_position (ScintillaObject *sci, gint position, gboolean onlyWordCharacters);
213void sci_lines_join (ScintillaObject *sci);
214gint sci_text_width (ScintillaObject *sci, gint styleNumber, const gchar *text);
216void sci_move_selected_lines_down (ScintillaObject *sci);
217void sci_move_selected_lines_up (ScintillaObject *sci);
219void sci_set_font_fractional (ScintillaObject *sci, gint style, const gchar *font, gdouble size);
221#endif /* GEANY_PRIVATE */
225#endif /* GEANY_SCI_WRAPPERS_H */
Interface to the edit control.
intptr_t sptr_t
Definition: Scintilla.h:35
uintptr_t uptr_t
Definition: Scintilla.h:33
const gchar * command
Definition: build.c:2677
GdkColor color
Definition: document.c:3220
static gchar indent[100]
Definition: editor.c:91
gchar * text
Definition: editor.c:83
ScintillaObject * sci
Definition: editor.c:88
gboolean set
Definition: editor.c:84
gint pos
Definition: editor.c:87
Definition: geany.h:63
vString * line
Definition: geany_cobol.c:133
void sci_set_savepoint(ScintillaObject *sci)
Definition: sciwrappers.c:895
void sci_scroll_columns(ScintillaObject *sci, gint columns)
Definition: sciwrappers.c:961
void sci_indicator_fill(ScintillaObject *sci, gint pos, gint len)
Definition: sciwrappers.c:1240
void sci_set_font_fractional(ScintillaObject *sci, gint style, const gchar *font, gdouble size)
Definition: sciwrappers.c:1005
void sci_set_keywords(ScintillaObject *sci, guint k, const gchar *text)
Definition: sciwrappers.c:1160
void sci_undo(ScintillaObject *sci)
Definition: sciwrappers.c:313
void sci_set_current_line(ScintillaObject *sci, gint line)
Definition: sciwrappers.c:544
gint sci_get_eol_mode(ScintillaObject *sci)
Definition: sciwrappers.c:262
void sci_set_lexer(ScintillaObject *sci, guint lexer_id)
Definition: sciwrappers.c:673
void sci_set_symbol_margin(ScintillaObject *sci, gboolean set)
Definition: sciwrappers.c:202
void sci_toggle_marker_at_line(ScintillaObject *sci, gint line, gint marker)
Definition: sciwrappers.c:420
void sci_colourise(ScintillaObject *sci, gint start, gint end)
Definition: sciwrappers.c:847
void sci_assign_cmdkey(ScintillaObject *sci, gint key, gint command)
Definition: sciwrappers.c:1064
gint sci_marker_next(ScintillaObject *sci, gint line, gint marker_mask, gboolean wrap)
Definition: sciwrappers.c:434
gboolean sci_is_modified(ScintillaObject *sci)
Definition: sciwrappers.c:359
void sci_set_visible_eols(ScintillaObject *sci, gboolean set)
Definition: sciwrappers.c:238
void sci_set_autoc_max_height(ScintillaObject *sci, gint val)
Definition: sciwrappers.c:1277
void sci_set_tab_indents(ScintillaObject *sci, gboolean set)
Definition: sciwrappers.c:1303
gint sci_word_start_position(ScintillaObject *sci, gint position, gboolean onlyWordCharacters)
Definition: sciwrappers.c:1436
gint sci_text_width(ScintillaObject *sci, gint styleNumber, const gchar *text)
Definition: sciwrappers.c:1418
void sci_move_selected_lines_down(ScintillaObject *sci)
Definition: sciwrappers.c:1424
void sci_set_tab_width(ScintillaObject *sci, gint width)
Definition: sciwrappers.c:865
void sci_select_all(ScintillaObject *sci)
Definition: sciwrappers.c:1265
void sci_use_popup(ScintillaObject *sci, gboolean enable)
Definition: sciwrappers.c:907
void sci_set_folding_margin_visible(ScintillaObject *sci, gboolean set)
Definition: sciwrappers.c:220
gint sci_word_end_position(ScintillaObject *sci, gint position, gboolean onlyWordCharacters)
Definition: sciwrappers.c:1442
void sci_goto_pos(ScintillaObject *sci, gint pos, gboolean unfold)
Definition: sciwrappers.c:929
void sci_zoom_out(ScintillaObject *sci)
Definition: sciwrappers.c:371
gint sci_get_pos_at_line_sel_start(ScintillaObject *sci, gint line)
Definition: sciwrappers.c:1315
gint sci_search_next(ScintillaObject *sci, gint flags, const gchar *text)
Definition: sciwrappers.c:967
void sci_set_indentation_guides(ScintillaObject *sci, gint mode)
Definition: sciwrappers.c:901
void sci_set_undo_collection(ScintillaObject *sci, gboolean set)
Definition: sciwrappers.c:347
void sci_set_eol_mode(ScintillaObject *sci, gint eolmode)
Definition: sciwrappers.c:268
void sci_set_scrollbar_mode(ScintillaObject *sci, gboolean visible)
Definition: sciwrappers.c:1347
sptr_t sci_send_message_internal(const gchar *file, guint line, ScintillaObject *sci, guint msg, uptr_t wparam, sptr_t lparam)
Definition: sciwrappers.c:46
gint sci_get_overtype(ScintillaObject *sci)
Definition: sciwrappers.c:1297
void sci_paste(ScintillaObject *sci)
Definition: sciwrappers.c:610
void sci_set_lines_wrapped(ScintillaObject *sci, gboolean set)
Definition: sciwrappers.c:253
void sci_marker_delete_all(ScintillaObject *sci, gint marker)
Definition: sciwrappers.c:1040
gint sci_get_fold_level(ScintillaObject *sci, gint line)
Definition: sciwrappers.c:822
void sci_set_caret_policy_y(ScintillaObject *sci, gint policy, gint slop)
Definition: sciwrappers.c:1388
void sci_set_readonly(ScintillaObject *sci, gboolean readonly)
Definition: sciwrappers.c:1166
void sci_set_line_numbers(ScintillaObject *sci, gboolean set)
Definition: sciwrappers.c:98
gint sci_get_lines_selected(ScintillaObject *sci)
Definition: sciwrappers.c:1199
void sci_set_search_anchor(ScintillaObject *sci)
Definition: sciwrappers.c:936
void sci_set_selection(ScintillaObject *sci, gint anchorPos, gint currentPos)
Definition: sciwrappers.c:581
void sci_cancel(ScintillaObject *sci)
Definition: sciwrappers.c:1400
void sci_set_visible_white_spaces(ScintillaObject *sci, gboolean set)
Definition: sciwrappers.c:244
gint sci_get_pos_at_line_sel_end(ScintillaObject *sci, gint line)
Definition: sciwrappers.c:1321
gint sci_get_line_indent_position(ScintillaObject *sci, gint line)
Definition: sciwrappers.c:1271
void sci_clear_all(ScintillaObject *sci)
Definition: sciwrappers.c:853
gboolean sci_get_fold_expanded(ScintillaObject *sci, gint line)
Definition: sciwrappers.c:841
void sci_convert_eols(ScintillaObject *sci, gint eolmode)
Definition: sciwrappers.c:274
void sci_set_codepage(ScintillaObject *sci, gint cp)
Definition: sciwrappers.c:1057
gchar * sci_get_string(ScintillaObject *sci, guint msg, gulong wParam)
Definition: sciwrappers.c:697
gint sci_get_cursor_virtual_space(ScintillaObject *sci)
Definition: sciwrappers.c:513
void sci_cut(ScintillaObject *sci)
Definition: sciwrappers.c:598
gboolean sci_can_redo(ScintillaObject *sci)
Definition: sciwrappers.c:307
void sci_lines_join(ScintillaObject *sci)
Definition: sciwrappers.c:1412
void sci_zoom_in(ScintillaObject *sci)
Definition: sciwrappers.c:365
gint sci_get_position_from_col(ScintillaObject *sci, gint line, gint col)
Definition: sciwrappers.c:486
void sci_move_selected_lines_up(ScintillaObject *sci)
Definition: sciwrappers.c:1430
gint sci_search_prev(ScintillaObject *sci, gint flags, const gchar *text)
Definition: sciwrappers.c:974
void sci_set_anchor(ScintillaObject *sci, gint pos)
Definition: sciwrappers.c:943
void sci_selection_duplicate(ScintillaObject *sci)
Definition: sciwrappers.c:1122
void sci_set_mark_long_lines(ScintillaObject *sci, gint type, gint column, const gchar *colour)
Definition: sciwrappers.c:118
void sci_add_text(ScintillaObject *sci, const gchar *text)
Definition: sciwrappers.c:280
void sci_copy(ScintillaObject *sci)
Definition: sciwrappers.c:604
gint sci_marker_previous(ScintillaObject *sci, gint line, gint marker_mask, gboolean wrap)
Definition: sciwrappers.c:448
void sci_set_use_tabs(ScintillaObject *sci, gboolean set)
Definition: sciwrappers.c:1309
void sci_clear(ScintillaObject *sci)
Definition: sciwrappers.c:616
void sci_empty_undo_buffer(ScintillaObject *sci)
Definition: sciwrappers.c:353
gint sci_get_position_after(ScintillaObject *sci, gint start)
Definition: sciwrappers.c:1406
void sci_set_caret_policy_x(ScintillaObject *sci, gint policy, gint slop)
Definition: sciwrappers.c:1382
gint sci_get_position_from_xy(ScintillaObject *sci, gint x, gint y, gboolean nearby)
Definition: sciwrappers.c:794
gint sci_get_fold_parent(ScintillaObject *sci, gint start_line)
Definition: sciwrappers.c:829
gint sci_get_first_visible_line(ScintillaObject *sci)
Definition: sciwrappers.c:1216
void sci_clear_cmdkey(ScintillaObject *sci, gint key)
Definition: sciwrappers.c:1070
void sci_line_duplicate(ScintillaObject *sci)
Definition: sciwrappers.c:1116
gint sci_get_end_styled(ScintillaObject *sci)
Definition: sciwrappers.c:859
void sci_zoom_off(ScintillaObject *sci)
Definition: sciwrappers.c:377
void sci_toggle_fold(ScintillaObject *sci, gint line)
Definition: sciwrappers.c:835
void sci_set_scroll_stop_at_last_line(ScintillaObject *sci, gboolean set)
Definition: sciwrappers.c:1394
void sci_redo(ScintillaObject *sci)
Definition: sciwrappers.c:320
gboolean sci_can_undo(ScintillaObject *sci)
Definition: sciwrappers.c:301
void sci_set_selection_mode(ScintillaObject *sci, gint mode)
Sets selection mode.
Definition: sciwrappers.c:1341
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.
Definition: sciwrappers.c:480
gint sci_get_selected_text_length(ScintillaObject *sci)
Gets selected text length.
Definition: sciwrappers.c:788
gchar * sci_get_line(ScintillaObject *sci, gint line_num)
Gets line contents.
Definition: sciwrappers.c:713
gint sci_get_line_count(ScintillaObject *sci)
Gets the total number of lines.
Definition: sciwrappers.c:555
void sci_set_marker_at_line(ScintillaObject *sci, gint line_number, gint marker)
Sets a line marker.
Definition: sciwrappers.c:388
gint sci_replace_target(ScintillaObject *sci, const gchar *text, gboolean regex)
Definition: sciwrappers.c:1154
gboolean sci_is_marker_set_at_line(ScintillaObject *sci, gint line, gint marker)
Checks if a line has a marker set.
Definition: sciwrappers.c:411
gint sci_get_style_at(ScintillaObject *sci, gint position)
Gets style ID at position.
Definition: sciwrappers.c:1051
void sci_get_text(ScintillaObject *sci, gint len, gchar *text)
Gets all text.
Definition: sciwrappers.c:727
void sci_set_target_start(ScintillaObject *sci, gint start)
Definition: sciwrappers.c:1140
gboolean sci_get_line_is_visible(ScintillaObject *sci, gint line)
Checks if a line is visible (folding may have hidden it).
Definition: sciwrappers.c:806
gchar * sci_get_selection_contents(ScintillaObject *sci)
Gets selected text.
Definition: sciwrappers.c:778
void sci_ensure_line_is_visible(ScintillaObject *sci, gint line)
Makes line visible (folding may have hidden it).
Definition: sciwrappers.c:816
gint sci_get_length(ScintillaObject *sci)
Gets the length of all text.
Definition: sciwrappers.c:656
gint sci_get_current_position(ScintillaObject *sci)
Gets the cursor position.
Definition: sciwrappers.c:507
void sci_set_selection_start(ScintillaObject *sci, gint position)
Sets the selection start position.
Definition: sciwrappers.c:565
gint sci_get_selection_mode(ScintillaObject *sci)
Gets selection mode.
Definition: sciwrappers.c:1331
void sci_delete_marker_at_line(ScintillaObject *sci, gint line_number, gint marker)
Deletes a line marker.
Definition: sciwrappers.c:399
void sci_send_command(ScintillaObject *sci, gint cmd)
Sends Scintilla commands without any parameters.
Definition: sciwrappers.c:1180
void sci_set_line_indentation(ScintillaObject *sci, gint line, gint indent)
Sets the indentation of a line.
Definition: sciwrappers.c:1362
gint sci_get_line_length(ScintillaObject *sci, gint line)
Gets line length.
Definition: sciwrappers.c:689
void sci_set_text(ScintillaObject *sci, const gchar *text)
Sets all text.
Definition: sciwrappers.c:293
void sci_set_font(ScintillaObject *sci, gint style, const gchar *font, gint size)
Sets the font for a particular style.
Definition: sciwrappers.c:1019
void sci_indicator_clear(ScintillaObject *sci, gint pos, gint len)
Clears the currently set indicator from a range of text.
Definition: sciwrappers.c:1259
void sci_get_text_range(ScintillaObject *sci, gint start, gint end, gchar *text)
Gets text between start and end.
Definition: sciwrappers.c:1085
void sci_scroll_caret(ScintillaObject *sci)
Scrolls the cursor in view.
Definition: sciwrappers.c:955
gint sci_get_current_line(ScintillaObject *sci)
Gets current line number.
Definition: sciwrappers.c:1190
gint sci_get_line_indentation(ScintillaObject *sci, gint line)
Gets the indentation width of a line.
Definition: sciwrappers.c:1376
gint sci_get_selection_end(ScintillaObject *sci)
Gets the selection end position.
Definition: sciwrappers.c:636
void sci_replace_sel(ScintillaObject *sci, const gchar *text)
Replaces selection.
Definition: sciwrappers.c:646
gint sci_find_text(ScintillaObject *sci, gint flags, struct Sci_TextToFind *ttf)
Finds text in the document.
Definition: sciwrappers.c:995
void sci_indicator_set(ScintillaObject *sci, gint indic)
Sets the current indicator.
Definition: sciwrappers.c:1234
gint sci_get_lexer(ScintillaObject *sci)
Gets the currently used lexer.
Definition: sciwrappers.c:667
void sci_set_current_position(ScintillaObject *sci, gint position, gboolean scroll_to_caret)
Sets the cursor position.
Definition: sciwrappers.c:529
gint sci_get_tab_width(ScintillaObject *sci)
Gets display tab width (this is not indent width, see GeanyIndentPrefs).
Definition: sciwrappers.c:878
gchar sci_get_char_at(ScintillaObject *sci, gint pos)
Gets a character.
Definition: sciwrappers.c:889
gboolean sci_has_selection(ScintillaObject *sci)
Checks if there's a selection.
Definition: sciwrappers.c:920
void sci_get_selected_text(ScintillaObject *sci, gchar *text)
Gets selected text.
Definition: sciwrappers.c:764
void sci_start_undo_action(ScintillaObject *sci)
Begins grouping a set of edits together as one Undo action.
Definition: sciwrappers.c:331
void sci_insert_text(ScintillaObject *sci, gint pos, const gchar *text)
Inserts text.
Definition: sciwrappers.c:1133
void sci_end_undo_action(ScintillaObject *sci)
Ends grouping a set of edits together as one Undo action.
Definition: sciwrappers.c:341
void sci_set_target_end(ScintillaObject *sci, gint end)
Definition: sciwrappers.c:1147
gint sci_get_line_end_position(ScintillaObject *sci, gint line)
Gets the position at the end of a line.
Definition: sciwrappers.c:592
gchar * sci_get_contents(ScintillaObject *sci, gint buffer_len)
Allocates and fills a buffer with text from the start of the document.
Definition: sciwrappers.c:743
gchar * sci_get_contents_range(ScintillaObject *sci, gint start, gint end)
Gets text between start and end.
Definition: sciwrappers.c:1104
gint sci_get_selection_start(ScintillaObject *sci)
Gets the selection start position.
Definition: sciwrappers.c:626
gint sci_get_line_from_position(ScintillaObject *sci, gint position)
Gets the line number from position.
Definition: sciwrappers.c:469
gint sci_get_position_from_line(ScintillaObject *sci, gint line)
Gets the position for the start of line.
Definition: sciwrappers.c:497
void sci_goto_line(ScintillaObject *sci, gint line, gboolean unfold)
Jumps to the specified line in the document.
Definition: sciwrappers.c:1033
gint sci_find_matching_brace(ScintillaObject *sci, gint pos)
Finds a matching brace at pos.
Definition: sciwrappers.c:1291
void sci_set_selection_end(ScintillaObject *sci, gint position)
Sets the selection end position.
Definition: sciwrappers.c:575
gint position[2]
Definition: search.c:120