Showing off dynamic styles: started work on preferences dialog.
[rodin/chimara.git] / libchimara / style.h
1 #ifndef STYLE_H
2 #define STYLE_H
3
4 #include <gtk/gtk.h>
5 #include <glib.h>
6 #include "glk.h"
7 #include "chimara-glk.h"
8
9 G_GNUC_INTERNAL void style_init_textbuffer(GtkTextBuffer *buffer);
10 G_GNUC_INTERNAL void style_init_textgrid(GtkTextBuffer *buffer);
11 G_GNUC_INTERNAL void style_init_more_prompt(winid_t win);
12 G_GNUC_INTERNAL void style_init(ChimaraGlk *glk);
13 G_GNUC_INTERNAL void style_update(ChimaraGlk *glk);
14 G_GNUC_INTERNAL const gchar** style_get_tag_names();
15 G_GNUC_INTERNAL void reset_default_styles(ChimaraGlk *glk);
16 /*G_GNUC_INTERNAL void copy_default_styles_to_current_styles(ChimaraGlk *glk);*/
17 G_GNUC_INTERNAL GScanner *create_css_file_scanner(void);
18 G_GNUC_INTERNAL void scan_css_file(GScanner *scanner, ChimaraGlk *glk);
19 G_GNUC_INTERNAL PangoFontDescription *get_current_font(guint32 wintype);
20 G_GNUC_INTERNAL GtkTextTag* gtk_text_tag_copy(GtkTextTag *tag);
21 G_GNUC_INTERNAL void glkcolor_to_gdkcolor(glui32 val, GdkColor *color);
22
23 typedef struct StyleSet {
24         GHashTable *text_grid;
25         GHashTable *text_buffer;
26 } StyleSet;
27
28 #define CHIMARA_NUM_STYLES 13
29
30 #endif