22 lines
528 B
C
22 lines
528 B
C
#include "types.h"
|
|
|
|
#ifndef WINDOW_H
|
|
#define WINDOW_H
|
|
|
|
Window *init_window(char *title, unsigned char monitor_index,
|
|
void (*error_callback)(int, const char *),
|
|
void (*key_callback)(Window *, int, int, int, int));
|
|
|
|
void update_window_title(Window *window, char *title);
|
|
|
|
void refresh_window(Window *window);
|
|
|
|
Context get_window_context(Window *window);
|
|
|
|
void close_window(Window *window, bool hard);
|
|
|
|
bool window_should_close(Window *window);
|
|
|
|
bool escape_key(int key, int action);
|
|
|
|
#endif |