diff options
author | Dave Davenport <qball@gmpclient.org> | 2015-01-21 10:04:15 +0100 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2015-01-21 10:04:15 +0100 |
commit | 9cc63d494824dda325a3d8539a94d9d149d81757 (patch) | |
tree | 4f1441b6bbf5b127e30b89e747a7f344d9226a31 /include | |
parent | 291070e579d9564a629b34c9e5ee0191aaa3a814 (diff) |
Updates fixing pango transparancy.
Diffstat (limited to 'include')
-rw-r--r-- | include/textbox.h | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/include/textbox.h b/include/textbox.h index 5f7d1bc5..457e629e 100644 --- a/include/textbox.h +++ b/include/textbox.h @@ -42,6 +42,8 @@ typedef enum } TextBoxFontType; textbox* textbox_create ( Window parent, + XVisualInfo *vinfo, + Colormap map, TextboxFlags flags, short x, short y, short w, short h, TextBoxFontType tbft, @@ -81,7 +83,7 @@ void textbox_show ( textbox *tb ); * * Render the textbox. */ -void textbox_draw ( textbox *tb ); +void textbox_draw ( textbox * tb ); /** * @param tb Handle to the textbox @@ -134,6 +136,8 @@ void textbox_insert ( textbox *tb, int pos, char *str ); void textbox_hide ( textbox *tb ); /** + * @param visual Information about the visual to target + * @param colormap The colormap to set the colors for. * @param bg The background color. * @param bg_alt The background color for alternating row. * @param fg The foreground color. @@ -144,15 +148,15 @@ void textbox_hide ( textbox *tb ); * before any of the textbox_ functions is called. * Clean with textbox_cleanup() */ -void textbox_setup ( - const char *bg, const char *bg_alt, const char *fg, - const char *hlbg, const char *hlfg - ); +void textbox_setup ( XVisualInfo *visual, Colormap colormap, + const char *bg, const char *bg_alt, const char *fg, + const char *hlbg, const char *hlfg + ); /** * Cleanup the allocated colors and fonts by textbox_setup(). */ -void textbox_cleanup (); +void textbox_cleanup ( ); /** * @param tb Handle to the textbox |