|
JubeatPlus 3.9.11
|
A paged, scrolling grid of song tiles with column-size, paging, and alpha controls. More...
#include <MusicListView.h>


Instance Methods | |
| (instancetype) | - initWithFrame: |
| Builds the list, its controls, the artwork cache, and the operation queue. | |
| (CGPoint) | - centerOfMusicViewInPage:forIndex: |
| The centre of a tile in a page for a list index. | |
| (void) | - hideAllPlaylistAction |
| Hides the playlist add/remove button on every visible tile. | |
| (CGFloat) | - artworkSize |
| The tile artwork edge length for the current device idiom. | |
| (void) | - clearAllPage |
| Clears and hides every visible tile. | |
| (void) | - loadArtworkForInfo: |
| Loads a tile's artwork concurrently. | |
| (void) | - loadArtworkForInfo:forImageView:concurrent:index: |
| Loads a tune's artwork into an image view, from the cache or an operation. | |
| (void) | - reloadPageContainsMusicForIndex:playlistIndex: |
| Reloads the page containing a tune, animating the delete/insert if small enough. | |
| (void) | - removeMusicView: |
| Deletes the tile whose tune matches, adjusting the current page. | |
| (void) | - setMusicViewDelegate: |
| Sets the delegate passed on to each tile's music view. | |
| (void) | - alignPage: |
| Scrolls to a page's content offset without animation. | |
| (BOOL) | - layoutPage:center: |
| Scrolls to the current page's content offset. | |
| (void) | - updateViews |
| Reloads the collection view. | |
| (void) | - imageDataLoaded: |
| The artwork finished loading; installs and caches it on the main thread. | |
| (void) | - releaseArtworks |
| Cancels operations and clears the artwork cache and loader dictionary. | |
| (int) | - currentViewsPerPage |
| The tile count per page for the current column type. | |
| (int) | - musicInPage: |
| The tile count per page for a column type. | |
| (int) | - numPage |
| The number of pages. | |
| (int) | - getCurrentPage |
| The current page index. | |
| (void) | - updatePageDisplay |
| Refreshes the page label, arrows, and page slider for the current page. | |
| (void) | - addDownloadMark: |
| Reveals the download mark on the visible tile whose tune matches. | |
| (nullable MusicView *) | - getMusicView: |
| The visible music view whose tune identifier matches. | |
| (void) | - changeLayout: |
| Rescales the grid to a new column type, animating the tiles across the change. | |
| (void) | - pushScaleDown: |
| Steps the grid to a smaller tile / more columns. | |
| (void) | - pushScaleUp: |
| Steps the grid to a larger tile / fewer columns. | |
| (void) | - btnTouchesBegan: |
| Forwards a control's touch-began to the delegate. | |
| (void) | - btnTouchesCancel: |
| Forwards a control's touch-cancel to the delegate. | |
| (void) | - pageSliderHidden: |
| The page-slider cover gesture fired; dismisses the cover view. | |
| (void) | - showPageSelector: |
| Long-press handler that presents the page and alpha sliders in a cover view. | |
| (void) | - sliderValueChange |
| Resets the page slider's range and value to the current page. | |
| (void) | - sliderChange: |
| The page slider moved; scrolls to the chosen page and refreshes the display. | |
| (void) | - sliderEnd: |
| The page slider was released; snaps to the nearest page. | |
| (void) | - hideExplainBalloon |
| Hides the explanatory balloon. | |
| (void) | - alphaSliderChange: |
| The alpha slider moved; fades the list and toggles the balloon. | |
| (void) | - alphaSliderEnd: |
| The alpha slider was released; commits the list alpha. | |
| (float) | - getMusicListAlpha |
| The current list alpha. | |
| (void) | - refreshTextColor |
| Refreshes every visible tile's label colour. | |
| (void) | - refreshRatingChip |
| Refreshes every visible tile's rating chips from the preference. | |
| Instance Methods inherited from <ArtworkLoaderDelegate> | |
| (void) | - imageDataLoaded: |
Sent once the artwork is decoded and in image . | |
Properties | |
| id< MusicListViewDelegate > | delegate |
| The hosting controller. | |
A paged, scrolling grid of song tiles with column-size, paging, and alpha controls.
| - (void) addDownloadMark: | (int) | index |
Reveals the download mark on the visible tile whose tune matches.
| index | The tune identifier to match. |
| - (void) alignPage: | (int) | page |
Scrolls to a page's content offset without animation.
| page | The page to align to. |
| - (void) alphaSliderChange: | (nullable id) | sender |
The alpha slider moved; fades the list and toggles the balloon.
| sender | The alpha slider. |
| - (void) alphaSliderEnd: | (nullable id) | sender |
The alpha slider was released; commits the list alpha.
| sender | The alpha slider. |
| - (CGFloat) artworkSize |
The tile artwork edge length for the current device idiom.
| - (void) btnTouchesBegan: | (nullable id) | touches |
Forwards a control's touch-began to the delegate.
| touches | The control. |
| - (void) btnTouchesCancel: | (nullable id) | touches |
Forwards a control's touch-cancel to the delegate.
| touches | The control. |
| - (CGPoint) centerOfMusicViewInPage: | (NSUInteger) | page | |
| forIndex: | (NSUInteger) | index |
The centre of a tile in a page for a list index.
| page | The page. |
| index | The list index. |
| - (void) changeLayout: | (int) | colType |
Rescales the grid to a new column type, animating the tiles across the change.
| colType | The column type to switch to. |
| - (void) clearAllPage |
Clears and hides every visible tile.
| - (int) currentViewsPerPage |
The tile count per page for the current column type.
| - (int) getCurrentPage |
The current page index.
| - (float) getMusicListAlpha |
The current list alpha.
| - (MusicView *) getMusicView: | (int) | index |
The visible music view whose tune identifier matches.
| index | The tune identifier to match. |
nil. | - (void) hideAllPlaylistAction |
Hides the playlist add/remove button on every visible tile.
| - (void) hideExplainBalloon |
Hides the explanatory balloon.
| - (void) imageDataLoaded: | (nonnull ArtworkLoader *) | loader |
The artwork finished loading; installs and caches it on the main thread.
| loader | The finished loader. |
| - (instancetype) initWithFrame: | (CGRect) | frame |
Builds the list, its controls, the artwork cache, and the operation queue.
| frame | The list's frame. |
| - (BOOL) layoutPage: | (int) | page | |
| center: | (int) | center |
Scrolls to the current page's content offset.
| page | Ignored. |
| center | Ignored. |
YES. | - (void) loadArtworkForInfo: | (nonnull MusicView *) | musicView |
Loads a tile's artwork concurrently.
| musicView | The tile to load artwork for. |
| - (void) loadArtworkForInfo: | (nullable TuneInfo *) | info | |
| forImageView: | (nullable UIImageView *) | imageView | |
| concurrent: | (BOOL) | concurrent | |
| index: | (int) | index |
Loads a tune's artwork into an image view, from the cache or an operation.
| info | The tune whose artwork to load. |
| imageView | The image view to fill. |
| concurrent | Whether to load off the main thread. |
| index | The requesting row index. |
| - (int) musicInPage: | (int) | colType |
The tile count per page for a column type.
| colType | The column type. |
| - (int) numPage |
The number of pages.
| - (void) pageSliderHidden: | (nullable id) | sender |
The page-slider cover gesture fired; dismisses the cover view.
| sender | The gesture recogniser. |
| - (void) pushScaleDown: | (nullable id) | sender |
Steps the grid to a smaller tile / more columns.
| sender | The scale-down button. |
| - (void) pushScaleUp: | (nullable id) | sender |
Steps the grid to a larger tile / fewer columns.
| sender | The scale-up button. |
| - (void) refreshRatingChip |
Refreshes every visible tile's rating chips from the preference.
| - (void) refreshTextColor |
Refreshes every visible tile's label colour.
| - (void) releaseArtworks |
Cancels operations and clears the artwork cache and loader dictionary.
| - (void) reloadPageContainsMusicForIndex: | (NSUInteger) | musicIndex | |
| playlistIndex: | (NSInteger) | playlistIndex |
Reloads the page containing a tune, animating the delete/insert if small enough.
| musicIndex | The tune's list index. |
| playlistIndex | The playlist index, or negative for none. |
| - (void) removeMusicView: | (nonnull MusicView *) | musicView |
Deletes the tile whose tune matches, adjusting the current page.
| musicView | The tile whose tune identifies the one to remove. |
| - (void) setMusicViewDelegate: | (nullable id) | mvDelegate |
Sets the delegate passed on to each tile's music view.
| mvDelegate | The music-view delegate. |
| - (void) showPageSelector: | (nullable UIGestureRecognizer *) | gesture |
Long-press handler that presents the page and alpha sliders in a cover view.
| gesture | the long-press recogniser. |
| - (void) sliderChange: | (nullable id) | sender |
The page slider moved; scrolls to the chosen page and refreshes the display.
| sender | The page slider. |
| - (void) sliderEnd: | (nullable id) | sender |
The page slider was released; snaps to the nearest page.
| sender | The page slider. |
| - (void) sliderValueChange |
Resets the page slider's range and value to the current page.
| - (void) updatePageDisplay |
Refreshes the page label, arrows, and page slider for the current page.
| - (void) updateViews |
Reloads the collection view.