home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
wpentk.zip
/
WBPENTK4.DSK
/
IDFTYPES.IDL
< prev
next >
Wrap
Text File
|
1994-10-07
|
5KB
|
150 lines
//#
//# Type definitions for the Input Data Framework's IDL-files
//# To be included after standard OS/2 types have been defined.
//# Only types that are referenced in the IDL file need to be listed here.
#ifndef idftyped_idl
#define idftyped_idl
//# Structures needed from PENPM.H
//# These are references to allow IDL files to reference these types.
//# Your .C files must still include PENPM.H
typedef somToken AUXDATADESC;
typedef AUXDATADESC *PAUXDATADESC; /* padd */
typedef somToken AUXDATAINFO;
typedef AUXDATAINFO *PAUXDATAINFO; /* padi */
typedef somToken AUXSTROKEDATA;
typedef AUXSTROKEDATA *PAUXSTROKEDATA; /* pasd */
typedef somToken STROKEDATA;
typedef STROKEDATA *PSTROKEDATA; /* psd */
typedef somToken RECODATA;
typedef RECODATA *PRECODATA; /* prd */
typedef ULONG RECOID, HRECO;
typedef RECOID *PRECOID;
typedef HRECO *PHRECO;
//# IDR object defines
struct IDR_SYM /* Basic symbol */
{
USHORT usSymType; /* Symbol, e.g. ASCII, etc. */
USHORT usSymVal; /* Symbol value, i.e. "code point" */
};
typedef IDR_SYM *PIDR_SYM,
**PPIDR_SYM;
struct IDR_SYMSET /* Symbol set */
{
ULONG ulSymSets; /* Symbol subset mask */
ULONG ulSymCnt; /* Count of symbols in the symbol list. */
IDR_SYM SymList[1]; /* Contiguous array of symbols. */
};
typedef IDR_SYMSET *PIDR_SYMSET,
**PPIDR_SYMSET;
struct IDR_INKMETRICS /* Ink metrics & measurements */
{
ULONG ulSSize; /* IDR_INKMETRICS size */
ULONG ulRecoForm; /* Type of segmentation */
ULONG ulSpaceDisable; /* Don't return any whitespace */
ULONG ulDirection; /* Direction of "normal" writing */
POINTL ptlOrigin; /* Origin */
POINTL ptlOffset; /* Offset from Origin of "gray" area */
POINTL ptlBox; /* Box extents */
POINTL ptlGray; /* "Gray" area between boxes */
LONG lOffsetBline; /* Baseline offset from bottom of Box */
ULONG ulRowCount; /* Row count, 0 == indeterminate */
ULONG ulColCount; /* Column count, 0 == indeterminate */
};
typedef IDR_INKMETRICS *PIDR_INKMETRICS,
**PPIDR_INKMETRICS;
struct IDR_GESTINFO /* Gesture Information structure */
{
ULONG ulSSize; /* IDR_GESTINFO size */
CHAR szGestName[51]; /* Name of the gesture. */
IDR_SYM Symbol; /* Interpret symbol value based on type. */
RECOID EventId; /* PenPM Event id */
};
typedef IDR_GESTINFO *PIDR_GESTINFO,
**PPIDR_GESTINFO;
typedef LHANDLE HWORD;
typedef HWORD *PHWORD;
typedef PVOID HCLUSTER;
typedef HCLUSTER *PHCLUSTER;
struct IDR_TXTSYM /* Text symbol descriptor */
{
ULONG ulSSize; /* IDR_TXTSYM size */
ULONG ulStatus; /* Character status, see IDR_TXTSYMxx */
IDR_SYM Symbol; /* Symbol type/value */
};
typedef IDR_TXTSYM *PIDR_TXTSYM,
**PPIDR_TXTSYM;
struct IDR_TXTCLUSTER /* Text cluster descriptor */
{
ULONG ulSSize; /* Size of the structure. */
HCLUSTER hCluster; /* Handle to the cluster. */
ULONG ulResultType; /* Type of result. */
ULONG ulSymCnt; /* Count of IDR_TXTSYMs in pSyms. */
PIDR_TXTSYM pSyms; /* Recognition results of this cluster. */
ULONG ulIdCnt; /* Stroke count returned. */
PULONG pStrokeId; /* Pointer to an array of stroke ids. */
ULONG ulLocation; /* Location information.... */
RECTL rclBoundBox; /* Bounding box for strokes, in un/lined */
ULONG ulReserved1; /* Reserved. */
PVOID pReserved1; /* Reserved. */
ULONG ulReserved2; /* Reserved. */
PVOID pReserved2; /* Reserved. */
};
typedef IDR_TXTCLUSTER *PIDR_TXTCLUSTER,
**PPIDR_TXTCLUSTER;
struct IDR_TXTBOX /* Box result structure. */
{
ULONG ulSSize; /* Size of the structure. */
ULONG ulSymCnt; /* Count of IDR_TXTSYMs in pSyms. */
PIDR_TXTSYM pSyms; /* Recognition results for this box.... */
ULONG ulIdCnt; /* Stroke count returned. */
PULONG pStrokeId; /* Pointer to an array of stroke ids. */
ULONG ulLocation; /* Location information. This is the box id. */
ULONG ulReserved; /* Reserved. */
PVOID pReserved; /* Reserved. */
};
typedef IDR_TXTBOX *PIDR_TXTBOX,
**PPIDR_TXTBOX;
//# IDO object defines
struct LINEBUNDLE
{
LONG lColor;
LONG lBackColor;
USHORT usMixMode;
USHORT usBackMixMode;
FIXED fxWidth;
LONG lGeomWidth;
USHORT usType;
USHORT usEnd;
USHORT usJoin;
USHORT usReserved;
};
typedef LINEBUNDLE *PLINEBUNDLE;
//# IDM object defines
typedef somToken IDM_RECTLIST;
typedef IDM_RECTLIST *PIDM_RECTLIST;
typedef somToken IDMCTLDATA;
typedef IDMCTLDATA *PIDMCTLDATA,
**PPIDMCTLDATA;
#endif /* idftyped_idl */