mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-25 04:42:05 +00:00
* Headers/Additions/GNUstepGUI/GSDisplayServer.h,
Source/GSDisplayServer.m: expose existing backend desktops (workspaces) related methods.
This commit is contained in:
parent
ae555005e5
commit
e5e62570dd
2 changed files with 37 additions and 0 deletions
|
@ -116,6 +116,14 @@ APPKIT_EXPORT NSString *GSScreenNumber;
|
||||||
/* Screen capture */
|
/* Screen capture */
|
||||||
- (NSImage *) contentsOfScreen: (int)screen inRect: (NSRect)rect;
|
- (NSImage *) contentsOfScreen: (int)screen inRect: (NSRect)rect;
|
||||||
|
|
||||||
|
/* Desktops (workspaces) */
|
||||||
|
- (unsigned int) numberOfDesktops: (int)screen;
|
||||||
|
- (NSArray *) namesOfDesktops: (int)screen;
|
||||||
|
- (unsigned int) desktopNumberForScreen: (int)screen;
|
||||||
|
- (void) setDesktopNumber: (unsigned int)workspace forScreen: (int)screen;
|
||||||
|
- (unsigned int) desktopNumberForWindow: (int)win;
|
||||||
|
- (void) setDesktopNumber: (unsigned int)workspace forWindow: (int)win;
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
||||||
/* ----------------------------------------------------------------------- */
|
/* ----------------------------------------------------------------------- */
|
||||||
|
|
|
@ -950,6 +950,35 @@ GSCurrentServer(void)
|
||||||
// Do nothing if not overridden by subclass
|
// Do nothing if not overridden by subclass
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (unsigned int) numberOfDesktops: (int)screen
|
||||||
|
{
|
||||||
|
[self subclassResponsibility: _cmd];
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
- (NSArray *) namesOfDesktops: (int)screen
|
||||||
|
{
|
||||||
|
[self subclassResponsibility: _cmd];
|
||||||
|
return nil;
|
||||||
|
}
|
||||||
|
- (unsigned int) desktopNumberForScreen: (int)screen
|
||||||
|
{
|
||||||
|
[self subclassResponsibility: _cmd];
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
- (void) setDesktopNumber: (unsigned int)workspace forScreen: (int)screen
|
||||||
|
{
|
||||||
|
// Do nothing if not overridden by subclass
|
||||||
|
}
|
||||||
|
- (unsigned int) desktopNumberForWindow: (int)win
|
||||||
|
{
|
||||||
|
[self subclassResponsibility: _cmd];
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
- (void) setDesktopNumber: (unsigned int)workspace forWindow: (int)win
|
||||||
|
{
|
||||||
|
// Do nothing if not overridden by subclass
|
||||||
|
}
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
||||||
/* ----------------------------------------------------------------------- */
|
/* ----------------------------------------------------------------------- */
|
||||||
|
|
Loading…
Reference in a new issue