Virtual pen tablet device handle.
More...
#include <src/include/libvirtualhid/runtime.hpp>
Virtual pen tablet device handle.
◆ PenTablet() [1/2]
| lvh::PenTablet::PenTablet |
( |
PenTablet && | other | ) |
|
|
noexcept |
Move construct a pen tablet handle.
- Parameters
-
| other | Handle to move from. |
◆ PenTablet() [2/2]
Construct a pen tablet handle for Runtime-owned state.
- Parameters
-
| token | Runtime construction token. |
| device | Shared pen tablet state. |
◆ button()
Submit a tablet button transition.
- Parameters
-
| button | Button to update. |
| pressed | Whether the button is pressed. |
- Returns
- Submit operation status.
◆ close()
◆ device_id()
| DeviceId lvh::PenTablet::device_id |
( |
| ) |
const |
|
overridevirtual |
Get the device identifier assigned by the runtime.
- Returns
- Device identifier.
Implements lvh::VirtualDevice.
◆ device_nodes()
| std::vector< DeviceNode > lvh::PenTablet::device_nodes |
( |
| ) |
const |
|
overridevirtual |
Get platform-visible nodes associated with the device.
- Returns
- Device nodes and diagnostic paths currently known to the backend.
Implements lvh::VirtualDevice.
◆ is_open()
| bool lvh::PenTablet::is_open |
( |
| ) |
const |
|
overridevirtual |
Check whether the device is open.
- Returns
true when the device can accept operations.
Implements lvh::VirtualDevice.
◆ last_submitted_tool()
Get the most recently submitted tool state.
- Returns
- Last submitted tool state.
◆ operator=() [1/2]
Copy assignment is disabled because the handle owns device lifetime.
- Returns
- This pen tablet handle.
◆ operator=() [2/2]
Move assign a pen tablet handle.
- Parameters
-
| other | Handle to move from. |
- Returns
- This pen tablet handle.
◆ place_tool()
Place or move the active tablet tool.
- Parameters
-
- Returns
- Submit operation status.
◆ profile()
Get the profile used to create this device.
- Returns
- Device profile.
Implements lvh::VirtualDevice.
◆ submit_count()
| std::size_t lvh::PenTablet::submit_count |
( |
| ) |
const |
Get the number of successful submit operations.
- Returns
- Submit count.
The documentation for this class was generated from the following file: