aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/desktop-utils/lumina-pdf/textData.h
blob: aa134cbb7391f0ba6a29f1764467d09dab9d8472 (plain)
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
#ifndef textData_H
#define textData_H

#include <mupdf/fitz.h>

class TextData {
    private:
      fz_rect _loc;
      bool _highlighted=false;
      int _page=0;
      QString _text=""; 

    public:
      TextData(fz_rect _loc, int _page, QString _text) {
        this->_loc = _loc;
        this->_page = _page;
        this->_text = _text;
      }

      fz_rect loc() { return this->_loc; }
      bool highlighted() { return this->_highlighted; }
      int page() { return this->_page; }
      QString text() { return this->_text; }
       
      void loc(fz_rect loc) { this->_loc = loc; }
      void highlighted(bool highlighted) { this->_highlighted = highlighted; }
      void page(int page) { this->_page = page; }
      void text(QString text) { this->_text = text; }
};

#endif
bgstack15