vvopensource
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Groups Pages
VVSizingTool.h
Go to the documentation of this file.
1 
4 #import <Cocoa/Cocoa.h>
5 
6 
7 
9 
12 typedef enum {
17 } VVSizingMode;
18 
19 
20 
22 
25 @interface VVSizingTool : NSObject {
26 
27 }
28 
30 
36 + (NSAffineTransform *) transformThatFitsRect:(NSRect)a inRect:(NSRect)b sizingMode:(VVSizingMode)m;
38 
44 + (NSAffineTransform *) inverseTransformThatFitsRect:(NSRect)a inRect:(NSRect)b sizingMode:(VVSizingMode)m;
51 + (NSRect) rectThatFitsRect:(NSRect)a inRect:(NSRect)b sizingMode:(VVSizingMode)m;
52 
53 @end
the content is copied directly to the desired area- it is not made any larger or smaller ...
Definition: VVSizingTool.h:16
the content is scaled to fit perfectly within the desired area- some stretching or squashing may occu...
Definition: VVSizingTool.h:15
Simplifies the act of generating transforms and other geometry-related data around the relatively com...
Definition: VVSizingTool.h:25
the content is made as large as possible, proportionally, without cutting itself off or going outside...
Definition: VVSizingTool.h:13
the content is made as large as possible, proportionally, to fill the desired area- some of the conte...
Definition: VVSizingTool.h:14
VVSizingMode
Different sizing modes.
Definition: VVSizingTool.h:12