#[repr(C)]pub struct _cef_print_settings_t {Show 23 fields
pub base: cef_base_ref_counted_t,
pub is_valid: Option<unsafe extern "C" fn(self_: *mut _cef_print_settings_t) -> c_int>,
pub is_read_only: Option<unsafe extern "C" fn(self_: *mut _cef_print_settings_t) -> c_int>,
pub set_orientation: Option<unsafe extern "C" fn(self_: *mut _cef_print_settings_t, landscape: c_int)>,
pub is_landscape: Option<unsafe extern "C" fn(self_: *mut _cef_print_settings_t) -> c_int>,
pub set_printer_printable_area: Option<unsafe extern "C" fn(self_: *mut _cef_print_settings_t, physical_size_device_units: *const cef_size_t, printable_area_device_units: *const cef_rect_t, landscape_needs_flip: c_int)>,
pub set_device_name: Option<unsafe extern "C" fn(self_: *mut _cef_print_settings_t, name: *const cef_string_t)>,
pub get_device_name: Option<unsafe extern "C" fn(self_: *mut _cef_print_settings_t) -> cef_string_userfree_t>,
pub set_dpi: Option<unsafe extern "C" fn(self_: *mut _cef_print_settings_t, dpi: c_int)>,
pub get_dpi: Option<unsafe extern "C" fn(self_: *mut _cef_print_settings_t) -> c_int>,
pub set_page_ranges: Option<unsafe extern "C" fn(self_: *mut _cef_print_settings_t, rangesCount: usize, ranges: *const cef_range_t)>,
pub get_page_ranges_count: Option<unsafe extern "C" fn(self_: *mut _cef_print_settings_t) -> usize>,
pub get_page_ranges: Option<unsafe extern "C" fn(self_: *mut _cef_print_settings_t, rangesCount: *mut usize, ranges: *mut cef_range_t)>,
pub set_selection_only: Option<unsafe extern "C" fn(self_: *mut _cef_print_settings_t, selection_only: c_int)>,
pub is_selection_only: Option<unsafe extern "C" fn(self_: *mut _cef_print_settings_t) -> c_int>,
pub set_collate: Option<unsafe extern "C" fn(self_: *mut _cef_print_settings_t, collate: c_int)>,
pub will_collate: Option<unsafe extern "C" fn(self_: *mut _cef_print_settings_t) -> c_int>,
pub set_color_model: Option<unsafe extern "C" fn(self_: *mut _cef_print_settings_t, model: cef_color_model_t)>,
pub get_color_model: Option<unsafe extern "C" fn(self_: *mut _cef_print_settings_t) -> cef_color_model_t>,
pub set_copies: Option<unsafe extern "C" fn(self_: *mut _cef_print_settings_t, copies: c_int)>,
pub get_copies: Option<unsafe extern "C" fn(self_: *mut _cef_print_settings_t) -> c_int>,
pub set_duplex_mode: Option<unsafe extern "C" fn(self_: *mut _cef_print_settings_t, mode: cef_duplex_mode_t)>,
pub get_duplex_mode: Option<unsafe extern "C" fn(self_: *mut _cef_print_settings_t) -> cef_duplex_mode_t>,
}Expand description
Structure representing print settings.
NOTE: This struct is allocated DLL-side.
Fields§
§base: cef_base_ref_counted_tBase structure.
is_valid: Option<unsafe extern "C" fn(self_: *mut _cef_print_settings_t) -> c_int>Returns true (1) if this object is valid. Do not call any other functions if this function returns false (0).
is_read_only: Option<unsafe extern "C" fn(self_: *mut _cef_print_settings_t) -> c_int>Returns true (1) if the values of this object are read-only. Some APIs may expose read-only objects.
set_orientation: Option<unsafe extern "C" fn(self_: *mut _cef_print_settings_t, landscape: c_int)>Set the page orientation.
is_landscape: Option<unsafe extern "C" fn(self_: *mut _cef_print_settings_t) -> c_int>Returns true (1) if the orientation is landscape.
set_printer_printable_area: Option<unsafe extern "C" fn(self_: *mut _cef_print_settings_t, physical_size_device_units: *const cef_size_t, printable_area_device_units: *const cef_rect_t, landscape_needs_flip: c_int)>Set the printer printable area in device units. Some platforms already provide flipped area. Set |landscape_needs_flip| to false (0) on those platforms to avoid double flipping.
set_device_name: Option<unsafe extern "C" fn(self_: *mut _cef_print_settings_t, name: *const cef_string_t)>Set the device name.
get_device_name: Option<unsafe extern "C" fn(self_: *mut _cef_print_settings_t) -> cef_string_userfree_t>Get the device name.
set_dpi: Option<unsafe extern "C" fn(self_: *mut _cef_print_settings_t, dpi: c_int)>Set the DPI (dots per inch).
get_dpi: Option<unsafe extern "C" fn(self_: *mut _cef_print_settings_t) -> c_int>Get the DPI (dots per inch).
set_page_ranges: Option<unsafe extern "C" fn(self_: *mut _cef_print_settings_t, rangesCount: usize, ranges: *const cef_range_t)>Set the page ranges.
get_page_ranges_count: Option<unsafe extern "C" fn(self_: *mut _cef_print_settings_t) -> usize>Returns the number of page ranges that currently exist.
get_page_ranges: Option<unsafe extern "C" fn(self_: *mut _cef_print_settings_t, rangesCount: *mut usize, ranges: *mut cef_range_t)>Retrieve the page ranges.
set_selection_only: Option<unsafe extern "C" fn(self_: *mut _cef_print_settings_t, selection_only: c_int)>Set whether only the selection will be printed.
is_selection_only: Option<unsafe extern "C" fn(self_: *mut _cef_print_settings_t) -> c_int>Returns true (1) if only the selection will be printed.
set_collate: Option<unsafe extern "C" fn(self_: *mut _cef_print_settings_t, collate: c_int)>Set whether pages will be collated.
will_collate: Option<unsafe extern "C" fn(self_: *mut _cef_print_settings_t) -> c_int>Returns true (1) if pages will be collated.
set_color_model: Option<unsafe extern "C" fn(self_: *mut _cef_print_settings_t, model: cef_color_model_t)>Set the color model.
get_color_model: Option<unsafe extern "C" fn(self_: *mut _cef_print_settings_t) -> cef_color_model_t>Get the color model.
set_copies: Option<unsafe extern "C" fn(self_: *mut _cef_print_settings_t, copies: c_int)>Set the number of copies.
get_copies: Option<unsafe extern "C" fn(self_: *mut _cef_print_settings_t) -> c_int>Get the number of copies.
set_duplex_mode: Option<unsafe extern "C" fn(self_: *mut _cef_print_settings_t, mode: cef_duplex_mode_t)>Set the duplex mode.
get_duplex_mode: Option<unsafe extern "C" fn(self_: *mut _cef_print_settings_t) -> cef_duplex_mode_t>Get the duplex mode.
Trait Implementations§
Source§impl Clone for _cef_print_settings_t
impl Clone for _cef_print_settings_t
Source§fn clone(&self) -> _cef_print_settings_t
fn clone(&self) -> _cef_print_settings_t
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more