Function wayland_client::cursor::load_theme [] [src]

pub fn load_theme(name: Option<&str>, size: u32, shm: &WlShm) -> CursorTheme

Attempts to load a cursor theme from given name.

If no name is given or the requested theme is not found, will load the default theme.

Other arguments are the requested size for the cursor images (ex: 16) and a handle to the global WlShm object.

Panics:

  • If the wayland-cursor lib is not available (see is_available() function) in this module.
  • In case of memory allocation failure.
  • If the theme name provided as argument contains an interior null