Graphics: General
These functions provide a number of convenient wrappers to common graphics and drawing tasks, such as erasing the contents of a rectangle, drawing various borders, and more.
-
NSCopyBits voidNSCopyBits(intsrcGState,NSRectsrcRect,NSPointdestPoint)-
NSCountWindows voidNSCountWindows(int*count)-
NSCountWindowsForContext voidNSCountWindowsForContext(intcontext,int*count)-
NSDottedFrameRect voidNSDottedFrameRect(NSRectaRect)-
NSDrawBitmap voidNSDrawBitmap(constNSRectrect,intpixelsWide,intpixelsHigh,intbitsPerSample,intsamplesPerPixel,intbitsPerPixel,intbytesPerRow,BOOLisPlanar,BOOLhasAlpha,NSColorSpacecolorSpace,constunsignedchar*constdata[5])-
NSDrawButton voidNSDrawButton(constNSRectaRect,constNSRectclipRect)-
NSDrawColorTiledRects NSRectNSDrawColorTiledRects(NSRectboundsRect,NSRectclipRect,constNSRectEdge*sides,NSColor**colors,intcount)-
NSDrawDarkBezel voidNSDrawDarkBezel(NSRectboundsRect,NSRectclipRect)-
NSDrawGrayBezel voidNSDrawGrayBezel(NSRectboundsRect,NSRectclipRect)-
NSDrawGroove voidNSDrawGroove(NSRectboundsRect,NSRectclipRect)-
NSDrawLightBezel voidNSDrawLightBezel(NSRectboundsRect,NSRectclipRect)-
NSDrawTiledRects NSRectNSDrawTiledRects(NSRectboundsRect,NSRectclipRect,constNSRectEdge*sides,constfloat*grays,intcount);-
NSDrawWhiteBezel voidNSDrawWhiteBezel(NSRectaRect,NSRectclipRect)-
NSDrawWindowBackground voidNSDrawWindowBackground(NSRect ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access