mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-29 20:57:38 +00:00
Implement constraintsWithVisualFormat method on NSLayoutConstraint
This commit is contained in:
parent
30d0dc66ee
commit
1aff56cb9b
5 changed files with 569 additions and 5 deletions
22
Source/GSAutoLayoutVFLParser.h
Normal file
22
Source/GSAutoLayoutVFLParser.h
Normal file
|
@ -0,0 +1,22 @@
|
|||
#import <AppKit/AppKit.h>
|
||||
|
||||
@interface GSAutoLayoutVFLParser : NSObject
|
||||
{
|
||||
NSDictionary *_views;
|
||||
NSLayoutFormatOptions _options;
|
||||
NSDictionary *_metrics;
|
||||
NSScanner *_scanner;
|
||||
NSMutableArray *_constraints;
|
||||
NSMutableArray *_layoutFormatConstraints;
|
||||
NSView *_view;
|
||||
BOOL _createLeadingConstraintToSuperview;
|
||||
BOOL _isVerticalOrientation;
|
||||
}
|
||||
|
||||
|
||||
-(instancetype)initWithFormat: (NSString*)format options: (NSLayoutFormatOptions)options metrics: (NSDictionary*)metrics views: (NSDictionary*)views;
|
||||
|
||||
-(NSArray*)parse;
|
||||
|
||||
@end
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue