OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef UI_IOS_NSSTRING_CR_STRING_DRAWING_H_ |
| 6 #define UI_IOS_NSSTRING_CR_STRING_DRAWING_H_ |
| 7 |
| 8 #import <UIKit/UIKit.h> |
| 9 |
| 10 @interface NSString (CrStringDrawing) |
| 11 |
| 12 // Returns the size of the string if it were to be rendered with the specified |
| 13 // font on a single line. |
| 14 // The following method provides an API like -sizeWithFont: which was deprecated |
| 15 // in iOS 7 in favor of -sizeWithAttributes:. |
| 16 - (CGSize)cr_sizeWithFont:(UIFont*)font; |
| 17 |
| 18 @end |
| 19 |
| 20 #endif // UI_IOS_NSSTRING_CR_STRING_DRAWING_H_ |
OLD | NEW |