3
* Mac OS X-private portability layer declarations
5
* Copyright (c) 1999. See accompanying LEGAL file for details.
9
#include <Cocoa/Cocoa.h>
11
/* ------------------------------------------------------------------------ */
13
@interface View: NSView
14
{ int mousebutton; // Mouse button state
17
- (void)expose:(id)dummy;
20
/* ------------------------------------------------------------------------ */
24
int width, height, depth;
25
int x0, y0; /* usable area may not start at (0,0) */
27
float sys_colors[15][4];
28
CGColorSpaceRef colorspace;
30
ATSFontMetrics metric; /* Standard gui font */
31
CGFontRef font; /* Standard gui font */
32
ATSFontMetrics metrics[5][4]; /* Font cache */
33
CGFontRef fonts[5][4]; /* Font cache */
35
/* scratch space for drawing strings to determine their width */
37
View* lockedView; /* Currently locked view */
39
NSCursor* cursors[P_NONE]; /* Will be loaded as needed */
51
/* DC keeps three separate colors, only set when actually used */
55
/* (r,g,b,alpha) components of the color to be used */
57
/* identifier of the color currently loaded in components */
59
int width; /* line width */
60
int dash; /* dashed line style */
61
int squarelinestyle; /* Square/round caps and miter/round joining */
63
CGFontRef fontref; /* Currently loaded font */
65
int orient; /* font orientation */
67
unsigned long bg; /* for p_clear */