btrfs: Attempt to fix GCC2 build.
[haiku.git] / src / servers / app / stackandtile / SATDecorator.h
blob4f548b4fb3c3791bb01a69373df1e147d17b11d4
1 /*
2 * Copyright 2010-2015, Haiku, Inc.
3 * Distributed under the terms of the MIT License.
5 * Authors:
6 * Clemens Zeidler <haiku@clemens-zeidler.de>
7 */
8 #ifndef SAT_DECORATOR_H
9 #define SAT_DECORATOR_H
12 #include "DecorManager.h"
13 #include "DefaultDecorator.h"
14 #include "DefaultWindowBehaviour.h"
15 #include "StackAndTile.h"
18 class Desktop;
21 class SATDecorator : public DefaultDecorator {
22 public:
23 enum {
24 HIGHLIGHT_STACK_AND_TILE = HIGHLIGHT_USER_DEFINED
27 public:
28 SATDecorator(DesktopSettings& settings,
29 BRect frame, Desktop* desktop);
31 protected:
32 virtual void UpdateColors(DesktopSettings& settings);
33 virtual void GetComponentColors(Component component,
34 uint8 highlight, ComponentColors _colors,
35 Decorator::Tab* tab = NULL);
37 private:
38 rgb_color fHighlightTabColor;
39 rgb_color fHighlightTabColorLight;
40 rgb_color fHighlightTabColorBevel;
41 rgb_color fHighlightTabColorShadow;
45 class SATWindowBehaviour : public DefaultWindowBehaviour {
46 public:
47 SATWindowBehaviour(Window* window,
48 StackAndTile* sat);
50 protected:
51 virtual bool AlterDeltaForSnap(Window* window, BPoint& delta,
52 bigtime_t now);
54 private:
55 StackAndTile* fStackAndTile;
59 #endif