From ba310e8b58d686ee9897b26a7edab5b778a8d96f Mon Sep 17 00:00:00 2001 From: jnj Date: Thu, 13 Nov 2008 18:59:12 +0000 Subject: Add remaining plugins git-svn-id: https://blacktree-elements-public.googlecode.com/svn/trunk@41 57e2f9b5-c12c-0410-8e95-a1ee7272c91a --- .../A/PrivateHeaders/NSGeometry_BLTRExtensions.h | 44 ++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 QSFoundation.framework/Versions/A/PrivateHeaders/NSGeometry_BLTRExtensions.h (limited to 'QSFoundation.framework/Versions/A/PrivateHeaders/NSGeometry_BLTRExtensions.h') 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 + + +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 -- cgit