FHSSnapshotNodes.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. //
  2. // FHSSnapshotNodes.h
  3. // FLEX
  4. //
  5. // Created by Tanner Bennett on 1/7/20.
  6. //
  7. #import "FHSViewSnapshot.h"
  8. #import <SceneKit/SceneKit.h>
  9. NS_ASSUME_NONNULL_BEGIN
  10. /// Container that holds references to the SceneKit nodes associated with a snapshot.
  11. @interface FHSSnapshotNodes : NSObject
  12. + (instancetype)snapshot:(FHSViewSnapshot *)snapshot depth:(NSInteger)depth;
  13. @property (nonatomic, readonly) FHSViewSnapshot *snapshotItem;
  14. @property (nonatomic, readonly) NSInteger depth;
  15. /// The view image itself
  16. @property (nonatomic, nullable) SCNNode *snapshot;
  17. /// Goes on top of the snapshot, has rounded top corners
  18. @property (nonatomic, nullable) SCNNode *header;
  19. /// The bounding box drawn around the snapshot
  20. @property (nonatomic, nullable) SCNNode *border;
  21. /// Used to indicate when a view is selected
  22. @property (nonatomic, getter=isHighlighted) BOOL highlighted;
  23. /// Used to indicate when a view is de-emphasized
  24. @property (nonatomic, getter=isDimmed) BOOL dimmed;
  25. @property (nonatomic) BOOL forceHideHeader;
  26. @end
  27. NS_ASSUME_NONNULL_END