A preview canvas is the default canvas used by the print preview system to display the preview.
- See Also
- wxPreviewFrame, wxPreviewControlBar, wxPrintPreview
|
| wxPreviewCanvas (wxPrintPreview *preview, wxWindow *parent, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=0, const wxString &name="canvas") |
| Constructor.
|
|
virtual | ~wxPreviewCanvas () |
| Destructor.
|
|
void | OnPaint (wxPaintEvent &event) |
| Calls wxPrintPreview::PaintPage() to refresh the canvas.
|
|
| wxScrolled () |
| Default constructor.
|
|
| wxScrolled (wxWindow *parent, wxWindowID id=-1, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxHSCROLL|wxVSCROLL, const wxString &name="scrolledWindow") |
| Constructor.
|
|
void | CalcScrolledPosition (int x, int y, int *xx, int *yy) const |
| Translates the logical coordinates to the device ones.
|
|
wxPoint | CalcScrolledPosition (const wxPoint &pt) const |
|
void | CalcUnscrolledPosition (int x, int y, int *xx, int *yy) const |
| Translates the device coordinates to the logical ones.
|
|
wxPoint | CalcUnscrolledPosition (const wxPoint &pt) const |
|
bool | Create (wxWindow *parent, wxWindowID id=-1, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxHSCROLL|wxVSCROLL, const wxString &name="scrolledWindow") |
| Creates the window for two-step construction.
|
|
void | DisableKeyboardScrolling () |
| Disable use of keyboard keys for scrolling.
|
|
void | DoPrepareDC (wxDC &dc) |
| Call this function to prepare the device context for drawing a scrolled image.
|
|
void | EnableScrolling (bool xScrolling, bool yScrolling) |
| Enable or disable use of wxWindow::ScrollWindow() for scrolling.
|
|
void | ShowScrollbars (wxScrollbarVisibility horz, wxScrollbarVisibility vert) |
| Set the scrollbar visibility.
|
|
void | GetScrollPixelsPerUnit (int *xUnit, int *yUnit) const |
| Get the number of pixels per scroll unit (line), in each direction, as set by SetScrollbars().
|
|
void | GetViewStart (int *x, int *y) const |
| Get the position at which the visible portion of the window starts.
|
|
wxPoint | GetViewStart () const |
| This is a simple overload of GetViewStart(int*,int*); see that function for more info.
|
|
void | GetVirtualSize (int *x, int *y) const |
| Gets the size in device units of the scrollable window area (as opposed to the client size, which is the area of the window currently visible).
|
|
bool | IsRetained () const |
| Motif only: true if the window has a backing bitmap.
|
|
virtual void | OnDraw (wxDC &dc) |
| Called by the default paint event handler to allow the application to define painting behaviour without having to worry about calling DoPrepareDC().
|
|
void | PrepareDC (wxDC &dc) |
| This function is for backwards compatibility only and simply calls DoPrepareDC() now.
|
|
void | Scroll (int x, int y) |
| Scrolls a window so the view start is at the given point.
|
|
void | Scroll (const wxPoint &pt) |
| This is an overload of Scroll(int,int); see that function for more info.
|
|
void | SetScrollRate (int xstep, int ystep) |
| Set the horizontal and vertical scrolling increment only.
|
|
void | SetScrollbars (int pixelsPerUnitX, int pixelsPerUnitY, int noUnitsX, int noUnitsY, int xPos=0, int yPos=0, bool noRefresh=false) |
| Sets up vertical and/or horizontal scrollbars.
|
|
void | SetTargetWindow (wxWindow *window) |
| Call this function to tell wxScrolled to perform the actual scrolling on a different window (and not on itself).
|
|
wxWindow * | GetTargetWindow () const |
|
void | SetTargetRect (const wxRect &rect) |
|
wxRect | GetTargetRect () const |
|
int | GetScrollPageSize (int orient) const |
|
void | SetScrollPageSize (int orient, int pageSize) |
|
int | GetScrollLines (int orient) const |
|
void | SetScale (double xs, double ys) |
|
double | GetScaleX () const |
|
double | GetScaleY () const |
|
virtual void | AdjustScrollbars () |
|
bool | IsAutoScrolling () const |
| Are we generating the autoscroll events?
|
|
void | StopAutoScrolling () |
| Stop generating the scroll events when mouse is held outside the window.
|
|
virtual bool | SendAutoScrollEvents (wxScrollWinEvent &event) const |
| This method can be overridden in a derived class to forbid sending the auto scroll events - note that unlike StopAutoScrolling() it doesn't stop the timer, so it will be called repeatedly and will typically return different values depending on the current mouse position.
|
|