Refactor calculation of interface state based on ASDisplayNode and window

This commit is contained in:
Michael Schneider
2016-03-16 13:26:17 -07:00
parent 3b4e8d732c
commit 8d771f930a
4 changed files with 19 additions and 22 deletions

View File

@@ -59,6 +59,11 @@ NS_ASSUME_NONNULL_BEGIN
ASDISPLAYNODE_EXTERN_C_BEGIN
/**
Returns the appropriate interface state for a given ASDisplayNode and window
*/
extern ASInterfaceState ASInterfaceStateForDisplayNode(ASDisplayNode *displayNode, UIWindow *window);
/**
Given a layer, returns the associated display node, if any.
*/