home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / lib / mac / UserInterface / CDrawingState.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  1.5 KB  |  64 lines

  1. /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
  2.  *
  3.  * The contents of this file are subject to the Netscape Public License
  4.  * Version 1.0 (the "NPL"); you may not use this file except in
  5.  * compliance with the NPL.  You may obtain a copy of the NPL at
  6.  * http://www.mozilla.org/NPL/
  7.  *
  8.  * Software distributed under the NPL is distributed on an "AS IS" basis,
  9.  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
  10.  * for the specific language governing rights and limitations under the
  11.  * NPL.
  12.  *
  13.  * The Initial Developer of this code under the NPL is Netscape
  14.  * Communications Corporation.  Portions created by Netscape are
  15.  * Copyright (C) 1998 Netscape Communications Corporation.  All Rights
  16.  * Reserved.
  17.  */
  18.  
  19. #ifndef CDrawingState_H
  20. #define CDrawingState_H
  21. #pragma once
  22.  
  23. #include <PP_Prefix.h>
  24.  
  25. #ifndef __QUICKDRAW__
  26. #include <QuickDraw.h>
  27. #endif
  28.  
  29. class    StMercutioMDEFTextState
  30. {
  31. public:
  32.                 StMercutioMDEFTextState();
  33.                 ~StMercutioMDEFTextState();
  34.                 
  35.     void        SetUpForMercurtioMDEF();
  36.     void        Restore();
  37.  
  38. private:
  39.     GrafPtr     mPort;
  40.     GrafPtr        mWMgrPort;
  41.     CGrafPtr    mWMgrCPort;
  42.     Int16        mWMgrFont;
  43.     Int16        mWMgrSize;
  44.     Int16        mCWMgrFont;
  45.     Int16        mCWMgrSize;
  46. };
  47.  
  48. class    StSysFontState
  49. {
  50. public:
  51.                 StSysFontState();
  52.                 ~StSysFontState();
  53.                 
  54.     void        Save();
  55.     void        Restore();
  56.     
  57.     void        SetTextTraits(ResIDT inTextTraitsID);
  58.  
  59. private:
  60.     Int16        mFont;
  61.     Int16        mSize;
  62. };
  63.  
  64. #endif