summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSSpeechRecognizer.java
blob: 673d19e9e8b1d832335ce6b727b6c9e4c1bb5694 (plain)
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
package org.eclipse.swt.internal.cocoa;

public class NSSpeechRecognizer extends NSObject {

public NSSpeechRecognizer() {
	super();
}

public NSSpeechRecognizer(int id) {
	super(id);
}

public boolean blocksOtherRecognizers() {
	return OS.objc_msgSend(this.id, OS.sel_blocksOtherRecognizers) != 0;
}

public NSArray commands() {
	int result = OS.objc_msgSend(this.id, OS.sel_commands);
	return result != 0 ? new NSArray(result) : null;
}

public id delegate() {
	int result = OS.objc_msgSend(this.id, OS.sel_delegate);
	return result != 0 ? new id(result) : null;
}

public NSString displayedCommandsTitle() {
	int result = OS.objc_msgSend(this.id, OS.sel_displayedCommandsTitle);
	return result != 0 ? new NSString(result) : null;
}

public boolean listensInForegroundOnly() {
	return OS.objc_msgSend(this.id, OS.sel_listensInForegroundOnly) != 0;
}

public void setBlocksOtherRecognizers(boolean flag) {
	OS.objc_msgSend(this.id, OS.sel_setBlocksOtherRecognizers_1, flag);
}

public void setCommands(NSArray commands) {
	OS.objc_msgSend(this.id, OS.sel_setCommands_1, commands != null ? commands.id : 0);
}

public void setDelegate(id anObject) {
	OS.objc_msgSend(this.id, OS.sel_setDelegate_1, anObject != null ? anObject.id : 0);
}

public void setDisplayedCommandsTitle(NSString title) {
	OS.objc_msgSend(this.id, OS.sel_setDisplayedCommandsTitle_1, title != null ? title.id : 0);
}

public void setListensInForegroundOnly(boolean flag) {
	OS.objc_msgSend(this.id, OS.sel_setListensInForegroundOnly_1, flag);
}

public void startListening() {
	OS.objc_msgSend(this.id, OS.sel_startListening);
}

public void stopListening() {
	OS.objc_msgSend(this.id, OS.sel_stopListening);
}

}