Source:NetHack 3.4.0/mttypriv.h

Below is the full text to mttypriv.h from the source code of NetHack 3.4.0. To link to a particular line, write [[NetHack 3.4.0/mttypriv.h#line123 ]], for example.

Warning! This is the source code from an old release. For the latest release, see Source code

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. */ 4.     5.    /*  6.     * This file contains private structures used to implement the 7.    * tty windows - note that these structures may change between 8.    * minor releases! 9.    */  10.    11.   #ifndef _H_tty_private 12.  # define _H_tty_private 13.   14.   # ifndef _H_tty_public 15.  #include "mactty.h"  16. # endif 17.   18.   #include   19. #include  20. #include  21. 22.  #define TA_TO_RGB(ta,rgb) (((rgb).red=(((ta)>>16)&0xff)*257),((rgb).green=(((ta)>>8)&0xff)*257),\  23.   	((rgb).blue=((ta)&0xff)*257)),rgb 24.   25.   typedef struct tty_record { 26.  	WindowPtr	its_window ; 27.   28.   	short		font_number ; 29.  	short		font_size ; 30.  	short		char_width ; 31.  	short		row_height ; 32.  	short		ascent_height ; 33.   34.   	short		x_size ; 35.  	short		y_size ; 36.  	short		x_curs ; 37.  	short		y_curs ; 38.   39.   	GWorldPtr		its_window_world ; 40.  	BitMap			its_bits ; 41.  	GrafPtr			offscreen_port ; 42.  	GWorldPtr		offscreen_world ; 43.  #if CLIP_RECT_ONLY 44.  	Rect			invalid_rect ; 45.  #else 46.  	RgnHandle		invalid_part ; 47.  #endif 48.   49.   	long		attribute [ TTY_NUMBER_ATTRIBUTES ] ; 50.  	long		last_cursor ; 51.   52.   	Boolean		was_allocated ; 53.  	Boolean		curs_state ; 54.  	Boolean		uses_gworld ; 55.  } tty_record ; 56.   57.    58.   #endif	/* _H_tty_private */