// // TCPageIndicator.h // MyMacDevDemo // // Created by tangchao on 2021/12/11. // #import NS_ASSUME_NONNULL_BEGIN @class TCPageIndicator; @protocol TCPageIndicatorDelegate - (void)pageIndicator:(TCPageIndicator *)pageIndicator didSelectPageAtIndex:(NSUInteger)idx; @end @interface TCPageIndicator : NSView @property (nonatomic, weak) id delegate; @property (nonatomic, strong) NSColor *selectedColor; @property (nonatomic, strong) NSColor *normalColor; @property (nonatomic, assign) CGFloat indicatorMargin; @property (nonatomic, assign) NSUInteger currentPage; @property (nonatomic, assign) NSUInteger numberOfPages; @property (nonatomic, assign) NSSize pageIndicatorSize; // 是否响应事件 [默认为 YES ] @property (nonatomic, assign) BOOL enabled; @end NS_ASSUME_NONNULL_END