kodi
Static Public Member Functions | List of all members
KODI::WINDOWING::WAYLAND::CCursorUtil Class Reference

Static Public Member Functions

static wayland::cursor_t LoadFromTheme (wayland::cursor_theme_t const &theme, std::string const &name)
 Load a cursor from a theme with automatic fallback. More...
 

Member Function Documentation

◆ LoadFromTheme()

wayland::cursor_t CCursorUtil::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.

Parameters
themecursor theme to load from
nameCSS cursor name to load
Returns
requested cursor

The documentation for this class was generated from the following files: