haiku/src/servers/app/WorkspacePrivate.h
Axel Dörfler 953d895e02 * Got rid of the "Layer" part of WindowLayer, ViewLayer, WorkspacesLayer
(now WorkspacesView), OffscreenWindowLayer.
* Renamed ServerScreen.cpp/h to Screen.cpp/h (the class was already called
  Screen).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24303 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-03-08 12:45:54 +00:00

63 lines
1.2 KiB
C++

/*
* Copyright 2005-2008, Haiku.
* Distributed under the terms of the MIT License.
*
* Authors:
* Axel Dörfler, axeld@pinc-software.de
*/
#ifndef WORKSPACE_PRIVATE_H
#define WORKSPACE_PRIVATE_H
#include "WindowList.h"
#include "Workspace.h"
#include <Accelerant.h>
#include <ObjectList.h>
#include <String.h>
struct display_info {
BString identifier;
BPoint origin;
display_mode mode;
};
class Workspace::Private {
public:
Private();
~Private();
int32 Index() const { return fWindows.Index(); }
WindowList& Windows() { return fWindows; }
// displays
void SetDisplaysFromDesktop(Desktop* desktop);
int32 CountDisplays() const { return fDisplays.CountItems(); }
const display_info* DisplayAt(int32 index) const { return fDisplays.ItemAt(index); }
// configuration
const rgb_color& Color() const { return fColor; }
void SetColor(const rgb_color& color);
void RestoreConfiguration(const BMessage& settings);
void StoreConfiguration(BMessage& settings);
private:
void _SetDefaults();
WindowList fWindows;
Window* fFront;
Window* fFocus;
BObjectList<display_info> fDisplays;
rgb_color fColor;
};
#endif /* WORKSPACE_PRIVATE_H */