diff options
Diffstat (limited to 'Foundation/GTMCalculatedRange.h')
-rw-r--r-- | Foundation/GTMCalculatedRange.h | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/Foundation/GTMCalculatedRange.h b/Foundation/GTMCalculatedRange.h index 5710da6..7796f0b 100644 --- a/Foundation/GTMCalculatedRange.h +++ b/Foundation/GTMCalculatedRange.h @@ -9,9 +9,9 @@ // 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 // of the License at -// +// // http://www.apache.org/licenses/LICENSE-2.0 -// +// // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, WITHOUT // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the @@ -20,6 +20,7 @@ // #import <Foundation/Foundation.h> +#import <CoreGraphics/CoreGraphics.h> #import "GTMDefines.h" /// Allows you to calculate a value based on defined stops in a range. @@ -28,7 +29,7 @@ /// located at 0.0 is red and the stop located at 1.0 is blue, /// the value based on the position 0.5 would come out as purple assuming /// that the valueAtPosition function calculates a purely linear mapping between -/// the stops at 0.0 and 1.0. Stops have indices and are sorted from lowest to +/// the stops at 0.0 and 1.0. Stops have indices and are sorted from lowest to /// highest. The example above would have 2 stops. Stop 0 would be red and stop /// 1 would be blue. /// @@ -43,7 +44,7 @@ // Adds a stop to the range at |position|. If there is already a stop // at position |position| it is replaced. // -// Args: +// Args: // item: the object to place at |position|. // position: the position in the range to put |item|. // @@ -51,7 +52,7 @@ // Removes a stop from the range at |position|. // -// Args: +// Args: // position: the position in the range to remove |item|. // // Returns: @@ -63,7 +64,7 @@ // based on position where index of x < index of y if position // of x < position of y. // -// Args: +// Args: // item: the object to place at |position|. // position: the position in the range to put |item|. // @@ -81,7 +82,7 @@ // The default implementation returns a value if there happens to be // a stop for the given position. Otherwise it returns nil. // -// Args: +// Args: // position: the position to calculate a value for. // // Returns: @@ -91,7 +92,7 @@ // Returns the |index|'th stop and position in the set. // Throws an exception if out of range. // -// Args: +// Args: // index: the index of the stop // outPosition: a pointer to a value to be filled in with a position. // this can be NULL, in which case no position is returned. |