ASWeakProxy.h @interface ASWeakProxy : NSProxy /** * @return target The target which will be forwarded all messages sent to the weak proxy. */ @property (nonatomic, weak, readonly) id target; ...
asdisplaynode-asthread
ASThread.h ASDISPLAYNODE_INLINE AS_WARN_UNUSED_RESULT BOOL ASDisplayNodeThreadIsMain() { return 0 != pthread_main_np(); } namespace AS { // Set once in Mutex constructor. Linker fails if ...
asdisplaynode-resizablecontents
ASResizableContents @protocol ASResizableContents @required @property id contents; @property CGRect contentsRect; @property CGRect contentsCenter; @property CGFloat contentsScale; @property CGFloa...
asdisplaynode-pendingState
_ASPendingState.mm ASPendingStateFlags typedef struct { // Properties int needsDisplay:1; int needsLayout:1; int layoutIfNeeded:1; // Flags indicating that a given property should be...
asdisplaynode-equalityhelper
ASEqualityHelpers.h ASDISPLAYNODE_INLINE BOOL ASObjectIsEqual(id<NSObject> obj, id<NSObject> otherObj) { return obj == otherObj || [obj isEqual:otherObj]; }
asdisplaynode-extras
ASDisplayNodeExtras.mm ASDisplayNodePerformBlockOnEveryNode void ASDisplayNodePerformBlockOnEveryNode(CALayer * _Nullable layer, ASDisplayNode * _Nullable node, BOOL traverseSublayers, void(^bloc...
asdisplaynode-display-internal
ASDisplayNodeInternal.h typedef NS_OPTIONS(uint_least32_t, ASDisplayNodeAtomicFlags) { Synchronous = 1 << 0, YogaLayoutInProgress = 1 << 1, }; typedef NS_OPTIONS(NSUInteger, ASDis...
asdisplaynode-coreanimation-extras
_ASCoreAnimationExtras.mm ASDisplayNodeSetResizableContents void ASDisplayNodeSetResizableContents(id<ASResizableContents> obj, UIImage *image) { // FIXME (https://github.com/TextureGroup...
asdisplaynode-basedefine
ASBaseDefines.h #define AS_CATEGORY_IMPLEMENTABLE #ifdef __GNUC__ # define ASDISPLAYNODE_GNUC(major, minor) \ (__GNUC__ > (major) || (__GNUC__ == (major) && __GNUC_MINOR__ >= (minor...
asdisplaynode-asrunloop
ASRunLoopQueue.mm ASDeallocQueue - (void)releaseObjectInBackground:(id _Nullable __strong *)objectPtr { NSParameterAssert(objectPtr != NULL); // Cast to CFType so we can manipulate retain...