mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 08:20:49 +00:00
Skeleton out scrubber layout
This commit is contained in:
parent
f54f50600b
commit
63baff0b6a
2 changed files with 154 additions and 3 deletions
|
@ -24,7 +24,112 @@
|
|||
|
||||
#import "AppKit/NSScrubberLayout.h"
|
||||
|
||||
@implementation NSScrubberLayout
|
||||
@implementation NSScrubberLayoutAttributes
|
||||
|
||||
+ (NSScrubberLayoutAttributes *) layoutAttributesForItemAtIndex: (NSInteger)index
|
||||
{
|
||||
return nil;
|
||||
}
|
||||
|
||||
- (CGFloat) alpha
|
||||
{
|
||||
return 0.0;
|
||||
}
|
||||
|
||||
- (NSRect) frame
|
||||
{
|
||||
return NSZeroRect;
|
||||
}
|
||||
|
||||
- (NSInteger) itemIndex
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
- (instancetype) copyWithZone: (NSZone *)z
|
||||
{
|
||||
return nil;
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
@implementation NSScrubberLayout
|
||||
// Configuring
|
||||
- (Class) layoutAttributesClass
|
||||
{
|
||||
return nil;
|
||||
}
|
||||
|
||||
- (NSScrubber *) scrubber
|
||||
{
|
||||
return nil;
|
||||
}
|
||||
|
||||
- (NSRect) visibleRect
|
||||
{
|
||||
return NSZeroRect;
|
||||
}
|
||||
|
||||
- (void) invalidateLayout
|
||||
{
|
||||
}
|
||||
|
||||
// Subclassing layout
|
||||
- (void) prepareLayout
|
||||
{
|
||||
}
|
||||
|
||||
- (NSSize) scrubberContentSize
|
||||
{
|
||||
return NSZeroSize;
|
||||
}
|
||||
|
||||
- (NSScrubberLayoutAttributes *) layoutAttributesForItemAtIndex: (NSInteger)index
|
||||
{
|
||||
return nil;
|
||||
}
|
||||
|
||||
- (NSScrubberLayoutAttributes *) layoutAttributesForItemsInRect: (NSRect)rect
|
||||
{
|
||||
return nil;
|
||||
}
|
||||
|
||||
- (BOOL) shouldInvalidateLayoutForHighlightChange
|
||||
{
|
||||
return NO;
|
||||
}
|
||||
|
||||
- (BOOL) shouldInvalidateLayoutForSelectionChange
|
||||
{
|
||||
return NO;
|
||||
}
|
||||
|
||||
- (BOOL) shouldInvalidateLayoutForChangeFromVisibleRect: (NSRect)fromRect
|
||||
toVisibleRect: (NSRect)toRect
|
||||
{
|
||||
return NO;
|
||||
}
|
||||
|
||||
- (BOOL) automaticallyMirrorsInRightToLeftLayout
|
||||
{
|
||||
return NO;
|
||||
}
|
||||
|
||||
- (instancetype) init
|
||||
{
|
||||
self = [super init];
|
||||
return self;
|
||||
}
|
||||
|
||||
- (instancetype) initWithCoder: (NSCoder *)coder
|
||||
{
|
||||
self = [super init];
|
||||
return self;
|
||||
}
|
||||
|
||||
- (void) encodeWithCoder: (NSCoder *)coder
|
||||
{
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue