Class CursorTheme

Class Documentation

class CursorTheme

Loads a cursor theme.

Cursor themes are specified as a colon-separated list of theme names. Mir will search each theme in order and use the first one it can load.

A theme specified via the --cursor-theme command-line option takes precedence over the constructor parameter.

Example:

"default:DMZ-White"

This tries to load the default theme first and falls back to DMZ-White if default is unavailable.

Public Functions

explicit CursorTheme(std::string const &theme)

Construct a cursor theme with the provided set of themes for the cursor.

Parameters:

theme – A colon-separated list of cursor themes. For example, “default:DMZ-White” would specify that the user wishes to load the default theme and, as a backup, the DMZ-White theme.

Throws:

std::runtime_error – if no theme contains a cursor named “default” with a size of 24x24, this exception will be thrown

~CursorTheme()
void operator()(mir::Server &server) const