1234567891011121314151617181920212223242526272829303132333435363738 |
- //
- // 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
|