pub struct PopupAnnotation {
pub rect: Rect,
pub open: bool,
pub flags: AnnotationFlags,
}Expand description
A Popup annotation per PDF spec Section 12.5.6.14.
Popup annotations do not appear alone; they are associated with a markup annotation and are used to display text in a pop-up window.
Fields§
§rect: RectBounding rectangle for the popup window
open: boolWhether the popup is initially open
flags: AnnotationFlagsAnnotation flags
Implementations§
Source§impl PopupAnnotation
impl PopupAnnotation
Sourcepub fn with_flags(self, flags: AnnotationFlags) -> Self
pub fn with_flags(self, flags: AnnotationFlags) -> Self
Set annotation flags.
Trait Implementations§
Source§impl Clone for PopupAnnotation
impl Clone for PopupAnnotation
Source§fn clone(&self) -> PopupAnnotation
fn clone(&self) -> PopupAnnotation
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 PopupAnnotation
impl Debug for PopupAnnotation
Source§impl Default for PopupAnnotation
impl Default for PopupAnnotation
Source§impl From<PopupAnnotation> for Annotation
impl From<PopupAnnotation> for Annotation
Source§fn from(popup: PopupAnnotation) -> Self
fn from(popup: PopupAnnotation) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PopupAnnotation
impl RefUnwindSafe for PopupAnnotation
impl Send for PopupAnnotation
impl Sync for PopupAnnotation
impl Unpin for PopupAnnotation
impl UnwindSafe for PopupAnnotation
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