f7e1df7560
possibly making them a little faster too * mess with decorator button size calculation to make the whole layout scale more agreeable with the font size (no more fixed offsets/insets), but it is work in progress * DefaultDecorator no longer allocated the border color array, it is part of the object now * small memory footprint optimizations in ViewLayer, Decorator and WindowLayer git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22003 a95241bf-73f2-0310-859d-f6bbb57e9c96
43 lines
826 B
C++
43 lines
826 B
C++
/*
|
|
* Copyright 2005-2007, Haiku.
|
|
* Distributed under the terms of the MIT License.
|
|
*
|
|
* Authors:
|
|
* Axel Dörfler, axeld@pinc-software.de
|
|
*/
|
|
#ifndef WORKSPACE_H
|
|
#define WORKSPACE_H
|
|
|
|
|
|
#include <InterfaceDefs.h>
|
|
|
|
|
|
class Desktop;
|
|
class WindowLayer;
|
|
|
|
|
|
class Workspace {
|
|
public:
|
|
Workspace(Desktop& desktop, int32 index);
|
|
~Workspace();
|
|
|
|
const rgb_color& Color() const;
|
|
void SetColor(const rgb_color& 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 */
|