File: poppler-link-destination.sip

package info (click to toggle)
python-poppler-qt5 21.3.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 280 kB
  • sloc: python: 424; makefile: 11
file content (47 lines) | stat: -rw-r--r-- 1,106 bytes parent folder | download | duplicates (4)
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