aboutsummaryrefslogtreecommitdiff
path: root/iPhone/GTMFadeTruncatingLabel.h
diff options
context:
space:
mode:
Diffstat (limited to 'iPhone/GTMFadeTruncatingLabel.h')
-rwxr-xr-xiPhone/GTMFadeTruncatingLabel.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/iPhone/GTMFadeTruncatingLabel.h b/iPhone/GTMFadeTruncatingLabel.h
index 5b768f0..5d9eb8c 100755
--- a/iPhone/GTMFadeTruncatingLabel.h
+++ b/iPhone/GTMFadeTruncatingLabel.h
@@ -1,7 +1,7 @@
//
// GTMFadeTruncatingLabel.h
//
-// Copyright 2011 Google Inc.
+// Copyright 2012 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License"); you may not
// use this file except in compliance with the License. You may obtain a copy
@@ -29,4 +29,10 @@ typedef enum {
// Which side(s) to truncate.
@property(nonatomic, assign) GTMFadeTruncatingMode truncateMode;
+// Returns a linear gradient mask suitable to use with CGContextClipToMask() to
+// fade the ends of a rectangle the same way this class does it.
++ (UIImage*)getLinearGradient:(CGRect)rect
+ fadeHead:(BOOL)fadeHead
+ fadeTail:(BOOL)fadeTail;
+
@end