Loading...
Searching...
No Matches
Caret.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_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
Markup.h
pdftron::PDF::Annot::Annot
Annot(SDF::Obj d=0)
pdftron::PDF::Annot::GetSDFObj
SDF::Obj GetSDFObj() const
pdftron::PDF::Annots::Caret::Create
static Caret Create(SDF::SDFDoc &doc, const Rect &pos)
pdftron::PDF::Annots::Caret::CreateAnnot
static Caret CreateAnnot(SDF::SDFDoc &doc, const Rect &pos, Rect padding)
pdftron::PDF::Annots::Caret::GetSymbol
const char * GetSymbol() const
pdftron::PDF::Annots::Caret::CreateAnnot
static Caret CreateAnnot(SDF::SDFDoc &doc, const Rect &pos)
pdftron::PDF::Annots::Caret::Create
static Caret Create(SDF::SDFDoc &doc, const Rect &pos, Rect padding)
pdftron::PDF::Annots::Caret::Caret
Caret(SDF::Obj d=0)
pdftron::PDF::Annots::Caret::Caret
Caret(const Annot &ann)
Definition Caret.h:35
pdftron::PDF::Annots::Caret::SetSymbol
void SetSymbol(const char *symbol)
pdftron::PDF::Annots::Markup::Markup
Markup(SDF::Obj d=0)
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