blob: a95d81a85c6b8d5eee972f74f1e57d9cfa42c7c8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
// 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;
- (BOOL)cursorSupported;
- (BOOL)cursorVisible;
- (debug_view_xy)cursorPosition;
- (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
|