|
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...
|
|
◆ 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
-
theme | cursor theme to load from |
name | CSS cursor name to load |
- Returns
- requested cursor
The documentation for this class was generated from the following files:
- xbmc/windowing/wayland/Util.h
- xbmc/windowing/wayland/Util.cpp