X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=libchimara%2Fstyle.h;h=a8198ee1a3c62cdaa1e7f2ab9f93914bfd64f9c4;hb=de3f693d3120d81e3e65188ed29f9ddfcbb96f19;hp=72af60a4083067dcda00e82eb07e842eb4614658;hpb=deed9ccb2dacd8c2b4e58c2fdd947850299902bc;p=projects%2Fchimara%2Fchimara.git diff --git a/libchimara/style.h b/libchimara/style.h index 72af60a..a8198ee 100644 --- a/libchimara/style.h +++ b/libchimara/style.h @@ -3,18 +3,19 @@ #include #include -#include -#include -#include "glk.h" -#include "magic.h" -#include "chimara-glk-private.h" -#include "stream.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(); -static gboolean style_accept(GScanner *scanner, GTokenType token); -static gboolean style_accept_style_identifier(GScanner *scanner); -static gboolean style_accept_style_hint(GScanner *scanner, GtkTextTag *current_tag); -static void style_add_tag_to_textbuffer(gpointer key, gpointer tag, gpointer tag_table); +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 { + GHashTable *text_grid; + GHashTable *text_buffer; +} StyleSet; #endif