00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef SOURCE_VIEW_H__
00020 #define SOURCE_VIEW_H__
00021 #ifdef __cplusplus
00022 extern "C" {
00023 #endif
00024
00025 #include <vdk/gtksourcebuffer.h>
00026
00027 #define GTK_TYPE_SOURCE_VIEW (gtk_source_view_get_type ())
00028 #define GTK_SOURCE_VIEW(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_SOURCE_VIEW, GtkSourceView))
00029 #define GTK_SOURCE_VIEW_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_SOURCE_VIEW, GtkSourceViewClass))
00030 #define GTK_IS_SOURCE_VIEW(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_SOURCE_VIEW))
00031 #define GTK_IS_SOURCE_VIEW_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_SOURCE_VIEW))
00032
00033 typedef struct _GtkSourceView GtkSourceView;
00034 typedef struct _GtkSourceViewClass GtkSourceViewClass;
00035
00036 struct _GtkSourceView
00037 {
00038 GtkTextView parent;
00039 gint show_line_numbers :1;
00040 gint auto_indent :1;
00041 };
00042
00043 struct _GtkSourceViewClass
00044 {
00045 GtkTextViewClass parent_class;
00046
00047 void (*undo) ();
00048 void (*redo) ();
00049 };
00050
00051 GtkWidget * gtk_source_view_new ();
00052 GtkWidget * gtk_source_view_new_with_buffer (GtkTextBuffer *obj);
00053
00054 void gtk_source_view_set_show_line_numbers(GtkSourceView *source, gboolean show);
00055 gboolean gtk_source_view_get_show_line_numbers(GtkSourceView *source);
00056 void gtk_source_view_set_auto_indent(GtkSourceView *source,gboolean set);
00057 gboolean gtk_source_view_get_auto_indent(GtkSourceView *source);
00058
00059 GType gtk_source_view_get_type ();
00060
00061 #ifdef __cplusplus
00062 }
00063 #endif
00064 #endif
00065