12 class PODOFO_API PdfButton :
public PdfField
14 friend class PdfPushButton;
15 friend class PdfToggleButton;
18 PdfButton(PdfAcroForm& acroform, PdfFieldType fieldType,
19 std::shared_ptr<PdfField>&& parent);
21 PdfButton(PdfAnnotationWidget& widget, PdfFieldType fieldType,
22 std::shared_ptr<PdfField>&& parent);
24 PdfButton(PdfObject& obj, PdfAcroForm* acroform, PdfFieldType fieldType);
28 bool IsPushButton()
const;
31 bool IsCheckBox()
const;
34 bool IsRadioButton()
const;
39 void SetCaption(nullable<const PdfString&> text);
42 nullable<const PdfString&> GetCaption()
const;
45 class PODOFO_API PdfToggleButton :
public PdfButton
47 friend class PdfCheckBox;
48 friend class PdfRadioButton;
51 PdfToggleButton(PdfAcroForm& acroform, PdfFieldType fieldType,
52 std::shared_ptr<PdfField>&& parent);
54 PdfToggleButton(PdfAnnotationWidget& widget, PdfFieldType fieldType,
55 std::shared_ptr<PdfField>&& parent);
57 PdfToggleButton(PdfObject& obj, PdfAcroForm* acroform, PdfFieldType fieldType);
63 void SetChecked(
bool isChecked);
66 bool IsChecked()
const;
72 void SetAppearanceChecked(
const PdfXObject& xobj);
78 void SetAppearanceUnchecked(
const PdfXObject& xobj);
All classes, functions, types and enums of PoDoFo are members of these namespace.
Definition basetypes.h:13