aboutsummaryrefslogtreecommitdiff
path: root/src/cdraw.h
blob: 1d66b6b1b897246439be6c75345fdaf90d82edaa (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
27
28
29
30
31
32
33
34
35
36
37
38
typedef union {
    int i;
    unsigned int u;
    float f;
    const void *v;
    const char *s;
} Arg;

extern SDL_Window *win;
extern void *ren;
extern void *def_palette;
extern const char *def_palette_path;
extern const char *cmd_file_picker;
extern int mouseX, mouseY;
extern const unsigned int back_c;

unsigned int    main_event_handle();
unsigned int    main_window_init();
unsigned int    main_quit();

/* Functions for user bind to something else */
void            user_canvas_zoom_change(const Arg *);
void            user_canvas_move_x(const Arg *);
void            user_canvas_move_y(const Arg *);
void            user_canvas_save(const Arg *);
void            user_canvas_open(const Arg *);
void            user_canvas_export_png(const Arg *);
void            user_canvas_import_png(const Arg *);
void            user_canvas_refresh(const Arg *);
void            user_canvas_create_new(const Arg *);
void            user_canvas_pal_col_chng(const Arg *);
void            user_canvas_undo(const Arg *);
void            user_canvas_redo(const Arg *);
void            user_tool_change(const Arg *);
void            user_layer_chng(const Arg *);
void            user_testing_layer_add(const Arg *);
void            user_testing_reload_tex(const Arg *);
void            user_debug_mem_show(const Arg *);