diff options
author | 2015-02-15 09:07:58 +1100 | |
---|---|---|
committer | 2015-02-17 17:31:51 +1100 | |
commit | 87e38fd1d30e53413bc1f94f0dfd340051a71253 (patch) | |
tree | 9274e6c3b33609c4e56fa4af427b48dd327f9c9b /src/osd/modules/debugger/osx/debugview.h | |
parent | 1be009a431dc0b7fd98f6a5ecc3cb76d20588328 (diff) |
Remove redundant filename prefix
Diffstat (limited to 'src/osd/modules/debugger/osx/debugview.h')
-rw-r--r-- | src/osd/modules/debugger/osx/debugview.h | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/src/osd/modules/debugger/osx/debugview.h b/src/osd/modules/debugger/osx/debugview.h new file mode 100644 index 00000000000..06c25ea7c21 --- /dev/null +++ b/src/osd/modules/debugger/osx/debugview.h @@ -0,0 +1,68 @@ +// license:BSD-3-Clause +// copyright-holders:Vas Crabb +//============================================================ +// +// debugosxdebugview.h - MacOS X Cocoa debug window handling +// +// Copyright (c) 1996-2015, Nicola Salmoria and the MAME Team. +// Visit http://mamedev.org for licensing and usage restrictions. +// +//============================================================ + +#import "debugosx.h" + +#include "emu.h" +#include "debug/debugvw.h" + +#import <Cocoa/Cocoa.h> + + +@interface MAMEDebugView : NSView +{ + int type; + running_machine *machine; + debug_view *view; + + INT32 totalWidth, totalHeight, originLeft, originTop; + + NSFont *font; + CGFloat fontWidth, fontHeight, fontAscent; + + NSTextStorage *text; + NSTextContainer *textContainer; + NSLayoutManager *layoutManager; +} + ++ (NSFont *)defaultFont; + +- (id)initWithFrame:(NSRect)f type:(debug_view_type)t machine:(running_machine &)m; + +- (void)update; + +- (NSSize)maximumFrameSize; + +- (NSFont *)font; +- (void)setFont:(NSFont *)f; + +- (void)windowDidBecomeKey:(NSNotification *)notification; +- (void)windowDidResignKey:(NSNotification *)notification; + +@end + + +@protocol MAMEDebugViewSubviewSupport <NSObject> + +- (NSString *)selectedSubviewName; +- (int)selectedSubviewIndex; +- (void)selectSubviewAtIndex:(int)index; +- (void)selectSubviewForCPU:(device_t *)device; + +@end + + +@protocol MAMEDebugViewExpressionSupport <NSObject> + +- (NSString *)expression; +- (void)setExpression:(NSString *)exp; + +@end |