JubeatPlus 3.9.11
Loading...
Searching...
No Matches
MusicListView Class Reference

A paged, scrolling grid of song tiles with column-size, paging, and alpha controls. More...

#include <MusicListView.h>

Inheritance diagram for MusicListView:
Collaboration diagram for MusicListView:

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.

Detailed Description

A paged, scrolling grid of song tiles with column-size, paging, and alpha controls.

Method Documentation

◆ addDownloadMark:

- (void) addDownloadMark: (int) index

Reveals the download mark on the visible tile whose tune matches.

Parameters
indexThe tune identifier to match.
Ghidra address:
0x3ebb8
Ghidra address:
0x3ebb8

◆ alignPage:

- (void) alignPage: (int) page

Scrolls to a page's content offset without animation.

Parameters
pageThe page to align to.
Ghidra address:
0x3dde4
Ghidra address:
0x3dde4

◆ alphaSliderChange:

- (void) alphaSliderChange: (nullable id) sender

The alpha slider moved; fades the list and toggles the balloon.

Parameters
senderThe alpha slider.
Ghidra address:
0x414a8

◆ alphaSliderEnd:

- (void) alphaSliderEnd: (nullable id) sender

The alpha slider was released; commits the list alpha.

Parameters
senderThe alpha slider.
Ghidra address:
0x41638

◆ artworkSize

- (CGFloat) artworkSize

The tile artwork edge length for the current device idiom.

Returns
The artwork size.
Ghidra address:
0x3d0fc
Ghidra address:
0x3d0fc

◆ btnTouchesBegan:

- (void) btnTouchesBegan: (nullable id) touches

Forwards a control's touch-began to the delegate.

Parameters
touchesThe control.
Ghidra address:
0x40bd8

◆ btnTouchesCancel:

- (void) btnTouchesCancel: (nullable id) touches

Forwards a control's touch-cancel to the delegate.

Parameters
touchesThe control.
Ghidra address:
0x40c90

◆ centerOfMusicViewInPage:forIndex:

- (CGPoint) centerOfMusicViewInPage: (NSUInteger) page
forIndex: (NSUInteger) index 

The centre of a tile in a page for a list index.

Parameters
pageThe page.
indexThe list index.
Returns
The tile centre in the list's coordinate space.
Ghidra address:
0x3cec4
Ghidra address:
0x3cec4

◆ changeLayout:

- (void) changeLayout: (int) colType

Rescales the grid to a new column type, animating the tiles across the change.

Parameters
colTypeThe column type to switch to.
Ghidra address:
0x3fe34
Ghidra address:
0x3fe34
Ghidra address:
0x403d4
Ghidra address:
0x4068c
Ghidra address:
0x406d8
Ghidra address:
0x406dc
Ghidra address:
0x40728
Ghidra address:
0x4077c
Ghidra address:
0x407c8
Ghidra address:
0x4072c
Ghidra address:
0x40778

◆ clearAllPage

- (void) clearAllPage

Clears and hides every visible tile.

Ghidra address:
0x3d118

◆ currentViewsPerPage

- (int) currentViewsPerPage

The tile count per page for the current column type.

Returns
The tiles per page.
Ghidra address:
0x3e32c
Ghidra address:
0x3e32c

◆ getCurrentPage

- (int) getCurrentPage

The current page index.

Returns
The current page.
Ghidra address:
0x3e3b8
Ghidra address:
0x3e3b8

◆ getMusicListAlpha

- (float) getMusicListAlpha

The current list alpha.

Returns
The list alpha.
Ghidra address:
0x41690
Ghidra address:
0x41690

◆ getMusicView:

- (MusicView *) getMusicView: (int) index

The visible music view whose tune identifier matches.

Parameters
indexThe tune identifier to match.
Returns
The matching music view, or nil.
Ghidra address:
0x3ed68
Ghidra address:
0x3ed68

◆ hideAllPlaylistAction

- (void) hideAllPlaylistAction

Hides the playlist add/remove button on every visible tile.

Ghidra address:
0x3cfa4

◆ hideExplainBalloon

- (void) hideExplainBalloon

Hides the explanatory balloon.

Ghidra address:
0x412a0
Ghidra address:
0x413e8
Ghidra address:
0x41434

◆ imageDataLoaded:

- (void) imageDataLoaded: (nonnull ArtworkLoader *) loader

The artwork finished loading; installs and caches it on the main thread.

Parameters
loaderThe finished loader.
Ghidra address:
0x3deb8

◆ initWithFrame:

- (instancetype) initWithFrame: (CGRect) frame

Builds the list, its controls, the artwork cache, and the operation queue.

Parameters
frameThe list's frame.
Returns
The initialised list view.
Ghidra address:
0x3b314
Ghidra address:
0x3b314

◆ layoutPage:center:

- (BOOL) layoutPage: (int) page
center: (int) center 

Scrolls to the current page's content offset.

Parameters
pageIgnored.
centerIgnored.
Returns
Always YES.
Ghidra address:
0x3de3c
Ghidra address:
0x3de3c

◆ loadArtworkForInfo:

- (void) loadArtworkForInfo: (nonnull MusicView *) musicView

Loads a tile's artwork concurrently.

Parameters
musicViewThe tile to load artwork for.
Ghidra address:
0x3d2a8

◆ loadArtworkForInfo:forImageView:concurrent:index:

- (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.

Parameters
infoThe tune whose artwork to load.
imageViewThe image view to fill.
concurrentWhether to load off the main thread.
indexThe requesting row index.
Ghidra address:
0x3d368

◆ musicInPage:

- (int) musicInPage: (int) colType

The tile count per page for a column type.

Parameters
colTypeThe column type.
Returns
The tiles per page.
Ghidra address:
0x3e344
Ghidra address:
0x3e344

◆ numPage

- (int) numPage

The number of pages.

Returns
The page count.
Ghidra address:
0x3e34c
Ghidra address:
0x3e34c

◆ pageSliderHidden:

- (void) pageSliderHidden: (nullable id) sender

The page-slider cover gesture fired; dismisses the cover view.

Parameters
senderThe gesture recogniser.
Ghidra address:
0x40d48

◆ pushScaleDown:

- (void) pushScaleDown: (nullable id) sender

Steps the grid to a smaller tile / more columns.

Parameters
senderThe scale-down button.
Ghidra address:
0x407cc

◆ pushScaleUp:

- (void) pushScaleUp: (nullable id) sender

Steps the grid to a larger tile / fewer columns.

Parameters
senderThe scale-up button.
Ghidra address:
0x40990

◆ refreshRatingChip

- (void) refreshRatingChip

Refreshes every visible tile's rating chips from the preference.

Ghidra address:
0x41814

◆ refreshTextColor

- (void) refreshTextColor

Refreshes every visible tile's label colour.

Ghidra address:
0x416bc

◆ releaseArtworks

- (void) releaseArtworks

Cancels operations and clears the artwork cache and loader dictionary.

Ghidra address:
0x3e298
Ghidra address:
0x3e318

◆ reloadPageContainsMusicForIndex:playlistIndex:

- (void) reloadPageContainsMusicForIndex: (NSUInteger) musicIndex
playlistIndex: (NSInteger) playlistIndex 

Reloads the page containing a tune, animating the delete/insert if small enough.

Parameters
musicIndexThe tune's list index.
playlistIndexThe playlist index, or negative for none.
Ghidra address:
0x3d67c
Ghidra address:
0x3d67c
Ghidra address:
0x3d9a0
Ghidra address:
0x3dab4

◆ removeMusicView:

- (void) removeMusicView: (nonnull MusicView *) musicView

Deletes the tile whose tune matches, adjusting the current page.

Parameters
musicViewThe tile whose tune identifies the one to remove.
Ghidra address:
0x3dad4

◆ setMusicViewDelegate:

- (void) setMusicViewDelegate: (nullable id) mvDelegate

Sets the delegate passed on to each tile's music view.

Parameters
mvDelegateThe music-view delegate.
Ghidra address:
0x3ddd0

◆ showPageSelector:

- (void) showPageSelector: (nullable UIGestureRecognizer *) gesture

Long-press handler that presents the page and alpha sliders in a cover view.

Parameters
gesturethe long-press recogniser.
Ghidra address:
0x40d88

◆ sliderChange:

- (void) sliderChange: (nullable id) sender

The page slider moved; scrolls to the chosen page and refreshes the display.

Parameters
senderThe page slider.
Ghidra address:
0x40f78

◆ sliderEnd:

- (void) sliderEnd: (nullable id) sender

The page slider was released; snaps to the nearest page.

Parameters
senderThe page slider.
Ghidra address:
0x411c0

◆ sliderValueChange

- (void) sliderValueChange

Resets the page slider's range and value to the current page.

Ghidra address:
0x40ef4

◆ updatePageDisplay

- (void) updatePageDisplay

Refreshes the page label, arrows, and page slider for the current page.

Ghidra address:
0x3e3c8

◆ updateViews

- (void) updateViews

Reloads the collection view.

Ghidra address:
0x3dea0

The documentation for this class was generated from the following files: