Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/include/io/window.h

    r2c7fdaa rbc4bf97  
    4343#include <io/pos_event.h>
    4444
    45 typedef enum {
    46         WINDOW_MAIN = 1,
    47         WINDOW_DECORATED = 2,
    48         WINDOW_RESIZEABLE = 4
    49 } 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 = 32
    59 } 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_Y
    75 } window_placement_flags_t;
    76 
    7745typedef struct {
    7846        sysarg_t object;
    7947        sysarg_t slot;
    8048        sysarg_t argument;
    81 } signal_event_t;
     49} sig_event_t;
    8250
    8351typedef struct {
    84         sysarg_t offset_x;
    85         sysarg_t offset_y;
    8652        sysarg_t width;
    8753        sysarg_t height;
    88         window_placement_flags_t placement_flags;
    89 } resize_event_t;
     54} rsz_event_t;
    9055
    9156typedef enum {
     
    10469        kbd_event_t kbd;
    10570        pos_event_t pos;
    106         signal_event_t signal;
    107         resize_event_t resize;
     71        sig_event_t sig;
     72        rsz_event_t rsz;
    10873} window_event_data_t;
    10974
     
    11479} window_event_t;
    11580
    116 extern int win_register(async_sess_t *, window_flags_t, service_id_t *,
    117     service_id_t *);
     81typedef 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
     91extern int win_register(async_sess_t *, service_id_t *, service_id_t *, sysarg_t, sysarg_t);
    11892
    11993extern int win_get_event(async_sess_t *, window_event_t *);
     
    12195extern int win_damage(async_sess_t *, sysarg_t, sysarg_t, sysarg_t, sysarg_t);
    12296extern 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 *);
     97extern int win_resize(async_sess_t *, sysarg_t, sysarg_t, void *);
    12598extern int win_close(async_sess_t *);
    12699extern int win_close_request(async_sess_t *);
Note: See TracChangeset for help on using the changeset viewer.