+++ /dev/null
-/*\r
- * Smart "snapping" for window moving and sizing\r
- *\r
- * Author: Alessandro Scotti (Dec 2005)\r
- *\r
- * Copyright 2005 Alessandro Scotti\r
- *\r
- * ------------------------------------------------------------------------\r
- * GNU XBoard is free software: you can redistribute it and/or modify\r
- * it under the terms of the GNU General Public License as published by\r
- * the Free Software Foundation, either version 3 of the License, or (at\r
- * your option) any later version.\r
- *\r
- * GNU XBoard is distributed in the hope that it will be useful, but\r
- * WITHOUT ANY WARRANTY; without even the implied warranty of\r
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\r
- * General Public License for more details.\r
- *\r
- * You should have received a copy of the GNU General Public License\r
- * along with this program. If not, see http://www.gnu.org/licenses/. *\r
- *\r
- *------------------------------------------------------------------------\r
- ** See the file ChangeLog for a revision history. */\r
-\r
-#ifndef WSNAP_H_\r
-#define WSNAP_H_\r
-\r
-#include <windows.h>\r
-\r
-#define MAX_SNAP_POINTS 12\r
-\r
-#define SNAP_DISTANCE 4\r
-\r
-typedef struct {\r
- int x_grid[ MAX_SNAP_POINTS ];\r
- int x_grid_len;\r
- int y_grid[ MAX_SNAP_POINTS ];\r
- int y_grid_len;\r
-} SnapData;\r
-\r
-LRESULT OnEnterSizeMove( SnapData * snapData, HWND hWnd, WPARAM wParam, LPARAM lParam );\r
-LRESULT OnMoving( SnapData * snapData, HWND hWnd, WPARAM wParam, LPARAM lParam );\r
-LRESULT OnSizing( SnapData * snapData, HWND hWnd, WPARAM wParam, LPARAM lParam );\r
-LRESULT OnExitSizeMove( SnapData * snapData, HWND hWnd, WPARAM wParam, LPARAM lParam );\r
-\r
-#endif // WSNAP_H_\r