2 * Copyright 2005-2013, Haiku.
3 * Distributed under the terms of the MIT License.
6 * Axel Dörfler, axeld@pinc-software.de
12 #include <InterfaceDefs.h>
19 /*! Workspace objects are intended to be short-lived. You create them while
20 already holding a lock to the Desktop read-write lock and then you can use
21 them to query information, and then you destroy them again, for example by
22 letting them go out of scope.
26 Workspace(Desktop
& desktop
, int32 index
,
27 bool readOnly
= false);
30 const rgb_color
& Color() const;
31 void SetColor(const rgb_color
& color
,
33 bool IsCurrent() const
34 { return fCurrentWorkspace
; }
36 status_t
GetNextWindow(Window
*& _window
,
38 status_t
GetPreviousWindow(Window
*& _window
,
45 Workspace::Private
& fWorkspace
;
48 bool fCurrentWorkspace
;
52 #endif /* WORKSPACE_H */