Skip to main content

cef_pdf_print_callback_t

Type Alias cef_pdf_print_callback_t 

Source
pub type cef_pdf_print_callback_t = _cef_pdf_print_callback_t;
Expand description

Callback structure for cef_browser_host_t::PrintToPDF. The functions of this structure will be called on the browser process UI thread.

NOTE: This struct is allocated client-side.

Aliased Type§

#[repr(C)]
pub struct cef_pdf_print_callback_t { pub base: _cef_base_ref_counted_t, pub on_pdf_print_finished: Option<unsafe extern "C" fn(*mut _cef_pdf_print_callback_t, *const _cef_string_utf16_t, i32)>, }

Fields§

§base: _cef_base_ref_counted_t

Base structure.

§on_pdf_print_finished: Option<unsafe extern "C" fn(*mut _cef_pdf_print_callback_t, *const _cef_string_utf16_t, i32)>

Method that will be executed when the PDF printing has completed. |path| is the output path. |ok| will be true (1) if the printing completed successfully or false (0) otherwise.