Module: cwc.tablet
Tag object for drawing tablet device.
| data |
table |
user data table |
Read only
|
| width |
integer |
Width of the tablet in mm.
|
Read only
|
| height |
integer |
Height of the tablet in mm.
|
Read only
|
| usb_product_id |
integer |
USB product ID of the tablet (zero if unset).
|
Read only
|
| usb_vendor_id |
integer |
USB vendor ID of the tablet (zero if unset).
|
Read only
|
-
🔗
cwc.tablet.get ()
-> cwc_tablet[]
-
Get all tablet in the server.
Returns:
cwc_tablet[]
-
🔗
width
integer
· read only
-
Width of the tablet in mm.
Constraints:
|
Default value
|
: 0 |
|
Negative allowed
|
: false |
-
🔗
height
integer
· read only
-
Height of the tablet in mm.
Constraints:
|
Default value
|
: 0 |
|
Negative allowed
|
: false |
-
🔗
usb_product_id
integer
· read only
-
USB product ID of the tablet (zero if unset).
Constraints:
|
Default value
|
: 0 |
|
Negative allowed
|
: false |
-
🔗
usb_vendor_id
integer
· read only
-
USB vendor ID of the tablet (zero if unset).
Constraints:
|
Default value
|
: 0 |
|
Negative allowed
|
: false |
-
🔗
:map_to_output (output)
-
Map tablet surface to a screen.
Parameters:
| output |
|
cwc_output |
The output. |
-
🔗
:map_to_output (region)
-
Map tablet surface to rectangular region.
Parameters:
| region |
|
table |
|
| x |
|
integer |
|
| y |
|
integer |
|
| width |
|
integer |
|
| height |
|
integer |
|
-
🔗
tablet::new
-
A new tablet has been connected.
Arguments:
| tablet |
|
cwc_tablet |
The tablet object. |
-
🔗
tablet::destroy
-
A tablet has been disconnected.
Arguments:
| tablet |
|
cwc_tablet |
The tablet object. |