From ef7c5ab5d2c23f34133a6d7ef384e98508ccd485 Mon Sep 17 00:00:00 2001 From: FredKiefer Date: Sun, 5 Nov 2000 16:23:15 +0000 Subject: [PATCH] Added method to set backgound drawing. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@8034 72102866-910b-0410-8b05-ffd578937521 --- Headers/gnustep/gui/NSClipView.h | 14 +++++++------- Headers/gnustep/gui/NSScrollView.h | 3 +++ 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/Headers/gnustep/gui/NSClipView.h b/Headers/gnustep/gui/NSClipView.h index 7620d5016..fd30ea301 100644 --- a/Headers/gnustep/gui/NSClipView.h +++ b/Headers/gnustep/gui/NSClipView.h @@ -39,6 +39,7 @@ NSView* _documentView; NSCursor* _cursor; NSColor* _backgroundColor; + BOOL _drawsBackground; BOOL _copiesOnScroll; } @@ -67,6 +68,12 @@ - (void)setBackgroundColor:(NSColor*)aColor; - (NSColor*)backgroundColor; +#ifndef STRICT_OPENSTEP +/* Setting the background drawing */ +- (void)setDrawsBackground:(BOOL)flag; +- (BOOL)drawsBackground; +#endif + /* Overridden NSView methods */ - (BOOL)acceptsFirstResponder; - (BOOL)isFlipped; @@ -84,13 +91,6 @@ @end - -@interface NSClipView (SuperviewMethods) -- (void)reflectScrolledClipView:(NSClipView*)aClipView; -- (void)scrollClipView:(NSClipView*)aClipView toPoint:(NSPoint)newOrigin; -@end - - @interface NSClipView (BackendMethods) - (void)_translateToPoint:(NSPoint)point oldPoint:(NSPoint)oldPoint; @end diff --git a/Headers/gnustep/gui/NSScrollView.h b/Headers/gnustep/gui/NSScrollView.h index 5c0318993..6e810f546 100644 --- a/Headers/gnustep/gui/NSScrollView.h +++ b/Headers/gnustep/gui/NSScrollView.h @@ -129,6 +129,9 @@ - (void) setHorizontalPageScroll: (float)aFloat; - (void) setVerticalLineScroll: (float)aFloat; - (void) setVerticalPageScroll: (float)aFloat; +/* Setting the background drawing */ +- (void)setDrawsBackground:(BOOL)flag; +- (BOOL)drawsBackground; #endif /* Updating display after scrolling */