Add skeleton implementation of NSLayoutGuide

This commit is contained in:
Gregory John Casamento 2020-05-11 07:08:01 -04:00
parent 3d9442d117
commit e2752e1bc4
2 changed files with 97 additions and 2 deletions

View file

@ -26,8 +26,9 @@
#define _NSLayoutGuide_h_GNUSTEP_GUI_INCLUDE
#import <Foundation/NSObject.h>
#import "AppKit/NSUserInterfaceItemIdentification.h"
#import "AppKit/NSLayoutConstraint.h"
#import <AppKit/NSUserInterfaceItemIdentification.h>
#import <AppKit/NSLayoutConstraint.h>
#import <AppKit/NSView.h>
#if OS_API_VERSION(MAC_OS_X_VERSION_10_10, GS_API_LATEST)

View file

@ -26,5 +26,99 @@
@implementation NSLayoutGuide
- (NSRect) frame
{
return NSZeroRect;
}
- (NSView *) owningView
{
return nil;
}
- (void) setOwningView: (NSView *)owningView
{
}
- (NSUserInterfaceItemIdentifier) identifier
{
return 0;
}
- (void) setIdentifier: (NSUserInterfaceItemIdentifier)identifier
{
}
- (NSLayoutXAxisAnchor *) leadingAnchor
{
return nil;
}
- (NSLayoutXAxisAnchor *) trailingAnchor
{
return nil;
}
- (NSLayoutXAxisAnchor *) leftAnchor
{
return nil;
}
- (NSLayoutXAxisAnchor *) rightAnchor
{
return nil;
}
- (NSLayoutYAxisAnchor *) topAnchor
{
return nil;
}
- (NSLayoutYAxisAnchor *) bottomAnchor
{
return nil;
}
- (NSLayoutDimension *) widthAnchor
{
return nil;
}
- (NSLayoutDimension *) heightAnchor
{
return nil;
}
- (NSLayoutXAxisAnchor *) centerXAnchor
{
return nil;
}
- (NSLayoutYAxisAnchor *) centerYAnchor
{
return nil;
}
- (BOOL) hasAmbiguousLayout
{
return NO;
}
- (NSArray *) constraintsAffectingLayoutForOrientation: (NSLayoutConstraintOrientation)orientation
{
return [NSArray array];
}
- (instancetype) initWithCoder: (NSCoder *)coder
{
self = [super init];
return self;
}
- (void) encodeWithCoder: (NSCoder *)coder
{
}
@end