Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Sirulex/cursor-clip
/ functions
Functions
112 in github.com/Sirulex/cursor-clip
⨍
Functions
112
◇
Types & classes
21
↓ 22 callers
Method
destroy
(self)
src/backend/backend_state.rs:53
↓ 9 callers
Method
id
(&self)
src/backend/backend_state.rs:117
↓ 6 callers
Function
rebuild_list
(list_box: >k4::ListBox, history_state: &HistoryListState)
src/frontend/gtk_overlay.rs:1320
↓ 6 callers
Function
select_first_row
(list_box: >k4::ListBox)
src/frontend/gtk_overlay.rs:1365
↓ 6 callers
Function
select_first_row_with_focus
(list_box: >k4::ListBox, grab_focus: bool)
src/frontend/gtk_overlay.rs:1373
↓ 6 callers
Method
send_message
Send a message and get response
src/frontend/ipc_client.rs:20
↓ 5 callers
Method
persist_history_if_enabled
(&self)
src/backend/backend_state.rs:507
↓ 5 callers
Function
request_quit
Centralized quit path to avoid double-close reentrancy and ensure flags + app quit
src/frontend/gtk_overlay.rs:114
↓ 5 callers
Function
save_config
(config: &UserConfig)
src/frontend/gtk_overlay.rs:95
↓ 3 callers
Method
as_str
Return a static string representation of the content type (future multi-language support)
src/shared/data_structures.rs:116
↓ 2 callers
Method
add_clipboard_item_from_mime_map
( &mut self, mut mime_content: IndexMap<String, Bytes>, )
src/backend/backend_state.rs:205
↓ 2 callers
Function
apply_pinned_state
(history_state: &HistoryListState, item_id: u64, pinned: bool)
src/frontend/gtk_overlay.rs:1444
↓ 2 callers
Method
bind_data_device
(&self, manager: DataControlManager, qh: &QueueHandle<MutexBackendState>)
src/backend/wayland_clipboard.rs:94
↓ 2 callers
Function
config_dir
()
src/backend/persistence.rs:210
↓ 2 callers
Function
config_path
()
src/frontend/gtk_overlay.rs:66
↓ 2 callers
Method
delete_item_by_id
Delete a single clipboard item by ID
src/frontend/ipc_client.rs:95
↓ 2 callers
Function
find_button_in_row
(row: >k4::ListBoxRow, class_name: &str)
src/frontend/gtk_overlay.rs:1498
↓ 2 callers
Method
get_history
Get clipboard history
src/frontend/ipc_client.rs:37
↓ 2 callers
Method
get_item_by_id
(&self, id: u64)
src/backend/backend_state.rs:338
↓ 2 callers
Function
handle_data_offer
Handle a new data offer from either Wlr or Ext device.
src/backend/wayland_clipboard.rs:126
↓ 2 callers
Function
handle_offer_mime
Register an offered MIME type for the given offer object, filtering out video types.
src/backend/wayland_clipboard.rs:132
↓ 2 callers
Function
handle_selection_event
Handle a Selection event from either Wlr or Ext device. `read_mime_data` is called (with the lock released) to read the data from the offer.
src/backend/wayland_clipboard.rs:147
↓ 2 callers
Function
handle_source_cancelled
Handle a Source Cancelled event. Re-enables selection reading if this is the active source.
src/backend/wayland_clipboard.rs:243
↓ 2 callers
Function
handle_source_send
Handle a Source Send event for either Wlr or Ext source.
src/backend/wayland_clipboard.rs:216
↓ 2 callers
Function
history_db_path
()
src/backend/persistence.rs:33
↓ 2 callers
Function
load_overlay_css
(css_provider: >k4::CssProvider, is_dark: bool)
src/frontend/gtk_overlay.rs:859
↓ 2 callers
Function
next_pinned_state
(history_state: &HistoryListState, item_id: u64)
src/frontend/gtk_overlay.rs:1435
↓ 2 callers
Function
read_all_data_formats
Read clipboard data for all target MIME types from any offer type.
src/backend/wayland_clipboard.rs:495
↓ 2 callers
Function
schedule_next_frame_check
(state: &mut State, qhandle: &QueueHandle<State>, frame_count: u8)
src/frontend/dispatch/frame_callback.rs:88
↓ 2 callers
Function
select_next_row
(list_box: >k4::ListBox, wrap_to_first: bool)
src/frontend/gtk_overlay.rs:1386
↓ 2 callers
Function
select_previous_row
(list_box: >k4::ListBox, wrap_to_first: bool)
src/frontend/gtk_overlay.rs:1401
↓ 2 callers
Function
select_row_by_item_id
(list_box: >k4::ListBox, history_state: &HistoryListState, item_id: u64)
src/frontend/gtk_overlay.rs:1418
↓ 2 callers
Method
set_clipboard_by_id
( &mut self, entry_id: u64, instant_paste: bool, )
src/backend/backend_state.rs:380
↓ 2 callers
Function
set_delete_buttons_visible
(list_box: >k4::ListBox, visible: bool)
src/frontend/gtk_overlay.rs:1475
↓ 2 callers
Method
set_persistence_enabled
Enable or disable persistent history in the backend
src/frontend/ipc_client.rs:82
↓ 2 callers
Method
set_persistence_enabled
(&mut self, enabled: bool)
src/backend/backend_state.rs:459
↓ 2 callers
Function
set_pin_icons_visible
(list_box: >k4::ListBox, visible: bool)
src/frontend/gtk_overlay.rs:1487
↓ 2 callers
Method
set_pinned
Set pinned state by ID
src/frontend/ipc_client.rs:62
↓ 2 callers
Function
u64_to_i64
(value: u64)
src/backend/persistence.rs:219
↓ 1 callers
Method
add_clipboard_item_from_text
(&mut self, text: &str)
src/backend/backend_state.rs:322
↓ 1 callers
Function
apply_custom_styling
Apply custom CSS styling for modern GNOME-style rounded window
src/frontend/gtk_overlay.rs:838
↓ 1 callers
Function
cleanup_capture_layer
Destroy capture/update layer resources and underlying Wayland objects.
src/frontend/dispatch/layer_shell.rs:103
↓ 1 callers
Function
cleanup_update_layer
Destroy only the update layer resources (used after minimal frame delay).
src/frontend/dispatch/layer_shell.rs:155
↓ 1 callers
Method
clear_history
Clear history
src/frontend/ipc_client.rs:72
↓ 1 callers
Method
clear_history
(&mut self)
src/backend/backend_state.rs:342
↓ 1 callers
Function
config_path
()
src/backend/persistence.rs:215
↓ 1 callers
Function
configure_color_scheme
()
src/frontend/gtk_overlay.rs:191
↓ 1 callers
Method
create_data_source
(&self, qh: &QueueHandle<MutexBackendState>)
src/backend/backend_state.rs:60
↓ 1 callers
Function
create_layer_shell_window
Create and configure the sync layer shell window
src/frontend/gtk_overlay.rs:197
↓ 1 callers
Function
create_pipes
Create a pipe, returning `OwnedFd` handles for the read and write ends.
src/backend/wayland_clipboard.rs:451
↓ 1 callers
Function
create_transparent_buffer
Helper to create a 1x1 fully transparent buffer either via SPBM or SHM fallback
src/frontend/initializer.rs:238
↓ 1 callers
Function
db_has_persisted_items
()
src/backend/persistence.rs:75
↓ 1 callers
Function
decrypt_payload
(cipher: &Aes256Gcm, payload: &str)
src/backend/persistence.rs:246
↓ 1 callers
Method
delete_item_by_id
(&mut self, entry_id: u64)
src/backend/backend_state.rs:356
↓ 1 callers
Function
derive_cipher
(password: &str)
src/backend/persistence.rs:223
↓ 1 callers
Function
encrypt_payload
(cipher: &Aes256Gcm, plaintext: &str)
src/backend/persistence.rs:230
↓ 1 callers
Function
format_timestamp
Format Unix timestamp to relative time string
src/frontend/gtk_overlay.rs:1521
↓ 1 callers
Function
generate_and_store_db_password
()
src/backend/persistence.rs:51
↓ 1 callers
Function
generate_key_controller
Build the key controller handling Esc (close), j/k or arrows (navigate) and Enter (activate)
src/frontend/gtk_overlay.rs:689
↓ 1 callers
Function
generate_listboxrow_from_preview
Create a clipboard history item row from backend data
src/frontend/gtk_overlay.rs:1169
↓ 1 callers
Function
generate_overlay_content
Create a Windows 11-style clipboard history list with provided (prefetched) backend data. Falls back to a lazy on-demand fetch only if the provided ve
src/frontend/gtk_overlay.rs:283
↓ 1 callers
Method
get_data_device
( &self, seat: &wl_seat::WlSeat, qh: &QueueHandle<MutexBackendState>, )
src/backend/backend_state.rs:67
↓ 1 callers
Method
get_history
(&self)
src/backend/backend_state.rs:331
↓ 1 callers
Function
handle_client
( stream: UnixStream, state: Arc<Mutex<BackendState>>, )
src/backend/ipc_server.rs:62
↓ 1 callers
Method
icon
(self)
src/shared/data_structures.rs:129
↓ 1 callers
Function
init_clipboard_overlay
( x: f64, y: f64, overlay_width: i32, overlay_height: i32, monitor_width: i32, monitor
src/frontend/gtk_overlay.rs:131
↓ 1 callers
Function
init_wayland_protocols
( globals: &GlobalList, queue: &EventQueue<State>, state: &mut State, )
src/frontend/initializer.rs:107
↓ 1 callers
Function
is_close_requested
()
src/frontend/gtk_overlay.rs:105
↓ 1 callers
Function
item_matches_query
(item: &ClipboardItemPreview, query: &str)
src/frontend/gtk_overlay.rs:1356
↓ 1 callers
Method
load_history
(&self)
src/backend/persistence.rs:151
↓ 1 callers
Function
load_or_create_config
()
src/frontend/gtk_overlay.rs:74
↓ 1 callers
Function
load_persistence_enabled_from_config
()
src/backend/persistence.rs:22
↓ 1 callers
Function
make_placeholder_row_with_message
(message: &str)
src/frontend/gtk_overlay.rs:1463
↓ 1 callers
Method
offer
(&self, mime_type: String)
src/backend/backend_state.rs:110
↓ 1 callers
Function
paste_via_virtual_keyboard_shortcut
()
src/backend/virtual_keyboard.rs:50
↓ 1 callers
Function
read_db_password_from_keyring_once
()
src/backend/persistence.rs:40
↓ 1 callers
Method
receive_mime
(&self, mime_type: String, fd: std::os::fd::BorrowedFd<'_>)
src/backend/wayland_clipboard.rs:483
↓ 1 callers
Function
reset_close_flags
()
src/frontend/gtk_overlay.rs:109
↓ 1 callers
Function
run_backend
(monitor_only: bool)
src/backend/ipc_server.rs:10
↓ 1 callers
Function
run_frontend
Frontend always uses its own Wayland connection (may change in future to support shared connection/hide feature)
src/frontend/initializer.rs:72
↓ 1 callers
Function
run_main_event_loop
( state: &mut State, queue: &mut EventQueue<State>, )
src/frontend/initializer.rs:21
↓ 1 callers
Method
save_history
(&self, history: &[ClipboardItem])
src/backend/persistence.rs:185
↓ 1 callers
Function
select_first_row_without_focus
(list_box: >k4::ListBox)
src/frontend/gtk_overlay.rs:1369
↓ 1 callers
Function
select_target_mimes
Select the MIME types to actually read from the available list. When image types are present, keep only PNG image data and all non-image variants.
src/backend/wayland_clipboard.rs:465
↓ 1 callers
Method
set_clipboard_by_id
Set clipboard by ID
src/frontend/ipc_client.rs:47
↓ 1 callers
Method
set_pinned
(&mut self, entry_id: u64, pinned: bool)
src/backend/backend_state.rs:435
↓ 1 callers
Method
set_selection
(&self, source: Option<&DataControlSource>)
src/backend/backend_state.rs:87
↓ 1 callers
Function
setup_capture_layer
(state: &mut State, queue: &EventQueue<State>)
src/frontend/initializer.rs:183
↓ 1 callers
Function
setup_update_layer
(state: &mut State, qhandle: &QueueHandle<State>)
src/frontend/dispatch/frame_callback.rs:51
↓ 1 callers
Method
start_monitoring
(&self)
src/backend/wayland_clipboard.rs:39
↓ 1 callers
Function
warn_persistence_sync_error
(context: &str, err: &str)
src/backend/persistence.rs:278
Method
default
()
src/frontend/gtk_overlay.rs:56
Method
default
()
src/frontend/frontend_state.rs:48
Method
default
()
src/backend/backend_state.rs:163
Method
drop
(&mut self)
src/backend/wayland_clipboard.rs:104
Method
event
( _state: &mut State, _registry: &WlRegistry, _event: wayland_client::protocol::wl_reg
src/frontend/dispatch/empty_dispatch.rs:44
Method
event
( state: &mut Self, seat: &wl_seat::WlSeat, event: wl_seat::Event, _data: &(),
src/frontend/dispatch/pointer.rs:8
Method
event
( state: &mut State, _callback: &wl_callback::WlCallback, event: wl_callback::Event,
src/frontend/dispatch/frame_callback.rs:17
Method
event
( state: &mut State, layer_surface: &zwlr_layer_surface_v1::ZwlrLayerSurfaceV1, event:
src/frontend/dispatch/layer_shell.rs:9
Method
event
( wrapper: &mut Self, _: &ZwlrDataControlDeviceV1, event: zwlr_data_control_device_v1:
src/backend/wayland_clipboard.rs:256
next →
1–100 of 112, ranked by callers