1/* 2 * Copyright 2010, Haiku, Inc. 3 * Distributed under the terms of the MIT License. 4 * 5 * Authors: 6 * Clemens Zeidler <haiku@clemens-zeidler.de> 7 */ 8#ifndef SAT_DECORATOR_H 9#define SAT_DECORATOR_H 10 11 12#include "DecorManager.h" 13#include "DefaultDecorator.h" 14#include "DefaultWindowBehaviour.h" 15#include "StackAndTile.h" 16 17 18class SATDecorator : public DefaultDecorator { 19public: 20 enum { 21 HIGHLIGHT_STACK_AND_TILE = HIGHLIGHT_USER_DEFINED 22 }; 23 24public: 25 SATDecorator(DesktopSettings& settings, 26 BRect frame); 27 28protected: 29 virtual void GetComponentColors(Component component, 30 uint8 highlight, ComponentColors _colors, 31 Decorator::Tab* tab = NULL); 32}; 33 34 35class SATWindowBehaviour : public DefaultWindowBehaviour { 36public: 37 SATWindowBehaviour(Window* window, 38 StackAndTile* sat); 39 40protected: 41 virtual bool AlterDeltaForSnap(Window* window, BPoint& delta, 42 bigtime_t now); 43 44private: 45 StackAndTile* fStackAndTile; 46}; 47 48 49#endif 50