summaryrefslogtreecommitdiff
path: root/src/tooltip.h
diff options
context:
space:
mode:
authorraven <citrons@mondecitronne.com>2026-04-11 18:13:34 -0500
committerraven <citrons@mondecitronne.com>2026-04-11 18:13:34 -0500
commitf6c30f0acf44969646b2c895bd2672c0ebc85d66 (patch)
treef399de34810f76408a6bd47e3620c1429cea5338 /src/tooltip.h
parent629d7d2ca4cbdda7aafcd6476b77248d1fa63bcc (diff)
tooltip with address, byte value and strings
Diffstat (limited to 'src/tooltip.h')
-rw-r--r--src/tooltip.h19
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