pub struct FieldFlags(pub u32);Expand description
A field’s /Ff word (ISO 32000-1 §12.7.3, Table 221). The bits every
field type shares are read here; a type’s own bits are read by that
type’s methods.
Tuple Fields§
§0: u32Implementations§
Source§impl FieldFlags
impl FieldFlags
Sourcepub fn required(self) -> bool
pub fn required(self) -> bool
Bit 2, Required: the field must have a value when the form is
submitted.
Sourcepub fn multiline(self) -> bool
pub fn multiline(self) -> bool
Bit 13, Multiline (text fields, Table 228): the text may span
several lines.
Sourcepub fn password(self) -> bool
pub fn password(self) -> bool
Bit 14, Password (text fields): the text is echoed unreadably and
should not be stored in the file.
Sourcepub fn file_select(self) -> bool
pub fn file_select(self) -> bool
Bit 21, FileSelect (text fields): the text is the path of a file
whose contents are the field’s value.
Sourcepub fn do_not_spell_check(self) -> bool
pub fn do_not_spell_check(self) -> bool
Bit 23, DoNotSpellCheck (text and choice fields): the text is not
spell-checked.
Sourcepub fn do_not_scroll(self) -> bool
pub fn do_not_scroll(self) -> bool
Bit 24, DoNotScroll (text fields): the field takes no more text
than fits its rectangle.
Sourcepub fn comb(self) -> bool
pub fn comb(self) -> bool
Bit 25, Comb (text fields): the text is laid out in MaxLen
equally spaced cells.
Sourcepub fn rich_text(self) -> bool
pub fn rich_text(self) -> bool
Bit 26, RichText (text fields): the value is a rich text string
held in /RV.
Sourcepub fn combo(self) -> bool
pub fn combo(self) -> bool
Bit 18, Combo (choice fields, Table 230): a combo box rather than
a list box.
Sourcepub fn edit(self) -> bool
pub fn edit(self) -> bool
Bit 19, Edit (choice fields): the combo box has an editable text
box next to its list.
Sourcepub fn sort(self) -> bool
pub fn sort(self) -> bool
Bit 20, Sort (choice fields): a writer sorts the options; readers
show them in /Opt order regardless.
Sourcepub fn multi_select(self) -> bool
pub fn multi_select(self) -> bool
Bit 22, MultiSelect (choice fields): more than one option may be
selected.
Sourcepub fn commit_on_sel_change(self) -> bool
pub fn commit_on_sel_change(self) -> bool
Bit 27, CommitOnSelChange (choice fields): a new selection is
committed at once instead of when the field is left.
Sourcepub fn no_toggle_to_off(self) -> bool
pub fn no_toggle_to_off(self) -> bool
Bit 15, NoToggleToOff (radio buttons, Table 226): one button is
always on; clicking the selected one does nothing.
Sourcepub fn radio(self) -> bool
pub fn radio(self) -> bool
Bit 16, Radio (button fields): a set of radio buttons rather than
a check box.
Bit 17, Pushbutton (button fields): a pushbutton, which keeps no
value.
Sourcepub fn radios_in_unison(self) -> bool
pub fn radios_in_unison(self) -> bool
Bit 26, RadiosInUnison (radio buttons): buttons sharing an on
state turn on and off together.