All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Square.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_CPPPDFAnnotsSquare
6 #define PDFTRON_H_CPPPDFAnnotsSquare
7 
8 #include <PDF/Annots/Markup.h>
9 
10 namespace pdftron {
11  namespace PDF {
12  namespace Annots {
19 class Square : public Markup
20 {
21  public:
28  Square(SDF::Obj d = 0);
29 
36  Square(const Annot& ann) : Markup(ann.GetSDFObj()) {}
37 
46  static Square Create(SDF::SDFDoc& doc, const Rect& pos);
47  static Square CreateAnnot(SDF::SDFDoc& doc, const Rect& pos);
48 
49 // @cond PRIVATE_DOC
50 #ifndef SWIGHIDDEN
51  Square(TRN_Annot square);
52 #endif
53 // @endcond
54 
55 };//class Square
56  };//namespace Annot
57  };//namespace PDF
58 };//namespace pdftron
59 #include <Impl/Page.inl>
60 
61 #endif // PDFTRON_H_CPPPDFAnnotsSquare
SDF::Obj GetSDFObj() const
static Square CreateAnnot(SDF::SDFDoc &doc, const Rect &pos)
Square(const Annot &ann)
Definition: Square.h:36
static Square Create(SDF::SDFDoc &doc, const Rect &pos)