Function

NSDrawColorTiledRects

Draws a colored bordered rectangle.

Declaration

NSRect NSDrawColorTiledRects(NSRect boundsRect, NSRect clipRect, const NSRectEdge *sides, NSColor * _Nonnull *colors, NSInteger count);

Parameters

boundsRect

The bounding rectangle (in the current coordinate system) in which to draw. Since this function is often used to draw the border of a view, this rectangle will typically be that view’s bounds rectangle. Only those parts of boundsRect that lie within the clipRect are actually drawn.

clipRect

The clipping rectangle to use during drawing.

sides

The sides of the rectangle for which you want to specify custom colors. Each side must have a corresponding entry in the colors parameter.

colors

The colors to draw for each of the edges listed in the sides parameter.

count

The number of 1.0-unit-wide slices to draw on the specified sides.

Return Value

The rectangle that lies within the resulting border.

Discussion

Behaves the same as NSDrawTiledRects except it draws its border using colors from the colors array.

See Also

Auxiliary Functions

NSInterfaceStyleForKey

Returns an interface style value for the specified key and responder.

Deprecated
NSSetShowsServicesMenuItem

Specifies whether an item should be included in Services menus.

NSCopyBits

Copies a bitmap image to the location specified by a destination point.

Deprecated
NSCountWindows

Counts the number of onscreen windows.

Deprecated
NSCountWindowsForContext

Counts the number of onscreen windows belonging to a particular application.

Deprecated
NSShowsServicesMenuItem

Specifies whether a Services menu item is currently enabled.

NSDottedFrameRect

Draws a bordered rectangle.

NSWindowList

Gets information about onscreen windows.

Deprecated
NSWindowListForContext

Gets information about an application’s onscreen windows.

Deprecated
NSReadPixel

Reads the color of the pixel at the specified location.

Deprecated
NSGetWindowServerMemory

Returns the amount of memory being used by a context.

Deprecated