mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-17 10:20:55 +00:00
fb65cd2b44
Obtaining a font has become rather expensive in recent gnustep, so cache fonts, obtaining new ones only when needed rather than every redraw. Makes things snappy again :)
23 lines
295 B
Objective-C
23 lines
295 B
Objective-C
#ifndef KeypairView_h
|
|
#define KeypairView_h
|
|
|
|
#include <AppKit/AppKit.h>
|
|
|
|
extern id keypairview_i;
|
|
|
|
@interface KeypairView: NSView
|
|
{
|
|
NSFont *font;
|
|
}
|
|
|
|
- (id) calcViewSize;
|
|
|
|
#define SPACING 4
|
|
#define FONTSIZE 12
|
|
#define EXTRASPC 2
|
|
|
|
#define LINEHEIGHT 16
|
|
|
|
@end
|
|
|
|
#endif // KeypairView_h
|