gui changes

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@3208 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
far 1998-11-12 10:49:00 +00:00
parent e0de88c770
commit ccfc67f353
9 changed files with 815 additions and 1151 deletions

View file

@ -796,11 +796,6 @@ NSView *current_view = nil;
return YES;
}
- (void)_setNeedsFlush
{
[window _setNeedsFlush];
}
- (void)display
{
if(!window) // do nothing if not in
@ -835,14 +830,13 @@ NSView *current_view = nil;
int i, count;
if (!boundsMatrix || !frameMatrix)
NSLog (@"warning: %@ %p has not have the PS matrices setup!",
NSLog (@"warning: %@ %p does not have it's PS matrices configured!",
NSStringFromClass(isa), self);
needs_display = NO;
[self lockFocus];
[self drawRect:rect];
[window _setNeedsFlush];
[self unlockFocus];
// Tell subviews to display
for (i = 0, count = [sub_views count]; i < count; ++i)
@ -955,25 +949,25 @@ NSView* currentView; // of sibling subviews
- (void)setNeedsDisplay:(BOOL)flag
{
needs_display = flag;
if (needs_display) {
needs_display = flag;
if (needs_display)
{
invalidatedRectangle = bounds;
[window setViewsNeedDisplay:YES];
invalidatedRectangle = bounds;
[window _setNeedsDisplay];
if (super_view)
[super_view _addSubviewForNeedingDisplay:self];
}
if (super_view)
[super_view _addSubviewForNeedingDisplay:self];
}
}
- (void)setNeedsDisplayInRect:(NSRect)rect
{
needs_display = YES;
invalidatedRectangle = NSUnionRect (invalidatedRectangle, rect);
[window _setNeedsDisplay];
needs_display = YES;
invalidatedRectangle = NSUnionRect (invalidatedRectangle, rect);
[window setViewsNeedDisplay:YES];
if (super_view)
[super_view _addSubviewForNeedingDisplay:self];
if (super_view)
[super_view _addSubviewForNeedingDisplay:self];
}
- (void)_recursivelyResetNeedsDisplayInAllViews