xref: /haiku/src/servers/app/decorator/MagneticBorder.h (revision f4f30311aab9b2768d3ef7e590f85598298edfe0)
1 /*
2  * Copyright 2011, Haiku, Inc.
3  * Distributed under the terms of the MIT license.
4  *
5  * Authors:
6  *		Clemens Zeidler <haiku@clemens-zeidler.de>
7  */
8 #ifndef MAGNETIC_BORDRER_H
9 #define MAGNETIC_BORDRER_H
10 
11 
12 #include <Point.h>
13 #include <Screen.h>
14 
15 
16 class Screen;
17 class Window;
18 
19 
20 class MagneticBorder {
21 public:
22 								MagneticBorder();
23 
24 			bool				AlterDeltaForSnap(Window* window, BPoint& delta,
25 									bigtime_t now);
26 			bool				AlterDeltaForSnap(const Screen* screen,
27 									BRect& frame, BPoint& delta, bigtime_t now);
28 
29 private:
30 			bigtime_t			fLastSnapTime;
31 };
32 
33 
34 #endif // MAGNETIC_BORDRER_H
35