Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
KODI::WINDOWING::WAYLAND::CCursorUtil Class Reference

#include <Util.h>

Static Public Member Functions

static wayland::cursor_t LoadFromTheme (wayland::cursor_theme_t const &theme, std::string const &name)
 

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: