Various tidying up of DPS window operations.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@5234 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
richard 1999-11-18 11:06:22 +00:00
parent 263f5b5598
commit 5dcbe92051
4 changed files with 5 additions and 29 deletions

View file

@ -142,14 +142,6 @@ NSGraphicsContext *GSCurrentContext();
- (id <NSDraggingInfo>)_dragInfo;
- (void) _postExternalEvent: (NSEvent *)event;
/*
* Misc window management support.
*/
- (BOOL) _setFrame: (NSRect)frameRect forWindow: (int)winNum;
- (void) _orderWindow: (NSWindowOrderingMode)place
relativeTo: (int)otherWin
forWindow: (int)winNum;
@end
#endif

View file

@ -334,22 +334,6 @@ NSGraphicsContext *GSCurrentContext()
[self subclassResponsibility: _cmd];
}
/*
* Misc window management support.
*/
- (BOOL) _setFrame: (NSRect)frameRect forWindow: (int)winNum
{
[self subclassResponsibility: _cmd];
return NO;
}
- (void) _orderWindow: (NSWindowOrderingMode)place
relativeTo: (int)otherWin
forWindow: (int)winNum
{
[self subclassResponsibility: _cmd];
}
@end
@implementation NSGraphicsContext (Private)

View file

@ -1255,7 +1255,8 @@ static NSString* NSMenuLocationsKey = @"NSMenuLocations";
NSRect frameRect = frame;
frameRect.origin = aPoint;
[GSCurrentContext() _setFrame: frameRect forWindow: [self windowNumber]];
DPSplacewindow(GSCurrentContext(), frameRect.origin.x, frameRect.origin.y,
frameRect.size.width, frameRect.size.height, [self windowNumber]);
}
@end

View file

@ -658,9 +658,7 @@ static NSMapTable* windowmaps = NULL;
- (void) orderWindow: (NSWindowOrderingMode)place relativeTo: (int)otherWin
{
[GSCurrentContext() _orderWindow: place
relativeTo: otherWin
forWindow: [self windowNumber]];
DPSorderwindow(GSCurrentContext(), place, otherWin, [self windowNumber]);
}
- (void) resignKeyWindow
@ -816,7 +814,8 @@ static NSMapTable* windowmaps = NULL;
* Now we can tell the graphics context to do the actual resizing.
* We will recieve an event to tell us when the resize is done.
*/
[GSCurrentContext() _setFrame: frameRect forWindow: [self windowNumber]];
DPSplacewindow(GSCurrentContext(), frameRect.origin.x, frameRect.origin.y,
frameRect.size.width, frameRect.size.height, [self windowNumber]);
if (flag)
[self display];