#include <string.h>
#include <gtk/gtk.h>
#include <stdlib.h>
#include "utils/log.h"
#include "netsurf/browser_window.h"
#include "netsurf/clipboard.h"
#include "gtk/toolbar_items.h"
#include "gtk/window.h"
Go to the source code of this file.
◆ gui_get_clipboard()
static void gui_get_clipboard |
( |
char ** |
buffer, |
|
|
size_t * |
length |
|
) |
| |
|
static |
Core asks front end for clipboard contents.
- Parameters
-
buffer | UTF-8 text, allocated by front end, ownership yeilded to core |
length | Byte length of UTF-8 text in buffer |
Definition at line 40 of file selection.c.
References buffer, and clipboard.
◆ gui_set_clipboard()
static void gui_set_clipboard |
( |
const char * |
buffer, |
|
|
size_t |
length, |
|
|
nsclipboard_styles |
styles[], |
|
|
int |
n_styles |
|
) |
| |
|
static |
Core tells front end to put given text in clipboard.
- Parameters
-
buffer | UTF-8 text, owned by core |
length | Byte length of UTF-8 text in buffer |
styles | Array of styles given to text runs, owned by core, or NULL |
n_styles | Number of text run styles in array |
Definition at line 76 of file selection.c.
References buffer, clipboard, and current_selection.
◆ clipboard
◆ clipboard_table
Initial value:= {
}
static void gui_set_clipboard(const char *buffer, size_t length, nsclipboard_styles styles[], int n_styles)
Core tells front end to put given text in clipboard.
static void gui_get_clipboard(char **buffer, size_t *length)
Core asks front end for clipboard contents.
Definition at line 92 of file selection.c.
◆ current_selection
GString* current_selection = NULL |
|
static |
◆ nsgtk_clipboard_table