Module: cwc.tablet

Tag object for drawing tablet device.

Info:

  • Copyright: 2026
  • License: GPLv3
  • Originally authored by: Dwi Asmoro Bangun
    (Full contributors list available on our github project)

Static module functions

cwc.tablet.get () -> cwc_tablet[] Get all tablet in the server.

Object properties

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

Object methods

:map_to_output (output) Map tablet surface to a screen.
:map_to_output (region) Map tablet surface to rectangular region.

Signals

tablet::new A new tablet has been connected.
tablet::destroy A tablet has been disconnected.


Static module functions

🔗 cwc.tablet.get () -> cwc_tablet[]
Get all tablet in the server.

Returns:

    cwc_tablet[]

Object properties

🔗 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

Object methods

🔗 :map_to_output (output)
Map tablet surface to a screen.

Parameters:

Name Type(s) Description
output cwc_output The output.
🔗 :map_to_output (region)
Map tablet surface to rectangular region.

Parameters:

Name Type(s) Description
region table
x integer
y integer
width integer
height integer

Signals

🔗 tablet::new
A new tablet has been connected.

Arguments:

Name Type(s) Description
tablet cwc_tablet The tablet object.
🔗 tablet::destroy
A tablet has been disconnected.

Arguments:

Name Type(s) Description
tablet cwc_tablet The tablet object.
generated by LDoc 1.5.0 based on AwesomeWM template