Initial skeletons for layout constraints

This commit is contained in:
Gregory John Casamento 2020-05-10 02:26:06 -04:00
parent 2cca7e44aa
commit b1980268e2
9 changed files with 240 additions and 3 deletions

View file

@ -175,6 +175,9 @@
#import <AppKit/NSInputServer.h>
#import <AppKit/NSInterfaceStyle.h>
#import <AppKit/NSKeyValueBinding.h>
#import <AppKit/NSLayoutAnchor.h>
#import <AppKit/NSLayoutConstraint.h>
#import <AppKit/NSLayoutGuide.h>
#import <AppKit/NSLayoutManager.h>
#import <AppKit/NSLevelIndicator.h>
#import <AppKit/NSLevelIndicatorCell.h>

View file

@ -0,0 +1,47 @@
/* Interface of class NSLayoutAnchor
Copyright (C) 2020 Free Software Foundation, Inc.
By: 10_11
Date: Sat May 9 16:30:52 EDT 2020
This file is part of the GNUstep Library.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110 USA.
*/
#ifndef _NSLayoutAnchor_h_GNUSTEP_GUI_INCLUDE
#define _NSLayoutAnchor_h_GNUSTEP_GUI_INCLUDE
#import <Foundation/NSObject.h>
#if OS_API_VERSION(MAC_OS_X_VERSION_10_0, GS_API_LATEST)
#if defined(__cplusplus)
extern "C" {
#endif
@interface NSLayoutAnchor : NSObject
@end
#if defined(__cplusplus)
}
#endif
#endif /* GS_API_MACOSX */
#endif /* _NSLayoutAnchor_h_GNUSTEP_GUI_INCLUDE */

View file

@ -0,0 +1,47 @@
/* Interface of class NSLayoutConstraint
Copyright (C) 2020 Free Software Foundation, Inc.
By: 10_11
Date: Sat May 9 16:30:22 EDT 2020
This file is part of the GNUstep Library.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110 USA.
*/
#ifndef _NSLayoutConstraint_h_GNUSTEP_GUI_INCLUDE
#define _NSLayoutConstraint_h_GNUSTEP_GUI_INCLUDE
#import <Foundation/NSObject.h>
#if OS_API_VERSION(MAC_OS_X_VERSION_10_0, GS_API_LATEST)
#if defined(__cplusplus)
extern "C" {
#endif
@interface NSLayoutConstraint : NSObject
@end
#if defined(__cplusplus)
}
#endif
#endif /* GS_API_MACOSX */
#endif /* _NSLayoutConstraint_h_GNUSTEP_GUI_INCLUDE */

View file

@ -0,0 +1,47 @@
/* Interface of class NSLayoutGuide
Copyright (C) 2020 Free Software Foundation, Inc.
By: 10_11
Date: Sat May 9 16:30:36 EDT 2020
This file is part of the GNUstep Library.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110 USA.
*/
#ifndef _NSLayoutGuide_h_GNUSTEP_GUI_INCLUDE
#define _NSLayoutGuide_h_GNUSTEP_GUI_INCLUDE
#import <Foundation/NSObject.h>
#if OS_API_VERSION(MAC_OS_X_VERSION_10_0, GS_API_LATEST)
#if defined(__cplusplus)
extern "C" {
#endif
@interface NSLayoutGuide : NSObject
@end
#if defined(__cplusplus)
}
#endif
#endif /* GS_API_MACOSX */
#endif /* _NSLayoutGuide_h_GNUSTEP_GUI_INCLUDE */

View file

@ -18,9 +18,6 @@ MISSING HEADERS
> NSGlyphInfo.h
> NSGridView.h
> NSItemProvider.h
> NSLayoutAnchor.h
> NSLayoutConstraint.h
> NSLayoutGuide.h
> NSMenuToolbarItem.h
> NSOpenGLLayer.h
> NSPageController.h

View file

@ -145,6 +145,9 @@ NSInputManager.m \
NSInputServer.m \
NSInterfaceStyle.m \
NSKeyValueBinding.m \
NSLayoutAnchor.m \
NSLayoutConstraint.m \
NSLayoutGuide.m \
NSLayoutManager.m \
NSLevelIndicator.m \
NSLevelIndicatorCell.m \
@ -435,6 +438,9 @@ NSInputManager.h \
NSInputServer.h \
NSInterfaceStyle.h \
NSKeyValueBinding.h \
NSLayoutAnchor.h \
NSLayoutConstraint.h \
NSLayoutGuide.h \
NSLayoutManager.h \
NSLevelIndicator.h \
NSLevelIndicatorCell.h \

30
Source/NSLayoutAnchor.m Normal file
View file

@ -0,0 +1,30 @@
/* Implementation of class NSLayoutAnchor
Copyright (C) 2020 Free Software Foundation, Inc.
By: 10_11
Date: Sat May 9 16:30:52 EDT 2020
This file is part of the GNUstep Library.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110 USA.
*/
#import "AppKit/NSLayoutAnchor.h"
@implementation NSLayoutAnchor
@end

View file

@ -0,0 +1,30 @@
/* Implementation of class NSLayoutConstraint
Copyright (C) 2020 Free Software Foundation, Inc.
By: 10_11
Date: Sat May 9 16:30:22 EDT 2020
This file is part of the GNUstep Library.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110 USA.
*/
#import "AppKit/NSLayoutConstraint.h"
@implementation NSLayoutConstraint
@end

30
Source/NSLayoutGuide.m Normal file
View file

@ -0,0 +1,30 @@
/* Implementation of class NSLayoutGuide
Copyright (C) 2020 Free Software Foundation, Inc.
By: 10_11
Date: Sat May 9 16:30:36 EDT 2020
This file is part of the GNUstep Library.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110 USA.
*/
#import "AppKit/NSLayoutGuide.h"
@implementation NSLayoutGuide
@end