summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/modules/debugger/osx/debugview.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/osd/modules/debugger/osx/debugview.h')
-rw-r--r--src/osd/modules/debugger/osx/debugview.h68
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..abb53efb852
--- /dev/null
+++ b/src/osd/modules/debugger/osx/debugview.h
@@ -0,0 +1,68 @@
+// license:BSD-3-Clause
+// copyright-holders:Vas Crabb
+//============================================================
+//
+// debugview.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;
+- (BOOL)selectSubviewForDevice:(device_t *)device;
+
+@end
+
+
+@protocol MAMEDebugViewExpressionSupport <NSObject>
+
+- (NSString *)expression;
+- (void)setExpression:(NSString *)exp;
+
+@end