MBS Xojo Developer Conference and Training
Join us from 11th to 14th September 2013 in Koblenz.
Join us from 11th to 14th September 2013 in Koblenz.
Platforms to show: All Mac Windows Linux Cross-Platform
NSColorMBS class
class, Cocoa Drawing,
MBS Real Studio CocoaBase Plugin
(NSColor),
class NSColorMBS,
Plugin version: 7.2, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: The class for a Cocoa color.
Example:
Plugin version: 7.2, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: The class for a Cocoa color.
Example:
dim c as NSColorMBS = NSColorMBS.blueColor
MsgBox str(c.blueComponent)
- method alphaComponent as double
- shared method alternateSelectedControlColor as NSColorMBS
- shared method alternateSelectedControlTextColor as NSColorMBS
- shared method blackColor as NSColorMBS
- method blackComponent as double
- method blendedColorWithFraction(alpha as double, c as NSColorMBS) as NSColorMBS
- shared method blueColor as NSColorMBS
- method blueComponent as double
- method brightnessComponent as double
- shared method brownColor as NSColorMBS
- method catalogNameComponent as string
- method CGColorHandle as Integer
- shared method clearColor as NSColorMBS
- shared method colorFromPasteboard as NSColorMBS
- method colorNameComponent as string
- method colorSpace as NSColorSpaceMBS
- method colorSpaceName as string
- method colorUsingColorSpace(colorSpace as NSColorSpaceMBS) as NSColorMBS
- method colorUsingColorSpaceName(colorSpace as string) as NSColorMBS
- method colorValue as color
- method colorWithAlphaComponent(alpha as double) as NSColorMBS
- shared method colorWithCalibratedHSV(hue as double, saturation as double, brightness as double, alpha as double=1.0) as NSColorMBS
- shared method colorWithCalibratedRGB(red as double, green as double, blue as double, alpha as double=1.0) as NSColorMBS
- shared method colorWithCalibratedWhite(white as double, alpha as double=1.0) as NSColorMBS
- shared method colorWithCGColor(CGColorHandle as Integer) as NSColorMBS
- shared method colorWithDeviceCMYK(cyan as double, magenta as double, yellow as double, black as double, alpha as double=1.0) as NSColorMBS
- shared method colorWithDeviceHSV(hue as double, saturation as double, brightness as double, alpha as double=1.0) as NSColorMBS
- shared method colorWithDeviceRGB(red as double, green as double, blue as double, alpha as double=1.0) as NSColorMBS
- shared method colorWithDeviceWhite(white as double, alpha as double=1.0) as NSColorMBS
- shared method colorWithPatternImage(image as variant) as NSColorMBS
- method Components as double()
- method Constructor
- shared method controlBackgroundColor as NSColorMBS
- shared method controlColor as NSColorMBS
- shared method controlDarkShadowColor as NSColorMBS
- shared method controlHighlightColor as NSColorMBS
- shared method controlLightHighlightColor as NSColorMBS
- shared method controlShadowColor as NSColorMBS
- shared method controlTextColor as NSColorMBS
- shared method cyanColor as NSColorMBS
- method cyanComponent as double
- shared method darkGrayColor as NSColorMBS
- method description as string
- shared method disabledControlTextColor as NSColorMBS
- method getCMYK(byref cyan as double, byref magenta as double, byref yellow as double, byref black as double)
- method getCMYK(byref cyan as double, byref magenta as double, byref yellow as double, byref black as double, byref alpha as double)
- method getHSV(byref hue as double, byref saturation as double, byref brightness as double)
- method getHSV(byref hue as double, byref saturation as double, byref brightness as double, byref alpha as double)
- method getRGB(byref red as double, byref green as double, byref blue as double)
- method getRGB(byref red as double, byref green as double, byref blue as double, byref alpha as double)
- method getWhite(byref white as double)
- method getWhite(byref white as double, byref alpha as double)
- shared method grayColor as NSColorMBS
- shared method greenColor as NSColorMBS
- method greenComponent as double
- shared method gridColor as NSColorMBS
- shared method headerColor as NSColorMBS
- shared method headerTextColor as NSColorMBS
- shared method highlightColor as NSColorMBS
- method highlightWithLevel(level as double) as NSColorMBS
- method hueComponent as double
- shared method keyboardFocusIndicatorColor as NSColorMBS
- shared method knobColor as NSColorMBS
- shared method lightGrayColor as NSColorMBS
- method localizedCatalogNameComponent as string
- method localizedColorNameComponent as string
- shared method magentaColor as NSColorMBS
- method magentaComponent as double
- method numberOfComponents as integer
- shared method orangeColor as NSColorMBS
- method patternImage as variant
- shared method purpleColor as NSColorMBS
- shared method redColor as NSColorMBS
- method redComponent as double
- method saturationComponent as double
- shared method scrollBarColor as NSColorMBS
- shared method secondarySelectedControlColor as NSColorMBS
- shared method selectedControlColor as NSColorMBS
- shared method selectedControlTextColor as NSColorMBS
- shared method selectedKnobColor as NSColorMBS
- shared method selectedMenuItemColor as NSColorMBS
- shared method selectedMenuItemTextColor as NSColorMBS
- shared method selectedTextBackgroundColor as NSColorMBS
- shared method selectedTextColor as NSColorMBS
- shared method shadowColor as NSColorMBS
- method shadowWithLevel(level as double) as NSColorMBS
- shared method textBackgroundColor as NSColorMBS
- shared method textColor as NSColorMBS
- shared method whiteColor as NSColorMBS
- method whiteComponent as double
- shared method windowBackgroundColor as NSColorMBS
- shared method windowFrameColor as NSColorMBS
- shared method windowFrameTextColor as NSColorMBS
- method writeToPasteboard
- shared method yellowColor as NSColorMBS
- method yellowComponent as double
This class has no sub classes.
Some methods using this class:
- NSCellMBS.highlightColorWithFrame(theRect as NSRectMBS, controlView as NSViewMBS) as NSColorMBS
- NSColorListMBS.colorWithKey(key as string) as NSColorMBS
- NSColorListMBS.insertColor(theColor as NSColorMBS, key as string, index as integer)
- NSColorListMBS.setColor(theColor as NSColorMBS, key as string)
- NSColorPanelMBS.getColor as NSColorMBS
- NSColorPanelMBS.getColorAsRGB as NSColorMBS
- NSColorPanelMBS.setColor(value as NSColorMBS)
- NSCursorMBS.Constructor(image as NSImageMBS, foregroundColorHint as NSColorMBS, backgroundColorHint as NSColorMBS, HotSpotX as double, HotSpotY as double)
- NSGraphicsMBS.setColor(c as NSColorMBS)
- NSGraphicsMBS.setFillColor(c as NSColorMBS)
- NSGraphicsMBS.setStrokeColor(c as NSColorMBS)
- NSTextMBS.setTextColorForRange(colorValue as NSColorMBS, start as integer, length as integer)
- NSWorkspaceMBS.fileLabelColors as NSColorMBS()
- PDFPageMBS.Render(dpi as double = 72.0, box as integer = 0, background as NSColorMBS = nil) as NSImageMBS
Some properties using for this class:
- CalCalendarMBS.colorValue as NSColorMBS
- MAAttachedWindowMBS.borderColor as NSColorMBS
- MAAttachedWindowMBS.windowBackgroundColor as NSColorMBS
- NSBoxMBS.borderColor as NSColorMBS
- NSBoxMBS.fillColor as NSColorMBS
- NSClipViewMBS.backgroundColor as NSColorMBS
- NSDatePickerMBS.backgroundColor as NSColorMBS
- NSDatePickerMBS.textColor as NSColorMBS
- NSLayoutManagerMBS.textColor as NSColorMBS
- NSPathControlMBS.backgroundColor as NSColorMBS
- NSScrollViewMBS.backgroundColor as NSColorMBS
- NSSliderMBS.titleColor as NSColorMBS
- NSTableViewMBS.backgroundColor as NSColorMBS
- NSTableViewMBS.gridColor as NSColorMBS
- NSTextFieldCellMBS.backgroundColor as NSColorMBS
- NSTextFieldCellMBS.textColor as NSColorMBS
- NSTextFieldMBS.backgroundColor as NSColorMBS
- NSTextFieldMBS.textColor as NSColorMBS
- NSTextMBS.backgroundColor as NSColorMBS
- NSTextMBS.textColor as NSColorMBS
- NSTextViewMBS.backgroundColor as NSColorMBS
Some examples which use this class:
- /Cocoa/Background view over titlebar
- /Cocoa/DatePicker
- /Cocoa/NSFontPanel
- /Cocoa/NSTextView show invisible characters
- /Cocoa/NSTextView Unlimited Tab
- /Cocoa/NSView custom focus ring
- /Cocoa/NSWindow HUD Test
- /Cocoa/NSWindow transparent
- /Cocoa/PDFKit/Add Annotations to PDF
- /Cocoa/PDFKit/Create Page with custom stamp annotation
- /Cocoa/Text in titlebar
- /Cocoa/TextEdit MBS
- /Cocoa/Transparent Webview/Transparent WebView
- /CocoaBase/Custom NSWindows/NSWindow like QTPlayer/QTPlayer NSwindow
- /CocoaBase/Custom NSWindows/NSWindow with Pattern/Pattern NSWindow
- /CocoaBase/NSDictionary Conversion Test
- /CocoaExtras/MAAttachedWindow/MAAttachedWindow Demo
- /CocoaExtras/MAAttachedWindow/MAAttachedWindow Test
- /Leopard/Calendar List
- /Leopard/CustomNSScroller/Dark scrollbar
- /Leopard/IKImageBrowser/IKImageBrowser Groups
The items on this page are in the following plugins: MBS Real Studio CocoaBase Plugin.
Links
MBS Real Studio Plugins