Package org.eclipse.swt.internal.cocoa
Class NSImage
- java.lang.Object
-
- org.eclipse.swt.internal.cocoa.id
-
- org.eclipse.swt.internal.cocoa.NSObject
-
- org.eclipse.swt.internal.cocoa.NSImage
-
public class NSImage extends NSObject
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddRepresentation(NSImageRep imageRep)NSImageRepbestRepresentationForDevice(NSDictionary deviceDescription)voiddrawInRect(NSRect rect, NSRect fromRect, long op, double delta)static NSImageimageNamed(NSString name)NSImageinitByReferencingFile(NSString fileName)NSImageinitWithContentsOfFile(NSString fileName)NSImageinitWithData(NSData data)NSImageinitWithIconRef(long iconRef)NSImageinitWithSize(NSSize aSize)voidlockFocus()voidremoveRepresentation(NSImageRep imageRep)NSArrayrepresentations()voidsetCacheMode(long cacheMode)voidsetScalesWhenResized(boolean flag)voidsetSize(NSSize size)NSSizesize()NSDataTIFFRepresentation()voidunlockFocus()-
Methods inherited from class org.eclipse.swt.internal.cocoa.NSObject
accessibilityAttributeValue, accessibilitySetOverrideValue, addEventListener, alloc, autorelease, cancelAuthenticationChallenge, className, conformsToProtocol, copy, description, draggedImage, draggingDestinationWindow, draggingLocation, draggingPasteboard, draggingSourceOperationMask, handleEvent, init, isEqual, isKindOfClass, mutableCopy, outlineView, outlineView, outlineView, performSelector, performSelectorOnMainThread, readSelectionFromPasteboard, release, respondsToSelector, retain, retainCount, setValue, superclass, tableView, tableView, useCredential, valueForKey, writeSelectionToPasteboard
-
Methods inherited from class org.eclipse.swt.internal.cocoa.id
equals, hashCode, objc_getClass, toString
-
-
-
-
Constructor Detail
-
NSImage
public NSImage()
-
NSImage
public NSImage(long id)
-
NSImage
public NSImage(id id)
-
-
Method Detail
-
TIFFRepresentation
public NSData TIFFRepresentation()
-
addRepresentation
public void addRepresentation(NSImageRep imageRep)
-
bestRepresentationForDevice
public NSImageRep bestRepresentationForDevice(NSDictionary deviceDescription)
-
initWithIconRef
public NSImage initWithIconRef(long iconRef)
-
lockFocus
public void lockFocus()
-
removeRepresentation
public void removeRepresentation(NSImageRep imageRep)
-
representations
public NSArray representations()
-
setCacheMode
public void setCacheMode(long cacheMode)
-
setScalesWhenResized
public void setScalesWhenResized(boolean flag)
-
setSize
public void setSize(NSSize size)
-
size
public NSSize size()
-
unlockFocus
public void unlockFocus()
-
-