Lazy WinAPI
|
Source code of Clipboard module. More...
#include "clipboard.h"
Macros | |
#define | CAT(_left, _right) _left##_right |
#define | FORMATTER(_name) case _name: result = swprintf(buffer, size, CAT(L, #_name)); break |
Functions | |
bool | Clipboard_open () |
Opens clipboard for use in the current thread. More... | |
bool | Clipboard_close () |
Closes clipboard. More... | |
bool | Clipboard_empty () |
Empties clipboard. More... | |
size_t | Clipboard_get_size (UINT format) |
Retrieves size in bytes of clipboard content. More... | |
size_t | Clipboard_get (UINT format, uint8_t *ptr, size_t size) |
Gets clipboard content of specific format. More... | |
bool | Clipboard_set (UINT format, const uint8_t *ptr, size_t size) |
Sets clipboard content of specific format. More... | |
bool | Clipboard_set_string (const char *text) |
Sets wide string onto clipboard as format CF_TEXT. More... | |
bool | Clipboard_set_wide_string (const wchar_t *text) |
Sets string onto clipboard as format CF_UNICODETEXT. More... | |
bool | Clipboard_is_format_avail (UINT format) |
UINT | Clipboard_register_format (const wchar_t *name) |
Registers new clipboard format. More... | |
int | Clipboard_get_format_name (UINT format, wchar_t *buffer, size_t size) |
Retrieves the name of clipboard format. More... | |
Source code of Clipboard module.
#define CAT | ( | _left, | |
_right | |||
) | _left##_right |
#define FORMATTER | ( | _name | ) | case _name: result = swprintf(buffer, size, CAT(L, #_name)); break |