67 this->zoom_step = zoom_step;
87 view_zoom += zoom_step;
90 view_zoom -= zoom_step;
113 float view_zoom { 1.0f };
114 float zoom_step { 0.1f };
121 void init_internal(
void);
The CCPdfDocument class CCPdfDocument manages the lifetime and access to a PDF document....
Definition ccpdfdocument.h:24
Provides a widget to view PDF documents at the page level.
Definition ccpdfviewer.h:22
void unbindDocument()
Unbinds the currently bound document.
Definition ccpdfviewer.cpp:40
float current_zoom() const
Returns the current zoom level.
Definition ccpdfviewer.h:58
void zoom(const ZoomDirection direction)
Applies zoom in the specified direction.
Definition ccpdfviewer.h:84
~CCPdfViewer()
Destructor.
Definition ccpdfviewer.cpp:65
Q_DISABLE_COPY(CCPdfViewer)
disable copy object
void set_zoom_step(const float zoom_step)
Sets the zoom step value.
Definition ccpdfviewer.h:66
void fresh_render()
Refreshes the rendered page view.
Definition ccpdfviewer.cpp:49
ZoomDirection
Specifies the direction of zooming.
Definition ccpdfviewer.h:74
bool bindDocument(CCPdfDocument *bindDocument)
Binds a PDF document to the viewer.
Definition ccpdfviewer.cpp:26
void fresh_zoom(const ZoomDirection direction)
Zooms and refreshes the rendered view.
Definition ccpdfviewer.h:99