All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Caret.h
Go to the documentation of this file.
1 //---------------------------------------------------------------------------------------
2 // Copyright (c) 2001-2023 by Apryse Software Inc. All Rights Reserved.
3 // Consult legal.txt regarding legal and license information.
4 //---------------------------------------------------------------------------------------
5 #ifndef PDFTRON_H_CPPPDFAnnotsCaret
6 #define PDFTRON_H_CPPPDFAnnotsCaret
7 
8 #include <PDF/Annots/Markup.h>
9 
10 namespace pdftron {
11  namespace PDF {
12  namespace Annots {
17 class Caret : public Markup
18 {
19  public:
20 
27  Caret(SDF::Obj d = 0);
28 
35  Caret(const Annot& ann) : Markup(ann.GetSDFObj()) {}
36 
45  static Caret Create(SDF::SDFDoc& doc, const Rect& pos);
46  static Caret CreateAnnot(SDF::SDFDoc& doc, const Rect& pos);
60  static Caret Create(SDF::SDFDoc& doc, const Rect& pos, Rect padding);
61  static Caret CreateAnnot(SDF::SDFDoc& doc, const Rect& pos, Rect padding);
69  const char* GetSymbol() const;
70 
77  void SetSymbol(const char* symbol);
78 
79  // @cond PRIVATE_DOC
80  #ifndef SWIGHIDDEN
81  Caret(TRN_Annot caret);
82  #endif
83  // @endcond
84 };
85 
86 
87  };//namespace Annot
88  };//namespace PDF
89 };//namespace pdftron
90 
91 #include <Impl/Page.inl>
92 
93 #endif // PDFTRON_H_CPPPDFAnnotsCaret
SDF::Obj GetSDFObj() const
static Caret CreateAnnot(SDF::SDFDoc &doc, const Rect &pos)
Caret(const Annot &ann)
Definition: Caret.h:35
static Caret Create(SDF::SDFDoc &doc, const Rect &pos)
void SetSymbol(const char *symbol)
const char * GetSymbol() const