Ultralight C API 1.3.0
Loading...
Searching...
No Matches
CAPI_Clipboard.h
Go to the documentation of this file.
1/******************************************************************************
2 * This file is a part of Ultralight, an ultra-portable web-browser engine. *
3 * *
4 * See <https://ultralig.ht> for licensing and more. *
5 * *
6 * (C) 2023 Ultralight, Inc. *
7 *****************************************************************************/
8#ifndef ULTRALIGHT_CAPI_CLIPBOARD_H
9#define ULTRALIGHT_CAPI_CLIPBOARD_H
10
12
13#ifdef __cplusplus
14extern "C" {
15#endif
16
17/******************************************************************************
18 * Clipboard
19 *****************************************************************************/
20
21///
22/// The callback invoked when the library wants to clear the system's clipboard.
23///
24typedef void (*ULClipboardClearCallback)();
25
26///
27/// The callback invoked when the library wants to read from the system's clipboard.
28///
29/// You should store the result (if any) in 'result'.
30///
32
33///
34/// The callback invoked when the library wants to write to the system's clipboard.
35///
37
38typedef struct {
43
44#ifdef __cplusplus
45} // extern "C"
46#endif
47
48#endif // ULTRALIGHT_CAPI_CLIPBOARD_H
void(* ULClipboardWritePlainTextCallback)(ULString text)
The callback invoked when the library wants to write to the system's clipboard.
Definition CAPI_Clipboard.h:36
void(* ULClipboardClearCallback)()
The callback invoked when the library wants to clear the system's clipboard.
Definition CAPI_Clipboard.h:24
void(* ULClipboardReadPlainTextCallback)(ULString result)
The callback invoked when the library wants to read from the system's clipboard.
Definition CAPI_Clipboard.h:31
struct C_String * ULString
Definition CAPI_Defines.h:54
Definition CAPI_Clipboard.h:38
ULClipboardClearCallback clear
Definition CAPI_Clipboard.h:39
ULClipboardWritePlainTextCallback write_plain_text
Definition CAPI_Clipboard.h:41
ULClipboardReadPlainTextCallback read_plain_text
Definition CAPI_Clipboard.h:40