Files
haiku-beta6/src/servers/app/Workspace.h
T

44 lines
838 B
C++
Raw Normal View History

2005-11-28 23:36:59 +00:00
/*
* Copyright 2005-2007, Haiku.
2005-11-28 23:36:59 +00:00
* Distributed under the terms of the MIT License.
*
* Authors:
* Axel Dörfler, [email protected]
*/
#ifndef WORKSPACE_H
#define WORKSPACE_H
#include <SupportDefs.h>
2005-11-28 23:36:59 +00:00
class Desktop;
class RGBColor;
class WindowLayer;
2005-11-28 23:36:59 +00:00
class Workspace {
public:
Workspace(Desktop& desktop, int32 index);
2005-11-28 23:36:59 +00:00
~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();
2005-11-28 23:36:59 +00:00
class Private;
2005-11-28 23:36:59 +00:00
private:
Workspace::Private& fWorkspace;
Desktop& fDesktop;
WindowLayer* fCurrent;
bool fCurrentWorkspace;
};
2005-11-28 23:36:59 +00:00
#endif /* WORKSPACE_H */