#[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: usizeSize of this structure.
windowless_frame_rate: c_intThe 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_tFont 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_tDefault 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_tControls the loading of fonts from remote sources. Also configurable using the “disable-remote-fonts” command-line switch.
javascript: cef_state_tControls whether JavaScript can be executed. Also configurable using the “disable-javascript” command-line switch.
javascript_close_windows: cef_state_tControls 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_tControls whether JavaScript can access the clipboard. Also configurable using the “disable-javascript-access-clipboard” command-line switch.
javascript_dom_paste: cef_state_tControls 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_tControls 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_tControls 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_tControls whether text areas can be resized. Also configurable using the “disable-text-area-resize” command-line switch.
tab_to_links: cef_state_tControls whether the tab key can advance focus to links. Also configurable using the “disable-tab-to-links” command-line switch.
local_storage: cef_state_tControls whether local storage can be used. Also configurable using the “disable-local-storage” command-line switch.
databases_deprecated: cef_state_t§webgl: cef_state_tControls 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_tBackground 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_tControls 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_tControls 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
impl Clone for _cef_browser_settings_t
Source§fn clone(&self) -> _cef_browser_settings_t
fn clone(&self) -> _cef_browser_settings_t
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more