Changes in uspace/lib/c/include/io/window.h [2c7fdaa:bc4bf97] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/include/io/window.h
r2c7fdaa rbc4bf97 43 43 #include <io/pos_event.h> 44 44 45 typedef enum {46 WINDOW_MAIN = 1,47 WINDOW_DECORATED = 2,48 WINDOW_RESIZEABLE = 449 } window_flags_t;50 51 typedef enum {52 GF_EMPTY = 0,53 GF_MOVE_X = 1,54 GF_MOVE_Y = 2,55 GF_RESIZE_X = 4,56 GF_RESIZE_Y = 8,57 GF_SCALE_X = 16,58 GF_SCALE_Y = 3259 } window_grab_flags_t;60 61 typedef enum {62 WINDOW_PLACEMENT_ANY = 0,63 WINDOW_PLACEMENT_CENTER_X = 1,64 WINDOW_PLACEMENT_CENTER_Y = 2,65 WINDOW_PLACEMENT_CENTER =66 WINDOW_PLACEMENT_CENTER_X | WINDOW_PLACEMENT_CENTER_Y,67 WINDOW_PLACEMENT_LEFT = 4,68 WINDOW_PLACEMENT_RIGHT = 8,69 WINDOW_PLACEMENT_TOP = 16,70 WINDOW_PLACEMENT_BOTTOM = 32,71 WINDOW_PLACEMENT_ABSOLUTE_X = 64,72 WINDOW_PLACEMENT_ABSOLUTE_Y = 128,73 WINDOW_PLACEMENT_ABSOLUTE =74 WINDOW_PLACEMENT_ABSOLUTE_X | WINDOW_PLACEMENT_ABSOLUTE_Y75 } window_placement_flags_t;76 77 45 typedef struct { 78 46 sysarg_t object; 79 47 sysarg_t slot; 80 48 sysarg_t argument; 81 } sig nal_event_t;49 } sig_event_t; 82 50 83 51 typedef struct { 84 sysarg_t offset_x;85 sysarg_t offset_y;86 52 sysarg_t width; 87 53 sysarg_t height; 88 window_placement_flags_t placement_flags; 89 } resize_event_t; 54 } rsz_event_t; 90 55 91 56 typedef enum { … … 104 69 kbd_event_t kbd; 105 70 pos_event_t pos; 106 sig nal_event_t signal;107 r esize_event_t resize;71 sig_event_t sig; 72 rsz_event_t rsz; 108 73 } window_event_data_t; 109 74 … … 114 79 } window_event_t; 115 80 116 extern int win_register(async_sess_t *, window_flags_t, service_id_t *, 117 service_id_t *); 81 typedef enum { 82 GF_EMPTY = 0, 83 GF_MOVE_X = 1, 84 GF_MOVE_Y = 2, 85 GF_RESIZE_X = 4, 86 GF_RESIZE_Y = 8, 87 GF_SCALE_X = 16, 88 GF_SCALE_Y = 32 89 } window_grab_flags_t; 90 91 extern int win_register(async_sess_t *, service_id_t *, service_id_t *, sysarg_t, sysarg_t); 118 92 119 93 extern int win_get_event(async_sess_t *, window_event_t *); … … 121 95 extern int win_damage(async_sess_t *, sysarg_t, sysarg_t, sysarg_t, sysarg_t); 122 96 extern int win_grab(async_sess_t *, sysarg_t, sysarg_t); 123 extern int win_resize(async_sess_t *, sysarg_t, sysarg_t, sysarg_t, sysarg_t, 124 window_placement_flags_t, void *); 97 extern int win_resize(async_sess_t *, sysarg_t, sysarg_t, void *); 125 98 extern int win_close(async_sess_t *); 126 99 extern int win_close_request(async_sess_t *);
Note:
See TracChangeset
for help on using the changeset viewer.