mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 14:10:47 +00:00
Implement part of GSAutoLayoutEngine dependency management logic (#178)
* Implement part of GSAutoLayoutEngine dependency management logic * Fix formatting of GSAutoLayoutEngine, GSCSFloatComparator and GSCSSolution * Address PR feedback * Address PR feedback * Replace assignment with ASSIGN macro and fix makefile * Add back dealloc in GSAutoLayoutEngine.m and GSCSSolution.m
This commit is contained in:
parent
a913346b83
commit
2be7334ce2
16 changed files with 870 additions and 18 deletions
|
@ -20,8 +20,9 @@
|
|||
Boston, MA 02110 USA.
|
||||
*/
|
||||
|
||||
#import "AppKit/NSLayoutConstraint.h"
|
||||
#import <Foundation/Foundation.h>
|
||||
#import "AppKit/NSLayoutConstraint.h"
|
||||
#import "GSCassowarySolver.h"
|
||||
|
||||
@class NSView;
|
||||
@class NSLayoutConstraint;
|
||||
|
@ -30,6 +31,22 @@
|
|||
#define _GS_AUTO_LAYOUT_ENGINE_H
|
||||
|
||||
@interface GSAutoLayoutEngine : NSObject
|
||||
{
|
||||
GSCassowarySolver *_solver;
|
||||
NSMapTable *_variablesByKey;
|
||||
NSMutableArray *_solverConstraints;
|
||||
NSMapTable *_constraintsByAutoLayoutConstaintHash;
|
||||
NSMapTable *_layoutConstraintsBySolverConstraint;
|
||||
NSMutableArray *_trackedViews;
|
||||
NSMutableDictionary *_viewIndexByViewHash;
|
||||
NSMutableDictionary *_viewAlignmentRectByViewIndex;
|
||||
NSMutableDictionary *_constraintsByViewIndex;
|
||||
NSMapTable *_internalConstraintsByViewIndex;
|
||||
NSMapTable *_supportingConstraintsByConstraint;
|
||||
int _viewCounter;
|
||||
}
|
||||
|
||||
- (instancetype) initWithSolver: (GSCassowarySolver*)solver;
|
||||
|
||||
- (void) addConstraint: (NSLayoutConstraint *)constraint;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue