1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
4 * Copyright (C) Sébastien Granjoux 2009 <seb.sfo@free.fr>
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_
25 #include "anjuta-token.h"
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
);