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-2020 by PDFTron Systems 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 
48 // @cond PRIVATE_DOC
49 #ifndef SWIGHIDDEN
50  Square(TRN_Annot square);
51 #endif
52 // @endcond
53 
54 };//class Square
55  };//namespace Annot
56  };//namespace PDF
57 };//namespace pdftron
58 #include <Impl/Page.inl>
59 
60 #endif // PDFTRON_H_CPPPDFAnnotsSquare
SDF::Obj GetSDFObj() const
Square(const Annot &ann)
Definition: Square.h:36
static Square Create(SDF::SDFDoc &doc, const Rect &pos)