pub struct AnnotationSubtypeData {
pub quad_points: Option<Vec<f32>>,
pub line_points: Option<[f32; 4]>,
pub leader_line_length: Option<f32>,
pub vertices: Option<Vec<f32>>,
pub ink_list: Option<Vec<Vec<f32>>>,
pub default_appearance: Option<String>,
pub stamp_name: Option<String>,
}Expand description
Subtype-specific annotation data.
Contains fields that are only relevant to specific annotation subtypes,
such as /QuadPoints for markup annotations, /L for line annotations, etc.
Fields§
§quad_points: Option<Vec<f32>>QuadPoints for Highlight, Underline, Squiggly, StrikeOut, Link annotations. Each group of 8 values defines a quadrilateral: [x1,y1, x2,y2, x3,y3, x4,y4].
line_points: Option<[f32; 4]>Line endpoints for Line annotations: [x1, y1, x2, y2].
leader_line_length: Option<f32>Leader line length for Line annotations.
vertices: Option<Vec<f32>>Vertices for Polygon and PolyLine annotations.
ink_list: Option<Vec<Vec<f32>>>Ink strokes for Ink annotations. Each inner Vec represents one stroke as a sequence of [x, y] pairs.
default_appearance: Option<String>Default appearance string for FreeText annotations.
stamp_name: Option<String>Stamp name (icon) for Stamp annotations.
Trait Implementations§
Source§impl Clone for AnnotationSubtypeData
impl Clone for AnnotationSubtypeData
Source§fn clone(&self) -> AnnotationSubtypeData
fn clone(&self) -> AnnotationSubtypeData
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 moreSource§impl Debug for AnnotationSubtypeData
impl Debug for AnnotationSubtypeData
Source§impl Default for AnnotationSubtypeData
impl Default for AnnotationSubtypeData
Source§fn default() -> AnnotationSubtypeData
fn default() -> AnnotationSubtypeData
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AnnotationSubtypeData
impl RefUnwindSafe for AnnotationSubtypeData
impl Send for AnnotationSubtypeData
impl Sync for AnnotationSubtypeData
impl Unpin for AnnotationSubtypeData
impl UnsafeUnpin for AnnotationSubtypeData
impl UnwindSafe for AnnotationSubtypeData
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