blob: 9394c8483439fd6a8cd496827432f6711ce674a8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#ifndef UPEM_MORPHING_WINDOW
#define UPEM_MORPHING_WINDOW
/**
* File: window.h
*/
typedef void (*ClickHandler)(int x_pos, int y_pos);
typedef struct {
int width, height;
ClickHandler click_handler;
} Component;
typedef struct {
int width, height;
Component *components;
} Window;
void window_init(Window *window, int width, int height, char *title);
void window_free(Window *window);
void window_add_component(Window *window, Component *component, int x_pos, int y_pos);
#endif
|