/* * Copyright 2011, Haiku, Inc. * Distributed under the terms of the MIT license. * * Authors: * Clemens Zeidler */ #ifndef MAGNETIC_BORDRER_H #define MAGNETIC_BORDRER_H #include #include class Screen; class Window; class MagneticBorder { public: MagneticBorder(); bool AlterDeltaForSnap(Window* window, BPoint& delta, bigtime_t now); bool AlterDeltaForSnap(const Screen* screen, BRect& frame, BPoint& delta, bigtime_t now); private: bigtime_t fLastSnapTime; }; #endif // MAGNETIC_BORDRER_H