Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 64 lines (46 sloc) 1.709 kB
f858c4b @djs Import Scintilla 2.11
authored
1 /*
2 * ScintillaMacOSX.h
3 * tutorial
4 *
5 * Created by Evan Jones on Sun Sep 01 2002.
6 *
7 */
8 #ifndef SCINTILLA_CALLTIP_H
9 #define SCINTILLA_CALLTIP_H
10
11 #include "TView.h"
12
13 #include <stdlib.h>
14 #include <string.h>
15 #include <stdio.h>
16 #include <ctype.h>
17 #include <time.h>
18
19 #include "Platform.h"
20 #include "Scintilla.h"
21
22 static const OSType scintillaCallTipType = 'Scct';
23
24 namespace Scintilla {
25
26 class ScintillaCallTip : public TView
27 {
28 public:
29 // Private so ScintillaCallTip objects can not be copied
30 ScintillaCallTip(const ScintillaCallTip &) : TView( NULL ) {}
31 ScintillaCallTip &operator=(const ScintillaCallTip &) { return * this; }
32 ~ScintillaCallTip() {};
33
34 public:
35 /** This is the class ID that we've assigned to Scintilla. */
36 static const CFStringRef kScintillaCallTipClassID;
37 static const ControlKind kScintillaCallTipKind;
38
39 ScintillaCallTip( void* windowid );
40
41 /** Returns the HIView object kind, needed to subclass TView. */
42 virtual ControlKind GetKind() { return kScintillaCallTipKind; }
43
44 private:
45
46 virtual ControlPartCode HitTest( const HIPoint& where );
47 virtual void Draw( RgnHandle rgn, CGContextRef gc );
48 virtual OSStatus MouseDown( HIPoint& location, UInt32 modifiers, EventMouseButton button, UInt32 clickCount );
49 virtual OSStatus MouseUp( HIPoint& location, UInt32 modifiers, EventMouseButton button, UInt32 clickCount );
50 virtual OSStatus MouseDragged( HIPoint& location, UInt32 modifiers, EventMouseButton button, UInt32 clickCount );
51
52 public:
53 static HIViewRef Create();
54 private:
55 static OSStatus Construct( HIViewRef inControl, TView** outView );
56
57 };
58
59
60 }
61
62
63 #endif
Something went wrong with that request. Please try again.