summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSGlyphInfo.java
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSGlyphInfo.java')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSGlyphInfo.java41
1 files changed, 41 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSGlyphInfo.java b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSGlyphInfo.java
new file mode 100644
index 0000000000..00a5d420b9
--- /dev/null
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSGlyphInfo.java
@@ -0,0 +1,41 @@
+package org.eclipse.swt.internal.cocoa;
+
+public class NSGlyphInfo extends NSObject {
+
+public NSGlyphInfo() {
+ super();
+}
+
+public NSGlyphInfo(int id) {
+ super(id);
+}
+
+public int characterCollection() {
+ return OS.objc_msgSend(this.id, OS.sel_characterCollection);
+}
+
+public int characterIdentifier() {
+ return OS.objc_msgSend(this.id, OS.sel_characterIdentifier);
+}
+
+public static NSGlyphInfo glyphInfoWithCharacterIdentifier(int cid, int characterCollection, NSString theString) {
+ int result = OS.objc_msgSend(OS.class_NSGlyphInfo, OS.sel_glyphInfoWithCharacterIdentifier_1collection_1baseString_1, cid, characterCollection, theString != null ? theString.id : 0);
+ return result != 0 ? new NSGlyphInfo(result) : null;
+}
+
+public static NSGlyphInfo glyphInfoWithGlyph(int glyph, NSFont font, NSString theString) {
+ int result = OS.objc_msgSend(OS.class_NSGlyphInfo, OS.sel_glyphInfoWithGlyph_1forFont_1baseString_1, glyph, font != null ? font.id : 0, theString != null ? theString.id : 0);
+ return result != 0 ? new NSGlyphInfo(result) : null;
+}
+
+public static NSGlyphInfo glyphInfoWithGlyphName(NSString glyphName, NSFont font, NSString theString) {
+ int result = OS.objc_msgSend(OS.class_NSGlyphInfo, OS.sel_glyphInfoWithGlyphName_1forFont_1baseString_1, glyphName != null ? glyphName.id : 0, font != null ? font.id : 0, theString != null ? theString.id : 0);
+ return result != 0 ? new NSGlyphInfo(result) : null;
+}
+
+public NSString glyphName() {
+ int result = OS.objc_msgSend(this.id, OS.sel_glyphName);
+ return result != 0 ? new NSString(result) : null;
+}
+
+}