Trait webkit2gtk::prelude::WebkitSettingsExt
source · [−]pub trait WebkitSettingsExt: 'static {
Show 181 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 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_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_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;
}
Expand description
Required Methods
sourcefn allows_file_access_from_file_urls(&self) -> bool
fn allows_file_access_from_file_urls(&self) -> bool
v2_10
only.sourcefn allows_modal_dialogs(&self) -> bool
fn allows_modal_dialogs(&self) -> bool
v2_28
only.sourcefn allows_universal_access_from_file_urls(&self) -> bool
fn allows_universal_access_from_file_urls(&self) -> bool
v2_14
only.sourcefn is_auto_load_images(&self) -> bool
fn is_auto_load_images(&self) -> bool
sourcefn cursive_font_family(&self) -> Option<GString>
fn cursive_font_family(&self) -> Option<GString>
Gets the property::Settings::cursive-font-family
property.
Returns
The default font family used to display content marked with cursive font.
sourcefn default_charset(&self) -> Option<GString>
fn default_charset(&self) -> Option<GString>
sourcefn default_font_family(&self) -> Option<GString>
fn default_font_family(&self) -> Option<GString>
Gets the property::Settings::default-font-family
property.
Returns
The default font family used to display content that does not specify a font.
sourcefn default_font_size(&self) -> u32
fn default_font_size(&self) -> u32
sourcefn default_monospace_font_size(&self) -> u32
fn default_monospace_font_size(&self) -> u32
Gets the property::Settings::default-monospace-font-size
property.
Returns
Default monospace font size, in pixels.
sourcefn draws_compositing_indicators(&self) -> bool
fn draws_compositing_indicators(&self) -> bool
sourcefn enables_accelerated_2d_canvas(&self) -> bool
fn enables_accelerated_2d_canvas(&self) -> bool
v2_2
only.Get the property::Settings::enable-accelerated-2d-canvas
property.
Deprecated since 2.32
Returns
true
if accelerated 2D canvas is enabled or false
otherwise.
v2_24
only.sourcefn enables_caret_browsing(&self) -> bool
fn enables_caret_browsing(&self) -> bool
sourcefn enables_developer_extras(&self) -> bool
fn enables_developer_extras(&self) -> bool
sourcefn enables_dns_prefetching(&self) -> bool
fn enables_dns_prefetching(&self) -> bool
sourcefn enables_encrypted_media(&self) -> bool
fn enables_encrypted_media(&self) -> bool
v2_20
only.sourcefn enables_frame_flattening(&self) -> bool
fn enables_frame_flattening(&self) -> bool
sourcefn enables_fullscreen(&self) -> bool
fn enables_fullscreen(&self) -> bool
sourcefn enables_html5_database(&self) -> bool
fn enables_html5_database(&self) -> bool
sourcefn enables_html5_local_storage(&self) -> bool
fn enables_html5_local_storage(&self) -> bool
sourcefn enables_hyperlink_auditing(&self) -> bool
fn enables_hyperlink_auditing(&self) -> bool
sourcefn enables_java(&self) -> bool
fn enables_java(&self) -> bool
Get the property::Settings::enable-java
property.
Deprecated since 2.38
This function always returns false
.
Returns
false
always.
sourcefn enables_javascript(&self) -> bool
fn enables_javascript(&self) -> bool
sourcefn enables_javascript_markup(&self) -> bool
fn enables_javascript_markup(&self) -> bool
v2_24
only.sourcefn enables_media(&self) -> bool
fn enables_media(&self) -> bool
v2_26
only.sourcefn enables_media_capabilities(&self) -> bool
fn enables_media_capabilities(&self) -> bool
v2_22
only.sourcefn enables_media_stream(&self) -> bool
fn enables_media_stream(&self) -> bool
v2_4
only.sourcefn enables_mediasource(&self) -> bool
fn enables_mediasource(&self) -> bool
v2_4
only.sourcefn enables_mock_capture_devices(&self) -> bool
fn enables_mock_capture_devices(&self) -> bool
v2_24
only.sourcefn enables_offline_web_application_cache(&self) -> bool
fn enables_offline_web_application_cache(&self) -> bool
sourcefn enables_page_cache(&self) -> bool
fn enables_page_cache(&self) -> bool
sourcefn enables_plugins(&self) -> bool
fn enables_plugins(&self) -> bool
sourcefn enables_private_browsing(&self) -> bool
fn enables_private_browsing(&self) -> bool
Get the property::Settings::enable-private-browsing
property.
Deprecated since 2.16
Use property::WebView::is-ephemeral
or property::WebContext::is-ephemeral
instead.
Returns
sourcefn enables_resizable_text_areas(&self) -> bool
fn enables_resizable_text_areas(&self) -> bool
sourcefn enables_site_specific_quirks(&self) -> bool
fn enables_site_specific_quirks(&self) -> bool
sourcefn enables_smooth_scrolling(&self) -> bool
fn enables_smooth_scrolling(&self) -> bool
v2_2
only.sourcefn enables_tabs_to_links(&self) -> bool
fn enables_tabs_to_links(&self) -> bool
sourcefn enables_webaudio(&self) -> bool
fn enables_webaudio(&self) -> bool
sourcefn enables_webgl(&self) -> bool
fn enables_webgl(&self) -> bool
sourcefn enables_webrtc(&self) -> bool
fn enables_webrtc(&self) -> bool
v2_38
only.sourcefn enables_write_console_messages_to_stdout(&self) -> bool
fn enables_write_console_messages_to_stdout(&self) -> bool
v2_2
only.sourcefn enables_xss_auditor(&self) -> bool
fn enables_xss_auditor(&self) -> bool
The XSS auditor has been removed. This function returns false
.
Deprecated since 2.38
This function does nothing.
Returns
sourcefn fantasy_font_family(&self) -> Option<GString>
fn fantasy_font_family(&self) -> Option<GString>
Gets the property::Settings::fantasy-font-family
property.
Returns
The default font family used to display content marked with fantasy font.
sourcefn hardware_acceleration_policy(&self) -> HardwareAccelerationPolicy
fn hardware_acceleration_policy(&self) -> HardwareAccelerationPolicy
v2_16
only.Get the property::Settings::hardware-acceleration-policy
property.
Returns
sourcefn is_javascript_can_access_clipboard(&self) -> bool
fn is_javascript_can_access_clipboard(&self) -> bool
sourcefn is_javascript_can_open_windows_automatically(&self) -> bool
fn is_javascript_can_open_windows_automatically(&self) -> bool
sourcefn is_load_icons_ignoring_image_load_setting(&self) -> bool
fn is_load_icons_ignoring_image_load_setting(&self) -> bool
sourcefn media_content_types_requiring_hardware_support(&self) -> Option<GString>
fn media_content_types_requiring_hardware_support(&self) -> Option<GString>
v2_30
only.sourcefn is_media_playback_allows_inline(&self) -> bool
fn is_media_playback_allows_inline(&self) -> bool
sourcefn is_media_playback_requires_user_gesture(&self) -> bool
fn is_media_playback_requires_user_gesture(&self) -> bool
sourcefn minimum_font_size(&self) -> u32
fn minimum_font_size(&self) -> u32
sourcefn monospace_font_family(&self) -> Option<GString>
fn monospace_font_family(&self) -> Option<GString>
Gets the property::Settings::monospace-font-family
property.
Returns
Default font family used to display content marked with monospace font.
sourcefn pictograph_font_family(&self) -> Option<GString>
fn pictograph_font_family(&self) -> Option<GString>
Gets the property::Settings::pictograph-font-family
property.
Returns
The default font family used to display content marked with pictograph font.
sourcefn is_print_backgrounds(&self) -> bool
fn is_print_backgrounds(&self) -> bool
sourcefn sans_serif_font_family(&self) -> Option<GString>
fn sans_serif_font_family(&self) -> Option<GString>
Gets the property::Settings::sans-serif-font-family
property.
Returns
The default font family used to display content marked with sans-serif font.
sourcefn serif_font_family(&self) -> Option<GString>
fn serif_font_family(&self) -> Option<GString>
Gets the property::Settings::serif-font-family
property.
Returns
The default font family used to display content marked with serif font.
sourcefn user_agent(&self) -> Option<GString>
fn user_agent(&self) -> Option<GString>
Get the property::Settings::user-agent
property.
Returns
The current value of the user-agent property.
sourcefn is_zoom_text_only(&self) -> bool
fn is_zoom_text_only(&self) -> bool
sourcefn set_allow_file_access_from_file_urls(&self, allowed: bool)
fn set_allow_file_access_from_file_urls(&self, allowed: bool)
v2_10
only.sourcefn set_allow_modal_dialogs(&self, allowed: bool)
fn set_allow_modal_dialogs(&self, allowed: bool)
v2_28
only.sourcefn set_allow_universal_access_from_file_urls(&self, allowed: bool)
fn set_allow_universal_access_from_file_urls(&self, allowed: bool)
v2_14
only.sourcefn set_auto_load_images(&self, enabled: bool)
fn set_auto_load_images(&self, enabled: bool)
sourcefn set_cursive_font_family(&self, cursive_font_family: &str)
fn set_cursive_font_family(&self, cursive_font_family: &str)
Set the property::Settings::cursive-font-family
property.
cursive_font_family
the new default cursive font family
sourcefn set_default_charset(&self, default_charset: &str)
fn set_default_charset(&self, default_charset: &str)
sourcefn set_default_font_family(&self, default_font_family: &str)
fn set_default_font_family(&self, default_font_family: &str)
Set the property::Settings::default-font-family
property.
default_font_family
the new default font family
sourcefn set_default_font_size(&self, font_size: u32)
fn set_default_font_size(&self, font_size: u32)
Set the property::Settings::default-font-size
property.
font_size
default font size to be set in pixels
sourcefn set_default_monospace_font_size(&self, font_size: u32)
fn set_default_monospace_font_size(&self, font_size: u32)
Set the property::Settings::default-monospace-font-size
property.
font_size
default monospace font size to be set in pixels
sourcefn set_draw_compositing_indicators(&self, enabled: bool)
fn set_draw_compositing_indicators(&self, enabled: bool)
sourcefn set_enable_accelerated_2d_canvas(&self, enabled: bool)
fn set_enable_accelerated_2d_canvas(&self, enabled: bool)
v2_2
only.Set the property::Settings::enable-accelerated-2d-canvas
property.
Deprecated since 2.32
enabled
Value to be set
v2_24
only.Set the property::Settings::enable-back-forward-navigation-gestures
property.
enabled
value to be set
sourcefn set_enable_caret_browsing(&self, enabled: bool)
fn set_enable_caret_browsing(&self, enabled: bool)
sourcefn set_enable_developer_extras(&self, enabled: bool)
fn set_enable_developer_extras(&self, enabled: bool)
sourcefn set_enable_dns_prefetching(&self, enabled: bool)
fn set_enable_dns_prefetching(&self, enabled: bool)
sourcefn set_enable_encrypted_media(&self, enabled: bool)
fn set_enable_encrypted_media(&self, enabled: bool)
v2_20
only.sourcefn set_enable_frame_flattening(&self, enabled: bool)
fn set_enable_frame_flattening(&self, enabled: bool)
Set the property::Settings::enable-frame-flattening
property.
Deprecated since 2.38
enabled
Value to be set
sourcefn set_enable_fullscreen(&self, enabled: bool)
fn set_enable_fullscreen(&self, enabled: bool)
sourcefn set_enable_html5_database(&self, enabled: bool)
fn set_enable_html5_database(&self, enabled: bool)
sourcefn set_enable_html5_local_storage(&self, enabled: bool)
fn set_enable_html5_local_storage(&self, enabled: bool)
sourcefn set_enable_hyperlink_auditing(&self, enabled: bool)
fn set_enable_hyperlink_auditing(&self, enabled: bool)
sourcefn set_enable_java(&self, enabled: bool)
fn set_enable_java(&self, enabled: bool)
Set the property::Settings::enable-java
property.
Deprecated function that does nothing.
Deprecated since 2.38
This function does nothing.
enabled
Value to be set
sourcefn set_enable_javascript(&self, enabled: bool)
fn set_enable_javascript(&self, enabled: bool)
sourcefn set_enable_javascript_markup(&self, enabled: bool)
fn set_enable_javascript_markup(&self, enabled: bool)
v2_24
only.sourcefn set_enable_media(&self, enabled: bool)
fn set_enable_media(&self, enabled: bool)
v2_26
only.sourcefn set_enable_media_capabilities(&self, enabled: bool)
fn set_enable_media_capabilities(&self, enabled: bool)
v2_22
only.sourcefn set_enable_media_stream(&self, enabled: bool)
fn set_enable_media_stream(&self, enabled: bool)
v2_4
only.sourcefn set_enable_mediasource(&self, enabled: bool)
fn set_enable_mediasource(&self, enabled: bool)
v2_4
only.sourcefn set_enable_mock_capture_devices(&self, enabled: bool)
fn set_enable_mock_capture_devices(&self, enabled: bool)
v2_4
only.sourcefn set_enable_offline_web_application_cache(&self, enabled: bool)
fn set_enable_offline_web_application_cache(&self, enabled: bool)
sourcefn set_enable_page_cache(&self, enabled: bool)
fn set_enable_page_cache(&self, enabled: bool)
sourcefn set_enable_plugins(&self, enabled: bool)
fn set_enable_plugins(&self, enabled: bool)
sourcefn set_enable_private_browsing(&self, enabled: bool)
fn set_enable_private_browsing(&self, enabled: bool)
Set the property::Settings::enable-private-browsing
property.
Deprecated since 2.16
Use property::WebView::is-ephemeral
or property::WebContext::is-ephemeral
instead.
enabled
Value to be set
sourcefn set_enable_resizable_text_areas(&self, enabled: bool)
fn set_enable_resizable_text_areas(&self, enabled: bool)
sourcefn set_enable_site_specific_quirks(&self, enabled: bool)
fn set_enable_site_specific_quirks(&self, enabled: bool)
sourcefn set_enable_smooth_scrolling(&self, enabled: bool)
fn set_enable_smooth_scrolling(&self, enabled: bool)
v2_2
only.sourcefn set_enable_tabs_to_links(&self, enabled: bool)
fn set_enable_tabs_to_links(&self, enabled: bool)
sourcefn set_enable_webaudio(&self, enabled: bool)
fn set_enable_webaudio(&self, enabled: bool)
sourcefn set_enable_webgl(&self, enabled: bool)
fn set_enable_webgl(&self, enabled: bool)
sourcefn set_enable_webrtc(&self, enabled: bool)
fn set_enable_webrtc(&self, enabled: bool)
v2_38
only.sourcefn set_enable_write_console_messages_to_stdout(&self, enabled: bool)
fn set_enable_write_console_messages_to_stdout(&self, enabled: bool)
v2_2
only.Set the property::Settings::enable-write-console-messages-to-stdout
property.
enabled
Value to be set
sourcefn set_enable_xss_auditor(&self, enabled: bool)
fn set_enable_xss_auditor(&self, enabled: bool)
The XSS auditor has been removed. This function does nothing.
Deprecated since 2.38
This function does nothing.
enabled
Value to be set
sourcefn set_fantasy_font_family(&self, fantasy_font_family: &str)
fn set_fantasy_font_family(&self, fantasy_font_family: &str)
Set the property::Settings::fantasy-font-family
property.
fantasy_font_family
the new default fantasy font family
sourcefn set_hardware_acceleration_policy(&self, policy: HardwareAccelerationPolicy)
fn set_hardware_acceleration_policy(&self, policy: HardwareAccelerationPolicy)
v2_16
only.Set the property::Settings::hardware-acceleration-policy
property.
policy
sourcefn set_javascript_can_access_clipboard(&self, enabled: bool)
fn set_javascript_can_access_clipboard(&self, enabled: bool)
sourcefn set_javascript_can_open_windows_automatically(&self, enabled: bool)
fn set_javascript_can_open_windows_automatically(&self, enabled: bool)
Set the property::Settings::javascript-can-open-windows-automatically
property.
enabled
Value to be set
sourcefn set_load_icons_ignoring_image_load_setting(&self, enabled: bool)
fn set_load_icons_ignoring_image_load_setting(&self, enabled: bool)
Set the property::Settings::load-icons-ignoring-image-load-setting
property.
enabled
Value to be set
sourcefn set_media_content_types_requiring_hardware_support(
&self,
content_types: Option<&str>
)
fn set_media_content_types_requiring_hardware_support(
&self,
content_types: Option<&str>
)
v2_30
only.Set the property::Settings::media-content-types-requiring-hardware-support
property.
content_types
list of media content types requiring hardware support split by semicolons (:) or None
to use the default value.
sourcefn set_media_playback_allows_inline(&self, enabled: bool)
fn set_media_playback_allows_inline(&self, enabled: bool)
sourcefn set_media_playback_requires_user_gesture(&self, enabled: bool)
fn set_media_playback_requires_user_gesture(&self, enabled: bool)
sourcefn set_minimum_font_size(&self, font_size: u32)
fn set_minimum_font_size(&self, font_size: u32)
Set the property::Settings::minimum-font-size
property.
font_size
minimum font size to be set in pixels
sourcefn set_monospace_font_family(&self, monospace_font_family: &str)
fn set_monospace_font_family(&self, monospace_font_family: &str)
Set the property::Settings::monospace-font-family
property.
monospace_font_family
the new default monospace font family
sourcefn set_pictograph_font_family(&self, pictograph_font_family: &str)
fn set_pictograph_font_family(&self, pictograph_font_family: &str)
Set the property::Settings::pictograph-font-family
property.
pictograph_font_family
the new default pictograph font family
sourcefn set_print_backgrounds(&self, print_backgrounds: bool)
fn set_print_backgrounds(&self, print_backgrounds: bool)
sourcefn set_sans_serif_font_family(&self, sans_serif_font_family: &str)
fn set_sans_serif_font_family(&self, sans_serif_font_family: &str)
Set the property::Settings::sans-serif-font-family
property.
sans_serif_font_family
the new default sans-serif font family
sourcefn set_serif_font_family(&self, serif_font_family: &str)
fn set_serif_font_family(&self, serif_font_family: &str)
Set the property::Settings::serif-font-family
property.
serif_font_family
the new default serif font family
sourcefn set_user_agent(&self, user_agent: Option<&str>)
fn set_user_agent(&self, user_agent: Option<&str>)
Set the property::Settings::user-agent
property.
user_agent
The new custom user agent string or None
to use the default user agent
sourcefn set_user_agent_with_application_details(
&self,
application_name: Option<&str>,
application_version: Option<&str>
)
fn set_user_agent_with_application_details(
&self,
application_name: Option<&str>,
application_version: Option<&str>
)
Set the property::Settings::user-agent
property by appending the application details.
Set the property::Settings::user-agent
property by appending the application details to the default user
agent. If no application name or version is given, the default user agent used will be used. If only
the version is given, the default engine version is used with the given application name.
application_name
The application name used for the user agent or None
to use the default user agent.
application_version
The application version for the user agent or None
to user the default version.
sourcefn set_zoom_text_only(&self, zoom_text_only: bool)
fn set_zoom_text_only(&self, zoom_text_only: bool)
sourcefn connect_allow_file_access_from_file_urls_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
fn connect_allow_file_access_from_file_urls_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
v2_10
only.fn connect_allow_modal_dialogs_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
v2_28
only.sourcefn connect_allow_universal_access_from_file_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
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_draw_compositing_indicators_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
sourcefn connect_enable_accelerated_2d_canvas_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
fn connect_enable_accelerated_2d_canvas_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
v2_2
only.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
sourcefn connect_enable_encrypted_media_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
fn connect_enable_encrypted_media_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
v2_20
only.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
sourcefn connect_enable_javascript_markup_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
fn connect_enable_javascript_markup_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
v2_24
only.sourcefn connect_enable_media_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
fn connect_enable_media_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
v2_26
only.sourcefn connect_enable_media_capabilities_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
fn connect_enable_media_capabilities_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
v2_22
only.sourcefn connect_enable_media_stream_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
fn connect_enable_media_stream_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
v2_4
only.sourcefn connect_enable_mediasource_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
fn connect_enable_mediasource_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
v2_4
only.sourcefn connect_enable_mock_capture_devices_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
fn connect_enable_mock_capture_devices_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
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
sourcefn connect_enable_plugins_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
fn connect_enable_plugins_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
sourcefn connect_enable_private_browsing_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
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
sourcefn connect_enable_webrtc_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
fn connect_enable_webrtc_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
v2_38
only.sourcefn connect_enable_write_console_messages_to_stdout_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
v2_2
only.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
sourcefn connect_hardware_acceleration_policy_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
fn connect_hardware_acceleration_policy_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
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
sourcefn connect_media_content_types_requiring_hardware_support_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
v2_30
only.