mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 03:20:37 +00:00
iAdded window ordering code
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@4533 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
502a5b1642
commit
26ac1fdc3b
4 changed files with 42 additions and 9 deletions
|
@ -550,19 +550,33 @@ static NSRecursiveLock *windowsLock;
|
|||
}
|
||||
|
||||
- (void) orderBack: (id)sender
|
||||
{} // implemented in back end
|
||||
{
|
||||
[self orderWindow: NSWindowBelow relativeTo: 0];
|
||||
}
|
||||
|
||||
- (void) orderFront: (id)sender
|
||||
{}
|
||||
{
|
||||
if ([NSApp isActive] == YES)
|
||||
{
|
||||
[self orderWindow: NSWindowAbove relativeTo: 0];
|
||||
}
|
||||
}
|
||||
|
||||
- (void) orderFrontRegardless
|
||||
{}
|
||||
{
|
||||
[self orderWindow: NSWindowAbove relativeTo: 0];
|
||||
}
|
||||
|
||||
- (void) orderOut: (id)sender
|
||||
{}
|
||||
{
|
||||
[self orderWindow: NSWindowOut relativeTo: 0];
|
||||
}
|
||||
|
||||
- (void) orderWindow: (NSWindowOrderingMode)place relativeTo: (int)otherWin
|
||||
{
|
||||
[GSCurrentContext() _orderWindow: place
|
||||
relativeTo: otherWin
|
||||
forWindow: [self windowNumber]];
|
||||
}
|
||||
|
||||
- (void) resignKeyWindow
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue