#include <RadioButtonGroup.h>
Public Member Functions | |
| RadioButtonGroup (const Field &field) | |
| RadioButtonWidget | Add (const Rect &pos, const char *onstate="") |
| UInt32 | GetNumButtons () |
| RadioButtonWidget | GetButton (UInt32 index) |
| Field | GetField () const |
| void | AddGroupButtonsToPage (Page page) |
| RadioButtonGroup (const RadioButtonGroup &group) | |
| RadioButtonGroup & | operator= (const RadioButtonGroup &c) |
| RadioButtonGroup (TRN_RadioButtonGroup impl) | |
| ~RadioButtonGroup () | |
Static Public Member Functions | |
| static RadioButtonGroup | Create (PDFDoc &doc, const UString &field_name="") |
An object representing a Group of Radio Buttons that can be used to create new Radio Buttons. If a group contains multiple buttons they will be connected.
Definition at line 19 of file RadioButtonGroup.h.
| pdftron::PDF::Annots::RadioButtonGroup::RadioButtonGroup | ( | const Field & | field | ) |
Creates a RadioButtonGroup and initialize it using given Field object.
Note: The constructor does not copy any data, but is instead the logical equivalent of a type cast.
| field | The field with which to initialize the RadioButtonGroup |
| pdftron::PDF::Annots::RadioButtonGroup::RadioButtonGroup | ( | const RadioButtonGroup & | group | ) |
| pdftron::PDF::Annots::RadioButtonGroup::RadioButtonGroup | ( | TRN_RadioButtonGroup | impl | ) |
| pdftron::PDF::Annots::RadioButtonGroup::~RadioButtonGroup | ( | ) |
| RadioButtonWidget pdftron::PDF::Annots::RadioButtonGroup::Add | ( | const Rect & | pos, |
| const char * | onstate = "" ) |
Adds a new RadioButtonWidget to the RadioButtonGroup
| pos | A rectangle specifying the annotation's bounds, specified in user space coordinates. |
| onstate | The onstate for this button. This will rarely need to be explicitly set. However, it can be used to allow multiple radiobuttons in a group to be on at once if they have the same onstate. |
| void pdftron::PDF::Annots::RadioButtonGroup::AddGroupButtonsToPage | ( | Page | page | ) |
Add all group buttons to the page
| page | The page in which to add the buttons. |
|
static |
Creates a new RadioButtonGroup in the specified document.
| doc | The document in which the RadioButtonGroup is created. |
| field_name | The name of the field to create and use in this RadioButtonGroup. |
| RadioButtonWidget pdftron::PDF::Annots::RadioButtonGroup::GetButton | ( | UInt32 | index | ) |
Retrieves the button at a given index.
| index | The index to use. |
| Field pdftron::PDF::Annots::RadioButtonGroup::GetField | ( | ) | const |
Gets the field associated with this RadioButtonGroup
| UInt32 pdftron::PDF::Annots::RadioButtonGroup::GetNumButtons | ( | ) |
Gets the number of buttons in this RadioButtonGroup
| RadioButtonGroup & pdftron::PDF::Annots::RadioButtonGroup::operator= | ( | const RadioButtonGroup & | c | ) |