diff options
Diffstat (limited to 'src/tooltip.h')
| -rw-r--r-- | src/tooltip.h | 19 |
1 files changed, 19 insertions, 0 deletions
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 <SDL3/SDL.h> +#include <stdbool.h> + +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 |
