1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- #import <UIKit/UIKit.h>
- #import "ReaderThumbView.h"
- @class ReaderThumbsView;
- @protocol ReaderThumbsViewDelegate <NSObject, UIScrollViewDelegate>
- @required
- - (NSUInteger)numberOfThumbsInThumbsView:(ReaderThumbsView *)thumbsView;
- - (id)thumbsView:(ReaderThumbsView *)thumbsView thumbCellWithFrame:(CGRect)frame;
- - (void)thumbsView:(ReaderThumbsView *)thumbsView updateThumbCell:(id)thumbCell forIndex:(NSInteger)index;
- - (void)thumbsView:(ReaderThumbsView *)thumbsView didSelectThumbWithIndex:(NSInteger)index;
- @optional
- - (void)thumbsView:(ReaderThumbsView *)thumbsView refreshThumbCell:(id)thumbCell forIndex:(NSInteger)index;
- - (void)thumbsView:(ReaderThumbsView *)thumbsView didPressThumbWithIndex:(NSInteger)index;
- @end
- @interface ReaderThumbsView : UIScrollView
- @property (nonatomic, weak, readwrite) id <ReaderThumbsViewDelegate> delegate;
- - (void)setThumbSize:(CGSize)thumbSize;
- - (void)reloadThumbsCenterOnIndex:(NSInteger)index;
- - (void)reloadThumbsContentOffset:(CGPoint)newContentOffset;
- - (void)refreshThumbWithIndex:(NSInteger)index;
- - (void)refreshVisibleThumbs;
- - (CGPoint)insetContentOffset;
- @end
|