#[repr(C)]pub struct WatermarkDef {}Expand description
Watermark definition for FFI
Fields§
§text: StringText content (empty if image watermark)
image: Vec<u8>Image data (empty if text watermark)
x: f32X position (for custom position)
y: f32Y position (for custom position)
rotation: f32Rotation in degrees
opacity: f32Opacity (0.0 - 1.0)
font_size: f32Font size for text
font_name: StringFont name for text
color: u32Color as ARGB u32
behind_content: boolWhether to place behind content
pages: Vec<i32>Pages to watermark (empty = all, special values: -1=odd, -2=even, -3=first, -4=last)
position_type: i32Position type (0=center, 1=top-left, etc., 9=custom)
custom_x: f32Custom X position
custom_y: f32Custom Y position
scale: f32Scale factor
Trait Implementations§
Source§impl Clone for WatermarkDef
impl Clone for WatermarkDef
Source§impl Debug for WatermarkDef
impl Debug for WatermarkDef
Source§impl ExternType for WatermarkDef
impl ExternType for WatermarkDef
Auto Trait Implementations§
impl Freeze for WatermarkDef
impl RefUnwindSafe for WatermarkDef
impl Send for WatermarkDef
impl Sync for WatermarkDef
impl Unpin for WatermarkDef
impl UnwindSafe for WatermarkDef
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