X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=libchimara%2Fstyle.h;h=5766f843a97fa553dce66b98aecc547cea684ccc;hb=e2aad0fc9a4c2bc75db8f0b3f1d2d3c70e55e7bb;hp=a8198ee1a3c62cdaa1e7f2ab9f93914bfd64f9c4;hpb=a2e82e317a6000511953c2dbc0eb1026c7b245a7;p=rodin%2Fchimara.git diff --git a/libchimara/style.h b/libchimara/style.h index a8198ee..5766f84 100644 --- a/libchimara/style.h +++ b/libchimara/style.h @@ -3,14 +3,21 @@ #include #include +#include "glk.h" +#include "chimara-glk.h" G_GNUC_INTERNAL void style_init_textbuffer(GtkTextBuffer *buffer); G_GNUC_INTERNAL void style_init_textgrid(GtkTextBuffer *buffer); G_GNUC_INTERNAL void style_init_more_prompt(winid_t win); -G_GNUC_INTERNAL void style_init(); -G_GNUC_INTERNAL PangoFontDescription* get_current_font(guint32 wintype); +G_GNUC_INTERNAL void style_init(ChimaraGlk *glk); +G_GNUC_INTERNAL void style_update(ChimaraGlk *glk); +G_GNUC_INTERNAL const gchar** style_get_tag_names(); +G_GNUC_INTERNAL void reset_default_styles(ChimaraGlk *glk); +/*G_GNUC_INTERNAL void copy_default_styles_to_current_styles(ChimaraGlk *glk);*/ +G_GNUC_INTERNAL GScanner *create_css_file_scanner(void); +G_GNUC_INTERNAL void scan_css_file(GScanner *scanner, ChimaraGlk *glk); +G_GNUC_INTERNAL PangoFontDescription *get_current_font(guint32 wintype); G_GNUC_INTERNAL GtkTextTag* gtk_text_tag_copy(GtkTextTag *tag); - G_GNUC_INTERNAL void glkcolor_to_gdkcolor(glui32 val, GdkColor *color); typedef struct StyleSet { @@ -18,4 +25,6 @@ typedef struct StyleSet { GHashTable *text_buffer; } StyleSet; +#define CHIMARA_NUM_STYLES 13 + #endif