Updated files for 2.91.90 release
[anjuta.git] / libanjuta / anjuta-token-style.h
blob55a8859e63361ee6c99b2038837a6557ce11d088
1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
2 /*
3 * anjuta-token-style.h
4 * Copyright (C) Sébastien Granjoux 2009 <seb.sfo@free.fr>
5 *
6 * This program is free software: you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the
8 * Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14 * See the GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License along
17 * with this program. If not, see <http://www.gnu.org/licenses/>.
20 #ifndef _ANJUTA_TOKEN_STYLE_H_
21 #define _ANJUTA_TOKEN_STYLE_H_
23 #include <glib.h>
25 #include "anjuta-token.h"
27 G_BEGIN_DECLS
29 typedef struct _AnjutaTokenStyle AnjutaTokenStyle;
31 AnjutaTokenStyle *anjuta_token_style_new (const gchar *start, const gchar *next, const gchar *eol, const gchar *last, guint max_width);
32 void anjuta_token_style_free (AnjutaTokenStyle *style);
34 void anjuta_token_style_update (AnjutaTokenStyle *style, AnjutaToken *list);
35 void anjuta_token_style_format (AnjutaTokenStyle *style, AnjutaToken *list);
37 AnjutaToken *anjuta_token_list_first (AnjutaToken *list);
38 AnjutaToken *anjuta_token_list_last (AnjutaToken *list);
39 AnjutaToken *anjuta_token_list_next (AnjutaToken *sibling);
40 AnjutaToken *anjuta_token_list_replace (AnjutaToken *sibling, AnjutaToken *baby);
41 AnjutaToken *anjuta_token_list_replace_nth (AnjutaToken *list, guint n, AnjutaToken *baby);
42 AnjutaToken *anjuta_token_list_insert_after (AnjutaToken *sibling, AnjutaToken *baby);
43 void anjuta_token_list_delete (AnjutaToken *sibling);
45 G_END_DECLS
47 #endif