ltk

Socket-based GUI for X11 (WIP)
git clone git://lumidify.org/ltk.git (fast, but not encrypted)
git clone https://lumidify.org/git/ltk.git (encrypted, but very slow)
Log | Files | Refs | README | LICENSE

clipboard.h (1098B)


      1 #ifndef LTK_CLIPBOARD_H
      2 #define LTK_CLIPBOARD_H
      3 
      4 #include "txtbuf.h"
      5 #include "graphics.h"
      6 
      7 typedef struct ltk_clipboard ltk_clipboard;
      8 
      9 ltk_clipboard *ltk_clipboard_create(ltk_renderdata *data);
     10 void ltk_clipboard_destroy(ltk_clipboard *clip);
     11 void ltk_clipboard_set_primary_text(ltk_clipboard *clip, char *text);
     12 txtbuf *ltk_clipboard_get_primary_buffer(ltk_clipboard *clip);
     13 void ltk_clipboard_set_primary_selection_owner(ltk_clipboard *clip);
     14 void ltk_clipboard_set_clipboard_text(ltk_clipboard *clip, char *text);
     15 txtbuf *ltk_clipboard_get_clipboard_buffer(ltk_clipboard *clip);
     16 void ltk_clipboard_set_clipboard_selection_owner(ltk_clipboard *clip);
     17 void ltk_clipboard_primary_to_clipboard(ltk_clipboard *clip);
     18 
     19 /* FIXME: configure timeout for getting text */
     20 /* WARNING: The returned txtbuf is owned by the clipboard and must
     21    be copied before further processing and especially before any
     22    further clipboard functions are called. */
     23 txtbuf *ltk_clipboard_get_clipboard_text(ltk_clipboard *clip);
     24 txtbuf *ltk_clipboard_get_primary_text(ltk_clipboard *clip);
     25 
     26 #endif /* LTK_CLIPBOARD_H */