home *** CD-ROM | disk | FTP | other *** search
/ Mac Mania 2 / MacMania 2.toast / Demo's / Tools&Utilities / Programming / SPIM Folder / Sources / mactext.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-03-08  |  1.7 KB  |  48 lines  |  [TEXT/KAHL]

  1. /* SPIM S20 MIPS simulator.
  2.    Copyright (C) 1990 by James Larus (larus@cs.wisc.edu).
  3.  
  4.    Macintosh Version by Philip Delaquess (delaques@gcg.com)
  5.    Copyright (C) 1993 by Saunders College Publishing and Morgan Kaufman Publishers.
  6.  
  7.    SPIM is free software; you can redistribute it and/or modify it
  8.    under the terms of the GNU General Public License as published by the
  9.    Free Software Foundation; either version 1, or (at your option) any
  10.    later version.
  11.  
  12.    SPIM is distributed in the hope that it will be useful, but WITHOUT
  13.    ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  14.    FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  15.    for more details.
  16.  
  17.    You should have received a copy of the GNU General Public License
  18.    along with GNU CC; see the file COPYING.  If not, write to James R.
  19.    Larus, Computer Sciences Department, University of Wisconsin--Madison,
  20.    1210 West Dayton Street, Madison, WI 53706, USA or to the Free
  21.    Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
  22. */
  23.  
  24. typedef struct {
  25.     WindowPtr window;
  26.     TEHandle text;
  27.     ControlHandle vScroll, hScroll;
  28.     short linesPerPage, columnsPerPage;
  29. } SPIMTextWindow;
  30.  
  31. extern SPIMTextWindow Registers, Text, Data, Console, Session, Help;
  32.  
  33. void FormatRegisters(void);
  34. void FormatText(void);
  35. void FormatData(void);
  36.  
  37. void InitTextWindows(void);
  38.  
  39. void SelectTextWindow();
  40. void ActivateTextWindow(WindowPtr window, Boolean active);
  41. void UpdateTextWindow(WindowPtr window);
  42. void RecalculateTextWindow(WindowPtr window);
  43. void SizeTextWindow(WindowPtr window, Point start);
  44. void TileTextWindows(Boolean vertically);
  45. void ClickTextWindow(WindowPtr window, EventRecord *event);
  46.  
  47. void CountText(void);
  48. void CountData(void);