1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- #import <UIKit/UIKit.h>
- typedef enum
- {
- StyledTableViewCellSelectionStyleDefault = 0,
- StyledTableViewCellSelectionStyleCyan = 1,
- StyledTableViewCellSelectionStyleGreen = 2,
- StyledTableViewCellSelectionStyleYellow = 3,
- StyledTableViewCellSelectionStylePurple = 4,
- } StyledTableViewCellSelectionStyle;
- typedef enum
- {
- StyledTableViewCellSelectionGradientDirectionVertical = 0,
- StyledTableViewCellSelectionGradientDirectionHorizontal = 1,
- StyledTableViewCellSelectionGradientDirectionDiagonalTopLeftToBottomRight = 2,
- StyledTableViewCellSelectionGradientDirectionDiagonalBottomLeftToTopRight = 3,
- } StyledTableViewCellSelectionGradientDirection;
- @interface StyledTableViewCellBackgroundView : UIView
- @property (nonatomic, strong) UIColor *separatorColor;
- @property (nonatomic, assign) int dashWidth, dashGap, dashStroke;
- @end
- @interface StyledTableViewCellSelectedBackgroundView : StyledTableViewCellBackgroundView
- @property (nonatomic, strong) NSArray *selectedBackgroundGradientColors;
- @property (nonatomic, assign) StyledTableViewCellSelectionGradientDirection gradientDirection;
- @end
- @interface StyledTableViewCell : UITableViewCell
- @property (nonatomic, assign) int dashWidth;
- @property (nonatomic, assign) int dashGap;
- @property (nonatomic, assign) int dashStroke;
- - (void)setDashWidth:(int)dashWidth dashGap:(int)dashGap dashStroke:(int)dashStroke;
- - (void)setSeparatorColor:(UIColor*)separatorColor;
- - (void)setSelectedBackgroundViewGradientColors:(NSArray*)colors;
- - (void)setSelectionGradientDirection:(StyledTableViewCellSelectionGradientDirection)direction;
- @property (nonatomic, assign, setter = setStyledTableViewCellSelectionStyle:) StyledTableViewCellSelectionStyle styledTableViewCellSelectionStyle;
- @end
|