-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathuser_gui.h
More file actions
29 lines (25 loc) · 841 Bytes
/
Copy pathuser_gui.h
File metadata and controls
29 lines (25 loc) · 841 Bytes
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
#ifndef USER_GUI_H
#define USER_GUI_H
#include "user.h"
extern int gui_task_id;
extern int active_win_idx;
extern int z_order[MAX_WINDOWS];
extern volatile int gui_redraw_needed;
void gui_task(void);
void request_gui_redraw(void);
void close_window(int idx);
void bring_to_front(int idx);
void cycle_active_window(void);
void create_new_task(void);
void draw_window(struct Window *w);
void draw_taskbar(void);
void resize_image_window(struct Window *w, int new_scale);
int clamp_int(int v, int lo, int hi);
int taskbar_button_x(int idx);
void set_window_title(struct Window *w, int idx);
int active_window_valid(void);
int cursor_mode_for_resize_dir(int dir);
int hit_resize_zone(struct Window *w, int mx, int my);
void begin_resize(struct Window *w, int dir, int mx, int my);
void apply_resize(struct Window *w, int mx, int my);
#endif