mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 14:00:37 +00:00
Implement methods in NSLayoutConstraint
This commit is contained in:
parent
86e4e58df3
commit
c99d9f68d7
2 changed files with 48 additions and 6 deletions
|
@ -115,12 +115,22 @@ typedef NSUInteger NSLayoutFormatOptions;
|
|||
CGFloat _constant;
|
||||
NSLayoutPriority _priority;
|
||||
}
|
||||
|
||||
|
||||
+ (NSArray *)constraintsWithVisualFormat: (NSString *)fmt
|
||||
options: (NSLayoutFormatOptions)opt
|
||||
metrics: (NSDictionary *)metrics
|
||||
views: (NSDictionary *)views;
|
||||
|
||||
// GNUstep extension...
|
||||
- (instancetype) initWithItem: (id)view1
|
||||
attribute: (NSLayoutAttribute)attr1
|
||||
relatedBy: (NSLayoutRelation)relation
|
||||
toItem: (id)view2
|
||||
attribute: (NSLayoutAttribute)attr2
|
||||
multiplier: (CGFloat)mult
|
||||
constant: (CGFloat)c;
|
||||
|
||||
// Designated initializer...
|
||||
+ (instancetype) constraintWithItem: (id)view1
|
||||
attribute: (NSLayoutAttribute)attr1
|
||||
relatedBy: (NSLayoutRelation)relation
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue