#[non_exhaustive]pub enum FieldKindSpec {
Text,
Check {
on: String,
},
Radio {
buttons: Vec<(Rect, String)>,
},
}Expand description
Which kind of control a created field is.
Scoped to the three kinds a document author reaches for first. A combo
box, list box or signature field is a larger surface — /Opt ordering and
selection semantics for the first two, a byte-range placeholder and a
certificate for the third — and is deliberately not offered here rather
than offered half-built.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Text
A single-line text field (/Tx).
Check
A check box (/Btn with neither the push-button nor the radio bit).
The string is the name of the on state — what /V and /AS hold
when the box is ticked, and the key the on appearance is filed under.
Yes is the conventional choice; the off state is always Off.
Radio
A radio group (/Btn with bit 16 set).
One button per entry: each is a widget on its own rectangle, and the
string is that button’s export value — the name /V takes when that
button is the one chosen.
Fields
Each button’s rectangle and export value, in order.
Implementations§
Source§impl FieldKindSpec
impl FieldKindSpec
Trait Implementations§
Source§impl Clone for FieldKindSpec
impl Clone for FieldKindSpec
Source§impl Debug for FieldKindSpec
impl Debug for FieldKindSpec
Source§impl PartialEq for FieldKindSpec
impl PartialEq for FieldKindSpec
impl StructuralPartialEq for FieldKindSpec
Auto Trait Implementations§
impl Freeze for FieldKindSpec
impl RefUnwindSafe for FieldKindSpec
impl Send for FieldKindSpec
impl Sync for FieldKindSpec
impl Unpin for FieldKindSpec
impl UnsafeUnpin for FieldKindSpec
impl UnwindSafe for FieldKindSpec
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
T, using the provided data to resolve any offsets.