home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / bpos13.zip / pmavio.pas < prev    next >
Pascal/Delphi Source File  |  1993-11-24  |  3KB  |  66 lines

  1. {| Unit: pmavio
  2.  | Version: 1.00
  3.  | translated from file pmavio.H
  4.  | Original translation: Peter Sawatzki (ps)
  5.  | Contributing:
  6.  |   (fill in)
  7.  |
  8.  | change history:
  9.  | Date:    Ver: Author:
  10.  | 11/19/93 1.00 ps     original translation by ps
  11. }
  12. Unit pmavio;
  13. Interface
  14. Uses
  15.   Os2Def,
  16.   PmWin;
  17. {**************************************************************************\
  18. *
  19. * Module Name: PMAVIO.H
  20. *
  21. * OS/2 Presentation Manager AVIO constants, types and function declarations
  22. *
  23. \**************************************************************************}
  24.  
  25. { common types, constants and function declarations }
  26.  
  27. Type
  28.   HVPS = USHORT;    { hpvs }
  29.   pHVPS = ^HVPS;    { phpvs }
  30.  
  31.   Function VioAssociate (hdc: HDC; hvps: HVPS): USHORT;
  32.   Function VioCreateLogFont (pfatattrs: PFATTRS; llcid: LongInt; pName: PSTR8;hvps: HVPS): USHORT;
  33.   Function VioCreatePS (phvps: PHVPS; sdepth,swidth,sFormat,sAttrs: SHORT;hvpsReserved: HVPS): USHORT;
  34.   Function VioDeleteSetId (llcid: LongInt; hvps: HVPS): USHORT;
  35.   Function VioDestroyPS (hvps: HVPS): USHORT;
  36.   Function VioGetDeviceCellSize (psHeight,psWidth: PSHORT; hvps: HVPS): USHORT;
  37.   Function VioGetOrg (psRow,psColumn: PSHORT; hvps: HVPS): USHORT;
  38.   Function VioQueryFonts (plRemfonts: PLONG; afmMetrics: PFONTMETRICS; lMetricsLength: LongInt;
  39.                           plFonts: PLONG; pszFacename: PSZ; flOptions: ULONG;hvps: HVPS): USHORT;
  40.   Function VioQuerySetIds (allcids: PLONG; pNames: PSTR8; alTypes: PLONG;lcount: LongInt;hvps: HVPS): USHORT;
  41.   Function VioSetDeviceCellSize (sHeight,sWidth: SHORT; hvps: HVPS): USHORT;
  42.   Function VioSetOrg (sRow,sColumn: SHORT; hvps: HVPS): USHORT;
  43.   Function VioShowPS (sDepth,sWidth,soffCell: SHORT; hvps: HVPS): USHORT;
  44.  
  45. {*********************** Public Function ******************************\
  46.  * WinDefAVioWindowProc -- Default message processing for AVio PS's
  47. \**********************************************************************}
  48.  
  49.   Function WinDefAVioWindowProc (hwnd: HWND;msg: USHORT; mp1,mp2: MPARAM): MRESULT;
  50.  
  51. Implementation
  52.   Function VioAssociate;                  External 'VIOCALLS' Index   55;
  53.   Function VioCreateLogFont;              External 'VIOCALLS' Index   60;
  54.   Function VioCreatePS;                   External 'VIOCALLS' Index   56;
  55.   Function VioDeleteSetId;                External 'VIOCALLS' Index   57;
  56.   Function VioDestroyPS;                  External 'VIOCALLS' Index   61;
  57.   Function VioGetDeviceCellSize;          External 'VIOCALLS' Index   58;
  58.   Function VioGetOrg;                     External 'VIOCALLS' Index   59;
  59.   Function VioQueryFonts;                 External 'VIOCALLS' Index   64;
  60.   Function VioQuerySetIds;                External 'VIOCALLS' Index   62;
  61.   Function VioSetDeviceCellSize;          External 'VIOCALLS' Index   65;
  62.   Function VioSetOrg;                     External 'VIOCALLS' Index   63;
  63.   Function VioShowPS;                     External 'VIOCALLS' Index   66;
  64.   Function WinDefAVioWindowProc;          External 'PMVIOP'   Index   30;
  65. End.
  66.