cef_print_settings_t

Type Alias cef_print_settings_t 

Source
pub type cef_print_settings_t = _cef_print_settings_t;
Expand description

Structure representing print settings.

NOTE: This struct is allocated DLL-side.

Aliased Type§

#[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(*mut _cef_print_settings_t) -> i32>, pub is_read_only: Option<unsafe extern "C" fn(*mut _cef_print_settings_t) -> i32>, pub set_orientation: Option<unsafe extern "C" fn(*mut _cef_print_settings_t, i32)>, pub is_landscape: Option<unsafe extern "C" fn(*mut _cef_print_settings_t) -> i32>, pub set_printer_printable_area: Option<unsafe extern "C" fn(*mut _cef_print_settings_t, *const _cef_size_t, *const _cef_rect_t, i32)>, pub set_device_name: Option<unsafe extern "C" fn(*mut _cef_print_settings_t, *const _cef_string_utf16_t)>, pub get_device_name: Option<unsafe extern "C" fn(*mut _cef_print_settings_t) -> *mut _cef_string_utf16_t>, pub set_dpi: Option<unsafe extern "C" fn(*mut _cef_print_settings_t, i32)>, pub get_dpi: Option<unsafe extern "C" fn(*mut _cef_print_settings_t) -> i32>, pub set_page_ranges: Option<unsafe extern "C" fn(*mut _cef_print_settings_t, usize, *const _cef_range_t)>, pub get_page_ranges_count: Option<unsafe extern "C" fn(*mut _cef_print_settings_t) -> usize>, pub get_page_ranges: Option<unsafe extern "C" fn(*mut _cef_print_settings_t, *mut usize, *mut _cef_range_t)>, pub set_selection_only: Option<unsafe extern "C" fn(*mut _cef_print_settings_t, i32)>, pub is_selection_only: Option<unsafe extern "C" fn(*mut _cef_print_settings_t) -> i32>, pub set_collate: Option<unsafe extern "C" fn(*mut _cef_print_settings_t, i32)>, pub will_collate: Option<unsafe extern "C" fn(*mut _cef_print_settings_t) -> i32>, pub set_color_model: Option<unsafe extern "C" fn(*mut _cef_print_settings_t, cef_color_model_t)>, pub get_color_model: Option<unsafe extern "C" fn(*mut _cef_print_settings_t) -> cef_color_model_t>, pub set_copies: Option<unsafe extern "C" fn(*mut _cef_print_settings_t, i32)>, pub get_copies: Option<unsafe extern "C" fn(*mut _cef_print_settings_t) -> i32>, pub set_duplex_mode: Option<unsafe extern "C" fn(*mut _cef_print_settings_t, cef_duplex_mode_t)>, pub get_duplex_mode: Option<unsafe extern "C" fn(*mut _cef_print_settings_t) -> cef_duplex_mode_t>,
}

Fields§

§base: _cef_base_ref_counted_t

Base structure.

§is_valid: Option<unsafe extern "C" fn(*mut _cef_print_settings_t) -> i32>

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(*mut _cef_print_settings_t) -> i32>

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(*mut _cef_print_settings_t, i32)>

Set the page orientation.

§is_landscape: Option<unsafe extern "C" fn(*mut _cef_print_settings_t) -> i32>

Returns true (1) if the orientation is landscape.

§set_printer_printable_area: Option<unsafe extern "C" fn(*mut _cef_print_settings_t, *const _cef_size_t, *const _cef_rect_t, i32)>

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(*mut _cef_print_settings_t, *const _cef_string_utf16_t)>

Set the device name.

§get_device_name: Option<unsafe extern "C" fn(*mut _cef_print_settings_t) -> *mut _cef_string_utf16_t>

Get the device name.

§set_dpi: Option<unsafe extern "C" fn(*mut _cef_print_settings_t, i32)>

Set the DPI (dots per inch).

§get_dpi: Option<unsafe extern "C" fn(*mut _cef_print_settings_t) -> i32>

Get the DPI (dots per inch).

§set_page_ranges: Option<unsafe extern "C" fn(*mut _cef_print_settings_t, usize, *const _cef_range_t)>

Set the page ranges.

§get_page_ranges_count: Option<unsafe extern "C" fn(*mut _cef_print_settings_t) -> usize>

Returns the number of page ranges that currently exist.

§get_page_ranges: Option<unsafe extern "C" fn(*mut _cef_print_settings_t, *mut usize, *mut _cef_range_t)>

Retrieve the page ranges.

§set_selection_only: Option<unsafe extern "C" fn(*mut _cef_print_settings_t, i32)>

Set whether only the selection will be printed.

§is_selection_only: Option<unsafe extern "C" fn(*mut _cef_print_settings_t) -> i32>

Returns true (1) if only the selection will be printed.

§set_collate: Option<unsafe extern "C" fn(*mut _cef_print_settings_t, i32)>

Set whether pages will be collated.

§will_collate: Option<unsafe extern "C" fn(*mut _cef_print_settings_t) -> i32>

Returns true (1) if pages will be collated.

§set_color_model: Option<unsafe extern "C" fn(*mut _cef_print_settings_t, cef_color_model_t)>

Set the color model.

§get_color_model: Option<unsafe extern "C" fn(*mut _cef_print_settings_t) -> cef_color_model_t>

Get the color model.

§set_copies: Option<unsafe extern "C" fn(*mut _cef_print_settings_t, i32)>

Set the number of copies.

§get_copies: Option<unsafe extern "C" fn(*mut _cef_print_settings_t) -> i32>

Get the number of copies.

§set_duplex_mode: Option<unsafe extern "C" fn(*mut _cef_print_settings_t, cef_duplex_mode_t)>

Set the duplex mode.

§get_duplex_mode: Option<unsafe extern "C" fn(*mut _cef_print_settings_t) -> cef_duplex_mode_t>

Get the duplex mode.