Platforms to show: All Mac Windows Linux Cross-Platform
NSImageSymbolConfigurationMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | Cocoa Drawing | MBS MacBase Plugin | 22.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Example:
Dim config As NSImageSymbolConfigurationMBS = NSImageSymbolConfigurationMBS.configurationWithPointSize(40, 0)
Dim n As NSImageMBS = NSImageMBS.imageWithSystemSymbolName("trash")
Dim o As NSImageMBS = n.imageWithSymbolConfiguration(config)
Backdrop = o.CopyPictureWithAlpha
Symbol image configuration objects include details such as the point size, scale, text style, and weight to apply to your symbol image. The system uses these details to determine which variant of the image to use and how to scale or style the image.
NSImageSymbolConfiguration objects are immutable after you create them. If you use the configurationByApplyingConfiguration method on the object, the new image attributes replace any previous attributes you supplied. After creating a symbol configuration object, assign it to the symbolConfiguration property of the NSImageViewMBS object you use to display the image. If you draw the image directly, use the imageWithSymbolConfiguration method to create a new image that contains the new attributes.
For design guidance, see Human Interface Guidelines.
This is an abstract class. You can't create an instance, but you can get one from various plugin functions.
- 2 properties
- property Description as String
- property Handle as Integer
- 2 methods
- method configurationByApplyingConfiguration(configuration as NSImageSymbolConfigurationMBS) as NSImageSymbolConfigurationMBS
- method Constructor Private
- 20 shared methods
- shared method available as Boolean
- shared method configurationPreferringMulticolor as NSImageSymbolConfigurationMBS
- shared method configurationWithHierarchicalColor(hierarchicalColor as NSColorMBS) as NSImageSymbolConfigurationMBS
- shared method configurationWithPaletteColors(paletteColors() as NSColorMBS) as NSImageSymbolConfigurationMBS
- shared method configurationWithPointSize(pointSize as Double, weight as Double) as NSImageSymbolConfigurationMBS
- shared method configurationWithPointSize(pointSize as Double, weight as Double, SymbolScale as Integer) as NSImageSymbolConfigurationMBS
- shared method configurationWithScale(SymbolScale as Integer) as NSImageSymbolConfigurationMBS
- shared method configurationWithTextStyle(TextStyle as Integer) as NSImageSymbolConfigurationMBS
- shared method configurationWithTextStyle(TextStyle as Integer, SymbolScale as Integer) as NSImageSymbolConfigurationMBS
- shared method NSFontTextStyleBody as String
- shared method NSFontTextStyleCallout as String
- shared method NSFontTextStyleCaption1 as String
- shared method NSFontTextStyleCaption2 as String
- shared method NSFontTextStyleFootnote as String
- shared method NSFontTextStyleHeadline as String
- shared method NSFontTextStyleLargeTitle as String
- shared method NSFontTextStyleSubheadline as String
- shared method NSFontTextStyleTitle1 as String
- shared method NSFontTextStyleTitle2 as String
- shared method NSFontTextStyleTitle3 as String
- 3 constants
- const kSymbolScaleLarge = 3
- const kSymbolScaleMedium = 2
- const kSymbolScaleSmall = 1
This class has no sub classes.
Some methods using this class:
- NSImageMBS.imageWithSymbolConfiguration(configuration as NSImageSymbolConfigurationMBS) as NSImageMBS
Some properties using for this class:
- NSImageMBS.symbolConfiguration as NSImageSymbolConfigurationMBS
Blog Entries
- News from the MBS Xojo Plugins Version 22.1
- MonkeyBread Software Releases the MBS Xojo Plugins in version 22.1
- MBS Xojo Plugins, version 22.1pr1
Xojo Developer Magazine
The items on this page are in the following plugins: MBS MacBase Plugin.
NSImageRepMBS - NSImageViewMBS
