Work with buttons (native)

The color devices have several modes of operations

where buttons of different kinds may be shown.
 
The library provides a button callback
that is raised when such a button is pressed with the pen.
 
The color of each button can be configured.
A button can be hidden and disabled.
A hidden button is invisible.
Clicks on a disabled button are ignored.
 
The library provides a function GetButtonConfigs
for getting the button configurations
of the connected device.
The buttons are tied to a device mode of operation that has buttons.
The color, the visibility, or the enabled state of the individual button configurations may be modified
Pass the changed button configs to SetButtonConfigs for the changes to take effect.