summaryrefslogtreecommitdiff
path: root/QSFoundation.framework/Versions/A/PrivateHeaders/NSGeometry_BLTRExtensions.h
diff options
context:
space:
mode:
Diffstat (limited to 'QSFoundation.framework/Versions/A/PrivateHeaders/NSGeometry_BLTRExtensions.h')
-rw-r--r--QSFoundation.framework/Versions/A/PrivateHeaders/NSGeometry_BLTRExtensions.h44
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