GEOS SDK TechDocs
|
|
4 Pen Input and Ink
|
4.2 Ink Input Flow
Ink input is stored in data blocks. The Input Manager stores up Ink events into a data block and then transfers the block to the proper window or application with
MSG_META_NOTIFY_WITH_DATA_BLOCK
. (This is a general change notification message.) The type of the data block passed is NT_INK, the manufacturer ID is MANUFACTURER_ID_GEOWORKS.
The data block is headed by an
InkHeader
structure (defined below). The header is followed by a list of points, all in screen coordinates (not points as with normal graphics commands). The block will contain as many points as are registered during the Ink input sequence.
The
InkHeader
structure has the following format:
typedef struct {
word IH_count;
Rectangle IH_bounds;
optr IH_destination;
dword IH_reserved;
Point IH_data;
} InkHeader;
The fields of the structure are listed below with the information they contain.
IH_count
IH_bounds
IH_destination
IH_reserved
IH_data
Point
structures, each one detailing a single Ink point.
GEOS SDK TechDocs
|
|
4 Pen Input and Ink
|
4.2 Ink Input Flow