17#ifndef BACKENDS_GP_CLIPBOARD_H
18#define BACKENDS_GP_CLIPBOARD_H
20#include <backends/gp_types.h>
30 enum gp_clipboard_op op;
61 struct gp_clipboard op = {
62 .op = GP_CLIPBOARD_SET,
79 struct gp_clipboard op = {.op = GP_CLIPBOARD_REQUEST};
97 struct gp_clipboard op = {.op = GP_CLIPBOARD_GET};
static int gp_backend_clipboard_request(gp_backend *self)
Requests clipboard data to be retrieved.
static int gp_backend_clipboard_set(gp_backend *self, const char *str, size_t len)
Sets the clipboard data.
static char * gp_backend_clipboard_get(gp_backend *self)
Returns clipboard data.
int gp_backend_clipboard(gp_backend *self, gp_clipboard *op)
An internal handler that implements clipboard operations.
static void gp_backend_clipboard_ready(gp_backend *self)
Pushes clipboard data ready event into a backend input queue.
void gp_ev_queue_push(gp_ev_queue *self, uint16_t type, uint32_t code, int32_t value, uint64_t time)
Push a generic event into the queue.
@ GP_EV_SYS_CLIPBOARD
Clipboard request is ready.
@ GP_EV_SYS
A system events, window close, resize, etc.