| GtkSourceView Reference Manual |
|---|
GtkSourceView —
#include <gtksourceview/gtksourceview.h> struct GtkSourceView; GtkWidget* gtk_source_view_new (void); GtkWidget* gtk_source_view_new_with_buffer (GtkSourceBuffer *buffer); void gtk_source_view_set_show_line_numbers (GtkSourceView *view, gboolean show); gboolean gtk_source_view_get_show_line_numbers (GtkSourceView *view); void gtk_source_view_set_show_line_markers (GtkSourceView *view, gboolean show); gboolean gtk_source_view_get_show_line_markers (GtkSourceView *view); void gtk_source_view_set_tabs_width (GtkSourceView *view, guint width); guint gtk_source_view_get_tabs_width (GtkSourceView *view); void gtk_source_view_set_auto_indent (GtkSourceView *view, gboolean enable); gboolean gtk_source_view_get_auto_indent (GtkSourceView *view); void gtk_source_view_set_insert_spaces_instead_of_tabs (GtkSourceView *view, gboolean enable); gboolean gtk_source_view_get_insert_spaces_instead_of_tabs (GtkSourceView *view); void gtk_source_view_set_show_margin (GtkSourceView *view, gboolean show); gboolean gtk_source_view_get_show_margin (GtkSourceView *view); void gtk_source_view_set_margin (GtkSourceView *view, guint margin); guint gtk_source_view_get_margin (GtkSourceView *view); void gtk_source_view_set_marker_pixbuf (GtkSourceView *view, const gchar *marker_type, GdkPixbuf *pixbuf); GdkPixbuf* gtk_source_view_get_marker_pixbuf (GtkSourceView *view, const gchar *marker_type); void gtk_source_view_set_smart_home_end (GtkSourceView *view, gboolean enable); gboolean gtk_source_view_get_smart_home_end (GtkSourceView *view);
GObject +----GtkObject +----GtkWidget +----GtkContainer +----GtkTextView +----GtkSourceView
GtkSourceView implements AtkImplementorIface.
"auto-indent" gboolean : Read / Write "insert-spaces-instead-of-tabs" gboolean : Read / Write "margin" guint : Read / Write "show-line-markers" gboolean : Read / Write "show-line-numbers" gboolean : Read / Write "show-margin" gboolean : Read / Write "smart-home-end" gboolean : Read / Write "tabs-width" guint : Read / Write
"redo" void user_function (GtkSourceView *sourceview, gpointer user_data); "undo" void user_function (GtkSourceView *sourceview, gpointer user_data);
GtkWidget* gtk_source_view_new_with_buffer (GtkSourceBuffer *buffer);
| buffer : | |
| Returns : |
void gtk_source_view_set_show_line_numbers
(GtkSourceView *view,
gboolean show);
| view : | |
| show : |
gboolean gtk_source_view_get_show_line_numbers (GtkSourceView *view);
| view : | |
| Returns : |
void gtk_source_view_set_show_line_markers
(GtkSourceView *view,
gboolean show);
| view : | |
| show : |
gboolean gtk_source_view_get_show_line_markers (GtkSourceView *view);
| view : | |
| Returns : |
void gtk_source_view_set_tabs_width (GtkSourceView *view, guint width);
| view : | |
| width : |
guint gtk_source_view_get_tabs_width (GtkSourceView *view);
| view : | |
| Returns : |
void gtk_source_view_set_auto_indent (GtkSourceView *view, gboolean enable);
| view : | |
| enable : |
gboolean gtk_source_view_get_auto_indent (GtkSourceView *view);
| view : | |
| Returns : |
void gtk_source_view_set_insert_spaces_instead_of_tabs
(GtkSourceView *view,
gboolean enable);
| view : | |
| enable : |
gboolean gtk_source_view_get_insert_spaces_instead_of_tabs (GtkSourceView *view);
| view : | |
| Returns : |
void gtk_source_view_set_show_margin (GtkSourceView *view, gboolean show);
| view : | |
| show : |
gboolean gtk_source_view_get_show_margin (GtkSourceView *view);
| view : | |
| Returns : |
void gtk_source_view_set_margin (GtkSourceView *view, guint margin);
| view : | |
| margin : |
guint gtk_source_view_get_margin (GtkSourceView *view);
| view : | |
| Returns : |
void gtk_source_view_set_marker_pixbuf
(GtkSourceView *view,
const gchar *marker_type,
GdkPixbuf *pixbuf);
| view : | |
| marker_type : | |
| pixbuf : |
GdkPixbuf* gtk_source_view_get_marker_pixbuf (GtkSourceView *view, const gchar *marker_type);
| view : | |
| marker_type : | |
| Returns : |
void gtk_source_view_set_smart_home_end
(GtkSourceView *view,
gboolean enable);
| view : | |
| enable : |
gboolean gtk_source_view_get_smart_home_end (GtkSourceView *view);
| view : | |
| Returns : |
| "auto-indent" (gboolean : Read / Write) | Whether to enable auto indentation. |
| "insert-spaces-instead-of-tabs" (gboolean : Read / Write) | Whether to insert spaces instead of tabs. |
| "margin" (guint : Read / Write) | Position of the right margin. |
| "show-line-markers" (gboolean : Read / Write) | Whether to display line marker pixbufs. |
| "show-line-numbers" (gboolean : Read / Write) | Whether to display line numbers. |
| "show-margin" (gboolean : Read / Write) | Whether to display the right margin. |
| "smart-home-end" (gboolean : Read / Write) | HOME and END keys move to first/last characters on line first before going to the start/end of the line. |
| "tabs-width" (guint : Read / Write) | Tabs Width. |
void user_function (GtkSourceView *sourceview, gpointer user_data);
| sourceview : | the object which received the signal. |
| user_data : | user data set when the signal handler was connected. |
void user_function (GtkSourceView *sourceview, gpointer user_data);
| sourceview : | the object which received the signal. |
| user_data : | user data set when the signal handler was connected. |
| << GtkSourceMarker | GtkSourceLanguage >> |