home *** CD-ROM | disk | FTP | other *** search
/ QuickTime 2.0 Developer Kit / QuickTime 2.0 Developer Kit.iso / mac / MAC / Programming Stuff / Sample Code / Music Architecture / Embedding Instruments / BigEasy / BigEasyTextish.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-08-09  |  2.1 KB  |  88 lines  |  [TEXT/KAHL]

  1. /*
  2.                 File:        BigEasyTextish.h
  3.             
  4.                 Copyright:    © 1990-1992, 1994 by Apple Computer, Inc., all rights reserved.
  5.             
  6.     This file is used in these builds: Warhol
  7.  
  8.                 Change History (most recent first):
  9.             
  10.          <8>      9-8-94    dvb        
  11.         <5+>      5/6/93    dvb        String->Number
  12.          <5>      1/7/93    dvb        New functions (TruncateString).
  13.          <4>     1/20/92    dvb        Add more routines.
  14.          <3>      6/3/91    dvb        Just Hackin'.
  15.          <2>    11/16/90    dvb        Remove drawcstring
  16.          <1>    11/16/90    dvb        Brand New again!
  17.             
  18.                 To Do:
  19. */
  20.  
  21. /* file: BigEasyTextish.h
  22.  *
  23.  * Started 13 July 1989, more or less.
  24.  *
  25.  * Headers for routines for converting and
  26.  * displaying textish things on the Mac.
  27.  *
  28.  */
  29.  
  30.  
  31. /************************************
  32. * BigEasyTextish Global Variables
  33. ************************************/
  34.  
  35. #ifndef BigEasyTextishIncludes
  36. #define BigEasyTextishIncludes
  37.  
  38.  
  39. #ifdef BigEasyTextish
  40.     #define VAR
  41. #else
  42.     #define VAR extern
  43. #endif
  44.  
  45. VAR short gLeftMargin;
  46. VAR short gLineHeight;
  47.  
  48. #undef VAR
  49.  
  50. /************************************
  51. * Prototypes
  52. ************************************/
  53. #ifdef __cplusplus
  54. extern "C" {
  55. #endif
  56.  
  57. void AnyBaseToPString(long n,short format,short width,StringPtr c);
  58. void CToPString(char *src,StringPtr dst);
  59.  
  60. void FixedPointToPString(long n,short g,short p,StringPtr s);
  61. void PStringToFixedPoint(StringPtr s,short g,short p,long *n);
  62. void PStringToFixedPoint(StringPtr s,short g,short p,long *n);
  63.  
  64. void DrawNum(long n);
  65. void DrawFixedPoint(long n,short g,short p);
  66. void DrawFixed(long n,short g);
  67. void DrawFixedPointJustified(long n,short g,short p,short h);
  68. void DrawFixedJustified(long n,short g,short h);
  69. void DrawFrac(long n,short g);
  70. void DrawHexByte(unsigned char n);
  71. void DrawHexShort(unsigned short n);
  72. void DrawHexLong(unsigned long n);
  73. void DrawCR(void);
  74. short CStringWidth(char *);
  75. void CopyPString(StringPtr dest,StringPtr src);
  76. void ConcatenatePStrings(StringPtr dest,StringPtr src);
  77. void DrawStringRight(StringPtr s);
  78. void DrawStringCenter(StringPtr s);
  79. void DrawStringLeft(StringPtr s);
  80. void TruncateString(StringPtr s, short width);
  81. void DrawStringTruncated(StringPtr s, short width);
  82.  
  83. #ifdef __cplusplus
  84. }
  85. #endif
  86.  
  87. #endif  //BigEasyTextishIncludes
  88.