MCPcopy Create free account

hub / github.com/DoumanAsh/clipboard-win / functions

Functions118 in github.com/DoumanAsh/clipboard-win

↓ 44 callersMethodlen
(&self)
src/html.rs:23
↓ 29 callersMethodas_ptr
(&self)
src/html.rs:28
↓ 26 callersMethodget
(&self)
src/utils.rs:93
↓ 14 callersMethodas_mut_ptr
(&mut self)
src/utils.rs:187
↓ 10 callersMethodlock
(&self)
src/utils.rs:107
↓ 9 callersMethodwrite_clipboard
(&self, data: &T)
src/formats.rs:114
↓ 7 callersFunctionget_clipboard_data
Retrieves raw pointer to clipboard data. Wrapper around ```GetClipboardData```. Pre-conditions: [open()](fn.open.html) has been called.
src/raw.rs:226
↓ 7 callersMethodset_len
(&mut self, len: usize)
src/utils.rs:191
↓ 6 callersMethodas_ref
(&self)
src/html.rs:35
↓ 5 callersFunctionformat_name
Returns format name based on it's code. Parameters: ```format``` - clipboard format code. ```out``` - temporary buffer to hold text. Buffer can be c
src/raw.rs:1045
↓ 5 callersMethodtry_recv
Attempts to get any clipboard update event Returns `Ok(true)` if event received, otherwise return `Ok(false)` indicating no clipboard event present
src/monitor.rs:146
↓ 4 callersMethodread_clipboard
(&self, out: &mut alloc::vec::Vec<u8>)
src/formats.rs:121
↓ 4 callersFunctionregister_format
Registers a new clipboard format with specified name. Returns: Newly registered format identifier, if successful. Note: Custom format identifier i
src/raw.rs:1135
↓ 4 callersMethodrelease
(self)
src/utils.rs:103
↓ 4 callersFunctionunlikely_empty_size_result
()
src/utils.rs:14
↓ 3 callersFunctioninvalid_data
()
src/raw.rs:38
↓ 3 callersMethoditer
(&self)
src/monitor.rs:107
↓ 3 callersMethodrecv
Waits for new clipboard message, blocking until then. Returns `Ok(true)` if event received. If `Shutdown` request detected, then return `Ok(false)`
src/monitor.rs:128
↓ 3 callersFunctionregister_raw_format
Registers a new clipboard format with specified name as C wide string (meaning it must have null char at the end). Returns: Newly registered format
src/raw.rs:1119
↓ 3 callersFunctionset_clipboard_string
(data: &str)
src/lib.rs:250
↓ 2 callersMethodas_slice
(&self)
src/utils.rs:175
↓ 2 callersMethodcode
Gets raw format code
src/formats.rs:250
↓ 2 callersFunctionget_html
Retrieves HTML using format code created by `register_raw_format` or `register_format` with argument `HTML Format`
src/raw.rs:322
↓ 2 callersMethodnext
(&mut self)
src/monitor.rs:172
↓ 2 callersMethodnext
Returns next format on clipboard. In case of failure (e.g. clipboard is closed) returns `None`.
src/raw.rs:961
↓ 2 callersFunctionopen_for
Opens clipboard associating it with specified window handle. Unless [empty](fn.empty.html) is called, `owner` would be `None`. Wrapper around ```Ope
src/raw.rs:106
↓ 2 callersFunctionset
Set data onto clipboard.
src/lib.rs:225
↓ 2 callersFunctionset_bitmap
Sets bitmap (header + RGB) onto clipboard, from raw bytes. Returns `ERROR_INCORRECT_SIZE` if size of data is not valid
src/raw.rs:787
↓ 2 callersFunctionset_bitmap_inner
(data: &[u8], clear: EmptyFn)
src/raw.rs:805
↓ 2 callersFunctionset_file_list_inner
(paths: &[impl AsRef<str>], empty: EmptyFn)
src/raw.rs:864
↓ 2 callersFunctionset_html_inner
(format: u32, html: &str, empty: EmptyFn)
src/raw.rs:401
↓ 2 callersFunctionset_inner
(format: u32, data: &[u8], clear: EmptyFn)
src/raw.rs:486
↓ 2 callersFunctionset_string_inner
(data: &str, clear: EmptyFn)
src/raw.rs:556
↓ 2 callersMethodshutdown_channel
Creates shutdown channel.
src/monitor.rs:117
↓ 2 callersFunctionunlikely_last_error
()
src/utils.rs:20
↓ 1 callersFunctionclose
Closes clipboard. Wrapper around ```CloseClipboard```. Pre-conditions: [open()](fn.open.html) has been called.
src/raw.rs:121
↓ 1 callersFunctioncount_formats
Retrieves number of currently available formats on clipboard. Returns `None` if `CountClipboardFormats` failed.
src/raw.rs:262
↓ 1 callersFunctionempty
Empties clipboard. Wrapper around ```EmptyClipboard```. Pre-conditions: [open()](fn.open.html) has been called.
src/raw.rs:142
↓ 1 callersFunctionformat_name_big
Returns format name based on it's code (allocating variant suitable for big names) Parameters: ```format``` clipboard format code. Return result:
src/raw.rs:1081
↓ 1 callersFunctionget
Retrieve data from clipboard.
src/lib.rs:209
↓ 1 callersFunctionget_bitmap
Reads bitmap image, appending image to the `out` vector and returning number of bytes read on success. Output will contain header following by RGB
src/raw.rs:682
↓ 1 callersFunctionget_clipboard
Shortcut to retrieve data from clipboard. It opens clipboard and gets output, if possible.
src/lib.rs:218
↓ 1 callersFunctionget_file_list
Retrieves file list from clipboard, appending each element to the provided storage. Returns number of appended file names.
src/raw.rs:646
↓ 1 callersFunctionget_file_list_path
Retrieves file list from clipboard, appending each element to the provided storage. Returns number of appended file names.
src/raw.rs:606
↓ 1 callersFunctionget_string
Copies raw bytes from clipboard with specified `format`, appending to `out` buffer. Returns number of copied bytes on success, otherwise 0.
src/raw.rs:526
↓ 1 callersFunctionget_vec
Copies raw bytes from clipboard with specified `format`, appending to `out` buffer. Returns number of copied bytes on success, otherwise 0.
src/raw.rs:301
↓ 1 callersFunctionopen
Opens clipboard. Wrapper around ```OpenClipboard```. Pre-conditions: Clipboard is not opened yet. Post-conditions (if successful): Clipboard can
src/raw.rs:86
↓ 1 callersMethodpush_data
(&mut self, text: &[u8])
src/utils.rs:133
↓ 1 callersMethodpush_str
(&mut self, input: &str)
src/utils.rs:170
↓ 1 callersMethodremaining
(&self)
src/utils.rs:128
↓ 1 callersFunctionset_clipboard
Shortcut to set data onto clipboard. It opens clipboard and attempts to set data.
src/lib.rs:233
↓ 1 callersFunctionset_file_list
Set list of file paths to clipboard.
src/raw.rs:853
↓ 1 callersFunctionset_html
Sets HTML using format code created by `register_raw_format` or `register_format` with argument `HTML Format`
src/raw.rs:397
↓ 1 callersFunctionset_string
Copies unicode string onto clipboard, performing necessary conversions, returning true on success.
src/raw.rs:587
↓ 1 callersMethodsize
(&self)
src/utils.rs:98
↓ 1 callersFunctionwhich_format_avail
Returns the first available format in the specified list. Returns `None` if no format is available or clipboard is empty
src/raw.rs:246
Methodas_str
(&self)
src/utils.rs:182
Functionclipboard_should_work
()
tests/test_clip.rs:165
Functioncustom_format_big
()
tests/formats.rs:16
Functioncustom_format_default_up_to_buf_capacity
()
tests/formats.rs:57
Functioncustom_format_overflow
()
tests/formats.rs:32
Functioncustom_format_smol
()
tests/formats.rs:4
Functioncustom_format_trunc_default
()
tests/formats.rs:49
Functioncustom_format_with_wide_chars
()
tests/formats.rs:65
Methoddrop
(&mut self)
src/utils.rs:54
Methoddrop
(&mut self)
src/lib.rs:165
Methoddrop
(&mut self)
src/monitor.rs:33
Methoddrop
(&mut self)
src/raw.rs:65
Functionfree_dc
(data: HDC, _: usize)
src/raw.rs:43
Functionfree_global_mem
(data: *mut c_void, _: usize)
src/utils.rs:44
Functionfree_rust_mem
(data: *mut c_void, size: usize)
src/utils.rs:29
Methodfrom
(this: &'a mut [u8])
src/utils.rs:199
Methodfrom
Constructs enumerator that starts from format.
src/raw.rs:944
Methodfrom
(value: &RawData)
src/formats.rs:128
Methodfrom_borrowed
(ptr: ptr::NonNull<c_void>)
src/utils.rs:88
Functionget
Copies raw bytes from clipboard with specified `format` Returns number of copied bytes on success, otherwise 0. It is safe to pass uninit memory
src/raw.rs:279
Functionget_clipboard_string
()
src/lib.rs:242
Methodis_char_boundary
(text: &[u8], idx: usize)
src/utils.rs:137
Functionis_format_avail
Determines whenever provided clipboard format is available on clipboard or not.
src/raw.rs:238
Methodnew
Attempts to open clipboard, returning clipboard instance on success.
src/lib.rs:130
Methodnew
Subscribes window to clipboard changes.
src/monitor.rs:48
Methodnew
()
src/html.rs:18
Methodnew
()
src/raw.rs:56
Methodnew
Creates new instance, if possible
src/formats.rs:240
Methodnew_attempts
Attempts to open clipboard, giving it `num` retries in case of failure.
src/lib.rs:142
Methodnew_attempts_for
Attempts to open clipboard, giving it `num` retries in case of failure.
src/lib.rs:148
Methodnew_for
Attempts to open clipboard, associating it with specified `owner` and returning clipboard instance on success.
src/lib.rs:136
Methodnew_global_mem
(size: usize)
src/utils.rs:76
Methodnew_rust_mem
(size: usize)
src/utils.rs:63
Functionnoop
(_: *mut c_void, _: usize)
src/utils.rs:25
Functionnoop
()
src/options.rs:19
Methodreset
Resets enumerator to list all available formats.
src/raw.rs:949
Functionseq_num
Retrieves clipboard sequence number. Wrapper around ```GetClipboardSequenceNumber```. Returns: ```Some``` Contains return value of ```GetClipboardS
src/raw.rs:158
Functionset
Copies raw bytes onto clipboard with specified `format`, returning whether it was successful. This function empties the clipboard before setting the
src/raw.rs:512
Functionset_bitamp
(data: &[u8])
src/raw.rs:780
Functionset_bitmap_with
Sets bitmap (header + RGB) onto clipboard, from raw bytes. Returns `ERROR_INCORRECT_SIZE` if size of data is not valid Allows to customize clipboard
src/raw.rs:801
Functionset_file_list_with
Set list of file paths to clipboard.
src/raw.rs:860
Functionset_html_with
Sets HTML using format code created by `register_raw_format` or `register_format` with argument `HTML Format` Allows to customize clipboard setting b
src/raw.rs:392
Functionset_string_with
Copies unicode string onto clipboard, performing necessary conversions, returning true on success. Allows to customize clipboard setting behavior -
src/raw.rs:598
Functionset_without_clear
Copies raw bytes onto the clipboard with the specified `format`, returning whether it was successful. This function does not empty the clipboard befo
src/raw.rs:519
next →1–100 of 118, ranked by callers