DekGenius.com
[ Team LiB ] Previous Section Next Section

12.5 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 aRect)

NSEraseRect

void NSEraseRect(const NSRect aRect)

NSFrameRect

void NSFrameRect(NSRect aRect)

NSFrameRectWithWidth

void NSFrameRectWithWidth(NSRect aRect, float frameWidth)

NSFrameRectWithWidthUsingOperation

void NSFrameRectWithWidthUsingOperation(NSRect aRect, float frameWidth, NSCompositingOperation op)

NSGetWindowServerMemory

int NSGetWindowServerMemory(int context, int *virtualMemory, int *window-BackingMemory, NSString **windowDumpStream)

NSHighlightRect

void NSHighlightRect(const NSRect aRect)

NSReadPixel

NSColor *NSReadPixel(NSPoint passedPoint)

NSRectClip

void NSRectClip(NSRect aRect)

NSRectClipList

void NSRectClipList(const NSRect *rects, int count)

NSRectFill

void NSRectFill(const NSRect aRect)

NSRectFillList

void NSRectFillList(const NSRect *rects, int count)

NSRectFillListWithColors

void NSRectFillListWithColors(const NSRect *rects, NSColor **colors, int count)

NSRectFillListWithGrays

void NSRectFillListWithGrays(const NSRect *rects, const float *grays, int count)

NSRectFillUsingOperation

void NSRectFillUsingOperation(NSRect aRect, NSCompositingOperation op)

NSRectFillListUsingOperation

void NSRectFillListUsingOperation(const NSRect *rects, int count, NSCompositingOperation op)

NSRectFillListWithColorsUsingOperation

void NSRectFillListWithColorsUsingOperation(const NSRect *rects, NSColor **colors, int count, NSCompositingOperation op)

NSSetFocusRingStyle

void NSSetFocusRingStyle(NSFocusRingPlacement placement)

NSWindowList

void NSWindowList(int size, int list[ ])

NSWindowListForContext

void NSWindowListForContext(int context, int size, int list[ ])

    [ Team LiB ] Previous Section Next Section