quakeforge/tools/Forge/Bundles/MapEdit/KeypairView.h
Bill Currie fb65cd2b44 Cache needed fonts.
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 :)
2011-04-16 12:17:23 +09:00

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