Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
#include <Util.h>
Static Public Member Functions | |
static wayland::cursor_t | LoadFromTheme (wayland::cursor_theme_t const &theme, std::string const &name) |
|
static |
Load a cursor from a theme with automatic fallback
Modern cursor themes use CSS names for the cursors as defined in the XDG cursor-spec (draft at the moment), but older themes might still use the cursor names that were popular with X11. This function tries to load a cursor by the given CSS name and automatically falls back to the corresponding X11 name if the load fails.
theme | cursor theme to load from |
name | CSS cursor name to load |