Small hack to get to know the code a bit better.

A view-only workspaces window support (with lots of drawing flicker) - this
means you see what happens in the workspaces, but it doesn't do anything if
you click on it.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13378 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2005-07-01 06:53:07 +00:00
parent 86fa5942b1
commit 24a146d4f6
7 changed files with 293 additions and 7 deletions
+36
View File
@@ -0,0 +1,36 @@
/*
* Copyright 2005, Haiku Inc.
* Distributed under the terms of the MIT License.
*
* Authors:
* Axel Dörfler, [email protected]
*/
#ifndef WORKSPACES_LAYER_H
#define WORKSPACES_LAYER_H
#include "Layer.h"
class WinBorder;
class WorkspacesLayer : public Layer {
public:
WorkspacesLayer(BRect frame, const char* name, int32 token,
uint32 resize, uint32 flags, DisplayDriver* driver);
virtual ~WorkspacesLayer();
virtual void Draw(const BRect& updateRect);
private:
void _GetGrid(int32& columns, int32& rows);
BRect _WorkspaceAt(int32 i);
BRect _WindowFrame(const BRect& workspaceFrame,
const BRect& screenFrame, const BRect& windowFrame);
void _DrawWindow(const BRect& workspaceFrame,
const BRect& screenFrame, WinBorder* window);
void _DrawWorkspace(int32 index);
};
#endif // WORKSPACES_LAYER_H