mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 13:10:59 +00:00
Implement skeleton
This commit is contained in:
parent
79c83ab9ae
commit
1137a1eca0
2 changed files with 29 additions and 2 deletions
|
@ -25,7 +25,9 @@
|
|||
#ifndef _NSSplitViewController_h_GNUSTEP_GUI_INCLUDE
|
||||
#define _NSSplitViewController_h_GNUSTEP_GUI_INCLUDE
|
||||
|
||||
#import <Foundation/NSGeometry.h>
|
||||
#import "AppKit/NSViewController.h"
|
||||
#import "AppKit/NSUserInterfaceValidation.h"
|
||||
|
||||
#if OS_API_VERSION(MAC_OS_X_VERSION_10_10, GS_API_LATEST)
|
||||
|
||||
|
@ -33,8 +35,35 @@
|
|||
extern "C" {
|
||||
#endif
|
||||
|
||||
@class NSSplitView, NSSplitViewItem, NSArray, NSMutableArray;
|
||||
|
||||
@interface NSSplitViewController : NSViewController
|
||||
{
|
||||
NSSplitView *_splitView;
|
||||
CGFloat _minimumThicknessForInlineSidebars;
|
||||
NSMutableArray *_splitViewItems;
|
||||
}
|
||||
|
||||
// return splitview...
|
||||
- (NSSplitView *) splitView;
|
||||
- (NSSplitViewItem *) splitViewItemForViewController: (NSViewController *)vc;
|
||||
- (CGFloat) minimumThicknessForInlineSidebars;
|
||||
|
||||
// manage splitview items...
|
||||
- (NSArray *) splitViewItems;
|
||||
- (void) addSplitViewItem: (NSSplitViewItem *)item;
|
||||
- (void) insertSplitViewItem: (NSSplitViewItem *)item atIndex: (NSInteger)index;
|
||||
- (void) removeSplitViewItem: (NSSplitViewItem *)item;
|
||||
|
||||
// instance methods...
|
||||
- (NSRect)splitView:(NSSplitView *)splitView additionalEffectiveRectOfDividerAtIndex:(NSInteger)dividerIndex;
|
||||
- (BOOL)splitView:(NSSplitView *)splitView canCollapseSubview:(NSView *)subview;
|
||||
- (NSRect)splitView:(NSSplitView *)splitView effectiveRect:(NSRect)proposedEffectiveRect forDrawnRect:(NSRect)drawnRect ofDividerAtIndex:(NSInteger)dividerIndex;
|
||||
- (BOOL)splitView:(NSSplitView *)splitView shouldCollapseSubview:(NSView *)subview forDoubleClickOnDividerAtIndex:(NSInteger)dividerIndex;
|
||||
- (BOOL)splitView:(NSSplitView *)splitView shouldHideDividerAtIndex:(NSInteger)dividerIndex;
|
||||
- (IBAction)toggleSidebar:(id)sender;
|
||||
- (BOOL)validateUserInterfaceItem:(id<NSValidatedUserInterfaceItem>)item;
|
||||
- (void)viewDidLoad;
|
||||
@end
|
||||
|
||||
#if defined(__cplusplus)
|
||||
|
|
2
MISSING
2
MISSING
|
@ -23,8 +23,6 @@ MISSING HEADERS
|
|||
> NSPageController.h
|
||||
> NSRuleEditor.h
|
||||
> NSSliderAccessory.h
|
||||
> NSSplitViewController.h
|
||||
> NSSplitViewItem.h
|
||||
> NSStackView.h
|
||||
> NSStatusBarButton.h
|
||||
> NSTabViewController.h
|
||||
|
|
Loading…
Reference in a new issue