forked from frescobaldi/python-poppler-qt5
-
Notifications
You must be signed in to change notification settings - Fork 0
/
poppler-link-destination.sip
47 lines (42 loc) · 1.08 KB
/
poppler-link-destination.sip
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
namespace Poppler {
class LinkDestination
{
%Docstring
A destination.
The LinkDestination class represent a "destination" (in terms of visual
viewport to be displayed) for ``Poppler.LinkGoto`` links,
and items in the table of contents (TOC) of a document.
Coordinates are in 0..1 range.
%End
%TypeHeaderCode
#include <qt5/poppler-qt5.h>
#include <qt5/poppler-link.h>
%End
public:
enum Kind {
destXYZ = 1,
destFit = 2,
destFitH = 3,
destFitV = 4,
destFitR = 5,
destFitB = 6,
destFitBH = 7,
destFitBV = 8,
};
LinkDestination(const QString &description);
LinkDestination(const Poppler::LinkDestination &other);
~LinkDestination();
Kind kind() const;
int pageNumber() const;
double left() const;
double bottom() const;
double right() const;
double top() const;
double zoom() const;
bool isChangeLeft() const;
bool isChangeTop() const;
bool isChangeZoom() const;
QString toString() const;
QString destinationName() const;
}; // class LinkDestination
}; // namespace Poppler