Platforms to show: All Mac Windows Linux Cross-Platform
NSImageCellMBS class
Super class: NSCellMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | Cocoa Controls | MBS MacCocoa Plugin | 10.0 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Notes:
This class provides methods for choosing the frame and for aligning and scaling the image to fit the frame.
The object value of an NSImageCell object must be an NSImage object, so if you use the setObjectValue: method of NSCell, be sure to supply an NSImage object as an argument. Because an NSImage object does not need to be converted for display, do not use the NSCell methods relating to formatters.
An NSImageCell object is usually associated with some kind of control object—an NSImageView, an NSMatrix, or an NSTableView.
Subclass of the NSCellMBS class.
- 3 properties
- property imageAlignment as Integer
- property imageFrameStyle as Integer
- property imageScaling as Integer
- 2 methods
- method Constructor(image as NSImageMBS)
- method Constructor(text as string)
- 21 constants
- const NSImageAlignBottom = 5
- const NSImageAlignBottomLeft = 6
- const NSImageAlignBottomRight = 7
- const NSImageAlignCenter = 0
- const NSImageAlignLeft = 4
- const NSImageAlignRight = 8
- const NSImageAlignTop = 1
- const NSImageAlignTopLeft = 2
- const NSImageAlignTopRight = 3
- const NSImageFrameButton = 4
- const NSImageFrameGrayBezel = 2
- const NSImageFrameGroove = 3
- const NSImageFrameNone = 0
- const NSImageFramePhoto = 1
Scale Methods
Constant | Value | Description |
---|---|---|
NSImageScaleAxesIndependently | 1 |
Scale each dimension to exactly fit destination. This setting does not preserve the aspect ratio of the image. |
NSImageScaleNone | 2 |
Do not scale the image. |
NSImageScaleProportionallyDown | 0 |
If it is too large for the destination, scale the image down while preserving the aspect ratio. |
NSImageScaleProportionallyUpOrDown | 3 |
Scale the image to its maximum possible dimensions while both staying within the destination area and preserving its aspect ratio. |
NSScaleNone | 2 |
Do not scale the image. |
NSScaleProportionally | 0 |
If it is too large for the destination, scale the image down while preserving the aspect ratio. |
NSScaleToFit | 1 |
Scale each dimension to exactly fit destination. This setting does not preserve the aspect ratio of the image. |
Super class NSCellMBS
- 48 properties
- property alignment as Integer
- property allowsEditingTextAttributes as boolean
- property allowsMixedState as boolean
- property allowsUndo as boolean
- property attributedStringValue as NSAttributedStringMBS
- property backgroundStyle as Integer
- property baseWritingDirection as Integer
- property Bezeled as boolean
- property Bordered as boolean
- property className as string
- property classPath as string
- property Continuous as boolean
- property controlSize as Integer
- property controlTint as Integer
- property controlView as NSViewMBS
- property doubleValue as Double
- property Editable as boolean
- property Enabled as boolean
- property floatValue as Double
- property font as NSFontMBS
- property Handle as Integer
- property hasValidObjectValue as boolean
- property Highlighted as boolean
- property image as NSImageMBS
- property importsGraphics as boolean
- property interiorBackgroundStyle as Integer
- property intValue as Integer
- property isOpaque as boolean
- property keyEquivalent as string
- property lineBreakMode as Integer
- property menu as NSMenuMBS
- property mnemonicLocation as Integer
- property refusesFirstResponder as boolean
- property Scrollable as boolean
- property Selectable as boolean
- property sendsActionOnEndEditing as boolean
- property showsFirstResponder as boolean
- property state as Integer
- property stringValue as string
- property tag as Integer
- property title as string
- property truncatesLastVisibleLine as boolean
- property type as Integer
- property userInterfaceLayoutDirection as Integer
- property usesSingleLineMode as boolean
- property wraps as boolean
- property cellAttribute(aParameter as Integer) as Integer
- property focusRingType as Integer
- 19 methods
- method acceptsFirstResponder as boolean
- method calcDrawInfo(theRect as NSRectMBS)
- method cellSize as NSSizeMBS
- method cellSizeForBounds(theRect as NSRectMBS) as NSSizeMBS
- method compare(otherCell as NSCellMBS) as Integer
- method Constructor(image as NSImageMBS)
- method Constructor(text as string)
- method drawingRectForBounds(theRect as NSRectMBS) as NSRectMBS
- method highlightColorWithFrame(theRect as NSRectMBS, controlView as NSViewMBS) as NSColorMBS
- method imageRectForBounds(theRect as NSRectMBS) as NSRectMBS
- method isEntryAcceptable(aString as string) as boolean
- method mnemonic as string
- method nextState as Integer
- method performClick
- method sendActionOn(mask as Integer) as Integer
- method setNextState
- method setTitleWithMnemonic(stringWithAmpersand as string)
- method titleRectForBounds(theRect as NSRectMBS) as NSRectMBS
- method wantsNotificationForMarkedText as boolean
- 3 shared methods
- shared method defaultFocusRingType as Integer
- shared method defaultMenu as NSMenuMBS
- shared method prefersTrackingUntilMouseUp as boolean
- 61 constants
This class has no sub classes.
The items on this page are in the following plugins: MBS MacCocoa Plugin.
NSHTTPCookieStorageMBS - NSImageMBS

Links
MBS Xojo Chart Plugins