The Context class provides the interface to the tablet driver.
| ) |
Context attributes:
| Option | Description |
|---|---|
CXO_SYSTEM |
The context is a system cursor context |
CXO_PEN |
The context is a Pen Windows (and system cursor) context |
CXO_MESSAGES |
The context sends WT_PACKET messages to its owner |
CXO_MARGIN |
The input context will have a margin |
CXO_MGNINSIDE |
The margin will be inside the specified context |
CXO_CSRMESSAGES |
The context sends WT_CSRCHANGE messages to its owner |
| Status bit | Description |
|---|---|
CXS_DISABLED |
The context has been disabled |
CXS_OBSCURED |
The context is at least partially obscured by another context |
CXS_ONTOP |
The context is the topmost context |
| Lock | Description |
|---|---|
CXL_INSIZE |
The input size cannot be changed |
CXL_INASPECT |
The input aspect ration cannot be changed |
CXL_MARGIN |
The margin options cannot be changed |
CXL_SENSITIVITY |
The sensitivity settings for x, y and z cannot be changed |
CXL_SYSOUT |
The system pointing control variables cannot be changed |
True specifies absolute,
False means relative.
Other attributes:
Methods:
| hwnd, enable) |
Set the context attributes to the desired values before calling this method. Modifying context attributes after the context was opened is possible with the set() method.
| hwnd, saveinfo, enable) |
| ) |
| ) |
| serial) |
| flag) |
True the context is enabled, otherwise it is disabled.
Returns True if the operation was successful.
| totop) |
True the context will become the topmost context,
otherwise it will be send to the bottom.
Returns True if the operation was successful.
| hwnd=0) |
True if the context was changed.
| ) |
| ) |
| maxpkts) |
| maxpkts) |
| begin, end, maxpkts) |
| begin, end, maxpkts) |
| ) |