// 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 @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 - (NSString *)selectedSubviewName; - (int)selectedSubviewIndex; - (void)selectSubviewAtIndex:(int)index; - (void)selectSubviewForCPU:(device_t *)device; @end @protocol MAMEDebugViewExpressionSupport - (NSString *)expression; - (void)setExpression:(NSString *)exp; @end