2005-10-17 05:23:40 +00:00
|
|
|
/*
|
|
|
|
* mootextstylescheme.h
|
|
|
|
*
|
2008-09-05 17:20:50 -05:00
|
|
|
* Copyright (C) 2004-2008 by Yevgen Muntyan <muntyan@tamu.edu>
|
2005-10-17 05:23:40 +00:00
|
|
|
*
|
2008-09-05 17:20:50 -05:00
|
|
|
* This file is part of medit. medit is free software; you can
|
|
|
|
* redistribute it and/or modify it under the terms of the
|
|
|
|
* GNU Lesser General Public License as published by the
|
|
|
|
* Free Software Foundation; either version 2.1 of the License,
|
|
|
|
* or (at your option) any later version.
|
2005-10-17 05:23:40 +00:00
|
|
|
*
|
2008-09-05 17:20:50 -05:00
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with medit. If not, see <http://www.gnu.org/licenses/>.
|
2005-10-17 05:23:40 +00:00
|
|
|
*/
|
|
|
|
|
2007-06-09 07:52:43 -05:00
|
|
|
#ifndef MOO_TEXT_STYLE_SCHEME_H
|
|
|
|
#define MOO_TEXT_STYLE_SCHEME_H
|
2005-10-17 05:23:40 +00:00
|
|
|
|
2006-08-26 04:46:29 -05:00
|
|
|
#include <gtk/gtkwidget.h>
|
2007-06-26 21:11:09 -05:00
|
|
|
#include <gtk/gtktexttag.h>
|
2005-10-17 05:23:40 +00:00
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
|
|
|
2007-06-26 21:11:09 -05:00
|
|
|
#define MOO_TYPE_TEXT_STYLE_SCHEME (moo_text_style_scheme_get_type ())
|
|
|
|
#define MOO_TEXT_STYLE_SCHEME(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), MOO_TYPE_TEXT_STYLE_SCHEME, MooTextStyleScheme))
|
|
|
|
#define MOO_IS_TEXT_STYLE_SCHEME(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), MOO_TYPE_TEXT_STYLE_SCHEME))
|
2005-10-17 05:23:40 +00:00
|
|
|
|
2007-06-26 21:11:09 -05:00
|
|
|
#define MOO_TYPE_TEXT_STYLE (moo_text_style_get_type ())
|
|
|
|
#define MOO_TEXT_STYLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), MOO_TYPE_TEXT_STYLE, MooTextStyle))
|
|
|
|
#define MOO_IS_TEXT_STYLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), MOO_TYPE_TEXT_STYLE))
|
2005-10-17 05:23:40 +00:00
|
|
|
|
2007-06-26 21:11:09 -05:00
|
|
|
typedef struct _MooTextStyle MooTextStyle;
|
|
|
|
typedef struct _MooTextStyleScheme MooTextStyleScheme;
|
2005-10-17 05:23:40 +00:00
|
|
|
|
|
|
|
GType moo_text_style_scheme_get_type (void) G_GNUC_CONST;
|
2007-06-26 21:11:09 -05:00
|
|
|
GType moo_text_style_get_type (void) G_GNUC_CONST;
|
2005-10-17 05:23:40 +00:00
|
|
|
|
2006-08-26 04:46:29 -05:00
|
|
|
const char *moo_text_style_scheme_get_id (MooTextStyleScheme *scheme);
|
|
|
|
const char *moo_text_style_scheme_get_name (MooTextStyleScheme *scheme);
|
2005-10-17 05:23:40 +00:00
|
|
|
|
2007-02-27 22:32:54 -06:00
|
|
|
MooTextStyle *_moo_text_style_scheme_get_bracket_match_style
|
2006-08-26 04:46:29 -05:00
|
|
|
(MooTextStyleScheme *scheme);
|
2007-02-27 22:32:54 -06:00
|
|
|
MooTextStyle *_moo_text_style_scheme_get_bracket_mismatch_style
|
2006-08-26 04:46:29 -05:00
|
|
|
(MooTextStyleScheme *scheme);
|
|
|
|
void _moo_text_style_scheme_apply (MooTextStyleScheme *scheme,
|
|
|
|
GtkWidget *widget);
|
2007-02-27 22:32:54 -06:00
|
|
|
MooTextStyle *_moo_text_style_scheme_lookup_style (MooTextStyleScheme *scheme,
|
|
|
|
const char *name);
|
2005-10-17 05:23:40 +00:00
|
|
|
|
2007-06-26 21:11:09 -05:00
|
|
|
void _moo_text_style_apply_to_tag (const MooTextStyle *style,
|
|
|
|
GtkTextTag *tag);
|
|
|
|
|
2007-11-27 22:22:57 -06:00
|
|
|
const char *_moo_text_style_get_bg_color (const MooTextStyle *style);
|
|
|
|
|
2005-10-17 05:23:40 +00:00
|
|
|
|
|
|
|
G_END_DECLS
|
|
|
|
|
2007-06-09 07:52:43 -05:00
|
|
|
#endif /* MOO_TEXT_STYLE_SCHEME_H */
|