Virtual touchscreen device handle.
More...
#include <src/include/libvirtualhid/runtime.hpp>
Virtual touchscreen device handle.
◆ Touchscreen() [1/2]
Move construct a touchscreen handle.
- Parameters
-
| other | Handle to move from. |
◆ Touchscreen() [2/2]
Construct a touchscreen handle for Runtime-owned state.
- Parameters
-
| token | Runtime construction token. |
| device | Shared touchscreen state. |
◆ close()
◆ device_id()
| DeviceId lvh::Touchscreen::device_id |
( |
| ) |
const |
|
overridevirtual |
Get the device identifier assigned by the runtime.
- Returns
- Device identifier.
Implements lvh::VirtualDevice.
◆ device_nodes()
| std::vector< DeviceNode > lvh::Touchscreen::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::Touchscreen::is_open |
( |
| ) |
const |
|
overridevirtual |
Check whether the device is open.
- Returns
true when the device can accept operations.
Implements lvh::VirtualDevice.
◆ last_submitted_contact()
| TouchContact lvh::Touchscreen::last_submitted_contact |
( |
| ) |
const |
Get the most recently submitted touch contact.
- Returns
- Last submitted touch contact.
◆ operator=() [1/2]
Copy assignment is disabled because the handle owns device lifetime.
- Returns
- This touchscreen handle.
◆ operator=() [2/2]
Move assign a touchscreen handle.
- Parameters
-
| other | Handle to move from. |
- Returns
- This touchscreen handle.
◆ place_contact()
Place or move a touch contact.
- Parameters
-
| contact | Touch contact state. |
- Returns
- Submit operation status.
◆ profile()
Get the profile used to create this device.
- Returns
- Device profile.
Implements lvh::VirtualDevice.
◆ release_contact()
| OperationStatus lvh::Touchscreen::release_contact |
( |
std::int32_t | contact_id | ) |
|
Release a touch contact.
- Parameters
-
| contact_id | Consumer-stable contact identifier. |
- Returns
- Submit operation status.
◆ submit_count()
| std::size_t lvh::Touchscreen::submit_count |
( |
| ) |
const |
Get the number of successful submit operations.
- Returns
- Submit count.
The documentation for this class was generated from the following file: