diff options
author | Felipe Heidrich <fheidric> | 2007-11-15 17:03:53 +0000 |
---|---|---|
committer | Felipe Heidrich <fheidric> | 2007-11-15 17:03:53 +0000 |
commit | ee37eed09abf2b304605b7bd7be15ba102d37b58 (patch) | |
tree | 5ff8b26c4b049d7c8b7e66827f50afece3bbd7e4 /bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSTabViewItem.java | |
parent | 4eb84c684bfa237dcce3337cdcdd67ab82c88da5 (diff) | |
download | eclipse.platform.swt-ee37eed09abf2b304605b7bd7be15ba102d37b58.tar.gz eclipse.platform.swt-ee37eed09abf2b304605b7bd7be15ba102d37b58.tar.xz eclipse.platform.swt-ee37eed09abf2b304605b7bd7be15ba102d37b58.zip |
cocoa merge
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSTabViewItem.java')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSTabViewItem.java | 82 |
1 files changed, 82 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSTabViewItem.java b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSTabViewItem.java new file mode 100644 index 0000000000..635e8fc687 --- /dev/null +++ b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSTabViewItem.java @@ -0,0 +1,82 @@ +package org.eclipse.swt.internal.cocoa; + +public class NSTabViewItem extends NSObject { + +public NSTabViewItem() { + super(); +} + +public NSTabViewItem(int id) { + super(id); +} + +public NSColor color() { + int result = OS.objc_msgSend(this.id, OS.sel_color); + return result != 0 ? new NSColor(result) : null; +} + +public void drawLabel(boolean shouldTruncateLabel, NSRect labelRect) { + OS.objc_msgSend(this.id, OS.sel_drawLabel_1inRect_1, shouldTruncateLabel, labelRect); +} + +public id identifier() { + int result = OS.objc_msgSend(this.id, OS.sel_identifier); + return result != 0 ? new id(result) : null; +} + +public NSTabViewItem initWithIdentifier(id identifier) { + int result = OS.objc_msgSend(this.id, OS.sel_initWithIdentifier_1, identifier != null ? identifier.id : 0); + return result != 0 ? this : null; +} + +public NSTabViewItem initialFirstResponder() { + int result = OS.objc_msgSend(this.id, OS.sel_initialFirstResponder); + return result != 0 ? this : null; +} + +public NSString label() { + int result = OS.objc_msgSend(this.id, OS.sel_label); + return result != 0 ? new NSString(result) : null; +} + +public void setColor(NSColor color) { + OS.objc_msgSend(this.id, OS.sel_setColor_1, color != null ? color.id : 0); +} + +public void setIdentifier(id identifier) { + OS.objc_msgSend(this.id, OS.sel_setIdentifier_1, identifier != null ? identifier.id : 0); +} + +public void setInitialFirstResponder(NSView view) { + OS.objc_msgSend(this.id, OS.sel_setInitialFirstResponder_1, view != null ? view.id : 0); +} + +public void setLabel(NSString label) { + OS.objc_msgSend(this.id, OS.sel_setLabel_1, label != null ? label.id : 0); +} + +public void setView(NSView view) { + OS.objc_msgSend(this.id, OS.sel_setView_1, view != null ? view.id : 0); +} + +public NSSize sizeOfLabel(boolean computeMin) { + NSSize result = new NSSize(); + OS.objc_msgSend_stret(result, this.id, OS.sel_sizeOfLabel_1, computeMin); + return result; +} + +public int tabState() { + return OS.objc_msgSend(this.id, OS.sel_tabState); +} + +public NSTabView tabView() { + int result = OS.objc_msgSend(this.id, OS.sel_tabView); + return result != 0 ? new NSTabView(result) : null; +} + +public id view() { + int result = OS.objc_msgSend(this.id, OS.sel_view); + return result != 0 ? new id(result) : null; +} + +} |