Files
main/Tweaks/FLEX/ViewHierarchy/SnapshotExplorer/Scene/FHSSnapshotNodes.h
2023-06-27 09:54:41 +02:00

38 lines
1.0 KiB
Objective-C

//
// FHSSnapshotNodes.h
// FLEX
//
// Created by Tanner Bennett on 1/7/20.
//
#import "FHSViewSnapshot.h"
#import <SceneKit/SceneKit.h>
NS_ASSUME_NONNULL_BEGIN
/// Container that holds references to the SceneKit nodes associated with a snapshot.
@interface FHSSnapshotNodes : NSObject
+ (instancetype)snapshot:(FHSViewSnapshot *)snapshot depth:(NSInteger)depth;
@property (nonatomic, readonly) FHSViewSnapshot *snapshotItem;
@property (nonatomic, readonly) NSInteger depth;
/// The view image itself
@property (nonatomic, nullable) SCNNode *snapshot;
/// Goes on top of the snapshot, has rounded top corners
@property (nonatomic, nullable) SCNNode *header;
/// The bounding box drawn around the snapshot
@property (nonatomic, nullable) SCNNode *border;
/// Used to indicate when a view is selected
@property (nonatomic, getter=isHighlighted) BOOL highlighted;
/// Used to indicate when a view is de-emphasized
@property (nonatomic, getter=isDimmed) BOOL dimmed;
@property (nonatomic) BOOL forceHideHeader;
@end
NS_ASSUME_NONNULL_END