File: programming/cocoa/UKDistributedView.zip/UKDistributedView/UKFinderIconCell/NSBezierPathCappedBoxes.m


/* =============================================================================
	FILE:		NSBezierPathCappedBoxes.m
	PROJECT:	UKDistributedView
 
    COPYRIGHT:  (c) 2003 M. Uli Kusterer, all rights reserved.
    
	AUTHORS:	M. Uli Kusterer - UK
                Christoffer Lerno
    
    LICENSES:   GPL, Modified BSD, Commercial (ask for pricing)
 
	REVISIONS:
		2003-12-19	UK	Created.
   ========================================================================== */
 
// -----------------------------------------------------------------------------
//	Headers:
// -----------------------------------------------------------------------------
 
#import "NSBezierPathCappedBoxes.h"
// -----------------------------------------------------------------------------
//	bezierPathWithCappedBoxInRect:
//		This creates a bezier path for the specified rectangle where the left
//		and right sides of the box are halves of a circle.
//	
//	REVISIONS:
//      2004-11-20  UK  Changed to use arcs instead of bezier paths as per a
//                      submission from Christoffer Lerno.
//		2004-01-17  UK  Documented.
// -----------------------------------------------------------------------------
// Corners:
// Create our capped box:
    // Top edge:
// Right cap:
// Bottom edge:
// Left cap:
// Just to be safe.
 

This code uses the PclZip Zip File reading code, which is subject to the GNU LGPL. It also uses the GeSHi syntax highlighter, subject to the GPL. Ask if you want this for your own web site, it's free.