2005-11-29 02:36:59 +03:00
|
|
|
/*
|
2007-03-13 19:53:19 +03:00
|
|
|
* Copyright 2005-2007, Haiku.
|
2005-11-29 02:36:59 +03:00
|
|
|
* Distributed under the terms of the MIT License.
|
|
|
|
*
|
|
|
|
* Authors:
|
|
|
|
* Axel Dörfler, axeld@pinc-software.de
|
|
|
|
*/
|
|
|
|
#ifndef WORKSPACE_H
|
|
|
|
#define WORKSPACE_H
|
|
|
|
|
2004-01-12 01:12:55 +03:00
|
|
|
|
2007-08-17 16:56:20 +04:00
|
|
|
#include <InterfaceDefs.h>
|
2005-11-29 02:36:59 +03:00
|
|
|
|
|
|
|
|
2005-11-30 22:56:44 +03:00
|
|
|
class Desktop;
|
2005-11-24 20:45:26 +03:00
|
|
|
class WindowLayer;
|
2004-01-12 01:12:55 +03:00
|
|
|
|
2005-11-29 02:36:59 +03:00
|
|
|
|
2005-07-07 00:19:22 +04:00
|
|
|
class Workspace {
|
|
|
|
public:
|
2005-11-30 22:56:44 +03:00
|
|
|
Workspace(Desktop& desktop, int32 index);
|
2005-11-29 02:36:59 +03:00
|
|
|
~Workspace();
|
|
|
|
|
2007-08-17 16:56:20 +04:00
|
|
|
const rgb_color& Color() const;
|
|
|
|
void SetColor(const rgb_color& color, bool makeDefault);
|
2005-11-30 22:56:44 +03:00
|
|
|
bool IsCurrent() const
|
|
|
|
{ return fCurrentWorkspace; }
|
2005-07-07 00:19:22 +04:00
|
|
|
|
2005-11-30 22:56:44 +03:00
|
|
|
status_t GetNextWindow(WindowLayer*& _window, BPoint& _leftTop);
|
2007-03-13 19:53:19 +03:00
|
|
|
status_t GetPreviousWindow(WindowLayer*& _window, BPoint& _leftTop);
|
2005-11-30 22:56:44 +03:00
|
|
|
void RewindWindows();
|
2005-11-29 02:36:59 +03:00
|
|
|
|
2005-11-30 22:56:44 +03:00
|
|
|
class Private;
|
2005-11-29 02:36:59 +03:00
|
|
|
|
|
|
|
private:
|
2005-11-30 22:56:44 +03:00
|
|
|
Workspace::Private& fWorkspace;
|
|
|
|
Desktop& fDesktop;
|
|
|
|
WindowLayer* fCurrent;
|
|
|
|
bool fCurrentWorkspace;
|
2004-01-12 01:12:55 +03:00
|
|
|
};
|
|
|
|
|
2005-11-29 02:36:59 +03:00
|
|
|
#endif /* WORKSPACE_H */
|