Exemplo n.º 1
0
Arquivo: demo.c Projeto: serge-rgb/gui
/* -----------------------------------------------------------------
 *  COPY & PASTE
 * ----------------------------------------------------------------- */
static void
copy(gui_handle handle, const char *text, gui_size size)
{
    gui_char buffer[1024];
    UNUSED(handle);
    if (size >= 1023) return;
    memcpy(buffer, text, size);
    buffer[size] = '\0';
    clipboard_set(buffer);
}
Exemplo n.º 2
0
void clipboard_selection_set (const std::string &s)
{
    clipboard_set(s);
}