mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 07:00:46 +00:00
Add skeleton implementation of NSLayoutGuide
This commit is contained in:
parent
3d9442d117
commit
e2752e1bc4
2 changed files with 97 additions and 2 deletions
|
@ -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)
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue