pub struct Widget {
pub rect: Rectangle,
pub appearance: WidgetAppearance,
pub parent: Option<String>,
}Expand description
Widget annotation for form field
Fields§
§rect: RectangleRectangle for widget position
appearance: WidgetAppearanceAppearance settings
parent: Option<String>Parent field reference (will be set by FormManager)
Implementations§
Source§impl Widget
impl Widget
Sourcepub fn with_appearance(self, appearance: WidgetAppearance) -> Self
pub fn with_appearance(self, appearance: WidgetAppearance) -> Self
Set appearance
Sourcepub fn to_annotation_dict(&self) -> Dictionary
pub fn to_annotation_dict(&self) -> Dictionary
Convert to annotation dictionary
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Widget
impl RefUnwindSafe for Widget
impl Send for Widget
impl Sync for Widget
impl Unpin 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