r717: Made the highlighted text color of the menus WHITE
[cinelerra_cv/mob.git] / guicast / bcclipboard.h
blob3eddd64be3bf94d182aadf523b8c780c40d5d3b6
1 #ifndef BCCLIPBOARD_H
2 #define BCCLIPBOARD_H
4 #include "thread.h"
6 #include <stdio.h>
7 #include <stdlib.h>
8 #include <X11/Xatom.h>
9 #include <X11/Xlib.h>
11 // The primary selection is filled by highlighting a region
12 #define PRIMARY_SELECTION 0
13 // The secondary selection is filled by copying
14 #define SECONDARY_SELECTION 1
16 class BC_Clipboard : public Thread
18 public:
19 BC_Clipboard(char *display_name);
20 ~BC_Clipboard();
22 int start_clipboard();
23 void run();
24 int stop_clipboard();
25 long clipboard_len(int clipboard_num);
26 int to_clipboard(char *data, long len, int clipboard_num);
27 int from_clipboard(char *data, long maxlen, int clipboard_num);
29 Display *in_display, *out_display;
30 Atom completion_atom, primary, secondary;
31 Window in_win, out_win;
32 char *data[2];
33 long length[2];
36 #endif