JubeatPlus 3.9.11
Loading...
Searching...
No Matches
StorePackView.h
Go to the documentation of this file.
1
10
11#import <UIKit/UIKit.h>
12
13#import "StorePackInfo.h"
14
15NS_ASSUME_NONNULL_BEGIN
16
20@protocol StorePackViewDelegate <NSObject>
21@optional
26- (void)storePackViewSelected:(nonnull id)packView;
27@end
28
32@interface StorePackView : UIView
33
40@property(nonatomic, weak, nullable) id delegate;
41
46@property(nonatomic, strong, nullable) UIImageView *artworkView;
47
52@property(nonatomic, readonly) NSUInteger index;
53
60- (instancetype)initWithFrame:(CGRect)frame;
61
67- (void)setBgImage:(nullable UIImage *)image;
68
74- (void)handleTap:(nonnull UITapGestureRecognizer *)recognizer;
75
82- (void)loadPackInfo:(nullable StorePackInfo *)packInfo index:(NSUInteger)index;
83
84@end
85
86NS_ASSUME_NONNULL_END
87
88// code: language=Objective-C
89// kate: hl Objective-C;
90// vim: set ft=objc :
One purchasable pack in the store.
A pack's identity, name, price, store flags, and track list.
Definition StorePackInfo.h:18
A tappable tile showing one pack's artwork, name, comment, price, and status markers.
Definition StorePackView.h:33
UIImageView * artworkView
The tile's artwork view.
Definition StorePackView.h:46
NSUInteger index
The tile's position in the pack list, as last given to -loadPackInfo:index: .
Definition StorePackView.h:52
id delegate
The object told when the tile is tapped.
Definition StorePackView.h:40