The iOS framework that grows only as fast as its documentation
NICommonMetrics.h
1 //
2 // Copyright 2011-2014 NimbusKit
3 //
4 // Licensed under the Apache License, Version 2.0 (the "License");
5 // you may not use this file except in compliance with the License.
6 // You may obtain a copy of the License at
7 //
8 // http://www.apache.org/licenses/LICENSE-2.0
9 //
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an "AS IS" BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
15 //
16 
17 #import <Foundation/Foundation.h>
18 #import <UIKit/UIKit.h>
19 
20 #if defined __cplusplus
21 extern "C" {
22 #endif
23 
64 #ifndef UIViewAutoresizingFlexibleMargins
65 #define UIViewAutoresizingFlexibleMargins (UIViewAutoresizingFlexibleLeftMargin \
66  | UIViewAutoresizingFlexibleTopMargin \
67  | UIViewAutoresizingFlexibleRightMargin \
68  | UIViewAutoresizingFlexibleBottomMargin)
69 #endif
70 
71 #ifndef UIViewAutoresizingFlexibleDimensions
72 #define UIViewAutoresizingFlexibleDimensions (UIViewAutoresizingFlexibleWidth \
73  | UIViewAutoresizingFlexibleHeight)
74 #endif
75 
76 #ifndef UIViewAutoresizingNavigationBar
77 #define UIViewAutoresizingNavigationBar (UIViewAutoresizingFlexibleWidth \
78  | UIViewAutoresizingFlexibleBottomMargin)
79 #endif
80 
81 #ifndef UIViewAutoresizingToolbar
82 #define UIViewAutoresizingToolbar (UIViewAutoresizingFlexibleWidth \
83  | UIViewAutoresizingFlexibleTopMargin)
84 #endif
85 
91 CGFloat NIMinimumTapDimension(void);
92 
102 CGFloat NIToolbarHeightForOrientation(UIInterfaceOrientation orientation);
103 
112 UIViewAnimationCurve NIStatusBarAnimationCurve(void);
113 
122 NSTimeInterval NIStatusBarAnimationDuration(void);
123 
130 UIViewAnimationCurve NIStatusBarBoundsChangeAnimationCurve(void);
131 
138 NSTimeInterval NIStatusBarBoundsChangeAnimationDuration(void);
139 
147 CGFloat NIStatusBarHeight(void);
148 
157 NSTimeInterval NIDeviceRotationDuration(BOOL isFlippingUpsideDown);
158 
164 UIEdgeInsets NICellContentPadding(void);
165 
166 #if defined __cplusplus
167 };
168 #endif
169 // End of Common Metrics ///////////////////////////////////////////////////////////////////
CGFloat NIMinimumTapDimension(void)
The recommended number of points for a minimum tappable area.
UIViewAnimationCurve NIStatusBarAnimationCurve(void)
The animation curve used when changing the status bar's visibility.
NSTimeInterval NIDeviceRotationDuration(BOOL isFlippingUpsideDown)
The animation duration when the device is rotating to a new orientation.
CGFloat NIToolbarHeightForOrientation(UIInterfaceOrientation orientation)
Fetch the height of a toolbar in a given orientation.
CGFloat NIStatusBarHeight(void)
Get the status bar's current height.
NSTimeInterval NIStatusBarAnimationDuration(void)
The animation duration used when changing the status bar's visibility.
NSTimeInterval NIStatusBarBoundsChangeAnimationDuration(void)
The animation duration used when the status bar's bounds change (when a call is received, for example).
UIViewAnimationCurve NIStatusBarBoundsChangeAnimationCurve(void)
The animation curve used when the status bar's bounds change (when a call is received, for example).
UIEdgeInsets NICellContentPadding(void)
The padding around a standard cell in a table view.