- int noUnitsX, int noUnitsY,
- int xPos = 0, int yPos = 0,
- bool noRefresh = FALSE );
-
- // Physically scroll the window
- virtual void Scroll(int x_pos, int y_pos);
-
- int GetScrollPageSize(int orient) const;
- void SetScrollPageSize(int orient, int pageSize);
-
- virtual void GetScrollPixelsPerUnit(int *x_unit, int *y_unit) const;
-
- // Enable/disable Windows scrolling in either direction.
- // If TRUE, wxWindows scrolls the canvas and only a bit of
- // the canvas is invalidated; no Clear() is necessary.
- // If FALSE, the whole canvas is invalidated and a Clear() is
- // necessary. Disable for when the scroll increment is used
- // to actually scroll a non-constant distance
- virtual void EnableScrolling(bool x_scrolling, bool y_scrolling);
-
- // Get the view start
- virtual void GetViewStart(int *x, int *y) const;
- // Compatibility
- void ViewStart(int *x, int *y) const
- { GetViewStart( x, y ); }
-
- // Actual size in pixels when scrolling is taken into account
- virtual void GetVirtualSize(int *x, int *y) const;
-
- // translate between scrolled and unscrolled coordinates
- void CalcScrolledPosition(int x, int y, int *xx, int *yy) const
- { DoCalcScrolledPosition(x, y, xx, yy); }
- wxPoint CalcScrolledPosition(const wxPoint& pt) const
- {
- wxPoint p2;
- DoCalcScrolledPosition(pt.x, pt.y, &p2.x, &p2.y);
- return p2;
- }
-
- void CalcUnscrolledPosition(int x, int y, int *xx, int *yy) const
- { DoCalcUnscrolledPosition(x, y, xx, yy); }
- wxPoint CalcUnscrolledPosition(const wxPoint& pt) const
- {
- wxPoint p2;
- DoCalcUnscrolledPosition(pt.x, pt.y, &p2.x, &p2.y);
- return p2;
- }
-
- virtual void DoCalcScrolledPosition(int x, int y, int *xx, int *yy) const;
- virtual void DoCalcUnscrolledPosition(int x, int y, int *xx, int *yy) const;
-
- // Override this function to draw the graphic (or just process EVT_PAINT)
- virtual void OnDraw(wxDC& WXUNUSED(dc)) {}
-
- // Override this function if you don't want to have wxScrolledWindow
- // automatically change the origin according to the scroll position.
- virtual void PrepareDC(wxDC& dc);
-
- // lay out the window and its children
- virtual bool Layout();
-
- // Adjust the scrollbars