Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

gtksourceview.h

00001 /*  gtksourceview
00002 *  Copyright (C) 2001
00003 * Mikael Hermansson<mikeh@bahnhof.se>
00004 *
00005 *  This program is free software; you can redistribute it and/or modify
00006 *  it under the terms of the GNU Library General Public License as published by
00007 *  the Free Software Foundation; either version 2 of the License, or
00008 *  (at your option) any later version.
00009 *
00010 *  This program is distributed in the hope that it will be useful,
00011 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00012 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013 *  GNU Library General Public License for more details.
00014 *
00015 *  You should have received a copy of the GNU Library General Public License*  along with this program; if not, write to the Free Software
00016 *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
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 /* end of SOURCE_VIEW_H__ */
00065  

Generated on Sun May 5 01:29:29 2002 for vdk 2.0.1 by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002