blob: dc6e470b17e2b6b31c740eed1993774f1962f898 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#include <stdio.h>
#include <SDL3/SDL.h>
#include <SDL3_ttf/SDL_ttf.h>
#include <SDL3/SDL_main.h>
typedef struct SaffronWidget {
int x, y, w, h;
void (*draw)(struct SaffronWidget *self, SDL_Renderer *renderer);
void (*on_click)(struct SaffronWidget *self);
struct SaffronWidget *parent;
struct SaffronWidget **children;
int child_count;
} SaffronWidget;
|