_cef_browser_settings_t

Struct _cef_browser_settings_t 

Source
#[repr(C)]
pub struct _cef_browser_settings_t {
Show 28 fields pub size: usize, pub windowless_frame_rate: c_int, pub standard_font_family: cef_string_t, pub fixed_font_family: cef_string_t, pub serif_font_family: cef_string_t, pub sans_serif_font_family: cef_string_t, pub cursive_font_family: cef_string_t, pub fantasy_font_family: cef_string_t, pub default_font_size: c_int, pub default_fixed_font_size: c_int, pub minimum_font_size: c_int, pub minimum_logical_font_size: c_int, pub default_encoding: cef_string_t, pub remote_fonts: cef_state_t, pub javascript: cef_state_t, pub javascript_close_windows: cef_state_t, pub javascript_access_clipboard: cef_state_t, pub javascript_dom_paste: cef_state_t, pub image_loading: cef_state_t, pub image_shrink_standalone_to_fit: cef_state_t, pub text_area_resize: cef_state_t, pub tab_to_links: cef_state_t, pub local_storage: cef_state_t, pub databases_deprecated: cef_state_t, pub webgl: cef_state_t, pub background_color: cef_color_t, pub chrome_status_bubble: cef_state_t, pub chrome_zoom_bubble: cef_state_t,
}
Expand description

Browser initialization settings. Specify NULL or 0 to get the recommended default values. The consequences of using custom values may not be well tested. Many of these and other settings can also configured using command- line switches.

Fields§

§size: usize

Size of this structure.

§windowless_frame_rate: c_int

The maximum rate in frames per second (fps) that CefRenderHandler::OnPaint will be called for a windowless browser. The actual fps may be lower if the browser cannot generate frames at the requested rate. The minimum value is 1 and the maximum value is 60 (default 30). This value can also be changed dynamically via CefBrowserHost::SetWindowlessFrameRate.

§standard_font_family: cef_string_t

Font settings.

§fixed_font_family: cef_string_t§serif_font_family: cef_string_t§sans_serif_font_family: cef_string_t§cursive_font_family: cef_string_t§fantasy_font_family: cef_string_t§default_font_size: c_int§default_fixed_font_size: c_int§minimum_font_size: c_int§minimum_logical_font_size: c_int§default_encoding: cef_string_t

Default encoding for Web content. If empty “ISO-8859-1” will be used. Also configurable using the “default-encoding” command-line switch.

§remote_fonts: cef_state_t

Controls the loading of fonts from remote sources. Also configurable using the “disable-remote-fonts” command-line switch.

§javascript: cef_state_t

Controls whether JavaScript can be executed. Also configurable using the “disable-javascript” command-line switch.

§javascript_close_windows: cef_state_t

Controls whether JavaScript can be used to close windows that were not opened via JavaScript. JavaScript can still be used to close windows that were opened via JavaScript or that have no back/forward history. Also configurable using the “disable-javascript-close-windows” command-line switch.

§javascript_access_clipboard: cef_state_t

Controls whether JavaScript can access the clipboard. Also configurable using the “disable-javascript-access-clipboard” command-line switch.

§javascript_dom_paste: cef_state_t

Controls whether DOM pasting is supported in the editor via execCommand(“paste”). The |javascript_access_clipboard| setting must also be enabled. Also configurable using the “disable-javascript-dom-paste” command-line switch.

§image_loading: cef_state_t

Controls whether image URLs will be loaded from the network. A cached image will still be rendered if requested. Also configurable using the “disable-image-loading” command-line switch.

§image_shrink_standalone_to_fit: cef_state_t

Controls whether standalone images will be shrunk to fit the page. Also configurable using the “image-shrink-standalone-to-fit” command-line switch.

§text_area_resize: cef_state_t

Controls whether text areas can be resized. Also configurable using the “disable-text-area-resize” command-line switch.

§tab_to_links: cef_state_t

Controls whether the tab key can advance focus to links. Also configurable using the “disable-tab-to-links” command-line switch.

§local_storage: cef_state_t

Controls whether local storage can be used. Also configurable using the “disable-local-storage” command-line switch.

§databases_deprecated: cef_state_t§webgl: cef_state_t

Controls whether WebGL can be used. Note that WebGL requires hardware support and may not work on all systems even when enabled. Also configurable using the “disable-webgl” command-line switch.

§background_color: cef_color_t

Background color used for the browser before a document is loaded and when no document color is specified. The alpha component must be either fully opaque (0xFF) or fully transparent (0x00). If the alpha component is fully opaque then the RGB components will be used as the background color. If the alpha component is fully transparent for a windowed browser then the CefSettings.background_color value will be used. If the alpha component is fully transparent for a windowless (off-screen) browser then transparent painting will be enabled.

§chrome_status_bubble: cef_state_t

Controls whether the Chrome status bubble will be used. Only supported with Chrome style. For details about the status bubble see https://www.chromium.org/user-experience/status-bubble/

§chrome_zoom_bubble: cef_state_t

Controls whether the Chrome zoom bubble will be shown when zooming. Only supported with Chrome style.

Trait Implementations§

Source§

impl Clone for _cef_browser_settings_t

Source§

fn clone(&self) -> _cef_browser_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_browser_settings_t

Source§

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

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

impl Copy for _cef_browser_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.