pub struct PdfViewInfo {Show 19 fields
pub display_mode: i32,
pub display_direction: i32,
pub displays_page_breaks: bool,
pub page_break_margins: PdfEdgeInsets,
pub display_box: i32,
pub displays_as_book: bool,
pub displays_rtl: bool,
pub background_color: Option<PdfColor>,
pub interpolation_quality: i32,
pub page_shadows_enabled: bool,
pub scale_factor: f64,
pub min_scale_factor: f64,
pub max_scale_factor: f64,
pub auto_scales: bool,
pub scale_factor_for_size_to_fit: f64,
pub in_markup_mode: bool,
pub has_document_view: bool,
pub visible_page_count: usize,
pub current_page_label: Option<String>,
}Expand description
Snapshot of PDFView state.
Fields§
§display_mode: i32Mirrors the corresponding PDFView field.
display_direction: i32Mirrors the corresponding PDFView field.
displays_page_breaks: boolMirrors the corresponding PDFView field.
page_break_margins: PdfEdgeInsetsMirrors the corresponding PDFView field.
display_box: i32Mirrors the corresponding PDFView field.
displays_as_book: boolMirrors the corresponding PDFView field.
displays_rtl: boolMirrors the corresponding PDFView field.
background_color: Option<PdfColor>Mirrors the corresponding PDFView field.
interpolation_quality: i32Mirrors the corresponding PDFView field.
page_shadows_enabled: boolMirrors the corresponding PDFView field.
scale_factor: f64Mirrors the corresponding PDFView field.
min_scale_factor: f64Mirrors the corresponding PDFView field.
max_scale_factor: f64Mirrors the corresponding PDFView field.
auto_scales: boolMirrors the corresponding PDFView field.
scale_factor_for_size_to_fit: f64Mirrors the corresponding PDFView field.
in_markup_mode: boolMirrors the corresponding PDFView field.
has_document_view: boolMirrors the corresponding PDFView field.
visible_page_count: usizeMirrors the corresponding PDFView field.
current_page_label: Option<String>Mirrors the corresponding PDFView field.
Implementations§
Source§impl PdfViewInfo
impl PdfViewInfo
Sourcepub fn display_mode_enum(&self) -> Option<PdfDisplayMode>
pub fn display_mode_enum(&self) -> Option<PdfDisplayMode>
Converts the stored raw PDFKit value into a typed enum.
Sourcepub fn display_direction_enum(&self) -> Option<PdfDisplayDirection>
pub fn display_direction_enum(&self) -> Option<PdfDisplayDirection>
Converts the stored raw PDFKit value into a typed enum.
Sourcepub fn interpolation_quality_enum(&self) -> Option<PdfInterpolationQuality>
pub fn interpolation_quality_enum(&self) -> Option<PdfInterpolationQuality>
Converts the stored raw PDFKit value into a typed enum.
Sourcepub fn display_box_enum(&self) -> Option<DisplayBox>
pub fn display_box_enum(&self) -> Option<DisplayBox>
Converts the stored raw PDFKit value into a typed enum.
Trait Implementations§
Source§impl Clone for PdfViewInfo
impl Clone for PdfViewInfo
Source§fn clone(&self) -> PdfViewInfo
fn clone(&self) -> PdfViewInfo
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more