From f6c30f0acf44969646b2c895bd2672c0ebc85d66 Mon Sep 17 00:00:00 2001 From: raven Date: Sat, 11 Apr 2026 18:13:34 -0500 Subject: tooltip with address, byte value and strings --- src/tooltip.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/tooltip.h (limited to 'src/tooltip.h') diff --git a/src/tooltip.h b/src/tooltip.h new file mode 100644 index 0000000..f9385fc --- /dev/null +++ b/src/tooltip.h @@ -0,0 +1,19 @@ +#ifndef TOOLTIP_H +#define TOOLTIP_H + +#include +#include + +typedef struct tooltip { + SDL_Window *window; + SDL_Renderer *renderer; + SDL_Texture *texture; + uint64_t hash; + bool hidden; +} tooltip; + +void set_tooltip_text(tooltip *t, const char *text); +void show_tooltip(tooltip *t, int x, int y); +void hide_tooltip(tooltip *t); + +#endif -- cgit v1.2.3