Runtime that owns backend state and creates virtual devices.
More...
#include <src/include/libvirtualhid/runtime.hpp>
Runtime that owns backend state and creates virtual devices.
◆ Runtime() [1/2]
| lvh::Runtime::Runtime |
( |
Runtime && | other | ) |
|
|
noexcept |
Move construct a runtime.
- Parameters
-
◆ Runtime() [2/2]
◆ active_device_count()
| std::size_t lvh::Runtime::active_device_count |
( |
| ) |
const |
Get the number of open devices owned by the runtime.
- Returns
- Active device count.
◆ backend_kind()
Get the backend kind used by this runtime.
- Returns
- Backend kind.
◆ capabilities()
Get capabilities for the selected backend.
- Returns
- Backend capabilities.
◆ create()
Create a runtime with the requested options.
- Parameters
-
- Returns
- Runtime instance.
◆ create_gamepad() [1/2]
Create a gamepad from full creation options.
- Parameters
-
- Returns
- Gamepad creation result.
◆ create_gamepad() [2/2]
Create a gamepad from a profile.
- Parameters
-
- Returns
- Gamepad creation result.
◆ create_keyboard() [1/2]
Create a keyboard with the built-in keyboard profile.
- Returns
- Keyboard creation result.
◆ create_keyboard() [2/2]
Create a keyboard from full creation options.
- Parameters
-
- Returns
- Keyboard creation result.
◆ create_mouse() [1/2]
Create a mouse with the built-in mouse profile.
- Returns
- Mouse creation result.
◆ create_mouse() [2/2]
Create a mouse from full creation options.
- Parameters
-
| options | Mouse creation options. |
- Returns
- Mouse creation result.
◆ create_pen_tablet() [1/2]
Create a pen tablet with the built-in pen tablet profile.
- Returns
- Pen tablet creation result.
◆ create_pen_tablet() [2/2]
Create a pen tablet from full creation options.
- Parameters
-
| options | Pen tablet creation options. |
- Returns
- Pen tablet creation result.
◆ create_touchscreen() [1/2]
Create a touchscreen with the built-in touchscreen profile.
- Returns
- Touchscreen creation result.
◆ create_touchscreen() [2/2]
Create a touchscreen from full creation options.
- Parameters
-
- Returns
- Touchscreen creation result.
◆ create_trackpad() [1/2]
Create a trackpad with the built-in trackpad profile.
- Returns
- Trackpad creation result.
◆ create_trackpad() [2/2]
Create a trackpad from full creation options.
- Parameters
-
- Returns
- Trackpad creation result.
◆ operator=() [1/2]
Copy assignment is disabled because the runtime owns backend state.
- Returns
- This runtime.
◆ operator=() [2/2]
Move assign a runtime.
- Parameters
-
- Returns
- This runtime.
The documentation for this class was generated from the following file: