44 lines
838 B
C++
44 lines
838 B
C++
/*
|
|||
* Copyright 2005-2007, Haiku.
|
|||
* Distributed under the terms of the MIT License.
|
|||
|
|
*
|
||
|
|
* Authors:
|
||
|
|
* Axel Dörfler, [email protected]
|
||
|
|
*/
|
||
|
|
#ifndef WORKSPACE_H
|
||
|
|
#define WORKSPACE_H
|
||
|
|
|
||
|
|||
#include <SupportDefs.h>
|
|||
|
|||
|
|
|
||
class Desktop;
|
|||
|
|
class RGBColor;
|
||
class WindowLayer;
|
|||
|
|||
|
|||
class Workspace {
|
|||
|
|
public:
|
||
Workspace(Desktop& desktop, int32 index);
|
|||
~Workspace();
|
|||
|
|
|
||
const RGBColor& Color() const;
|
|||
void SetColor(const RGBColor& color, bool makeDefault);
|
|||
bool IsCurrent() const
|
|||
|
|
{ return fCurrentWorkspace; }
|
||
|
|||
status_t GetNextWindow(WindowLayer*& _window, BPoint& _leftTop);
|
|||
status_t GetPreviousWindow(WindowLayer*& _window, BPoint& _leftTop);
|
|||
void RewindWindows();
|
|||
|
|||
class Private;
|
|||
|
|||
|
|
private:
|
||
Workspace::Private& fWorkspace;
|
|||
|
|
Desktop& fDesktop;
|
||
|
|
WindowLayer* fCurrent;
|
||
|
|
bool fCurrentWorkspace;
|
||
};
|
|||
|
|
|
||
#endif /* WORKSPACE_H */
|