diff options
| author | jnj <jnj@57e2f9b5-c12c-0410-8e95-a1ee7272c91a> | 2008-11-13 18:59:12 +0000 |
|---|---|---|
| committer | jnj <jnj@57e2f9b5-c12c-0410-8e95-a1ee7272c91a> | 2008-11-13 18:59:12 +0000 |
| commit | ba310e8b58d686ee9897b26a7edab5b778a8d96f (patch) | |
| tree | f7b5feaf4151d88b2283ed657133737b378f7eba /QSFoundation.framework/Versions/A/PrivateHeaders/NSGeometry_BLTRExtensions.h | |
Add remaining plugins
git-svn-id: https://blacktree-elements-public.googlecode.com/svn/trunk@41 57e2f9b5-c12c-0410-8e95-a1ee7272c91a
Diffstat (limited to 'QSFoundation.framework/Versions/A/PrivateHeaders/NSGeometry_BLTRExtensions.h')
| -rw-r--r-- | QSFoundation.framework/Versions/A/PrivateHeaders/NSGeometry_BLTRExtensions.h | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/QSFoundation.framework/Versions/A/PrivateHeaders/NSGeometry_BLTRExtensions.h b/QSFoundation.framework/Versions/A/PrivateHeaders/NSGeometry_BLTRExtensions.h new file mode 100644 index 0000000..6a05f8d --- /dev/null +++ b/QSFoundation.framework/Versions/A/PrivateHeaders/NSGeometry_BLTRExtensions.h @@ -0,0 +1,44 @@ +// +// NSGeometry_Extensions.h +// +// +// Created by Alcor on Thu Nov 28 2002. +// Copyright (c) 2002 Blacktree, Inc. All rights reserved. +// + +#import <Foundation/Foundation.h> + + +typedef struct _BTFloatRange { + float value; + float location; + float length; +} BTFloatRange; + + +BTFloatRange BTMakeFloatRange(float value,float location,float length); +float BTFloatRangeMod(BTFloatRange range); +float BTFloatRangeUnit(BTFloatRange range); +NSPoint rectOffset(NSRect innerRect,NSRect outerRect,int quadrant); + + +NSRect rectZoom(NSRect rect,float zoom,int quadrant); + +NSRect sizeRectInRect(NSRect innerRect,NSRect outerRect,bool expand); +NSPoint offsetPoint(NSPoint fromPoint, NSPoint toPoint); +NSRect fitRectInRect(NSRect innerRect,NSRect outerRect,bool expand); +NSRect centerRectInRect(NSRect rect, NSRect mainRect); +NSRect rectFromSize(NSSize size); +NSRect rectWithProportion(NSRect innerRect,float proportion,bool expand); + +NSRect constrainRectToRect(NSRect innerRect, NSRect outerRect); +NSRect alignRectInRect(NSRect innerRect,NSRect outerRect,int quadrant); +NSRect expelRectFromRect(NSRect innerRect, NSRect outerRect,float peek); +NSRect expelRectFromRectOnEdge(NSRect innerRect, NSRect outerRect,NSRectEdge edge,float peek); + + NSRectEdge touchingEdgeForRectInRect(NSRect innerRect, NSRect outerRect); +int closestCorner(NSRect innerRect,NSRect outerRect); +int oppositeQuadrant(int quadrant); + +NSRect blendRects(NSRect start, NSRect end,float b); +void logRect(NSRect rect);
\ No newline at end of file |