JubeatPlus 3.9.11
Loading...
Searching...
No Matches
SVSegmentedThumb.h
Go to the documentation of this file.
1
10
11#import <UIKit/UIKit.h>
12
13NS_ASSUME_NONNULL_BEGIN
14
15// The control that owns and positions the thumb. Not reconstructed in this tree yet; see
16// TYPES_PENDING.md. Held unretained (a back-pointer to the parent).
18
25@interface SVSegmentedThumb : UIView
26
31@property(nonatomic, unsafe_unretained, nullable) SVSegmentedControl *segmentedControl;
32
40@property(nonatomic, strong, nullable) UIImage *backgroundImage;
41
46@property(nonatomic, strong, nullable) UIImage *highlightedBackgroundImage;
47
54@property(nonatomic, strong, nullable) UIColor *tintColor;
55
60@property(nonatomic, assign, nullable) UIColor *textColor;
61
66@property(nonatomic, assign, nullable) UIColor *textShadowColor;
67
72@property(nonatomic, assign) CGSize textShadowOffset;
73
78@property(nonatomic, assign) BOOL shouldCastShadow;
79
86@property(nonatomic, assign) BOOL selected;
87
92@property(nonatomic, assign, nullable) UIColor *shadowColor;
93
98@property(nonatomic, assign) CGSize shadowOffset;
99
104@property(nonatomic, assign) BOOL castsShadow;
105
111@property(nonatomic, assign, nullable) UIFont *font;
112
117@property(nonatomic, strong, readonly) UILabel *label;
118
124@property(nonatomic, strong, readonly) UILabel *secondLabel;
125
133- (instancetype)initWithFrame:(CGRect)frame;
134
140- (void)activate;
141
147- (void)deactivate;
148
149@end
150
151NS_ASSUME_NONNULL_END
152
153// code: language=Objective-C
154// kate: hl Objective-C;
155// vim: set ft=objc :
A horizontal segmented control whose selected segment is highlighted by a draggable,...
Definition SVSegmentedControl.h:46
The rounded highlight the segmented control slides over its selected segment.
Definition SVSegmentedThumb.h:26
void deactivate()
Puts the thumb into its selected look, hiding the primary label unless the control crossfades labels ...
Definition SVSegmentedThumb.m:199
void activate()
Restores the thumb to its unselected look, showing the primary label unless the control crossfades la...
Definition SVSegmentedThumb.m:190
UILabel * secondLabel
The secondary (crossfade) title label, created lazily and added as a subview on first access.
Definition SVSegmentedThumb.m:84
UILabel * label
The primary title label, created lazily and added as a subview on first access.
Definition SVSegmentedThumb.m:72
CGSize textShadowOffset
The label text shadow offset.
Definition SVSegmentedThumb.h:72
UIColor * tintColor
The colour multiplied over the default gradient with the overlay blend mode.
Definition SVSegmentedThumb.h:54
BOOL selected
Whether the thumb is in its selected (pressed) look.
Definition SVSegmentedThumb.h:86
UIImage * backgroundImage
A custom image drawn in place of the default gradient when the thumb is unselected.
Definition SVSegmentedThumb.h:40
CGSize shadowOffset
Alias of textShadowOffset.
Definition SVSegmentedThumb.h:98
UIColor * textColor
The label text colour.
Definition SVSegmentedThumb.h:60
UIColor * textShadowColor
The label text shadow colour.
Definition SVSegmentedThumb.h:66
BOOL shouldCastShadow
Whether the thumb casts a drop shadow.
Definition SVSegmentedThumb.h:78
UIFont * font
The font of both labels.
Definition SVSegmentedThumb.m:98
UIImage * highlightedBackgroundImage
A custom image drawn in place of the default gradient when the thumb is selected.
Definition SVSegmentedThumb.h:46
UIColor * shadowColor
Alias of textShadowColor.
Definition SVSegmentedThumb.h:92
SVSegmentedControl * segmentedControl
The owning segmented control.
Definition SVSegmentedThumb.h:31
BOOL castsShadow
Alias of shouldCastShadow.
Definition SVSegmentedThumb.h:104