pub enum ZoomMode {
Default,
Real,
Fullpage,
Fullwidth,
}Expand description
Zoom mode for displaying content on a PDF page.
§Example
use fpdf::{Fpdf, Pdf, Layout, ZoomMode};
let mut pdf = Fpdf::default();
// Use the viewer default mode and display one page at a time
pdf.set_display_mode(ZoomMode::Default, Layout::SinglePage);Variants§
Default
Use the viewer default mode
Real
Use real size (equivalent to 100% zoom)
Fullpage
Display the entire page on screen
Fullwidth
Use the maximum width of window
Trait Implementations§
Source§impl Ord for ZoomMode
impl Ord for ZoomMode
Source§impl PartialOrd for ZoomMode
impl PartialOrd for ZoomMode
impl Copy for ZoomMode
impl Eq for ZoomMode
impl StructuralPartialEq for ZoomMode
Auto Trait Implementations§
impl Freeze for ZoomMode
impl RefUnwindSafe for ZoomMode
impl Send for ZoomMode
impl Sync for ZoomMode
impl Unpin for ZoomMode
impl UnwindSafe for ZoomMode
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