Loading...
Searching...
No Matches
Popup.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_CPPPDFAnnotsPopup
6#define PDFTRON_H_CPPPDFAnnotsPopup
7
8#include <PDF/Annot.h>
9
10namespace pdftron {
11 namespace PDF {
12 namespace Annots {
20class Popup : public Annot
21{
22 public:
29 Popup(SDF::Obj d = 0);
30
37 Popup(const Annot& ann) : Annot(ann.GetSDFObj()) {}
38
47 static Popup Create(SDF::SDFDoc& doc, const Rect& pos);
48 static Popup CreateAnnot(SDF::SDFDoc& doc, const Rect& pos);
49
50
61
72 void SetParent(const Annot& parent);
73
82 bool IsOpen() const;
83
93 void SetOpen(bool is_open);
94
95// @cond PRIVATE_DOC
96#ifndef SWIGHIDDEN
97 Popup(TRN_Annot popup);
98#endif
99// @endcond
100}; //class Popup
101 }; //namespace Annot
102 }; //namespace PDF
103}; //namespace pdftron
104#include <Impl/Page.inl>
105
106#endif // PDFTRON_H_CPPPDFAnnotsPopup
Annot(SDF::Obj d=0)
SDF::Obj GetSDFObj() const
void SetOpen(bool is_open)
static Popup Create(SDF::SDFDoc &doc, const Rect &pos)
void SetParent(const Annot &parent)
static Popup CreateAnnot(SDF::SDFDoc &doc, const Rect &pos)
Popup(const Annot &ann)
Definition Popup.h:37