Home asdisplaynode-display-internal
Post
Cancel

asdisplaynode-display-internal

ASDisplayNodeInternal.h

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
typedef NS_OPTIONS(uint_least32_t, ASDisplayNodeAtomicFlags)
{
  Synchronous = 1 << 0,
  YogaLayoutInProgress = 1 << 1,
};

typedef NS_OPTIONS(NSUInteger, ASDisplayNodeMethodOverrides)
{
  ASDisplayNodeMethodOverrideNone                   = 0,
  ASDisplayNodeMethodOverrideTouchesBegan           = 1 << 0,
  ASDisplayNodeMethodOverrideTouchesCancelled       = 1 << 1,
  ASDisplayNodeMethodOverrideTouchesEnded           = 1 << 2,
  ASDisplayNodeMethodOverrideTouchesMoved           = 1 << 3,
  ASDisplayNodeMethodOverrideLayoutSpecThatFits     = 1 << 4,
  ASDisplayNodeMethodOverrideCalcLayoutThatFits     = 1 << 5,
  ASDisplayNodeMethodOverrideCalcSizeThatFits       = 1 << 6,
  ASDisplayNodeMethodOverrideCanBecomeFirstResponder= 1 << 7,
  ASDisplayNodeMethodOverrideBecomeFirstResponder   = 1 << 8,
  ASDisplayNodeMethodOverrideCanResignFirstResponder= 1 << 9,
  ASDisplayNodeMethodOverrideResignFirstResponder   = 1 << 10,
  ASDisplayNodeMethodOverrideIsFirstResponder       = 1 << 11,
};


ASDisplayNode * __weak _supernode;
NSMutableArray<ASDisplayNode *> *_subnodes;
ASNodeController *_strongNodeController;
__weak ASNodeController *_weakNodeController;

// Set this to nil whenever you modify _subnodes
NSArray<ASDisplayNode *> *_cachedSubnodes;
This post is licensed under CC BY 4.0 by the author.