comparison dwt/internal/cocoa/NSInputManager.d @ 1:8b48be5454ce

The internal cocoa classes compile now
author Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
date Tue, 19 Aug 2008 17:35:17 +0200
parents 380af2bdd8e5
children f565d3a95c0a
comparison
equal deleted inserted replaced
0:380af2bdd8e5 1:8b48be5454ce
42 return result !is null ? new NSInputManager(result) : null; 42 return result !is null ? new NSInputManager(result) : null;
43 } 43 }
44 44
45 public static void cycleToNextInputLanguage (id sender) 45 public static void cycleToNextInputLanguage (id sender)
46 { 46 {
47 OS.objc_msgSend(OS.class_NSInputManager, OS.sel_cycleToNextInputLanguage_1, sender !is null ? sender.id : null); 47 OS.objc_msgSend(OS.class_NSInputManager, OS.sel_cycleToNextInputLanguage_1, sender !is null ? sender.id_ : null);
48 } 48 }
49 49
50 public static void cycleToNextInputServerInLanguage (id sender) 50 public static void cycleToNextInputServerInLanguage (id sender)
51 { 51 {
52 OS.objc_msgSend(OS.class_NSInputManager, OS.sel_cycleToNextInputServerInLanguage_1, sender !is null ? sender.id : null); 52 OS.objc_msgSend(OS.class_NSInputManager, OS.sel_cycleToNextInputServerInLanguage_1, sender !is null ? sender.id_ : null);
53 } 53 }
54 54
55 public bool handleMouseEvent (NSEvent theMouseEvent) 55 public bool handleMouseEvent (NSEvent theMouseEvent)
56 { 56 {
57 return OS.objc_msgSend(this.id, OS.sel_handleMouseEvent_1, theMouseEvent !is null ? theMouseEvent.id : null) !is null; 57 return OS.objc_msgSend(this.id_, OS.sel_handleMouseEvent_1, theMouseEvent !is null ? theMouseEvent.id_ : null) !is null;
58 } 58 }
59 59
60 public NSImage image () 60 public NSImage image ()
61 { 61 {
62 objc.id result = OS.objc_msgSend(this.id, OS.sel_image); 62 objc.id result = OS.objc_msgSend(this.id_, OS.sel_image);
63 return result !is null ? new NSImage(result) : null; 63 return result !is null ? new NSImage(result) : null;
64 } 64 }
65 65
66 public NSInputManager initWithName (NSString inputServerName, NSString hostName) 66 public NSInputManager initWithName (NSString inputServerName, NSString hostName)
67 { 67 {
68 objc.id result = OS.objc_msgSend(this.id, OS.sel_initWithName_1host_1, inputServerName !is null ? inputServerName.id : null, 68 objc.id result = OS.objc_msgSend(this.id_, OS.sel_initWithName_1host_1, inputServerName !is null ? inputServerName.id_ : null,
69 hostName !is null ? hostName.id : null); 69 hostName !is null ? hostName.id_ : null);
70 return result is this.id ? this : (result !is null ? new NSInputManager(result) : null); 70 return result is this.id_ ? this : (result !is null ? new NSInputManager(result) : null);
71 } 71 }
72 72
73 public NSString language () 73 public NSString language ()
74 { 74 {
75 objc.id result = OS.objc_msgSend(this.id, OS.sel_language); 75 objc.id result = OS.objc_msgSend(this.id_, OS.sel_language);
76 return result !is null ? new NSString(result) : null; 76 return result !is null ? new NSString(result) : null;
77 } 77 }
78 78
79 public NSString localizedInputManagerName () 79 public NSString localizedInputManagerName ()
80 { 80 {
81 objc.id result = OS.objc_msgSend(this.id, OS.sel_localizedInputManagerName); 81 objc.id result = OS.objc_msgSend(this.id_, OS.sel_localizedInputManagerName);
82 return result !is null ? new NSString(result) : null; 82 return result !is null ? new NSString(result) : null;
83 } 83 }
84 84
85 public void markedTextAbandoned (id cli) 85 public void markedTextAbandoned (id cli)
86 { 86 {
87 OS.objc_msgSend(this.id, OS.sel_markedTextAbandoned_1, cli !is null ? cli.id : null); 87 OS.objc_msgSend(this.id_, OS.sel_markedTextAbandoned_1, cli !is null ? cli.id_ : null);
88 } 88 }
89 89
90 public void markedTextSelectionChanged (NSRange newSel, id cli) 90 public void markedTextSelectionChanged (NSRange newSel, id cli)
91 { 91 {
92 OS.objc_msgSend(this.id, OS.sel_markedTextSelectionChanged_1client_1, newSel, cli !is null ? cli.id : null); 92 OS.objc_msgSend(this.id_, OS.sel_markedTextSelectionChanged_1client_1, newSel, cli !is null ? cli.id_ : null);
93 } 93 }
94 94
95 public NSInputServer server () 95 public NSInputServer server ()
96 { 96 {
97 objc.id result = OS.objc_msgSend(this.id, OS.sel_server); 97 objc.id result = OS.objc_msgSend(this.id_, OS.sel_server);
98 return result !is null ? new NSInputServer(result) : null; 98 return result !is null ? new NSInputServer(result) : null;
99 } 99 }
100 100
101 public bool wantsToDelayTextChangeNotifications () 101 public bool wantsToDelayTextChangeNotifications ()
102 { 102 {
103 return OS.objc_msgSend(this.id, OS.sel_wantsToDelayTextChangeNotifications) !is null; 103 return OS.objc_msgSend(this.id_, OS.sel_wantsToDelayTextChangeNotifications) !is null;
104 } 104 }
105 105
106 public bool wantsToHandleMouseEvents () 106 public bool wantsToHandleMouseEvents ()
107 { 107 {
108 return OS.objc_msgSend(this.id, OS.sel_wantsToHandleMouseEvents) !is null; 108 return OS.objc_msgSend(this.id_, OS.sel_wantsToHandleMouseEvents) !is null;
109 } 109 }
110 110
111 public bool wantsToInterpretAllKeystrokes () 111 public bool wantsToInterpretAllKeystrokes ()
112 { 112 {
113 return OS.objc_msgSend(this.id, OS.sel_wantsToInterpretAllKeystrokes) !is null; 113 return OS.objc_msgSend(this.id_, OS.sel_wantsToInterpretAllKeystrokes) !is null;
114 } 114 }
115 115
116 } 116 }