Skip to content

Commit

Permalink
Update wayland-cursor/src/lib.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Elinor B. <[email protected]>
  • Loading branch information
Decodetalkers and elinorbgr authored Apr 23, 2024
1 parent e47352a commit b78f6e3
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions wayland-cursor/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -211,9 +211,12 @@ impl CursorTheme {
}
}

/// Set the callback to load the data, the return value of the fallback function should be the source of
/// xcursor
/// Same as calling the following:
/// Set a callback to load the cursor data, in case the system theme is missing a cursor that you need.
///
/// Your callback will be invoked with he name and size of the requested cursor and should return a byte
/// array with the contents of an `xcursor` file, or `None` if you don't provide a fallback for this cursor.
///
/// For example, this defines a generic fallback cursor image and uses it for all missing cursors:
/// ```
/// # use wayland_cursor::CursorTheme;
/// # use wayland_client::{Connection, backend::InvalidId, protocol::wl_shm};
Expand Down

0 comments on commit b78f6e3

Please sign in to comment.