1997-08-05 21:50:10 +00:00
|
|
|
/*
|
1996-05-30 20:03:15 +00:00
|
|
|
NSScrollView.m
|
|
|
|
|
|
|
|
Copyright (C) 1996 Free Software Foundation, Inc.
|
|
|
|
|
1997-08-05 21:50:10 +00:00
|
|
|
Author: Ovidiu Predescu <ovidiu@net-community.com>
|
|
|
|
Date: July 1997
|
1996-05-30 20:03:15 +00:00
|
|
|
|
|
|
|
This file is part of the GNUstep GUI Library.
|
|
|
|
|
|
|
|
This library is free software; you can redistribute it and/or
|
|
|
|
modify it under the terms of the GNU Library General Public
|
|
|
|
License as published by the Free Software Foundation; either
|
|
|
|
version 2 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
|
|
|
|
Library General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU Library General Public
|
1997-08-05 21:50:10 +00:00
|
|
|
License along with this library; if not, write to the Free
|
|
|
|
Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
|
|
*/
|
1996-05-30 20:03:15 +00:00
|
|
|
|
1997-08-05 21:50:10 +00:00
|
|
|
#include <AppKit/NSScroller.h>
|
|
|
|
#include <AppKit/NSClipView.h>
|
1997-02-18 00:29:25 +00:00
|
|
|
#include <AppKit/NSScrollView.h>
|
1996-05-30 20:03:15 +00:00
|
|
|
|
1997-08-05 21:50:10 +00:00
|
|
|
#define ASSIGN(a, b) \
|
|
|
|
[b retain]; \
|
|
|
|
[a release]; \
|
|
|
|
a = b;
|
|
|
|
|
1996-05-30 20:03:15 +00:00
|
|
|
@implementation NSScrollView
|
|
|
|
|
1997-08-05 21:50:10 +00:00
|
|
|
static Class rulerViewClass = nil;
|
|
|
|
|
1996-05-30 20:03:15 +00:00
|
|
|
+ (void)initialize
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
1997-08-05 21:50:10 +00:00
|
|
|
+ (void)setRulerViewClass:(Class)aClass
|
1996-05-30 20:03:15 +00:00
|
|
|
{
|
1997-08-05 21:50:10 +00:00
|
|
|
rulerViewClass = aClass;
|
1996-05-30 20:03:15 +00:00
|
|
|
}
|
|
|
|
|
1997-08-05 21:50:10 +00:00
|
|
|
+ (Class)rulerViewClass
|
1996-05-30 20:03:15 +00:00
|
|
|
{
|
1997-08-05 21:50:10 +00:00
|
|
|
return rulerViewClass;
|
1996-05-30 20:03:15 +00:00
|
|
|
}
|
|
|
|
|
1997-08-05 21:50:10 +00:00
|
|
|
/* Backends should rewrite the following 2 methods and adjust the frames
|
|
|
|
depending on the border type. */
|
|
|
|
|
|
|
|
+ (NSSize)contentSizeForFrameSize:(NSSize)frameSize
|
|
|
|
hasHorizontalScroller:(BOOL)hFlag
|
|
|
|
hasVerticalScroller:(BOOL)vFlag
|
|
|
|
borderType:(NSBorderType)borderType
|
1996-05-30 20:03:15 +00:00
|
|
|
{
|
1997-08-05 21:50:10 +00:00
|
|
|
NSSize size = frameSize;
|
|
|
|
|
|
|
|
if (hFlag)
|
|
|
|
size.height -= [NSScroller scrollerWidth];
|
|
|
|
if (vFlag)
|
|
|
|
size.width -= [NSScroller scrollerWidth];
|
|
|
|
|
|
|
|
return size;
|
1996-05-30 20:03:15 +00:00
|
|
|
}
|
|
|
|
|
1997-08-05 21:50:10 +00:00
|
|
|
+ (NSSize)frameSizeForContentSize:(NSSize)contentSize
|
|
|
|
hasHorizontalScroller:(BOOL)hFlag
|
|
|
|
hasVerticalScroller:(BOOL)vFlag
|
|
|
|
borderType:(NSBorderType)borderType
|
1996-05-30 20:03:15 +00:00
|
|
|
{
|
1997-08-05 21:50:10 +00:00
|
|
|
NSSize size = contentSize;
|
|
|
|
|
|
|
|
if (hFlag)
|
|
|
|
size.height += [NSScroller scrollerWidth];
|
|
|
|
if (vFlag)
|
|
|
|
size.width += [NSScroller scrollerWidth];
|
|
|
|
|
|
|
|
return size;
|
1996-05-30 20:03:15 +00:00
|
|
|
}
|
|
|
|
|
1997-08-05 21:50:10 +00:00
|
|
|
- initWithFrame:(NSRect)rect
|
|
|
|
{
|
|
|
|
[super initWithFrame:rect];
|
|
|
|
[self setContentView:[[NSClipView new] autorelease]];
|
|
|
|
_lineScroll = 10;
|
|
|
|
_pageScroll = 10;
|
|
|
|
_borderType = NSBezelBorder;
|
|
|
|
_scrollsDynamically = YES;
|
|
|
|
[self tile];
|
|
|
|
|
|
|
|
return self;
|
|
|
|
}
|
1996-05-30 20:03:15 +00:00
|
|
|
|
1997-08-05 21:50:10 +00:00
|
|
|
- init
|
1996-05-30 20:03:15 +00:00
|
|
|
{
|
1997-08-05 21:50:10 +00:00
|
|
|
return [self initWithFrame:NSZeroRect];
|
1996-05-30 20:03:15 +00:00
|
|
|
}
|
|
|
|
|
1997-08-05 21:50:10 +00:00
|
|
|
- (void)dealloc
|
|
|
|
{
|
|
|
|
[_contentView release];
|
|
|
|
|
|
|
|
[_horizScroller release];
|
|
|
|
[_vertScroller release];
|
|
|
|
[_horizRuler release];
|
|
|
|
[_vertRuler release];
|
|
|
|
|
|
|
|
[super dealloc];
|
|
|
|
}
|
1996-05-30 20:03:15 +00:00
|
|
|
|
1997-08-05 21:50:10 +00:00
|
|
|
- (void)setContentView:(NSClipView*)aView
|
1996-05-30 20:03:15 +00:00
|
|
|
{
|
1997-08-05 21:50:10 +00:00
|
|
|
ASSIGN(_contentView, aView);
|
|
|
|
[self addSubview:_contentView];
|
|
|
|
[self tile];
|
1996-05-30 20:03:15 +00:00
|
|
|
}
|
|
|
|
|
1997-08-05 21:50:10 +00:00
|
|
|
- (void)setHorizontalScroller:(NSScroller*)aScroller
|
|
|
|
{
|
|
|
|
[_horizScroller removeFromSuperview];
|
1996-05-30 20:03:15 +00:00
|
|
|
|
1997-08-05 21:50:10 +00:00
|
|
|
/* Do not add the scroller view to the subviews array yet; the user has to
|
|
|
|
explicitly invoke -setHasHorizontalScroller:. */
|
1996-05-30 20:03:15 +00:00
|
|
|
|
1997-08-05 21:50:10 +00:00
|
|
|
ASSIGN(_horizScroller, aScroller);
|
|
|
|
if (_horizScroller) {
|
|
|
|
[_horizScroller setTarget:self];
|
|
|
|
[_horizScroller setAction:@selector(_doScroll:)];
|
|
|
|
}
|
1996-05-30 20:03:15 +00:00
|
|
|
}
|
|
|
|
|
1997-08-05 21:50:10 +00:00
|
|
|
- (void)setHasHorizontalScroller:(BOOL)flag
|
|
|
|
{
|
|
|
|
if (_hasHorizScroller == flag)
|
|
|
|
return;
|
|
|
|
|
|
|
|
_hasHorizScroller = flag;
|
1996-05-30 20:03:15 +00:00
|
|
|
|
1997-08-05 21:50:10 +00:00
|
|
|
if (_hasHorizScroller) {
|
|
|
|
if (!_horizScroller)
|
|
|
|
[self setHorizontalScroller:[[NSScroller new] autorelease]];
|
|
|
|
[self addSubview:_horizScroller];
|
|
|
|
}
|
|
|
|
else
|
|
|
|
[_horizScroller removeFromSuperview];
|
|
|
|
|
|
|
|
[self tile];
|
|
|
|
}
|
|
|
|
|
|
|
|
- (void)setVerticalScroller:(NSScroller*)aScroller
|
1996-05-30 20:03:15 +00:00
|
|
|
{
|
1997-08-05 21:50:10 +00:00
|
|
|
[_vertScroller removeFromSuperview];
|
|
|
|
|
|
|
|
/* Do not add the scroller view to the subviews array yet; the user has to
|
|
|
|
explicitly invoke -setHasVerticalScroller:. */
|
|
|
|
|
|
|
|
ASSIGN(_vertScroller, aScroller);
|
|
|
|
if (_vertScroller) {
|
|
|
|
[_vertScroller setTarget:self];
|
|
|
|
[_vertScroller setAction:@selector(_doScroll:)];
|
|
|
|
}
|
1996-05-30 20:03:15 +00:00
|
|
|
}
|
|
|
|
|
1997-08-05 21:50:10 +00:00
|
|
|
- (void)setHasVerticalScroller:(BOOL)flag
|
|
|
|
{
|
|
|
|
if (_hasVertScroller == flag)
|
|
|
|
return;
|
1996-05-30 20:03:15 +00:00
|
|
|
|
1997-08-05 21:50:10 +00:00
|
|
|
_hasVertScroller = flag;
|
|
|
|
|
|
|
|
if (_hasVertScroller) {
|
|
|
|
if (!_vertScroller) {
|
|
|
|
[self setVerticalScroller:[[NSScroller new] autorelease]];
|
|
|
|
if (_contentView && ![_contentView isFlipped])
|
|
|
|
[_vertScroller setFloatValue:1];
|
|
|
|
}
|
|
|
|
[self addSubview:_vertScroller];
|
|
|
|
}
|
|
|
|
else
|
|
|
|
[_vertScroller removeFromSuperview];
|
|
|
|
|
|
|
|
[self tile];
|
|
|
|
}
|
|
|
|
|
|
|
|
- (void)_doScroll:(NSScroller*)scroller
|
1996-05-30 20:03:15 +00:00
|
|
|
{
|
1997-08-05 21:50:10 +00:00
|
|
|
float floatValue = [scroller floatValue];
|
|
|
|
NSRect clipViewBounds = [_contentView bounds];
|
|
|
|
NSScrollerPart hitPart = [scroller hitPart];
|
|
|
|
NSRect documentRect = [_contentView documentRect];
|
|
|
|
float amount = 0;
|
|
|
|
NSPoint point;
|
|
|
|
BOOL wasAScrollerButton = YES;
|
|
|
|
|
1997-08-06 20:29:07 +00:00
|
|
|
NSDebugLog (@"_doScroll: float value = %f", floatValue);
|
1997-08-05 21:50:10 +00:00
|
|
|
|
|
|
|
if (hitPart == NSScrollerIncrementLine)
|
|
|
|
amount = _lineScroll;
|
|
|
|
else if (hitPart == NSScrollerIncrementPage)
|
|
|
|
amount = _pageScroll;
|
|
|
|
else if (hitPart == NSScrollerDecrementLine)
|
|
|
|
amount = -_lineScroll;
|
|
|
|
else if (hitPart == NSScrollerDecrementPage)
|
|
|
|
amount = -_pageScroll;
|
|
|
|
else
|
|
|
|
wasAScrollerButton = NO;
|
|
|
|
|
|
|
|
if (wasAScrollerButton) {
|
|
|
|
if (scroller == _horizScroller) {
|
|
|
|
point.x = clipViewBounds.origin.x + amount;
|
|
|
|
point.y = clipViewBounds.origin.y;
|
|
|
|
}
|
|
|
|
else if (scroller == _vertScroller) {
|
|
|
|
point.x = clipViewBounds.origin.x;
|
|
|
|
/* For the vertical scroller the amount should actually be reversed */
|
|
|
|
amount = -amount;
|
|
|
|
|
|
|
|
/* If the view is flipped we also have to reverse the meanings of
|
|
|
|
increasing or decreasing of the y coordinate */
|
|
|
|
if (![_contentView isFlipped])
|
|
|
|
amount = -amount;
|
|
|
|
|
1997-08-06 20:29:07 +00:00
|
|
|
NSDebugLog (@"increment/decrement: amount = %f, flipped = %d",
|
1997-08-05 21:50:10 +00:00
|
|
|
amount, [_contentView isFlipped]);
|
|
|
|
point.y = clipViewBounds.origin.y + amount;
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
/* do nothing */
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
if (scroller == _horizScroller) {
|
|
|
|
point.x = floatValue * (documentRect.size.width
|
|
|
|
- clipViewBounds.size.width);
|
|
|
|
point.y = clipViewBounds.origin.y;
|
|
|
|
}
|
|
|
|
else if (scroller == _vertScroller) {
|
|
|
|
point.x = clipViewBounds.origin.x;
|
|
|
|
if (![_contentView isFlipped])
|
|
|
|
floatValue = 1 - floatValue;
|
|
|
|
point.y = floatValue * (documentRect.size.height
|
|
|
|
- clipViewBounds.size.height);
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
/* do nothing */
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[_contentView scrollToPoint:point];
|
|
|
|
|
|
|
|
/* Update the scroller knob if the scroll occurred due to a
|
|
|
|
scroller button. */
|
|
|
|
if (wasAScrollerButton) {
|
|
|
|
NSRect newClipViewBounds = [_contentView bounds];
|
|
|
|
|
|
|
|
if (newClipViewBounds.origin.x != clipViewBounds.origin.x) {
|
|
|
|
/* Update the horizontal scroller */
|
|
|
|
floatValue = newClipViewBounds.origin.x
|
|
|
|
/ (documentRect.size.width - newClipViewBounds.size.width);
|
|
|
|
[_horizScroller setFloatValue:floatValue];
|
|
|
|
[_horizScroller display];
|
1997-08-06 20:29:07 +00:00
|
|
|
NSDebugLog (@"new horiz float value %f", floatValue);
|
1997-08-05 21:50:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if (newClipViewBounds.origin.x != clipViewBounds.origin.y) {
|
|
|
|
/* Update the vertical scroller */
|
|
|
|
floatValue = newClipViewBounds.origin.y
|
|
|
|
/ (documentRect.size.height - newClipViewBounds.size.height);
|
|
|
|
/* Take care if the document view is not flipped by reversing the meaning
|
|
|
|
of the float value. */
|
|
|
|
if (![_contentView isFlipped])
|
|
|
|
floatValue = 1 - floatValue;
|
|
|
|
[_vertScroller setFloatValue:floatValue];
|
|
|
|
[_vertScroller display];
|
1997-08-06 20:29:07 +00:00
|
|
|
NSDebugLog (@"new vert float value %f", floatValue);
|
1997-08-05 21:50:10 +00:00
|
|
|
}
|
|
|
|
}
|
1996-05-30 20:03:15 +00:00
|
|
|
}
|
|
|
|
|
1997-08-05 21:50:10 +00:00
|
|
|
- (void)reflectScrolledClipView:(NSClipView*)aClipView
|
|
|
|
{
|
|
|
|
NSRect documentRect = [_contentView documentRect];
|
|
|
|
NSRect clipViewBounds = [_contentView bounds];
|
|
|
|
float floatValue;
|
|
|
|
float knobProportion;
|
|
|
|
|
1997-08-06 20:29:07 +00:00
|
|
|
NSDebugLog (@"reflectScrolledClipView:");
|
1997-08-05 21:50:10 +00:00
|
|
|
|
|
|
|
if (_hasVertScroller) {
|
|
|
|
if (documentRect.size.height < clipViewBounds.size.height)
|
|
|
|
[_vertScroller setEnabled:NO];
|
|
|
|
else {
|
|
|
|
[_vertScroller setEnabled:YES];
|
|
|
|
knobProportion = clipViewBounds.size.height / documentRect.size.height;
|
|
|
|
floatValue = clipViewBounds.origin.y / clipViewBounds.size.height;
|
|
|
|
if (![_contentView isFlipped])
|
|
|
|
floatValue = 1 - floatValue;
|
|
|
|
[_vertScroller setFloatValue:floatValue knobProportion:knobProportion];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (_hasHorizScroller) {
|
|
|
|
if (documentRect.size.width < clipViewBounds.size.width)
|
|
|
|
[_horizScroller setEnabled:NO];
|
|
|
|
else {
|
|
|
|
[_horizScroller setEnabled:YES];
|
|
|
|
knobProportion = clipViewBounds.size.width / documentRect.size.width;
|
|
|
|
floatValue = clipViewBounds.origin.x / clipViewBounds.size.width;
|
|
|
|
[_horizScroller setFloatValue:floatValue knobProportion:knobProportion];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
1996-05-30 20:03:15 +00:00
|
|
|
|
1997-08-05 21:50:10 +00:00
|
|
|
- (void)setHorizontalRulerView:(NSRulerView*)aRulerView
|
1996-05-30 20:03:15 +00:00
|
|
|
{
|
1997-08-05 21:50:10 +00:00
|
|
|
/* TODO */
|
|
|
|
ASSIGN(_horizRuler, aRulerView);
|
1996-05-30 20:03:15 +00:00
|
|
|
}
|
|
|
|
|
1997-08-05 21:50:10 +00:00
|
|
|
- (void)setHasHorizontalRuler:(BOOL)flag
|
|
|
|
{
|
|
|
|
/* TODO */
|
|
|
|
if (_hasHorizRuler == flag)
|
|
|
|
return;
|
1996-05-30 20:03:15 +00:00
|
|
|
|
1997-08-05 21:50:10 +00:00
|
|
|
_hasHorizRuler = flag;
|
|
|
|
}
|
1996-05-30 20:03:15 +00:00
|
|
|
|
1997-08-05 21:50:10 +00:00
|
|
|
- (void)setVerticalRulerView:(NSRulerView*)ruler
|
1996-05-30 20:03:15 +00:00
|
|
|
{
|
1997-08-05 21:50:10 +00:00
|
|
|
/* TODO */
|
|
|
|
ASSIGN(_vertRuler, ruler);
|
1996-05-30 20:03:15 +00:00
|
|
|
}
|
|
|
|
|
1997-08-05 21:50:10 +00:00
|
|
|
- (void)setHasVerticalRuler:(BOOL)flag
|
|
|
|
{
|
|
|
|
/* TODO */
|
|
|
|
if (_hasVertRuler == flag)
|
|
|
|
return;
|
|
|
|
|
|
|
|
_hasVertRuler = flag;
|
|
|
|
}
|
1996-05-30 20:03:15 +00:00
|
|
|
|
1997-08-05 21:50:10 +00:00
|
|
|
- (void)setRulersVisible:(BOOL)flag
|
1996-05-30 20:03:15 +00:00
|
|
|
{
|
1997-08-05 21:50:10 +00:00
|
|
|
/* TODO */
|
1996-05-30 20:03:15 +00:00
|
|
|
}
|
|
|
|
|
1997-08-05 21:50:10 +00:00
|
|
|
- (void)setFrame:(NSRect)rect
|
1996-05-30 20:03:15 +00:00
|
|
|
{
|
1997-08-05 21:50:10 +00:00
|
|
|
[super setFrame:rect];
|
|
|
|
[self tile];
|
1996-05-30 20:03:15 +00:00
|
|
|
}
|
|
|
|
|
1997-08-05 21:50:10 +00:00
|
|
|
- (void)setFrameSize:(NSSize)size
|
1996-05-30 20:03:15 +00:00
|
|
|
{
|
1997-08-05 21:50:10 +00:00
|
|
|
[super setFrameSize:size];
|
|
|
|
[self tile];
|
1996-05-30 20:03:15 +00:00
|
|
|
}
|
|
|
|
|
1997-08-05 21:50:10 +00:00
|
|
|
/* This method should be implemented in the backend to position the scroll
|
|
|
|
view's interface elements */
|
|
|
|
- (void)tile
|
|
|
|
{
|
|
|
|
}
|
1996-05-30 20:03:15 +00:00
|
|
|
|
1997-08-05 21:50:10 +00:00
|
|
|
- (NSRect)documentVisibleRect
|
1996-05-30 20:03:15 +00:00
|
|
|
{
|
1997-08-05 21:50:10 +00:00
|
|
|
return [_contentView documentVisibleRect];
|
1996-05-30 20:03:15 +00:00
|
|
|
}
|
|
|
|
|
1997-08-05 21:50:10 +00:00
|
|
|
- (void)setBackgroundColor:(NSColor*)aColor
|
|
|
|
{
|
|
|
|
[_contentView setBackgroundColor:aColor];
|
|
|
|
}
|
|
|
|
|
|
|
|
- (NSColor*)backgroundColor
|
|
|
|
{
|
|
|
|
return [_contentView backgroundColor];
|
|
|
|
}
|
1996-05-30 20:03:15 +00:00
|
|
|
|
1997-08-05 21:50:10 +00:00
|
|
|
- (void)setBorderType:(NSBorderType)borderType
|
|
|
|
{
|
|
|
|
_borderType = borderType;
|
|
|
|
}
|
1996-05-30 20:03:15 +00:00
|
|
|
|
1997-08-05 21:50:10 +00:00
|
|
|
- (void)setDocumentView:(NSView*)aView
|
|
|
|
{
|
|
|
|
[_contentView setDocumentView:aView];
|
|
|
|
if (_contentView && ![_contentView isFlipped])
|
|
|
|
[_vertScroller setFloatValue:1];
|
|
|
|
[self tile];
|
|
|
|
}
|
1996-05-30 20:03:15 +00:00
|
|
|
|
1997-08-05 21:50:10 +00:00
|
|
|
- (id)documentView
|
1996-05-30 20:03:15 +00:00
|
|
|
{
|
1997-08-05 21:50:10 +00:00
|
|
|
return [_contentView documentView];
|
1996-05-30 20:03:15 +00:00
|
|
|
}
|
|
|
|
|
1997-08-05 21:50:10 +00:00
|
|
|
- (void)setDocumentCursor:(NSCursor*)aCursor
|
1996-05-30 20:03:15 +00:00
|
|
|
{
|
1997-08-05 21:50:10 +00:00
|
|
|
[_contentView setDocumentCursor:aCursor];
|
|
|
|
}
|
1996-05-30 20:03:15 +00:00
|
|
|
|
1997-08-05 21:50:10 +00:00
|
|
|
- (NSCursor*)documentCursor
|
|
|
|
{
|
|
|
|
return [_contentView documentCursor];
|
1996-05-30 20:03:15 +00:00
|
|
|
}
|
|
|
|
|
1997-08-05 21:50:10 +00:00
|
|
|
- (NSBorderType)borderType { return _borderType; }
|
|
|
|
- (NSScroller*)verticalScroller { return _vertScroller; }
|
|
|
|
- (BOOL)hasVerticalScroller { return _hasVertScroller; }
|
|
|
|
- (BOOL)hasHorizontalRuler { return _hasHorizRuler; }
|
|
|
|
- (NSSize)contentSize { return [_contentView bounds].size; }
|
|
|
|
- (NSClipView*)contentView { return _contentView; }
|
|
|
|
- (NSRulerView*)horizontalRulerView { return _horizRuler; }
|
|
|
|
- (BOOL)hasVerticalRuler { return _hasVertRuler; }
|
|
|
|
- (NSRulerView*)verticalRulerView { return _vertRuler; }
|
|
|
|
- (BOOL)rulersVisible { return _rulersVisible; }
|
|
|
|
- (void)setLineScroll:(float)aFloat { _lineScroll = aFloat; }
|
|
|
|
- (float)lineScroll { return _lineScroll; }
|
|
|
|
- (void)setPageScroll:(float)aFloat { _pageScroll = aFloat; }
|
|
|
|
- (float)pageScroll { return _pageScroll; }
|
|
|
|
- (void)setScrollsDynamically:(BOOL)flag { _scrollsDynamically = flag; }
|
|
|
|
- (BOOL)scrollsDynamically { return _scrollsDynamically; }
|
|
|
|
- (NSScroller*)horizontalScroller { return _horizScroller; }
|
|
|
|
- (BOOL)hasHorizontalScroller { return _hasHorizScroller; }
|
|
|
|
|
1996-05-30 20:03:15 +00:00
|
|
|
@end
|