#[repr(C)]pub struct AnnotationDef {
pub annotation_type: i32,
pub page: i32,
pub x: f32,
pub y: f32,
pub width: f32,
pub height: f32,
pub color: u32,
pub opacity: f32,
pub contents: String,
pub author: String,
pub text: String,
pub font_size: f32,
}Expand description
Annotation definition for FFI
Fields§
§annotation_type: i32Annotation type (PDFium constant)
page: i32Target page (1-indexed)
x: f32X coordinate
y: f32Y coordinate
width: f32Width
height: f32Height
color: u32Color as RGBA u32
opacity: f32Opacity (0.0 - 1.0)
contents: StringNote contents
Author
text: StringText (for FreeText annotations)
font_size: f32Font size (for FreeText)
Trait Implementations§
Source§impl Clone for AnnotationDef
impl Clone for AnnotationDef
Source§impl Debug for AnnotationDef
impl Debug for AnnotationDef
Source§impl Default for AnnotationDef
impl Default for AnnotationDef
Source§impl ExternType for AnnotationDef
impl ExternType for AnnotationDef
Auto Trait Implementations§
impl Freeze for AnnotationDef
impl RefUnwindSafe for AnnotationDef
impl Send for AnnotationDef
impl Sync for AnnotationDef
impl Unpin for AnnotationDef
impl UnwindSafe for AnnotationDef
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