… | |
… | |
363 | #define Sel_Clipboard 0x03 |
363 | #define Sel_Clipboard 0x03 |
364 | #define Sel_whereMask 0x0f |
364 | #define Sel_whereMask 0x0f |
365 | #define Sel_CompoundText 0x10 /* last request was COMPOUND_TEXT */ |
365 | #define Sel_CompoundText 0x10 /* last request was COMPOUND_TEXT */ |
366 | #define Sel_UTF8String 0x20 /* last request was UTF8_STRING */ |
366 | #define Sel_UTF8String 0x20 /* last request was UTF8_STRING */ |
367 | |
367 | |
368 | typedef void (*sel_cb)(char *data, unsigned int len, struct rxvt_selection *rs, void *ptr); |
368 | typedef void (*sel_cb)(char *data, unsigned int len, struct rxvt_selection *rs); |
369 | |
369 | |
370 | struct rxvt_selection |
370 | struct rxvt_selection |
371 | { |
371 | { |
372 | rxvt_selection (rxvt_display *disp, int selnum, Time tm, Window win, Atom prop, sel_cb cb, void *ptr); |
372 | rxvt_selection (rxvt_display *disp, int selnum, Time tm, Window win, Atom prop, sel_cb cb, void *ptr); |
373 | void run (); |
373 | void run (); |
374 | ~rxvt_selection (); |
374 | ~rxvt_selection (); |
|
|
375 | |
|
|
376 | void *user_data; |
375 | |
377 | |
376 | private: |
378 | private: |
377 | rxvt_display *display; |
379 | rxvt_display *display; |
378 | Time request_time; |
380 | Time request_time; |
379 | Window request_win; |
381 | Window request_win; |
380 | Atom request_prop; |
382 | Atom request_prop; |
381 | sel_cb request_cb; |
383 | sel_cb request_cb; |
382 | void *user_data; |
|
|
383 | |
384 | |
384 | unsigned char selection_wait; |
385 | unsigned char selection_wait; |
385 | unsigned char selection_type; |
386 | unsigned char selection_type; |
386 | |
387 | |
387 | char *incr_buf; |
388 | char *incr_buf; |