core/src/tooltip.h

#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