Refactor layout core methods implementation to use ivars

This commit is contained in:
Benjamin Johnson 2023-02-20 18:09:23 +11:00
parent 571ad7a613
commit 75fcf49b62
5 changed files with 62 additions and 82 deletions

View file

@ -180,6 +180,8 @@ PACKAGE_SCOPE
BOOL _is_hidden;
BOOL _in_live_resize;
BOOL _needsLayout;
BOOL _needsUpdateConstraints;
BOOL _translatesAutoresizingMaskIntoConstraints;
NSUInteger _autoresizingMask;
NSFocusRingType _focusRingType;
@ -656,6 +658,20 @@ PACKAGE_SCOPE
-(BOOL) needsLayout;
-(void) setNeedsLayout: (BOOL)needsLayout;
#endif
#if GS_HAS_DECLARED_PROPERTIES
@property (nonatomic) BOOL needsUpdateConstraints;
#else
- (BOOL) needsUpdateConstraints;
- (void) setNeedsUpdateConstraints: (BOOL)needsUpdateConstraints;
#endif
#if GS_HAS_DECLARED_PROPERTIES
@property BOOL translatesAutoresizingMaskIntoConstraints;
#else
- (BOOL) translatesAutoresizingMaskIntoConstraints;
- (void) setTranslatesAutoresizingMaskIntoConstraints: (BOOL)translatesAutoresizingMaskIntoConstraints;
#endif
#endif
@end