File: mttypriv.h

package info (click to toggle)
gnomehack 1.0.5-1.1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 10,256 kB
  • ctags: 12,966
  • sloc: ansic: 119,783; yacc: 2,002; sh: 610; lex: 417; makefile: 397
file content (60 lines) | stat: -rw-r--r-- 1,293 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/*	SCCS Id: @(#)mttypriv.h	3.2	93/03/01	*/
/* Copyright (c) Jon W{tte 1993.					*/
/* NetHack may be freely redistributed.  See license for details.	*/

/*
 * This file contains private structures used to implement the
 * tty windows - note that these structures may change between
 * minor releases!
 */

#ifndef _H_tty_private
# define _H_tty_private

# ifndef _H_tty_public
#include "mactty.h"
# endif

#define TA_TO_RGB(ta,rgb) (((rgb).red=(((ta)>>16)&0xff)*257),((rgb).green=(((ta)>>8)&0xff)*257),\
	((rgb).blue=((ta)&0xff)*257)),rgb

typedef struct tty_record {
	void				* not_used ;
	WindowPtr			its_window ;
	GWorldPtr			its_window_world ;
	BitMap				its_bits ;
	GrafPtr				offscreen_port ;
	GWorldPtr			offscreen_world ;
#if CLIP_RECT_ONLY
	Rect				invalid_rect ;
#else
	RgnHandle			invalid_part ;
#endif

	short				font_number ;
	short				font_size ;
	short				char_width ;
	short				row_height ;
	short				ascent_height ;

	short				x_size ;
	short				y_size ;
	short				x_curs ;
	short				y_curs ;

	long				attribute [ TTY_NUMBER_ATTRIBUTES ] ;
	long				last_cursor ;

#if TTY_INPUT
	short				input_buffer_len ;
	short				input_buffer_limit ;
	char				* input_buffer ;
#endif

	Boolean				was_allocated ;
	Boolean				curs_state ;
	Boolean				uses_gworld ;
} tty_record ;


#endif