pub struct PdfView { /* private fields */ }Expand description
Wraps PDFView.
Implementations§
Source§impl PdfView
impl PdfView
Sourcepub fn info(&self) -> Result<PdfViewInfo>
pub fn info(&self) -> Result<PdfViewInfo>
Wraps the corresponding PDFView API.
Sourcepub fn document(&self) -> Option<PdfDocument>
pub fn document(&self) -> Option<PdfDocument>
Wraps the corresponding PDFView API.
Sourcepub fn set_document(&self, document: Option<&PdfDocument>) -> Result<()>
pub fn set_document(&self, document: Option<&PdfDocument>) -> Result<()>
Wraps the corresponding PDFView API.
Sourcepub fn set_delegate(
&self,
delegate: Option<&PdfViewDelegateHandle>,
) -> Result<()>
pub fn set_delegate( &self, delegate: Option<&PdfViewDelegateHandle>, ) -> Result<()>
Wraps the corresponding PDFView API.
Sourcepub fn set_page_overlay_view_provider(
&self,
provider: Option<&PdfPageOverlayViewProviderHandle>,
) -> Result<()>
pub fn set_page_overlay_view_provider( &self, provider: Option<&PdfPageOverlayViewProviderHandle>, ) -> Result<()>
Wraps the corresponding PDFView API.
Sourcepub fn current_page(&self) -> Option<PdfPage>
pub fn current_page(&self) -> Option<PdfPage>
Wraps the corresponding PDFView API.
Sourcepub fn current_destination(&self) -> Option<PdfDestination>
pub fn current_destination(&self) -> Option<PdfDestination>
Wraps the corresponding PDFView API.
Sourcepub fn current_selection(&self) -> Option<PdfSelection>
pub fn current_selection(&self) -> Option<PdfSelection>
Wraps the corresponding PDFView API.
Sourcepub fn set_current_selection(
&self,
selection: Option<&PdfSelection>,
animate: bool,
) -> Result<()>
pub fn set_current_selection( &self, selection: Option<&PdfSelection>, animate: bool, ) -> Result<()>
Wraps the corresponding PDFView API.
Sourcepub fn clear_selection(&self)
pub fn clear_selection(&self)
Wraps the corresponding PDFView API.
Sourcepub fn go_to_page(&self, page: &PdfPage) -> Result<()>
pub fn go_to_page(&self, page: &PdfPage) -> Result<()>
Wraps the corresponding PDFView API.
Sourcepub fn go_to_destination(&self, destination: &PdfDestination) -> Result<()>
pub fn go_to_destination(&self, destination: &PdfDestination) -> Result<()>
Wraps the corresponding PDFView API.
Sourcepub fn go_to_selection(&self, selection: &PdfSelection) -> Result<()>
pub fn go_to_selection(&self, selection: &PdfSelection) -> Result<()>
Wraps the corresponding PDFView API.
Sourcepub fn set_display_mode(&self, mode: PdfDisplayMode) -> Result<()>
pub fn set_display_mode(&self, mode: PdfDisplayMode) -> Result<()>
Wraps the corresponding PDFView API.
Sourcepub fn set_display_direction(
&self,
direction: PdfDisplayDirection,
) -> Result<()>
pub fn set_display_direction( &self, direction: PdfDisplayDirection, ) -> Result<()>
Wraps the corresponding PDFView API.
Sourcepub fn set_display_box(&self, display_box: DisplayBox) -> Result<()>
pub fn set_display_box(&self, display_box: DisplayBox) -> Result<()>
Wraps the corresponding PDFView API.
Sourcepub fn set_auto_scales(&self, value: bool)
pub fn set_auto_scales(&self, value: bool)
Wraps the corresponding PDFView API.
Sourcepub fn set_scale_factor(&self, value: f64)
pub fn set_scale_factor(&self, value: f64)
Wraps the corresponding PDFView API.
Sourcepub fn set_min_scale_factor(&self, value: f64)
pub fn set_min_scale_factor(&self, value: f64)
Wraps the corresponding PDFView API.
Sourcepub fn set_max_scale_factor(&self, value: f64)
pub fn set_max_scale_factor(&self, value: f64)
Wraps the corresponding PDFView API.
Sourcepub fn layout_document_view(&self)
pub fn layout_document_view(&self)
Wraps the corresponding PDFView API.
Sourcepub fn area_of_interest_for_point(&self, point: PdfPoint) -> PdfAreaOfInterest
pub fn area_of_interest_for_point(&self, point: PdfPoint) -> PdfAreaOfInterest
Wraps the corresponding PDFView API.
Sourcepub fn visible_page_count(&self) -> usize
pub fn visible_page_count(&self) -> usize
Wraps the corresponding PDFView API.
Sourcepub fn visible_page(&self, index: usize) -> Option<PdfPage>
pub fn visible_page(&self, index: usize) -> Option<PdfPage>
Wraps the corresponding PDFView API.
Sourcepub fn visible_pages(&self) -> Vec<PdfPage>
pub fn visible_pages(&self) -> Vec<PdfPage>
Wraps the corresponding PDFView API.