mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 07:00:46 +00:00
Implement skeletons
This commit is contained in:
parent
e2752e1bc4
commit
be214374ab
2 changed files with 33 additions and 14 deletions
|
@ -39,6 +39,23 @@ extern "C" {
|
|||
@class NSView, NSLayoutXAxisAnchor, NSLayoutYAxisAnchor, NSLayoutDimension;
|
||||
|
||||
@interface NSLayoutGuide : NSObject <NSCoding, NSUserInterfaceItemIdentification>
|
||||
{
|
||||
NSRect _frame;
|
||||
NSView *_owningView;
|
||||
NSUserInterfaceItemIdentifier _identifier;
|
||||
NSLayoutXAxisAnchor *_leadingAnchor;
|
||||
NSLayoutXAxisAnchor *_trailingAnchor;
|
||||
NSLayoutXAxisAnchor *_leftAnchor;
|
||||
NSLayoutXAxisAnchor *_rightAnchor;
|
||||
NSLayoutYAxisAnchor *_topAnchor;
|
||||
NSLayoutYAxisAnchor *_bottomAnchor;
|
||||
NSLayoutDimension *_widthAnchor;
|
||||
NSLayoutDimension *_heightAnchor;
|
||||
NSLayoutXAxisAnchor *_centerXAnchor;
|
||||
NSLayoutYAxisAnchor *_centerYAnchor;
|
||||
|
||||
BOOL _hasAmbiguousLayout;
|
||||
}
|
||||
|
||||
- (NSRect) frame;
|
||||
|
||||
|
|
|
@ -28,81 +28,83 @@
|
|||
|
||||
- (NSRect) frame
|
||||
{
|
||||
return NSZeroRect;
|
||||
return _frame;
|
||||
}
|
||||
|
||||
- (NSView *) owningView
|
||||
{
|
||||
return nil;
|
||||
return _owningView;
|
||||
}
|
||||
|
||||
- (void) setOwningView: (NSView *)owningView
|
||||
{
|
||||
_owningView = owningView; // weak
|
||||
}
|
||||
|
||||
- (NSUserInterfaceItemIdentifier) identifier
|
||||
{
|
||||
return 0;
|
||||
return _identifier;
|
||||
}
|
||||
|
||||
- (void) setIdentifier: (NSUserInterfaceItemIdentifier)identifier
|
||||
{
|
||||
_identifier = identifier;
|
||||
}
|
||||
|
||||
|
||||
- (NSLayoutXAxisAnchor *) leadingAnchor
|
||||
{
|
||||
return nil;
|
||||
return _leadingAnchor;
|
||||
}
|
||||
|
||||
- (NSLayoutXAxisAnchor *) trailingAnchor
|
||||
{
|
||||
return nil;
|
||||
return _trailingAnchor;
|
||||
}
|
||||
|
||||
- (NSLayoutXAxisAnchor *) leftAnchor
|
||||
{
|
||||
return nil;
|
||||
return _leftAnchor;
|
||||
}
|
||||
|
||||
- (NSLayoutXAxisAnchor *) rightAnchor
|
||||
{
|
||||
return nil;
|
||||
return _rightAnchor;
|
||||
}
|
||||
|
||||
- (NSLayoutYAxisAnchor *) topAnchor
|
||||
{
|
||||
return nil;
|
||||
return _topAnchor;
|
||||
}
|
||||
|
||||
- (NSLayoutYAxisAnchor *) bottomAnchor
|
||||
{
|
||||
return nil;
|
||||
return _bottomAnchor;
|
||||
}
|
||||
|
||||
- (NSLayoutDimension *) widthAnchor
|
||||
{
|
||||
return nil;
|
||||
return _widthAnchor;
|
||||
}
|
||||
|
||||
- (NSLayoutDimension *) heightAnchor
|
||||
{
|
||||
return nil;
|
||||
return _heightAnchor;
|
||||
}
|
||||
|
||||
- (NSLayoutXAxisAnchor *) centerXAnchor
|
||||
{
|
||||
return nil;
|
||||
return _centerXAnchor;
|
||||
}
|
||||
|
||||
- (NSLayoutYAxisAnchor *) centerYAnchor
|
||||
{
|
||||
return nil;
|
||||
return _centerYAnchor;
|
||||
}
|
||||
|
||||
- (BOOL) hasAmbiguousLayout
|
||||
{
|
||||
return NO;
|
||||
return _hasAmbiguousLayout;
|
||||
}
|
||||
|
||||
- (NSArray *) constraintsAffectingLayoutForOrientation: (NSLayoutConstraintOrientation)orientation
|
||||
|
|
Loading…
Reference in a new issue