Revision: 887 http://svn.sourceforge.net/geany/?rev=887&view=rev Author: ntrel Date: 2006-10-12 09:24:34 -0700 (Thu, 12 Oct 2006)
Log Message: ----------- Added sci_get_last_child(), sci_get_fold_parent().
Modified Paths: -------------- trunk/src/sciwrappers.c trunk/src/sciwrappers.h
Modified: trunk/src/sciwrappers.c =================================================================== --- trunk/src/sciwrappers.c 2006-10-12 10:45:49 UTC (rev 886) +++ trunk/src/sciwrappers.c 2006-10-12 16:24:34 UTC (rev 887) @@ -533,6 +533,20 @@ }
+/* Get the next line after start_line with fold level <= level */ +gint sci_get_last_child(ScintillaObject* sci, gint start_line, gint level) +{ + return SSM( sci, SCI_GETLASTCHILD, start_line, level); +} + + +/* Get the line number of the fold point before start_line, or -1 if there isn't one */ +gint sci_get_fold_parent(ScintillaObject* sci, gint start_line) +{ + return SSM( sci, SCI_GETFOLDPARENT, start_line, 0); +} + + void sci_toggle_fold(ScintillaObject* sci, gint line) { SSM( sci, SCI_TOGGLEFOLD, line, 1);
Modified: trunk/src/sciwrappers.h =================================================================== --- trunk/src/sciwrappers.h 2006-10-12 10:45:49 UTC (rev 886) +++ trunk/src/sciwrappers.h 2006-10-12 16:24:34 UTC (rev 887) @@ -32,6 +32,8 @@
void sci_set_line_numbers (ScintillaObject* sci, gboolean set, gint extra_width); void sci_set_mark_long_lines (ScintillaObject* sci, gint type, gint column, const gchar *color); +gboolean sci_get_line_numbers (ScintillaObject * sci); + void sci_set_text (ScintillaObject* sci, const gchar* text); void sci_add_text (ScintillaObject* sci, const gchar* text); void sci_add_text_buffer (ScintillaObject* sci, const gchar* text, gint len); @@ -98,14 +100,14 @@ gboolean sci_get_line_is_visible (ScintillaObject* sci, gint line); void sci_ensure_line_is_visible (ScintillaObject* sci, gint line); gint sci_get_fold_level (ScintillaObject* sci, gint line); +gint sci_get_last_child (ScintillaObject* sci, gint start_line, gint level); +gint sci_get_fold_parent (ScintillaObject* sci, gint start_line);
void sci_set_folding_margin_visible (ScintillaObject * sci, gboolean set ); gboolean sci_get_folding_margin_visible(ScintillaObject * sci); gboolean sci_get_fold_expanded (ScintillaObject* sci, gint line); + void sci_colourise (ScintillaObject* sci, gint start, gint end); - -gboolean sci_get_line_numbers (ScintillaObject * sci); - void sci_set_lexer (ScintillaObject * sci, gint lexer); void sci_clear_all (ScintillaObject * sci); gint sci_get_end_styled (ScintillaObject * sci);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.