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

void NSCopyBits(int srcGState, NSRect srcRect, NSPoint destPoint)

NSCountWindows

void NSCountWindows(int *count)

NSCountWindowsForContext

void NSCountWindowsForContext(int context, int *count)

NSDottedFrameRect

void NSDottedFrameRect(NSRect aRect)

NSDrawBitmap

void NSDrawBitmap(const NSRect rect, int pixelsWide, int pixelsHigh, int bitsPerSample, int samplesPerPixel, int bitsPerPixel, int bytesPerRow, BOOL isPlanar, BOOL hasAlpha, NSColorSpace colorSpace, const unsigned char *const data[5])

NSDrawButton

void NSDrawButton(const NSRect aRect, const NSRect clipRect)

NSDrawColorTiledRects

NSRect NSDrawColorTiledRects(NSRect boundsRect, NSRect clipRect, const NSRectEdge *sides, NSColor **colors, int count)

NSDrawDarkBezel

void NSDrawDarkBezel(NSRect boundsRect, NSRect clipRect)

NSDrawGrayBezel

void NSDrawGrayBezel(NSRect boundsRect, NSRect clipRect)

NSDrawGroove

void NSDrawGroove(NSRect boundsRect, NSRect clipRect)

NSDrawLightBezel

void NSDrawLightBezel(NSRect boundsRect, NSRect clipRect)

NSDrawTiledRects

NSRect NSDrawTiledRects(NSRect boundsRect, NSRect clipRect, const NSRectEdge *sides, const float *grays, int count);

NSDrawWhiteBezel

void NSDrawWhiteBezel(NSRect aRect, NSRect clipRect)

NSDrawWindowBackground

void NSDrawWindowBackground(NSRect ...

Get Cocoa in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.