-
Notifications
You must be signed in to change notification settings - Fork 2
/
nsrrenderinfo.h
92 lines (80 loc) · 1.71 KB
/
nsrrenderinfo.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
#ifndef __NSRRENDERINFO_H__
#define __NSRRENDERINFO_H__
/**
* @file nsrrenderinfo.h
* @author Alexander Saprykin
* @brief Page rendering info
*/
#include "nsrreadercore_global.h"
/**
* @class NSRRenderInfo nsrrenderinfo.h
* @brief Page rendering info class
* @since 1.4.3
*
* Contains information about rendered page.
*/
class NSRRenderInfo
{
public:
/**
* @brief Constructor
*/
NSRRenderInfo ();
/**
* @brief Destructor
*/
~NSRRenderInfo ();
/**
* @brief Gets page min zoom value
* @return Page min zoom value, in %.
* @since 1.4.3
*/
inline double getMinZoom () const {
return _minZoom;
}
/**
* @brief Gets page max zoom value
* @return Page max zoom value, in %.
* @since 1.4.3
*/
inline double getMaxZoom () const {
return _maxZoom;
}
/**
* @brief Checks whether render was successfull
* @return True if render was successfull, false otherwise.
* @since 1.4.3
*/
inline bool isSuccessRender () const {
return _isSuccessRender;
}
/**
* @brief Sets page min zoom value
* @param minZoom Page min zoom value, in %.
* @since 1.4.3
*/
inline void setMinZoom (double minZoom) {
_minZoom = minZoom;
}
/**
* @brief Sets page max zoom value
* @param maxZoom Page max zoom value, in %.
* @since 1.4.3
*/
inline void setMaxZoom (double maxZoom) {
_maxZoom = maxZoom;
}
/**
* @brief Sets render success flag
* @param success Render success flag.
* @since 1.4.3
*/
inline void setSuccessRender (bool success) {
_isSuccessRender = success;
}
private:
double _minZoom; /**< Min page zoom value, in % */
double _maxZoom; /**< Max page zoom value, in % */
bool _isSuccessRender; /**< Rendering result flag */
};
#endif /* __NSRRENDERINFO_H__ */