pub struct Widget {
pub object: ObjRef,
pub appearance_state: Option<String>,
pub on_state: Option<String>,
pub characteristics: Option<AppearanceCharacteristics>,
}Expand description
A widget annotation that draws a field (ISO 32000-1 §12.5.6.19), as far as the field’s state needs it.
Fields§
§object: ObjRefThe annotation dictionary’s reference; the field’s own for a merged field.
appearance_state: Option<String>/AS: the appearance state the widget shows.
on_state: Option<String>The widget’s on state (§12.7.4.2.3): the one key of its /AP /N
dictionary other than Off. None when the normal appearance is a
single stream or names no or several other states.
characteristics: Option<AppearanceCharacteristics>/MK: the captions and icons a button is drawn with (§12.7.4.2.2,
Table 189); None without the dictionary.
Trait Implementations§
impl Eq for Widget
impl StructuralPartialEq for Widget
Auto Trait Implementations§
impl Freeze for Widget
impl RefUnwindSafe for Widget
impl Send for Widget
impl Sync for Widget
impl Unpin for Widget
impl UnsafeUnpin for Widget
impl UnwindSafe for Widget
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
Mutably borrows from an owned value. Read more