wHiteRabbiT-sTudio Framework
|
P/Invoke wrappers for Wintab functions. More...
Public Member Functions | |
static UInt32 | WTInfoA (UInt32 wCategory_I, UInt32 nIndex_I, IntPtr lpOutput_O) |
This function returns global information about the interface in an application-supplied buffer. More... | |
static P_HCTX | WTOpenA (P_HWND hWnd_I, ref WintabLogContext logContext_I, bool enable_I) |
This function establishes an active context on the tablet. More... | |
static bool | WTClose (P_HCTX hctx_I) |
This function closes and destroys the tablet context object. More... | |
static bool | WTEnable (P_HCTX hctx_I, bool enable_I) |
This function enables or disables a tablet context, temporarily turning on or off the processing of packets. More... | |
static bool | WTOverlap (P_HCTX hctx_I, bool toTop_I) |
This function sends a tablet context to the top or bottom of the order of overlapping tablet contexts. More... | |
static UInt32 | WTQueueSizeGet (P_HCTX hctx_I) |
This function returns the number of packets the context's queue can hold. More... | |
static bool | WTQueueSizeSet (P_HCTX hctx_I, UInt32 nPkts_I) |
This function attempts to change the context's queue size to the value specified in nPkts_I. More... | |
static bool | WTPacket (P_HCTX hctx_I, UInt32 pktSerialNum_I, IntPtr pktBuf_O) |
This function fills in the passed pktBuf_O buffer with the context event packet having the specified serial number. More... | |
static UInt32 | WTPacketsGet (P_HCTX hctx_I, UInt32 maxPkts_I, IntPtr pktBuf_O) |
This function copies the next maxPkts_I events from the packet queue of context hCtx to the passed pktBuf_O buffer and removes them from the queue More... | |
static UInt32 | WTDataGet (P_HCTX hctx_I, UInt32 pktIDStart_I, UInt32 pktIDEnd_I, UInt32 maxPkts_I, IntPtr pktBuf_O, ref UInt32 numPkts_O) |
A This function copies all packets with Identifiers between pktIDStart_I and pktIDEnd_I inclusive from the context's queue to the passed buffer and removes them from the queue. More... | |
static UInt32 | WTDataPeek (P_HCTX hctx_I, UInt32 pktIDStart_I, UInt32 pktIDEnd_I, UInt32 maxPkts_I, IntPtr pktBuf_O, ref UInt32 numPkts_O) |
This function copies all packets with serial numbers between pktIDStart_I and pktIDEnd_I inclusive, from the context's queue to the passed buffer without removing them from the queue. More... | |
static bool | WTQueuePacketsEx (P_HCTX hctx_I, ref UInt32 pktIDOldest_O, ref UInt32 pktIDNewest_O) |
This function returns the identifiers of the oldest and newest packets currently in the queue. More... | |
static bool | WTExtGet (P_HCTX hctx_I, UInt32 extTag_I, IntPtr extData_O) |
This function retrieves any context-specific data for an extension. More... | |
static bool | WTExtSet (P_HCTX hctx_I, UInt32 extTag_I, IntPtr extData_I) |
This function sets any context-specific data for an extension. More... | |
P/Invoke wrappers for Wintab functions.
See Wintab_v140.doc (Wintab 1.4 spec) and related Wintab documentation for details.
static bool wHiteRabbiT.Common.Wacom.CWintabFuncs.WTClose | ( | P_HCTX | hctx_I | ) |
This function closes and destroys the tablet context object.
hctx_I | Identifies the context to be closed. |
static UInt32 wHiteRabbiT.Common.Wacom.CWintabFuncs.WTDataGet | ( | P_HCTX | hctx_I, |
UInt32 | pktIDStart_I, | ||
UInt32 | pktIDEnd_I, | ||
UInt32 | maxPkts_I, | ||
IntPtr | pktBuf_O, | ||
ref UInt32 | numPkts_O | ||
) |
A This function copies all packets with Identifiers between pktIDStart_I and pktIDEnd_I inclusive from the context's queue to the passed buffer and removes them from the queue.
hctx_I | Identifies the context whose packets are being returned. |
pktIDStart_I | Identifier of the oldest tablet event to return. |
pktIDEnd_I | Identifier of the newest tablet event to return. |
maxPkts_I | Specifies the maximum number of packets to return. |
pktBuf_O | Buffer to receive the event packets. |
numPkts_O | Number of packets actually copied. |
static UInt32 wHiteRabbiT.Common.Wacom.CWintabFuncs.WTDataPeek | ( | P_HCTX | hctx_I, |
UInt32 | pktIDStart_I, | ||
UInt32 | pktIDEnd_I, | ||
UInt32 | maxPkts_I, | ||
IntPtr | pktBuf_O, | ||
ref UInt32 | numPkts_O | ||
) |
This function copies all packets with serial numbers between pktIDStart_I and pktIDEnd_I inclusive, from the context's queue to the passed buffer without removing them from the queue.
hctx_I | Identifies the context whose packets are being read. |
pktIDStart_I | Identifier of the oldest tablet event to return. |
pktIDEnd_I | Identifier of the newest tablet event to return. |
maxPkts_I | Specifies the maximum number of packets to return. |
pktBuf_O | Buffer to receive the event packets. |
numPkts_O | Number of packets actually copied. |
static bool wHiteRabbiT.Common.Wacom.CWintabFuncs.WTEnable | ( | P_HCTX | hctx_I, |
bool | enable_I | ||
) |
This function enables or disables a tablet context, temporarily turning on or off the processing of packets.
hctx_I | Identifies the context to be enabled or disabled. |
enable_I | Specifies enabling if non-zero, disabling if zero. |
static bool wHiteRabbiT.Common.Wacom.CWintabFuncs.WTExtGet | ( | P_HCTX | hctx_I, |
UInt32 | extTag_I, | ||
IntPtr | extData_O | ||
) |
This function retrieves any context-specific data for an extension.
hctx_I | Identifies the context whose extension attributes are being retrieved. |
extTag_I | Identifies the extension tag for which context-specific data is being retrieved. |
extData_O | Points to a buffer to hold retrieved data (WTExtensionProperty). |
static bool wHiteRabbiT.Common.Wacom.CWintabFuncs.WTExtSet | ( | P_HCTX | hctx_I, |
UInt32 | extTag_I, | ||
IntPtr | extData_I | ||
) |
This function sets any context-specific data for an extension.
hctx_I | Identifies the context whose extension attributes are being modified. |
extTag_I | Identifies the extension tag for which context-specific data is being modified. |
extData_I | Points to the new data (WTExtensionProperty). |
static UInt32 wHiteRabbiT.Common.Wacom.CWintabFuncs.WTInfoA | ( | UInt32 | wCategory_I, |
UInt32 | nIndex_I, | ||
IntPtr | lpOutput_O | ||
) |
This function returns global information about the interface in an application-supplied buffer.
Different types of information are specified by different index arguments. Applications use this function to receive information about tablet coordinates, physical dimensions, capabilities, and cursor types.
wCategory_I | Identifies the category from which information is being requested. |
nIndex_I | Identifies which information is being requested from within the category. |
lpOutput_O | Points to a buffer to hold the requested information. |
static P_HCTX wHiteRabbiT.Common.Wacom.CWintabFuncs.WTOpenA | ( | P_HWND | hWnd_I, |
ref WintabLogContext | logContext_I, | ||
bool | enable_I | ||
) |
This function establishes an active context on the tablet.
On successful completion of this function, the application may begin receiving tablet events via messages (if they were requested), and may use the handle returned to poll the context, or to perform other context-related functions.
hWnd_I | Identifies the window that owns the tablet context, and receives messages from the context. |
logContext_I | Points to an application-provided WintabLogContext data structure describing the context to be opened. |
enable_I | Specifies whether the new context will immediately begin processing input data. |
static bool wHiteRabbiT.Common.Wacom.CWintabFuncs.WTOverlap | ( | P_HCTX | hctx_I, |
bool | toTop_I | ||
) |
This function sends a tablet context to the top or bottom of the order of overlapping tablet contexts.
hctx_I | Identifies the context to move within the overlap order. |
toTop_I | Specifies sending the context to the top of the overlap order true, or to the bottom if false. |
static bool wHiteRabbiT.Common.Wacom.CWintabFuncs.WTPacket | ( | P_HCTX | hctx_I, |
UInt32 | pktSerialNum_I, | ||
IntPtr | pktBuf_O | ||
) |
This function fills in the passed pktBuf_O buffer with the context event packet having the specified serial number.
The returned packet and any older packets are removed from the context's internal queue.
hctx_I | Identifies the context whose packets are being returned. |
pktSerialNum_I | Serial number of the tablet event to return. |
pktBuf_O | Buffer to receive the event packet. |
static UInt32 wHiteRabbiT.Common.Wacom.CWintabFuncs.WTPacketsGet | ( | P_HCTX | hctx_I, |
UInt32 | maxPkts_I, | ||
IntPtr | pktBuf_O | ||
) |
This function copies the next maxPkts_I events from the packet queue of context hCtx to the passed pktBuf_O buffer and removes them from the queue
hctx_I | Identifies the context whose packets are being returned. |
maxPkts_I | Specifies the maximum number of packets to return |
pktBuf_O | Buffer to receive the event packets. |
static bool wHiteRabbiT.Common.Wacom.CWintabFuncs.WTQueuePacketsEx | ( | P_HCTX | hctx_I, |
ref UInt32 | pktIDOldest_O, | ||
ref UInt32 | pktIDNewest_O | ||
) |
This function returns the identifiers of the oldest and newest packets currently in the queue.
hctx_I | Identifies the context whose queue is being queried. |
pktIDOldest_O | Identifier of the oldest packet in the queue. |
pktIDNewest_O | Identifier of the newest packet in the queue. |
static UInt32 wHiteRabbiT.Common.Wacom.CWintabFuncs.WTQueueSizeGet | ( | P_HCTX | hctx_I | ) |
This function returns the number of packets the context's queue can hold.
hctx_I | Identifies the context whose queue size is being returned. |
static bool wHiteRabbiT.Common.Wacom.CWintabFuncs.WTQueueSizeSet | ( | P_HCTX | hctx_I, |
UInt32 | nPkts_I | ||
) |
This function attempts to change the context's queue size to the value specified in nPkts_I.
hctx_I | Identifies the context whose queue size is being set. |
nPkts_I | Specifies the requested queue size. |