2005-11-29 02:36:59 +03:00
|
|
|
/*
|
2008-03-08 15:45:54 +03:00
|
|
|
* Copyright 2005-2008, 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;
|
2008-03-08 15:45:54 +03:00
|
|
|
class Window;
|
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
|
|
|
|
2008-03-08 15:45:54 +03:00
|
|
|
status_t GetNextWindow(Window*& _window, BPoint& _leftTop);
|
|
|
|
status_t GetPreviousWindow(Window*& _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;
|
2008-03-08 15:45:54 +03:00
|
|
|
Window* fCurrent;
|
2005-11-30 22:56:44 +03:00
|
|
|
bool fCurrentWorkspace;
|
2004-01-12 01:12:55 +03:00
|
|
|
};
|
|
|
|
|
2005-11-29 02:36:59 +03:00
|
|
|
#endif /* WORKSPACE_H */
|