Expand description
Structs§
- Enum
Formats - 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
format
- get_
bitmap - Reads bitmap image, appending image to the
out
vector and returning number of bytes read on success. - 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_
html - Retrieves HTML using format code created by
register_raw_format
orregister_format
with argumentHTML Format
- get_
owner - Retrieves the window handle of the current owner of the clipboard.
- get_
string - Copies raw bytes from clipboard with specified
format
, appending toout
buffer. - get_vec
- Copies raw bytes from clipboard with specified
format
, appending toout
buffer. - 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
format
, returning whether it was successful. - set_
bitmap - Sets bitmap (header + RGB) onto clipboard, from raw bytes.
- set_
bitmap_ with - Sets bitmap (header + RGB) onto clipboard, from raw bytes.
- set_
file_ list - Set list of file paths to clipboard.
- set_
file_ list_ with - Set list of file paths to clipboard.
- set_
html - Sets HTML using format code created by
register_raw_format
orregister_format
with argumentHTML Format
- set_
html_ with - Sets HTML using format code created by
register_raw_format
orregister_format
with argumentHTML Format
- set_
string - Copies unicode string onto clipboard, performing necessary conversions, returning true on success.
- set_
string_ with - Copies unicode string onto clipboard, performing necessary conversions, returning true on success.
- set_
without_ clear - Copies raw bytes onto the clipboard with the specified
format
, returning whether it was successful. - size
- Retrieves size of clipboard data for specified format.
- size_
unsafe ⚠ - Retrieves size of clipboard data for specified format.
- which_
format_ avail - Returns the first available format in the specified list.