NetSurf
Data Fields
gui_clipboard_table Struct Reference

function table for clipboard operations. More...

#include <clipboard.h>

Data Fields

void(* get )(char **buffer, size_t *length)
 Core asks front end for clipboard contents. More...
 
void(* set )(const char *buffer, size_t length, nsclipboard_styles styles[], int n_styles)
 Core tells front end to put given text in clipboard. More...
 

Detailed Description

function table for clipboard operations.

Definition at line 42 of file clipboard.h.

Field Documentation

◆ get

void(* gui_clipboard_table::get) (char **buffer, size_t *length)

Core asks front end for clipboard contents.

Parameters
bufferUTF-8 text, allocated by front end, ownership yeilded to core
lengthByte length of UTF-8 text in buffer

Definition at line 49 of file clipboard.h.

Referenced by textarea_keypress(), and verify_clipboard_register().

◆ set

void(* gui_clipboard_table::set) (const char *buffer, size_t length, nsclipboard_styles styles[], int n_styles)

Core tells front end to put given text in clipboard.

Parameters
bufferUTF-8 text, owned by core
lengthByte length of UTF-8 text in buffer
stylesArray of styles given to text runs, owned by core, or NULL
n_stylesNumber of text run styles in array

Definition at line 59 of file clipboard.h.

Referenced by selection_copy_to_clipboard(), textarea_replace_text_internal(), treeview_copy_selection(), and verify_clipboard_register().


The documentation for this struct was generated from the following file: