_cef_print_settings_t

Struct _cef_print_settings_t 

Source
#[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_t

Base 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

Source§

fn clone(&self) -> _cef_print_settings_t

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for _cef_print_settings_t

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Copy for _cef_print_settings_t

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.