summaryrefslogtreecommitdiff
path: root/src/tooltip.h
blob: f9385fc49cbe23148e038ee4e1fe1b6198b80013 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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