Wikia

Wikihack

Source:NetHack 3.3.0/mttypriv.h

2,032pages on
this wiki
Talk0

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

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

The NetHack General Public License applies to screenshots, source code and other content from NetHack.
1.    /*	SCCS Id: @(#)mttypriv.h 3.3	93/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.   #include <QDOffscreen.h>
15.   #include <Gestalt.h>
16.   #include <Errors.h>
17.   
18.   # ifndef _H_tty_public
19.   #include "mactty.h"
20.   # endif
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 */

Around Wikia's network

Random Wiki