selection.h (562B)
1 typedef struct Selection Selection; 2 3 struct Selection { 4 Window* owner; 5 char* selection; 6 ulong time_start; 7 ulong time_end; 8 void (*cleanup)(Selection*); 9 void (*message)(Selection*, XClientMessageEvent*); 10 void (*request)(Selection*, XSelectionRequestEvent*); 11 long timer; 12 ulong oldowner; 13 }; 14 15 Selection* selection_create(char*, ulong, void (*)(Selection*, XSelectionRequestEvent*), void (*)(Selection*)); 16 Selection* selection_manage(char*, ulong, void (*)(Selection*, XClientMessageEvent*), void (*)(Selection*), bool); 17 void selection_release(Selection*); 18