X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;ds=sidebyside;f=src%2Ftooltip%2Ftooltip.h;h=d575773bac753ef8db25e82da3d544b42cf5c8ef;hb=515a2f9710c5cc0488bb07b3daa6a1a5c17d1bee;hp=0aa965f2635232f06d29e4ddfc142f410a7b17d2;hpb=ad50533aef71e9697fe78bb636e64079f198f985;p=chaz%2Ftint2 diff --git a/src/tooltip/tooltip.h b/src/tooltip/tooltip.h index 0aa965f..d575773 100644 --- a/src/tooltip/tooltip.h +++ b/src/tooltip/tooltip.h @@ -35,20 +35,26 @@ typedef struct { int paddingx; int paddingy; PangoFontDescription* font_desc; - config_color font_color; - Color background_color; - Border border; - const struct timeout* timeout; + Color font_color; + Background* bg; + timeout* timeout; } Tooltip; extern Tooltip g_tooltip; -void init_tooltip(); + +// default global data +void default_tooltip(); + +// freed memory void cleanup_tooltip(); -void tooltip_trigger_show(Area* area, Panel* p, int x, int y); + +void init_tooltip(); +void tooltip_trigger_show(Area* area, Panel* p, XEvent *e); void tooltip_show(void* /*arg*/); void tooltip_update(); void tooltip_trigger_hide(); void tooltip_hide(void* /*arg*/); +void tooltip_copy_text(Area* area); #endif // TOOLTIP_H