home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OpenStep 4.2J (Developer)
/
os42jdev.iso
/
NextDeveloper
/
OpenStepConversion
/
IntermediateFrameworks3
/
AppKit.framework
/
Headers
/
NSScrollView.h
< prev
next >
Wrap
Text File
|
1994-09-29
|
2KB
|
77 lines
/*
ScrollView.h
Application Kit, Release 2.0
Copyright (c) 1988, 1989, 1990, NeXT, Inc. All rights reserved.
*/
#import "NSBox.h"
#import "NSColor.h"
@interface NSScrollView : NSView
{
id vScroller;
id hScroller;
id contentView;
float pageContext;
float lineAmount;
struct __sFlags {
#ifdef __BIG_ENDIAN__
unsigned int vScrollerRequired:1;
unsigned int hScrollerRequired:1;
unsigned int vScrollerStatus:1;
unsigned int hScrollerStatus:1;
unsigned int noDynamicScrolling:1;
unsigned int borderType:2;
unsigned int rulerInstalled:1;
unsigned int _RESERVED:8;
#else
unsigned int _RESERVED:8;
unsigned int rulerInstalled:1;
unsigned int borderType:2;
unsigned int noDynamicScrolling:1;
unsigned int hScrollerStatus:1;
unsigned int vScrollerStatus:1;
unsigned int hScrollerRequired:1;
unsigned int vScrollerRequired:1;
#endif
} _sFlags;
id _ruler;
}
+ (NSSize)frameSizeForContentSize:(NSSize)cSize hasHorizontalScroller:(BOOL)hFlag hasVerticalScroller:(BOOL)vFlag borderType:(NSBorderType)aType;
+ (NSSize)contentSizeForFrameSize:(NSSize)fSize hasHorizontalScroller:(BOOL)hFlag hasVerticalScroller:(BOOL)vFlag borderType:(NSBorderType)aType;
- initFrame:(NSRect)frameRect;
- (NSRect)documentVisibleRect;
- (NSSize)contentSize;
- resizeSubviews:(NSSize)oldSize;
- drawRect:(NSRect)rect;
- setDocView:aView;
- docView;
- setDocCursor:anObj;
- (NSBorderType)borderType;
- setBorderType:(NSBorderType)aType;
- setBackgroundColor:(NSColor *)color;
- (NSColor *)backgroundColor;
- setVertScrollerRequired:(BOOL)flag;
- setHorizScrollerRequired:(BOOL)flag;
- vertScroller;
- horizScroller;
- setVertScroller:anObject;
- setHorizScroller:anObject;
- setLineScroll:(float)value;
- setPageScroll:(float)value;
- setCopyOnScroll:(BOOL)flag;
- setDisplayOnScroll:(BOOL)flag;
- setDynamicScrolling:(BOOL)flag;
- tile;
- reflectScroll:cView;
@end
@interface NSScrollView(Ruler)
- toggleRuler:sender;
- ruler;
@end