All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Highlight.h
Go to the documentation of this file.
1 //---------------------------------------------------------------------------------------
2 // Copyright (c) 2001-2024 by Apryse Software Inc. All Rights Reserved.
3 // Consult legal.txt regarding legal and license information.
4 //---------------------------------------------------------------------------------------
5 #ifndef PDFTRON_H_CPPPDFAnnotsHighlight
6 #define PDFTRON_H_CPPPDFAnnotsHighlight
7 
9 
10 #ifdef SWIG
11 #define Highlight HighlightAnnot
12 #endif
13 
14 namespace pdftron {
15  namespace PDF {
16  namespace Annots {
21 class Highlight : public TextMarkup
22 {
23 public:
31 
38  Highlight(const Annot& ann) : TextMarkup(ann.GetSDFObj()) {}
39 
48  static Highlight Create(SDF::SDFDoc& doc, const Rect& pos);
49  static Highlight CreateAnnot(SDF::SDFDoc& doc, const Rect& pos);
50 
51  // @cond PRIVATE_DOC
52  #ifndef SWIGHIDDEN
53  Highlight(TRN_Annot highlight);
54  #endif
55  // @endcond
56 };//class Highlight
57 
58  };//namespace Annot
59  };//namespace PDF
60 };//namespace pdftron
61 
62 #ifdef SWIG
63 #undef Highlight
64 #endif
65 
66 #include <Impl/Page.inl>
67 
68 #endif // PDFTRON_H_CPPPDFAnnotsHighlight
SDF::Obj GetSDFObj() const
static Highlight CreateAnnot(SDF::SDFDoc &doc, const Rect &pos)
Highlight(const Annot &ann)
Definition: Highlight.h:38
static Highlight Create(SDF::SDFDoc &doc, const Rect &pos)