Loading...
Searching...
No Matches
Highlight.h
Go to the documentation of this file.
1//---------------------------------------------------------------------------------------
2// Copyright (c) 2001-2025 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
8#include <PDF/Annots/TextMarkup.h>
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:
30 Highlight(SDF::Obj d);
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
TextMarkup.h
pdftron::PDF::Annot::Annot
Annot(SDF::Obj d=0)
pdftron::PDF::Annot::GetSDFObj
SDF::Obj GetSDFObj() const
pdftron::PDF::Annots::Highlight::Highlight
Highlight(const Annot &ann)
Definition Highlight.h:38
pdftron::PDF::Annots::Highlight::CreateAnnot
static Highlight CreateAnnot(SDF::SDFDoc &doc, const Rect &pos)
pdftron::PDF::Annots::Highlight::Highlight
Highlight(SDF::Obj d)
pdftron::PDF::Annots::Highlight::Create
static Highlight Create(SDF::SDFDoc &doc, const Rect &pos)
pdftron::PDF::Annots::TextMarkup::TextMarkup
TextMarkup(SDF::Obj d)
pdftron::PDF::Rect
Definition Rect.h:29
pdftron::SDF::Obj
Definition Obj.h:41
pdftron::SDF::SDFDoc
Definition SDFDoc.h:68
pdftron::PDF::Annots
Definition Caret.h:12
pdftron::PDF
Definition Action.h:15
pdftron
Definition BasicTypes.h:10