Rename positioning block to sport as namespace

This commit is contained in:
Levi McCallum
2015-11-30 06:55:32 -08:00
parent 9d327cd14f
commit 04ad021daa
2 changed files with 3 additions and 3 deletions

View File

@@ -10,7 +10,7 @@
#import "ASTextKitRenderer.h"
typedef void (^ck_text_component_index_block_t)(NSUInteger characterIndex,
typedef void (^as_text_component_index_block_t)(NSUInteger characterIndex,
CGRect glyphBoundingRect,
BOOL *stop);
@@ -79,7 +79,7 @@ typedef NS_ENUM(NSUInteger, ASTextKitRendererMeasureOption) {
Triggers initialization of textkit components, truncation, and sizing.
*/
- (void)enumerateTextIndexesAtPosition:(CGPoint)position
usingBlock:(ck_text_component_index_block_t)block;
usingBlock:(as_text_component_index_block_t)block;
/**
Returns the single text index whose glyph's centroid is closest to the given position.

View File

@@ -258,7 +258,7 @@ static const CGFloat ASTextKitRendererTextCapHeightPadding = 1.3;
return properGlyphRect;
}
- (void)enumerateTextIndexesAtPosition:(CGPoint)externalPosition usingBlock:(ck_text_component_index_block_t)block
- (void)enumerateTextIndexesAtPosition:(CGPoint)externalPosition usingBlock:(as_text_component_index_block_t)block
{
// This method is a little complex because it has to call out to client code from inside an enumeration that needs
// to achieve a lock on the textkit components. It cannot call out to client code from within that lock so we just