pub trait SettingsExt:
IsA<Settings>
+ Sealed
+ 'static {
Show 184 methods
// Provided methods
fn allows_file_access_from_file_urls(&self) -> bool { ... }
fn allows_modal_dialogs(&self) -> bool { ... }
fn allows_top_navigation_to_data_urls(&self) -> bool { ... }
fn allows_universal_access_from_file_urls(&self) -> bool { ... }
fn is_auto_load_images(&self) -> bool { ... }
fn cursive_font_family(&self) -> Option<GString> { ... }
fn default_charset(&self) -> Option<GString> { ... }
fn default_font_family(&self) -> Option<GString> { ... }
fn default_font_size(&self) -> u32 { ... }
fn default_monospace_font_size(&self) -> u32 { ... }
fn is_disable_web_security(&self) -> bool { ... }
fn draws_compositing_indicators(&self) -> bool { ... }
fn enables_accelerated_2d_canvas(&self) -> bool { ... }
fn enables_back_forward_navigation_gestures(&self) -> bool { ... }
fn enables_caret_browsing(&self) -> bool { ... }
fn enables_developer_extras(&self) -> bool { ... }
fn enables_dns_prefetching(&self) -> bool { ... }
fn enables_encrypted_media(&self) -> bool { ... }
fn enables_frame_flattening(&self) -> bool { ... }
fn enables_fullscreen(&self) -> bool { ... }
fn enables_html5_database(&self) -> bool { ... }
fn enables_html5_local_storage(&self) -> bool { ... }
fn enables_hyperlink_auditing(&self) -> bool { ... }
fn enables_java(&self) -> bool { ... }
fn enables_javascript(&self) -> bool { ... }
fn enables_javascript_markup(&self) -> bool { ... }
fn enables_media(&self) -> bool { ... }
fn enables_media_capabilities(&self) -> bool { ... }
fn enables_media_stream(&self) -> bool { ... }
fn enables_mediasource(&self) -> bool { ... }
fn enables_mock_capture_devices(&self) -> bool { ... }
fn enables_offline_web_application_cache(&self) -> bool { ... }
fn enables_page_cache(&self) -> bool { ... }
fn enables_plugins(&self) -> bool { ... }
fn enables_private_browsing(&self) -> bool { ... }
fn enables_resizable_text_areas(&self) -> bool { ... }
fn enables_site_specific_quirks(&self) -> bool { ... }
fn enables_smooth_scrolling(&self) -> bool { ... }
fn enables_spatial_navigation(&self) -> bool { ... }
fn enables_tabs_to_links(&self) -> bool { ... }
fn enables_webaudio(&self) -> bool { ... }
fn enables_webgl(&self) -> bool { ... }
fn enables_webrtc(&self) -> bool { ... }
fn enables_write_console_messages_to_stdout(&self) -> bool { ... }
fn enables_xss_auditor(&self) -> bool { ... }
fn fantasy_font_family(&self) -> Option<GString> { ... }
fn hardware_acceleration_policy(&self) -> HardwareAccelerationPolicy { ... }
fn is_javascript_can_access_clipboard(&self) -> bool { ... }
fn is_javascript_can_open_windows_automatically(&self) -> bool { ... }
fn is_load_icons_ignoring_image_load_setting(&self) -> bool { ... }
fn media_content_types_requiring_hardware_support(&self) -> Option<GString> { ... }
fn is_media_playback_allows_inline(&self) -> bool { ... }
fn is_media_playback_requires_user_gesture(&self) -> bool { ... }
fn minimum_font_size(&self) -> u32 { ... }
fn monospace_font_family(&self) -> Option<GString> { ... }
fn pictograph_font_family(&self) -> Option<GString> { ... }
fn is_print_backgrounds(&self) -> bool { ... }
fn sans_serif_font_family(&self) -> Option<GString> { ... }
fn serif_font_family(&self) -> Option<GString> { ... }
fn user_agent(&self) -> Option<GString> { ... }
fn is_zoom_text_only(&self) -> bool { ... }
fn set_allow_file_access_from_file_urls(&self, allowed: bool) { ... }
fn set_allow_modal_dialogs(&self, allowed: bool) { ... }
fn set_allow_top_navigation_to_data_urls(&self, allowed: bool) { ... }
fn set_allow_universal_access_from_file_urls(&self, allowed: bool) { ... }
fn set_auto_load_images(&self, enabled: bool) { ... }
fn set_cursive_font_family(&self, cursive_font_family: &str) { ... }
fn set_default_charset(&self, default_charset: &str) { ... }
fn set_default_font_family(&self, default_font_family: &str) { ... }
fn set_default_font_size(&self, font_size: u32) { ... }
fn set_default_monospace_font_size(&self, font_size: u32) { ... }
fn set_disable_web_security(&self, disabled: bool) { ... }
fn set_draw_compositing_indicators(&self, enabled: bool) { ... }
fn set_enable_accelerated_2d_canvas(&self, enabled: bool) { ... }
fn set_enable_back_forward_navigation_gestures(&self, enabled: bool) { ... }
fn set_enable_caret_browsing(&self, enabled: bool) { ... }
fn set_enable_developer_extras(&self, enabled: bool) { ... }
fn set_enable_dns_prefetching(&self, enabled: bool) { ... }
fn set_enable_encrypted_media(&self, enabled: bool) { ... }
fn set_enable_frame_flattening(&self, enabled: bool) { ... }
fn set_enable_fullscreen(&self, enabled: bool) { ... }
fn set_enable_html5_database(&self, enabled: bool) { ... }
fn set_enable_html5_local_storage(&self, enabled: bool) { ... }
fn set_enable_hyperlink_auditing(&self, enabled: bool) { ... }
fn set_enable_java(&self, enabled: bool) { ... }
fn set_enable_javascript(&self, enabled: bool) { ... }
fn set_enable_javascript_markup(&self, enabled: bool) { ... }
fn set_enable_media(&self, enabled: bool) { ... }
fn set_enable_media_capabilities(&self, enabled: bool) { ... }
fn set_enable_media_stream(&self, enabled: bool) { ... }
fn set_enable_mediasource(&self, enabled: bool) { ... }
fn set_enable_mock_capture_devices(&self, enabled: bool) { ... }
fn set_enable_offline_web_application_cache(&self, enabled: bool) { ... }
fn set_enable_page_cache(&self, enabled: bool) { ... }
fn set_enable_plugins(&self, enabled: bool) { ... }
fn set_enable_private_browsing(&self, enabled: bool) { ... }
fn set_enable_resizable_text_areas(&self, enabled: bool) { ... }
fn set_enable_site_specific_quirks(&self, enabled: bool) { ... }
fn set_enable_smooth_scrolling(&self, enabled: bool) { ... }
fn set_enable_spatial_navigation(&self, enabled: bool) { ... }
fn set_enable_tabs_to_links(&self, enabled: bool) { ... }
fn set_enable_webaudio(&self, enabled: bool) { ... }
fn set_enable_webgl(&self, enabled: bool) { ... }
fn set_enable_webrtc(&self, enabled: bool) { ... }
fn set_enable_write_console_messages_to_stdout(&self, enabled: bool) { ... }
fn set_enable_xss_auditor(&self, enabled: bool) { ... }
fn set_fantasy_font_family(&self, fantasy_font_family: &str) { ... }
fn set_hardware_acceleration_policy(
&self,
policy: HardwareAccelerationPolicy,
) { ... }
fn set_javascript_can_access_clipboard(&self, enabled: bool) { ... }
fn set_javascript_can_open_windows_automatically(&self, enabled: bool) { ... }
fn set_load_icons_ignoring_image_load_setting(&self, enabled: bool) { ... }
fn set_media_content_types_requiring_hardware_support(
&self,
content_types: Option<&str>,
) { ... }
fn set_media_playback_allows_inline(&self, enabled: bool) { ... }
fn set_media_playback_requires_user_gesture(&self, enabled: bool) { ... }
fn set_minimum_font_size(&self, font_size: u32) { ... }
fn set_monospace_font_family(&self, monospace_font_family: &str) { ... }
fn set_pictograph_font_family(&self, pictograph_font_family: &str) { ... }
fn set_print_backgrounds(&self, print_backgrounds: bool) { ... }
fn set_sans_serif_font_family(&self, sans_serif_font_family: &str) { ... }
fn set_serif_font_family(&self, serif_font_family: &str) { ... }
fn set_user_agent(&self, user_agent: Option<&str>) { ... }
fn set_user_agent_with_application_details(
&self,
application_name: Option<&str>,
application_version: Option<&str>,
) { ... }
fn set_zoom_text_only(&self, zoom_text_only: bool) { ... }
fn connect_allow_file_access_from_file_urls_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_allow_modal_dialogs_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_allow_top_navigation_to_data_urls_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_allow_universal_access_from_file_urls_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_auto_load_images_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_cursive_font_family_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_default_charset_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_default_font_family_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_default_font_size_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_default_monospace_font_size_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_disable_web_security_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_draw_compositing_indicators_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_enable_accelerated_2d_canvas_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_enable_back_forward_navigation_gestures_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_enable_caret_browsing_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_enable_developer_extras_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_enable_dns_prefetching_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_enable_encrypted_media_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_enable_frame_flattening_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_enable_fullscreen_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_enable_html5_database_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_enable_html5_local_storage_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_enable_hyperlink_auditing_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_enable_java_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_enable_javascript_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_enable_javascript_markup_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_enable_media_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_enable_media_capabilities_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_enable_media_stream_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_enable_mediasource_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_enable_mock_capture_devices_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_enable_offline_web_application_cache_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_enable_page_cache_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_enable_plugins_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_enable_private_browsing_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_enable_resizable_text_areas_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_enable_site_specific_quirks_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_enable_smooth_scrolling_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_enable_spatial_navigation_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_enable_tabs_to_links_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_enable_webaudio_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_enable_webgl_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_enable_webrtc_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_enable_write_console_messages_to_stdout_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_enable_xss_auditor_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_fantasy_font_family_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_hardware_acceleration_policy_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_javascript_can_access_clipboard_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_javascript_can_open_windows_automatically_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_load_icons_ignoring_image_load_setting_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_media_content_types_requiring_hardware_support_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_media_playback_allows_inline_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_media_playback_requires_user_gesture_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_minimum_font_size_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_monospace_font_family_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_pictograph_font_family_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_print_backgrounds_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_sans_serif_font_family_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_serif_font_family_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_user_agent_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_zoom_text_only_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
}
Provided Methodsยง
fn allows_file_access_from_file_urls(&self) -> bool
Available on crate feature
v2_10
only.fn allows_modal_dialogs(&self) -> bool
Available on crate feature
v2_28
only.fn allows_universal_access_from_file_urls(&self) -> bool
Available on crate feature
v2_14
only.fn is_auto_load_images(&self) -> bool
fn cursive_font_family(&self) -> Option<GString>
fn default_charset(&self) -> Option<GString>
fn default_font_family(&self) -> Option<GString>
fn default_font_size(&self) -> u32
fn default_monospace_font_size(&self) -> u32
fn is_disable_web_security(&self) -> bool
Available on crate feature
v2_40
only.fn draws_compositing_indicators(&self) -> bool
fn enables_accelerated_2d_canvas(&self) -> bool
๐Deprecated: Since 2.32
Available on crate feature
v2_2
only.Available on crate feature
v2_24
only.fn enables_caret_browsing(&self) -> bool
fn enables_developer_extras(&self) -> bool
fn enables_dns_prefetching(&self) -> bool
fn enables_encrypted_media(&self) -> bool
Available on crate feature
v2_20
only.fn enables_frame_flattening(&self) -> bool
๐Deprecated: Since 2.38
fn enables_fullscreen(&self) -> bool
fn enables_html5_database(&self) -> bool
fn enables_html5_local_storage(&self) -> bool
fn enables_hyperlink_auditing(&self) -> bool
fn enables_java(&self) -> bool
๐Deprecated: Since 2.38
fn enables_javascript(&self) -> bool
fn enables_javascript_markup(&self) -> bool
Available on crate feature
v2_24
only.fn enables_media(&self) -> bool
Available on crate feature
v2_26
only.fn enables_media_capabilities(&self) -> bool
Available on crate feature
v2_22
only.fn enables_media_stream(&self) -> bool
Available on crate feature
v2_4
only.fn enables_mediasource(&self) -> bool
Available on crate feature
v2_4
only.fn enables_mock_capture_devices(&self) -> bool
Available on crate feature
v2_24
only.fn enables_offline_web_application_cache(&self) -> bool
fn enables_page_cache(&self) -> bool
fn enables_plugins(&self) -> bool
๐Deprecated: Since 2.32
fn enables_private_browsing(&self) -> bool
๐Deprecated: Since 2.16
fn enables_resizable_text_areas(&self) -> bool
fn enables_site_specific_quirks(&self) -> bool
fn enables_smooth_scrolling(&self) -> bool
Available on crate feature
v2_2
only.fn enables_tabs_to_links(&self) -> bool
fn enables_webaudio(&self) -> bool
fn enables_webgl(&self) -> bool
fn enables_webrtc(&self) -> bool
Available on crate feature
v2_38
only.fn enables_write_console_messages_to_stdout(&self) -> bool
Available on crate feature
v2_2
only.fn enables_xss_auditor(&self) -> bool
๐Deprecated: Since 2.38
fn fantasy_font_family(&self) -> Option<GString>
fn hardware_acceleration_policy(&self) -> HardwareAccelerationPolicy
Available on crate feature
v2_16
only.fn is_javascript_can_access_clipboard(&self) -> bool
fn is_javascript_can_open_windows_automatically(&self) -> bool
fn is_load_icons_ignoring_image_load_setting(&self) -> bool
fn media_content_types_requiring_hardware_support(&self) -> Option<GString>
Available on crate feature
v2_30
only.fn is_media_playback_allows_inline(&self) -> bool
fn is_media_playback_requires_user_gesture(&self) -> bool
fn minimum_font_size(&self) -> u32
fn monospace_font_family(&self) -> Option<GString>
fn pictograph_font_family(&self) -> Option<GString>
fn is_print_backgrounds(&self) -> bool
fn sans_serif_font_family(&self) -> Option<GString>
fn serif_font_family(&self) -> Option<GString>
fn user_agent(&self) -> Option<GString>
fn is_zoom_text_only(&self) -> bool
fn set_allow_file_access_from_file_urls(&self, allowed: bool)
Available on crate feature
v2_10
only.fn set_allow_modal_dialogs(&self, allowed: bool)
Available on crate feature
v2_28
only.fn set_allow_universal_access_from_file_urls(&self, allowed: bool)
Available on crate feature
v2_14
only.fn set_auto_load_images(&self, enabled: bool)
fn set_cursive_font_family(&self, cursive_font_family: &str)
fn set_default_charset(&self, default_charset: &str)
fn set_default_font_family(&self, default_font_family: &str)
fn set_default_font_size(&self, font_size: u32)
fn set_default_monospace_font_size(&self, font_size: u32)
fn set_disable_web_security(&self, disabled: bool)
Available on crate feature
v2_40
only.fn set_draw_compositing_indicators(&self, enabled: bool)
fn set_enable_accelerated_2d_canvas(&self, enabled: bool)
๐Deprecated: Since 2.32
Available on crate feature
v2_2
only.Available on crate feature
v2_24
only.fn set_enable_caret_browsing(&self, enabled: bool)
Sourcefn set_enable_developer_extras(&self, enabled: bool)
fn set_enable_developer_extras(&self, enabled: bool)
Examples found in repository?
examples/main.rs (line 51)
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78
fn main() {
gtk::init().unwrap();
let window = Window::new(WindowType::Toplevel);
let context = WebContext::default().unwrap();
#[cfg(feature = "v2_4")]
context.set_web_extensions_initialization_user_data(&"webkit".to_variant());
context.set_web_extensions_directory("../webkit2gtk-webextension-rs/example/target/debug/");
#[cfg(feature = "v2_6")]
let webview =
WebView::new_with_context_and_user_content_manager(&context, &UserContentManager::new());
#[cfg(not(feature = "v2_6"))]
let webview = WebView::with_context(&context);
webview.load_uri("https://crates.io/");
window.add(&webview);
let settings = WebViewExt::settings(&webview).unwrap();
settings.set_enable_developer_extras(true);
/*let inspector = webview.get_inspector().unwrap();
inspector.show();*/
window.show_all();
webview.run_javascript("alert('Hello');", None::<&gio::Cancellable>, |_result| {});
#[cfg(feature = "v2_22")]
webview.run_javascript("42", None::<&gio::Cancellable>, |result| match result {
Ok(result) => {
use java_script_core::ValueExt;
let value = result.js_value().unwrap();
println!("is_boolean: {}", value.is_boolean());
println!("is_number: {}", value.is_number());
println!("{:?}", value.to_int32());
println!("{:?}", value.to_boolean());
}
Err(error) => println!("{}", error),
});
window.connect_delete_event(|_, _| {
gtk::main_quit();
glib::Propagation::Proceed
});
gtk::main();
}
fn set_enable_dns_prefetching(&self, enabled: bool)
fn set_enable_encrypted_media(&self, enabled: bool)
Available on crate feature
v2_20
only.fn set_enable_frame_flattening(&self, enabled: bool)
๐Deprecated: Since 2.38
fn set_enable_fullscreen(&self, enabled: bool)
fn set_enable_html5_database(&self, enabled: bool)
fn set_enable_html5_local_storage(&self, enabled: bool)
fn set_enable_hyperlink_auditing(&self, enabled: bool)
fn set_enable_java(&self, enabled: bool)
๐Deprecated: Since 2.38
fn set_enable_javascript(&self, enabled: bool)
fn set_enable_javascript_markup(&self, enabled: bool)
Available on crate feature
v2_24
only.fn set_enable_media(&self, enabled: bool)
Available on crate feature
v2_26
only.fn set_enable_media_capabilities(&self, enabled: bool)
Available on crate feature
v2_22
only.fn set_enable_media_stream(&self, enabled: bool)
Available on crate feature
v2_4
only.fn set_enable_mediasource(&self, enabled: bool)
Available on crate feature
v2_4
only.fn set_enable_mock_capture_devices(&self, enabled: bool)
Available on crate feature
v2_4
only.fn set_enable_offline_web_application_cache(&self, enabled: bool)
fn set_enable_page_cache(&self, enabled: bool)
fn set_enable_plugins(&self, enabled: bool)
๐Deprecated: Since 2.32
fn set_enable_private_browsing(&self, enabled: bool)
๐Deprecated: Since 2.16
fn set_enable_resizable_text_areas(&self, enabled: bool)
fn set_enable_site_specific_quirks(&self, enabled: bool)
fn set_enable_smooth_scrolling(&self, enabled: bool)
Available on crate feature
v2_2
only.fn set_enable_tabs_to_links(&self, enabled: bool)
fn set_enable_webaudio(&self, enabled: bool)
fn set_enable_webgl(&self, enabled: bool)
fn set_enable_webrtc(&self, enabled: bool)
Available on crate feature
v2_38
only.fn set_enable_write_console_messages_to_stdout(&self, enabled: bool)
Available on crate feature
v2_2
only.fn set_enable_xss_auditor(&self, enabled: bool)
๐Deprecated: Since 2.38
fn set_fantasy_font_family(&self, fantasy_font_family: &str)
fn set_hardware_acceleration_policy(&self, policy: HardwareAccelerationPolicy)
Available on crate feature
v2_16
only.fn set_javascript_can_access_clipboard(&self, enabled: bool)
fn set_javascript_can_open_windows_automatically(&self, enabled: bool)
fn set_load_icons_ignoring_image_load_setting(&self, enabled: bool)
fn set_media_content_types_requiring_hardware_support( &self, content_types: Option<&str>, )
Available on crate feature
v2_30
only.fn set_media_playback_allows_inline(&self, enabled: bool)
fn set_media_playback_requires_user_gesture(&self, enabled: bool)
fn set_minimum_font_size(&self, font_size: u32)
fn set_monospace_font_family(&self, monospace_font_family: &str)
fn set_pictograph_font_family(&self, pictograph_font_family: &str)
fn set_print_backgrounds(&self, print_backgrounds: bool)
fn set_sans_serif_font_family(&self, sans_serif_font_family: &str)
fn set_serif_font_family(&self, serif_font_family: &str)
fn set_user_agent(&self, user_agent: Option<&str>)
fn set_user_agent_with_application_details( &self, application_name: Option<&str>, application_version: Option<&str>, )
fn set_zoom_text_only(&self, zoom_text_only: bool)
fn connect_allow_file_access_from_file_urls_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
Available on crate feature
v2_10
only.fn connect_allow_modal_dialogs_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
Available on crate feature
v2_28
only.fn connect_allow_universal_access_from_file_urls_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
Available on crate feature
v2_14
only.fn connect_auto_load_images_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_cursive_font_family_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_default_charset_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_default_font_family_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_default_font_size_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_default_monospace_font_size_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_disable_web_security_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
Available on crate feature
v2_40
only.fn connect_draw_compositing_indicators_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_enable_accelerated_2d_canvas_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
๐Deprecated: Since 2.32
Available on crate feature
v2_2
only.Available on crate feature
v2_24
only.fn connect_enable_caret_browsing_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_enable_developer_extras_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_enable_dns_prefetching_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_enable_encrypted_media_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
Available on crate feature
v2_20
only.fn connect_enable_frame_flattening_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
๐Deprecated: Since 2.38
fn connect_enable_fullscreen_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_enable_html5_database_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_enable_html5_local_storage_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_enable_hyperlink_auditing_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_enable_java_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
๐Deprecated: Since 2.38
fn connect_enable_javascript_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_enable_javascript_markup_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
Available on crate feature
v2_24
only.fn connect_enable_media_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
Available on crate feature
v2_26
only.fn connect_enable_media_capabilities_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
Available on crate feature
v2_22
only.fn connect_enable_media_stream_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
Available on crate feature
v2_4
only.fn connect_enable_mediasource_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
Available on crate feature
v2_4
only.fn connect_enable_mock_capture_devices_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
Available on crate feature
v2_24
only.fn connect_enable_offline_web_application_cache_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_enable_page_cache_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_enable_plugins_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
๐Deprecated: Since 2.32
fn connect_enable_private_browsing_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
๐Deprecated: Since 2.16
fn connect_enable_resizable_text_areas_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_enable_site_specific_quirks_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_enable_smooth_scrolling_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
Available on crate feature
v2_4
only.fn connect_enable_tabs_to_links_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_enable_webaudio_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_enable_webgl_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_enable_webrtc_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
Available on crate feature
v2_38
only.fn connect_enable_write_console_messages_to_stdout_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
Available on crate feature
v2_2
only.fn connect_enable_xss_auditor_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
๐Deprecated: Since 2.38
fn connect_fantasy_font_family_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_hardware_acceleration_policy_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
Available on crate feature
v2_16
only.fn connect_javascript_can_access_clipboard_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_javascript_can_open_windows_automatically_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_load_icons_ignoring_image_load_setting_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_media_content_types_requiring_hardware_support_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
Available on crate feature
v2_30
only.fn connect_media_playback_allows_inline_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_media_playback_requires_user_gesture_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_minimum_font_size_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_monospace_font_family_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_pictograph_font_family_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_print_backgrounds_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_sans_serif_font_family_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_serif_font_family_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_user_agent_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_zoom_text_only_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
Dyn Compatibilityยง
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.