File: mttypriv.h

package info (click to toggle)
glhack 1.2-3
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 26,744 kB
  • ctags: 21,239
  • sloc: ansic: 208,571; cpp: 13,139; yacc: 2,005; makefile: 1,155; lex: 377; sh: 121; awk: 89; sed: 11
file content (60 lines) | stat: -rw-r--r-- 1,255 bytes parent folder | download | duplicates (22)
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.4	1993/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

#if !TARGET_API_MAC_CARBON
# include <QDOffscreen.h>
# include <Gestalt.h>
# include <Errors.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 {
	WindowPtr	its_window ;

	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 ;

	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

	long		attribute [ TTY_NUMBER_ATTRIBUTES ] ;
	long		last_cursor ;

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


#endif	/* _H_tty_private */