Module clipboard_win::raw [−][src]
Expand description
Raw bindings to Windows clipboard.
General information
All pre & post conditions are stated in description of functions.
Open clipboard
To access any information inside clipboard it is necessary to open it by means of open().
After that Clipboard cannot be opened any more until close() is called.
Structs
EnumFormats | Enumerator over available clipboard formats. |
Functions
close | Closes clipboard. |
count_formats | Retrieves number of currently available formats on clipboard. |
empty | Empties clipboard. |
format_name | Returns format name based on it’s code. |
format_name_big | Returns format name based on it’s code (allocating variant suitable for big names) |
get | Copies raw bytes from clipboard with specified |
get_bitmap | Reads bitmap image, appending image to the |
get_clipboard_data | Retrieves raw pointer to clipboard data. |
get_file_list | Retrieves file list from clipboard, appending each element to the provided storage. |
get_owner | Retrieves the window handle of the current owner of the clipboard. |
get_string | Copies raw bytes from clipboard with specified |
get_vec | Copies raw bytes from clipboard with specified |
is_format_avail | Determines whenever provided clipboard format is available on clipboard or not. |
open | Opens clipboard. |
open_for | Opens clipboard associating it with specified window handle. |
register_format | Registers a new clipboard format with specified name. |
register_raw_format⚠ | Registers a new clipboard format with specified name as C wide string (meaning it must have null char at the end). |
seq_num | Retrieves clipboard sequence number. |
set | Copies raw bytes onto clipboard with specified |
set_bitmap | Sets bitmap (header + RGB) onto clipboard, from raw bytes. |
set_string | Copies unicode string onto clipboard, performing necessary conversions, returning true on success. |
size | Retrieves size of clipboard data for specified format. |
size_unsafe⚠ | Retrieves size of clipboard data for specified format. |