pub enum DrawContent {
Text(String),
Line {
x1: f64,
y1: f64,
x2: f64,
y2: f64,
},
Rectangle {
x: f64,
y: f64,
w: f64,
h: f64,
radius: f64,
},
Arc {
x: f64,
y: f64,
w: f64,
h: f64,
start_angle: f64,
sweep_angle: f64,
},
}Expand description
Content for draw nodes (static graphic elements).
XFA Spec 3.3 §2.1 (p24) — Draw element: fixed content (boilerplate).
Includes text, lines, rectangles, arcs. Images are handled separately
via FormNodeType::Image.
TODO(§2.3): circle draw content not implemented (spec allows via arc with
startAngle=0, sweepAngle=360).
Variants§
Trait Implementations§
Source§impl Clone for DrawContent
impl Clone for DrawContent
Source§fn clone(&self) -> DrawContent
fn clone(&self) -> DrawContent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DrawContent
impl RefUnwindSafe for DrawContent
impl Send for DrawContent
impl Sync for DrawContent
impl Unpin for DrawContent
impl UnsafeUnpin for DrawContent
impl UnwindSafe for DrawContent
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