17#import <UIKit/UIKit.h>
26NS_ASSUME_NONNULL_BEGIN
34@protocol MusicListViewDelegate <NSObject>
49- (nullable
TuneInfo *)musicInfoForIndex:(NSUInteger)index;
56- (nullable
TuneInfo *)extendMusicInfoForMusicID:(
unsigned int)musicID;
75- (void)scrollFromPageNum:(
int)pageNum bAnim:(BOOL)bAnim;
87- (void)changeMusicListView:(NSInteger)index musicID:(NSUInteger)musicID;
95- (void)changeMusicListView:(NSInteger)index musicID:(NSUInteger)musicID isFirst:(BOOL)isFirst;
102- (void)showCoverView:(nonnull NSArray *)views addGesture:(nonnull UIGestureRecognizer *)gesture;
113- (void)btnTouchesBegan:(nullable
id)sender;
119- (void)btnTouchesCancel:(nullable
id)sender;
127 UICollectionViewDelegateFlowLayout,
137- (instancetype)initWithFrame:(CGRect)frame;
146- (CGPoint)centerOfMusicViewInPage:(NSUInteger)page forIndex:(NSUInteger)index;
172- (void)loadArtworkForInfo:(nonnull
MusicView *)musicView;
182- (void)loadArtworkForInfo:(nullable
TuneInfo *)info
183 forImageView:(nullable UIImageView *)imageView
184 concurrent:(BOOL)concurrent
193- (void)reloadPageContainsMusicForIndex:(NSUInteger)musicIndex
194 playlistIndex:(NSInteger)playlistIndex;
201- (void)removeMusicView:(nonnull
MusicView *)musicView;
208- (void)setMusicViewDelegate:(nullable
id)mvDelegate;
215- (void)alignPage:(
int)page;
224- (BOOL)layoutPage:(
int)page center:(
int)center;
258- (int)musicInPage:(
int)colType;
285- (void)addDownloadMark:(
int)index;
293- (nullable
MusicView *)getMusicView:(
int)index;
300- (void)changeLayout:(
int)colType;
307- (void)pushScaleDown:(nullable
id)sender;
314- (void)pushScaleUp:(nullable
id)sender;
321- (void)btnTouchesBegan:(nullable
id)touches;
328- (void)btnTouchesCancel:(nullable
id)touches;
335- (void)pageSliderHidden:(nullable
id)sender;
342- (void)showPageSelector:(nullable UIGestureRecognizer *)gesture;
355- (void)sliderChange:(nullable
id)sender;
362- (void)sliderEnd:(nullable
id)sender;
375- (void)alphaSliderChange:(nullable
id)sender;
382- (void)alphaSliderEnd:(nullable
id)sender;
403#pragma mark - Properties
406@property(nonatomic, weak, nullable) id<MusicListViewDelegate>
delegate;
Loads one tune's jacket artwork out of a packed, enciphered archive.
A one-shot loader for a single tune's artwork.
Definition ArtworkLoader.h:42
A speech balloon: a rounded rectangle with one triangular arrow.
Definition BalloonView.h:34
The song-grid layout for the music-selection collection view.
Definition MusicListCollectionLayout.h:22
A paged, scrolling grid of song tiles with column-size, paging, and alpha controls.
Definition MusicListView.h:129
void refreshRatingChip()
Refreshes every visible tile's rating chips from the preference.
Definition MusicListView.m:1336
void updateViews()
Reloads the collection view.
Definition MusicListView.m:787
void updatePageDisplay()
Refreshes the page label, arrows, and page slider for the current page.
Definition MusicListView.m:748
int numPage()
The number of pages.
Definition MusicListView.m:736
void releaseArtworks()
Cancels operations and clears the artwork cache and loader dictionary.
Definition MusicListView.m:712
void hideExplainBalloon()
Hides the explanatory balloon.
Definition MusicListView.m:1273
void refreshTextColor()
Refreshes every visible tile's label colour.
Definition MusicListView.m:1329
void clearAllPage()
Clears and hides every visible tile.
Definition MusicListView.m:524
void sliderValueChange()
Resets the page slider's range and value to the current page.
Definition MusicListView.m:1230
void hideAllPlaylistAction()
Hides the playlist add/remove button on every visible tile.
Definition MusicListView.m:517
int getCurrentPage()
The current page index.
Definition MusicListView.m:743
id< MusicListViewDelegate > delegate
The hosting controller.
Definition MusicListView.h:406
float getMusicListAlpha()
The current list alpha.
Definition MusicListView.m:1322
CGFloat artworkSize()
The tile artwork edge length for the current device idiom.
Definition MusicListView.m:508
int currentViewsPerPage()
The tile count per page for the current column type.
Definition MusicListView.m:726
A song tile: artwork, labels, and per-difficulty rank and full-combo image stacks.
Definition MusicView.h:67
A tune, its three difficulty levels, and how it sorts.
Definition TuneInfo.h:20
What an ArtworkLoader tells its owner.
Definition ArtworkLoader.h:29
unsigned int numberOfMusic()
The number of tunes in the list.
nullable NSArray< NSIndexPath * > * addMusicArray()
The index paths to insert on the next batch reload.
void musicListScrollBegin()
The list began scrolling.
void hiddenCoverView()
Dismiss the cover view.
nullable NSArray< NSIndexPath * > * removeMusicArray()
The index paths to delete on the next batch reload.