home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 March / macformat-022.iso / Shareware City / Developers / NeoIntroTCL3.0 folder / TCL / NeoBench / Includes / CRawText.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-12-19  |  1.4 KB  |  45 lines  |  [TEXT/KAHL]

  1. /********************************************************************
  2.  CRawText.h
  3.  
  4.    Header file for the Raw text
  5. ********************************************************************/
  6.  
  7. #define _H_CRawText
  8.  
  9.     // Forward declarations
  10.  
  11. class CRawText : public CPane {
  12.  
  13. private:
  14.     short    font;
  15.     Style     style;
  16.     short    size;
  17.     short   justification;
  18.     Point    TextPosn;
  19.     short    textWidth;
  20.     Str255    itsText;
  21.  
  22. public:
  23.     void    IRawText(CView *anEnclosure,  CBureaucrat *aSupervisor,
  24.                            ConstStr255Param theText, short Hencl, short Vencl,
  25.                            short iWidth, short iHeight,
  26.                            short afont,  Style astyle, short asize,
  27.                            short ajustification);
  28.     void    Draw(Rect *area);
  29.     void    SetText(ConstStr255Param newText, short just);
  30.     virtual void    PutValue(long value);
  31.     void    JustifyText(short just);
  32.     void    SetTextFont(short afont, short asize, Style astyle);
  33.     void    DoClick(Point hitPt, short modifierKeys, long when);
  34. };
  35.  
  36. class CTimeText : public CRawText {
  37.  
  38. public:
  39.     void    ITimeText(CView *anEnclosure,  CBureaucrat *aSupervisor,
  40.                            ConstStr255Param theText, short Hencl, short Vencl,
  41.                            short iWidth, short iHeight,
  42.                            short afont,  Style astyle, short asize,
  43.                            short ajustification);
  44.     void    PutValue(long value);
  45. };