clipboard.h - ledit - Text editor (WIP) | |
git clone git://lumidify.org/ledit.git (fast, but not encrypted) | |
git clone https://lumidify.org/ledit.git (encrypted, but very slow) | |
git clone git://4kcetb7mo7hj6grozzybxtotsub5bempzo4lirzc3437amof2c2impyd.onion/… | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
clipboard.h (1177B) | |
--- | |
1 #ifndef _CLIPBOARD_H_ | |
2 #define _CLIPBOARD_H_ | |
3 | |
4 #include <X11/Xlib.h> | |
5 #include "common.h" | |
6 #include "txtbuf.h" | |
7 | |
8 typedef struct ledit_clipboard ledit_clipboard; | |
9 | |
10 ledit_clipboard *clipboard_create(ledit_common *common); | |
11 void clipboard_destroy(ledit_clipboard *clip); | |
12 void clipboard_set_primary_text(ledit_clipboard *clip, char *text); | |
13 txtbuf *clipboard_get_primary_buffer(ledit_clipboard *clip); | |
14 void clipboard_set_primary_selection_owner(ledit_clipboard *clip); | |
15 void clipboard_set_clipboard_text(ledit_clipboard *clip, char *text); | |
16 txtbuf *clipboard_get_clipboard_buffer(ledit_clipboard *clip); | |
17 void clipboard_set_clipboard_selection_owner(ledit_clipboard *clip); | |
18 void clipboard_primary_to_clipboard(ledit_clipboard *clip); | |
19 /* 1 means the event was used by the clipboard, 0 means it wasn't */ | |
20 int clipboard_filter_event(ledit_clipboard *clip, XEvent *e); | |
21 | |
22 /* WARNING: The returned txtbuf is owned by the clipboard and must | |
23 be copied before further processing and especially before any | |
24 further clipboard functions are called. */ | |
25 txtbuf *clipboard_get_clipboard_text(ledit_clipboard *clip); | |
26 txtbuf *clipboard_get_primary_text(ledit_clipboard *clip); | |
27 | |
28 #endif /* _CLIPBOARD_H_ */ |