1 /* SCCS Id: @(#)mttypriv.h 3.4 1993/03/01 */
2 /* Copyright (c) Jon W{tte 1993. */
3 /* NetHack may be freely redistributed. See license for details. */
6 * This file contains private structures used to implement the
7 * tty windows - note that these structures may change between
11 #ifndef _H_tty_private
12 # define _H_tty_private
14 # ifndef _H_tty_public
18 #if !TARGET_API_MAC_CARBON
19 # include <QDOffscreen.h>
24 #define TA_TO_RGB(ta,rgb) (((rgb).red=(((ta)>>16)&0xff)*257),((rgb).green=(((ta)>>8)&0xff)*257),\
25 ((rgb).blue=((ta)&0xff)*257)),rgb
27 typedef struct tty_record {
28 WindowPtr its_window ;
41 GWorldPtr its_window_world ;
43 GrafPtr offscreen_port ;
44 GWorldPtr offscreen_world ;
48 RgnHandle invalid_part ;
51 long attribute [ TTY_NUMBER_ATTRIBUTES ] ;
54 Boolean was_allocated ;
60 #endif /* _H_tty_private */