mupdf-qt  0.1
Qt5 interface of the popular PDF library MuPDF
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Friends Pages
mupdf-textbox.h
Go to the documentation of this file.
1 #ifndef MUPDF_TEXTBOX_H
2 #define MUPDF_TEXTBOX_H
3 
4 class QRectF;
5 class QString;
6 
7 namespace MuPDF
8 {
9 
10 class TextBoxPrivate;
11 
21 class TextBox
22 {
23 public:
24  ~TextBox();
25 
26  QRectF boundingBox() const;
27  int numChars() const;
28  QRectF charBoundingBox(int index) const;
29 // bool hasSpaceAfter() const;
30 // TextBox *nextWord() const;
31  QString text() const;
32 
33 private:
34  TextBox(TextBoxPrivate *textboxp)
35  : d(textboxp)
36  {
37 
38  }
39 
40  TextBoxPrivate *d;
41 
42 friend class Page;
43 };
44 
45 } // end namespace Mu
46 
47 #endif // end MUPDF_TEXTBOX_H