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
16class Screen;
17class Window;
18
19
20class MagneticBorder {
21public:
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
29private:
30			bigtime_t			fLastSnapTime;
31};
32
33
34#endif // MAGNETIC_BORDRER_H
35