int GetScrollLineX() const { return m_scrollLineX; }
int GetScrollLineY() const { return m_scrollLineY; }
- // Implementation
- int GetScrollX(int x) const
- {
- return (x + GetScrollLineX() - 1) / GetScrollLineX();
- }
-
- int GetScrollY(int y) const
- {
- return (y + GetScrollLineY() - 1) / GetScrollLineY();
- }
-
-
// ------- drag and drop
#if wxUSE_DRAG_AND_DROP
virtual void SetDropTarget(wxDropTarget *dropTarget);
// in these hash tables is the number of rows/columns)
static const int GRID_HASH_SIZE = 100;
-#if 0
-// ----------------------------------------------------------------------------
-// private functions
-// ----------------------------------------------------------------------------
-
-static inline int GetScrollX(int x)
-{
- return (x + GRID_SCROLL_LINE_X - 1) / GRID_SCROLL_LINE_X;
-}
-
-static inline int GetScrollY(int y)
-{
- return (y + GRID_SCROLL_LINE_Y - 1) / GRID_SCROLL_LINE_Y;
-}
-#endif
-
// ============================================================================
// implementation
// ============================================================================