-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19 from detroit-labs/2018-ipad-pros
Add 2018 iPad Pros, Updated Watch Numbers
- Loading branch information
Showing
16 changed files
with
274 additions
and
145 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
// | ||
// IRLSizeMacros.h | ||
// IRLSize | ||
// | ||
// Created by Jeff Kelley on 11/8/2018. | ||
// Copyright © 2018 Detroit Labs. All rights reserved. | ||
// | ||
|
||
#ifndef IRLSizeMacros_h | ||
#define IRLSizeMacros_h | ||
|
||
#if IRLSIZE_DEBUG | ||
#define DEBUG_LOG(x) NSLog(x) | ||
#else | ||
#define DEBUG_LOG(x) | ||
#endif | ||
|
||
#define IRL_MM(x) [[NSMeasurement alloc] initWithDoubleValue:(x) unit:IRL_SIZE_UNIT] | ||
|
||
#define IRL_ESTIMATED_DIMENSIONS(variable, deviceType, size) \ | ||
case k##deviceType##size##HeightPoints: { \ | ||
DEBUG_LOG(@"Estimating height of " #deviceType " at " #size "."); \ | ||
variable.height = k##deviceType##size##ScreenHeight; \ | ||
variable.width = k##deviceType##size##ScreenWidth; \ | ||
} \ | ||
break; | ||
|
||
#define IRL_KNOWN_DEVICE_DIMENSIONS_UNMATCHING(modelEnum, sizeEnumPrefix)\ | ||
case modelEnum: { \ | ||
DEBUG_LOG(@"Local device matches " #modelEnum "."); \ | ||
size.height = k##sizeEnumPrefix##ScreenHeight; \ | ||
size.width = k##sizeEnumPrefix##ScreenWidth; \ | ||
} \ | ||
break; | ||
|
||
#define IRL_KNOWN_DEVICE_DIMENSIONS_MATCHING(enum) \ | ||
IRL_KNOWN_DEVICE_DIMENSIONS_UNMATCHING(enum, enum) | ||
|
||
#endif /* IRLSizeMacros_h */ |
Oops, something went wrong.