1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8; coding: utf-8 -*-
2  * gtksourcestyle.h
3  * This file is part of GtkSourceView
4  *
5  * Copyright (C) 2003 - Paolo Maggi <paolo.maggi@polito.it>
6  *
7  * GtkSourceView is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Lesser General Public
9  * License as published by the Free Software Foundation; either
10  * version 2.1 of the License, or (at your option) any later version.
11  *
12  * GtkSourceView is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15  * Lesser General Public License for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public
18  * License along with this library; if not, write to the Free Software
19  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
20  */
21 
22 #ifndef GTK_SOURCE_STYLE_H
23 #define GTK_SOURCE_STYLE_H
24 
25 #if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
26 #  if defined (__GNUC__)
27 #    warning "Only <gtksourceview/gtksource.h> can be included directly."
28 #  elif defined (G_OS_WIN32)
29 #    pragma message("Only <gtksourceview/gtksource.h> can be included directly.")
30 #  endif
31 #endif
32 
33 #include <gtk/gtk.h>
34 #include <gtksourceview/gtksourcetypes.h>
35 
36 G_BEGIN_DECLS
37 
38 #define GTK_SOURCE_TYPE_STYLE             (gtk_source_style_get_type ())
39 #define GTK_SOURCE_STYLE(obj)             (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_SOURCE_TYPE_STYLE, GtkSourceStyle))
40 #define GTK_SOURCE_IS_STYLE(obj)          (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_SOURCE_TYPE_STYLE))
41 #define GTK_SOURCE_STYLE_CLASS(klass)     (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_SOURCE_TYPE_STYLE, GtkSourceStyleClass))
42 #define GTK_SOURCE_IS_STYLE_CLASS(klass)  (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_SOURCE_TYPE_STYLE))
43 #define GTK_SOURCE_STYLE_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_SOURCE_TYPE_STYLE, GtkSourceStyleClass))
44 
45 typedef struct _GtkSourceStyleClass GtkSourceStyleClass;
46 
47 GTK_SOURCE_AVAILABLE_IN_ALL
48 GType		 gtk_source_style_get_type	(void) G_GNUC_CONST;
49 
50 GTK_SOURCE_AVAILABLE_IN_ALL
51 GtkSourceStyle	*gtk_source_style_copy		(const GtkSourceStyle *style);
52 
53 GTK_SOURCE_AVAILABLE_IN_3_22
54 void		 gtk_source_style_apply		(const GtkSourceStyle *style,
55 						 GtkTextTag           *tag);
56 
57 G_END_DECLS
58 
59 #endif  /* GTK_SOURCE_STYLE_H */
60