5
5
using ObjCRuntime ;
6
6
//using Scintilla;
7
7
8
- namespace ScintillaNET
8
+ // @protocol ScintillaNotificationProtocol
9
+ [ Protocol , Model ]
10
+ interface ScintillaNotificationProtocol
9
11
{
12
+ // @required -(void)notification:(SCNotification *)notification;
13
+ [ Abstract ]
14
+ [ Export ( "notification:" ) ]
15
+ void Notification ( IntPtr notification ) ;
16
+ }
17
+
18
+ // @interface ScintillaView : NSView <InfoBarCommunicator, ScintillaNotificationProtocol>
19
+ [ BaseType ( typeof ( NSView ) ) ]
20
+ interface ScintillaView
21
+ {
22
+ // @property (assign, nonatomic) id<ScintillaNotificationProtocol> delegate;
23
+ [ NullAllowed , Export ( "delegate" , ArgumentSemantic . Assign ) ]
24
+ NSObject WeakDelegate { get ; set ; }
10
25
11
- // @interface ScintillaView : NSView <InfoBarCommunicator, ScintillaNotificationProtocol>
12
- [ BaseType ( typeof ( NSView ) ) ]
13
- interface ScintillaView
14
- {
15
- // @property (assign, nonatomic) id<ScintillaNotificationProtocol> delegate;
16
- [ NullAllowed , Export ( "delegate" , ArgumentSemantic . Assign ) ]
17
- NSObject WeakDelegate { get ; set ; }
18
-
19
- // @property (readonly, nonatomic) NSScrollView * scrollView;
20
- [ Export ( "scrollView" ) ]
21
- NSScrollView ScrollView { get ; }
26
+ // @property (readonly, nonatomic) NSScrollView * scrollView;
27
+ [ Export ( "scrollView" ) ]
28
+ NSScrollView ScrollView { get ; }
22
29
23
- // -(NSString *)string;
24
- // -(void)setString:(NSString *)aString;
25
- [ Export ( "string" ) ]
26
- string Text { get ; set ; }
30
+ // -(NSString *)string;
31
+ // -(void)setString:(NSString *)aString;
32
+ [ Export ( "string" ) ]
33
+ string Text { get ; set ; }
27
34
28
35
29
- // -(void)setGeneralProperty:(int)property parameter:(long)parameter value:(long)value;
30
- [ Export ( "setGeneralProperty:parameter:value:" ) ]
31
- void SetGeneralProperty ( int property , nint parameter , nint value ) ;
36
+ // -(void)setGeneralProperty:(int)property parameter:(long)parameter value:(long)value;
37
+ [ Export ( "setGeneralProperty:parameter:value:" ) ]
38
+ void SetGeneralProperty ( int property , nint parameter , nint value ) ;
32
39
33
- // -(void)setGeneralProperty:(int)property value:(long)value;
34
- [ Export ( "setGeneralProperty:value:" ) ]
35
- void SetGeneralProperty ( int property , nint value ) ;
40
+ // -(void)setGeneralProperty:(int)property value:(long)value;
41
+ [ Export ( "setGeneralProperty:value:" ) ]
42
+ void SetGeneralProperty ( int property , nint value ) ;
36
43
37
- // -(long)getGeneralProperty:(int)property;
38
- [ Export ( "getGeneralProperty:" ) ]
39
- nint GetGeneralProperty ( int property ) ;
44
+ // -(long)getGeneralProperty:(int)property;
45
+ [ Export ( "getGeneralProperty:" ) ]
46
+ nint GetGeneralProperty ( int property ) ;
40
47
41
- // -(long)getGeneralProperty:(int)property parameter:(long)parameter;
42
- [ Export ( "getGeneralProperty:parameter:" ) ]
43
- nint GetGeneralProperty ( int property , nint parameter ) ;
48
+ // -(long)getGeneralProperty:(int)property parameter:(long)parameter;
49
+ [ Export ( "getGeneralProperty:parameter:" ) ]
50
+ nint GetGeneralProperty ( int property , nint parameter ) ;
44
51
45
- // -(long)getGeneralProperty:(int)property parameter:(long)parameter extra:(long)extra;
46
- [ Export ( "getGeneralProperty:parameter:extra:" ) ]
47
- nint GetGeneralProperty ( int property , nint parameter , nint extra ) ;
52
+ // -(long)getGeneralProperty:(int)property parameter:(long)parameter extra:(long)extra;
53
+ [ Export ( "getGeneralProperty:parameter:extra:" ) ]
54
+ nint GetGeneralProperty ( int property , nint parameter , nint extra ) ;
48
55
49
- // -(void)setColorProperty:(int)property parameter:(long)parameter value:(NSColor *)value;
50
- [ Export ( "setColorProperty:parameter:value:" ) ]
51
- void SetColorProperty ( int property , nint parameter , NSColor value ) ;
56
+ // -(void)setColorProperty:(int)property parameter:(long)parameter value:(NSColor *)value;
57
+ [ Export ( "setColorProperty:parameter:value:" ) ]
58
+ void SetColorProperty ( int property , nint parameter , NSColor value ) ;
52
59
53
- // -(void)setColorProperty:(int)property parameter:(long)parameter fromHTML:(NSString *)fromHTML;
54
- [ Export ( "setColorProperty:parameter:fromHTML:" ) ]
55
- void SetColorProperty ( int property , nint parameter , string fromHTML ) ;
60
+ // -(void)setColorProperty:(int)property parameter:(long)parameter fromHTML:(NSString *)fromHTML;
61
+ [ Export ( "setColorProperty:parameter:fromHTML:" ) ]
62
+ void SetColorProperty ( int property , nint parameter , string fromHTML ) ;
56
63
57
- // -(NSColor *)getColorProperty:(int)property parameter:(long)parameter;
58
- [ Export ( "getColorProperty:parameter:" ) ]
59
- NSColor GetColorProperty ( int property , nint parameter ) ;
64
+ // -(NSColor *)getColorProperty:(int)property parameter:(long)parameter;
65
+ [ Export ( "getColorProperty:parameter:" ) ]
66
+ NSColor GetColorProperty ( int property , nint parameter ) ;
60
67
61
- // -(void)setReferenceProperty:(int)property parameter:(long)parameter value:(const void *)value;
62
- [ Export ( "setReferenceProperty:parameter:value:" ) ]
63
- void SetReferenceProperty ( int property , nint parameter , IntPtr value ) ;
68
+ // -(void)setReferenceProperty:(int)property parameter:(long)parameter value:(const void *)value;
69
+ [ Export ( "setReferenceProperty:parameter:value:" ) ]
70
+ void SetReferenceProperty ( int property , nint parameter , IntPtr value ) ;
64
71
65
- // -(void)setStringProperty:(int)property parameter:(long)parameter value:(NSString *)value;
66
- [ Export ( "setStringProperty:parameter:value:" ) ]
67
- void SetStringProperty ( int property , nint parameter , string value ) ;
72
+ // -(void)setStringProperty:(int)property parameter:(long)parameter value:(NSString *)value;
73
+ [ Export ( "setStringProperty:parameter:value:" ) ]
74
+ void SetStringProperty ( int property , nint parameter , string value ) ;
68
75
69
- // -(NSString *)getStringProperty:(int)property parameter:(long)parameter;
70
- [ Export ( "getStringProperty:parameter:" ) ]
71
- string GetStringProperty ( int property , nint parameter ) ;
72
- }
76
+ // -(NSString *)getStringProperty:(int)property parameter:(long)parameter;
77
+ [ Export ( "getStringProperty:parameter:" ) ]
78
+ string GetStringProperty ( int property , nint parameter ) ;
79
+ }
73
80
74
- }
0 commit comments