mirror of
https://github.com/SoPat712/YTLitePlus.git
synced 2025-08-25 03:48:51 -04:00
added files via upload
This commit is contained in:
46
Tweaks/FLEX/ViewHierarchy/SnapshotExplorer/FHSSnapshotView.h
Normal file
46
Tweaks/FLEX/ViewHierarchy/SnapshotExplorer/FHSSnapshotView.h
Normal file
@@ -0,0 +1,46 @@
|
||||
//
|
||||
// FHSSnapshotView.h
|
||||
// FLEX
|
||||
//
|
||||
// Created by Tanner Bennett on 1/7/20.
|
||||
// Copyright © 2020 FLEX Team. All rights reserved.
|
||||
//
|
||||
|
||||
#import "FHSViewSnapshot.h"
|
||||
#import "FHSRangeSlider.h"
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@protocol FHSSnapshotViewDelegate <NSObject>
|
||||
|
||||
- (void)didSelectView:(FHSViewSnapshot *)snapshot;
|
||||
- (void)didDeselectView:(FHSViewSnapshot *)snapshot;
|
||||
- (void)didLongPressView:(FHSViewSnapshot *)snapshot;
|
||||
|
||||
@end
|
||||
|
||||
@interface FHSSnapshotView : UIView
|
||||
|
||||
+ (instancetype)delegate:(id<FHSSnapshotViewDelegate>)delegate;
|
||||
|
||||
@property (nonatomic, weak) id<FHSSnapshotViewDelegate> delegate;
|
||||
|
||||
@property (nonatomic) NSArray<FHSViewSnapshot *> *snapshots;
|
||||
@property (nonatomic, nullable) FHSViewSnapshot *selectedView;
|
||||
|
||||
/// Views of these classes will have their headers hidden
|
||||
@property (nonatomic) NSArray<Class> *headerExclusions;
|
||||
|
||||
@property (nonatomic, readonly) UISlider *spacingSlider;
|
||||
@property (nonatomic, readonly) FHSRangeSlider *depthSlider;
|
||||
|
||||
- (void)emphasizeViews:(NSArray<UIView *> *)emphasizedViews;
|
||||
|
||||
- (void)toggleShowHeaders;
|
||||
- (void)toggleShowBorders;
|
||||
|
||||
- (void)hideView:(FHSViewSnapshot *)view;
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
Reference in New Issue
Block a user