mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-26 22:10:56 +00:00
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:
parent
263f5b5598
commit
5dcbe92051
4 changed files with 5 additions and 29 deletions
|
@ -142,14 +142,6 @@ NSGraphicsContext *GSCurrentContext();
|
||||||
- (id <NSDraggingInfo>)_dragInfo;
|
- (id <NSDraggingInfo>)_dragInfo;
|
||||||
- (void) _postExternalEvent: (NSEvent *)event;
|
- (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
|
@end
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -334,22 +334,6 @@ NSGraphicsContext *GSCurrentContext()
|
||||||
[self subclassResponsibility: _cmd];
|
[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
|
@end
|
||||||
|
|
||||||
@implementation NSGraphicsContext (Private)
|
@implementation NSGraphicsContext (Private)
|
||||||
|
|
|
@ -1255,7 +1255,8 @@ static NSString* NSMenuLocationsKey = @"NSMenuLocations";
|
||||||
NSRect frameRect = frame;
|
NSRect frameRect = frame;
|
||||||
|
|
||||||
frameRect.origin = aPoint;
|
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
|
@end
|
||||||
|
|
|
@ -658,9 +658,7 @@ static NSMapTable* windowmaps = NULL;
|
||||||
|
|
||||||
- (void) orderWindow: (NSWindowOrderingMode)place relativeTo: (int)otherWin
|
- (void) orderWindow: (NSWindowOrderingMode)place relativeTo: (int)otherWin
|
||||||
{
|
{
|
||||||
[GSCurrentContext() _orderWindow: place
|
DPSorderwindow(GSCurrentContext(), place, otherWin, [self windowNumber]);
|
||||||
relativeTo: otherWin
|
|
||||||
forWindow: [self windowNumber]];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void) resignKeyWindow
|
- (void) resignKeyWindow
|
||||||
|
@ -816,7 +814,8 @@ static NSMapTable* windowmaps = NULL;
|
||||||
* Now we can tell the graphics context to do the actual resizing.
|
* 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.
|
* 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)
|
if (flag)
|
||||||
[self display];
|
[self display];
|
||||||
|
|
Loading…
Reference in a new issue