pub trait PdfViewDelegate: 'static {
// Provided methods
fn handle_link_click(&mut self, _view: PdfView, _url: &str) -> bool { ... }
fn will_change_scale_factor(
&mut self,
_view: PdfView,
scale_factor: f64,
) -> f64 { ... }
fn print_job_title(&mut self, _view: PdfView) -> Option<String> { ... }
fn perform_print(&mut self, _view: PdfView) -> bool { ... }
fn perform_find(&mut self, _view: PdfView) -> bool { ... }
fn perform_go_to_page(&mut self, _view: PdfView) -> bool { ... }
fn open_pdf_for_remote_goto_action(
&mut self,
_view: PdfView,
_action: PdfActionRemoteGoTo,
) -> bool { ... }
}Expand description
Mirrors the PDFViewDelegate callback surface.
Provided Methods§
Sourcefn handle_link_click(&mut self, _view: PdfView, _url: &str) -> bool
fn handle_link_click(&mut self, _view: PdfView, _url: &str) -> bool
Mirrors the corresponding PDFViewDelegate callback.
Sourcefn will_change_scale_factor(&mut self, _view: PdfView, scale_factor: f64) -> f64
fn will_change_scale_factor(&mut self, _view: PdfView, scale_factor: f64) -> f64
Mirrors the corresponding PDFViewDelegate callback.
Sourcefn print_job_title(&mut self, _view: PdfView) -> Option<String>
fn print_job_title(&mut self, _view: PdfView) -> Option<String>
Mirrors the corresponding PDFViewDelegate callback.
Sourcefn perform_print(&mut self, _view: PdfView) -> bool
fn perform_print(&mut self, _view: PdfView) -> bool
Mirrors the corresponding PDFViewDelegate callback.
Sourcefn perform_find(&mut self, _view: PdfView) -> bool
fn perform_find(&mut self, _view: PdfView) -> bool
Mirrors the corresponding PDFViewDelegate callback.
Sourcefn perform_go_to_page(&mut self, _view: PdfView) -> bool
fn perform_go_to_page(&mut self, _view: PdfView) -> bool
Mirrors the corresponding PDFViewDelegate callback.
Sourcefn open_pdf_for_remote_goto_action(
&mut self,
_view: PdfView,
_action: PdfActionRemoteGoTo,
) -> bool
fn open_pdf_for_remote_goto_action( &mut self, _view: PdfView, _action: PdfActionRemoteGoTo, ) -> bool
Mirrors the corresponding PDFViewDelegate callback.