Struct webkit2gtk::SettingsBuilder
source · pub struct SettingsBuilder { /* private fields */ }
Expand description
A builder-pattern type to construct Settings
objects.
Implementations§
source§impl SettingsBuilder
impl SettingsBuilder
pub fn allow_file_access_from_file_urls( self, allow_file_access_from_file_urls: bool ) -> Self
Available on crate feature
v2_10
only.pub fn allow_modal_dialogs(self, allow_modal_dialogs: bool) -> Self
Available on crate feature
v2_28
only.pub fn allow_universal_access_from_file_urls( self, allow_universal_access_from_file_urls: bool ) -> Self
Available on crate feature
v2_14
only.pub fn auto_load_images(self, auto_load_images: bool) -> Self
pub fn cursive_font_family( self, cursive_font_family: impl Into<GString> ) -> Self
pub fn default_charset(self, default_charset: impl Into<GString>) -> Self
pub fn default_font_family( self, default_font_family: impl Into<GString> ) -> Self
pub fn default_font_size(self, default_font_size: u32) -> Self
pub fn default_monospace_font_size( self, default_monospace_font_size: u32 ) -> Self
pub fn disable_web_security(self, disable_web_security: bool) -> Self
Available on crate feature
v2_40
only.pub fn draw_compositing_indicators( self, draw_compositing_indicators: bool ) -> Self
pub fn enable_accelerated_2d_canvas( self, enable_accelerated_2d_canvas: bool ) -> Self
👎Deprecated: Since 2.32
Available on crate feature
v2_2
only.Available on crate feature
v2_24
only.pub fn enable_caret_browsing(self, enable_caret_browsing: bool) -> Self
pub fn enable_developer_extras(self, enable_developer_extras: bool) -> Self
pub fn enable_dns_prefetching(self, enable_dns_prefetching: bool) -> Self
pub fn enable_encrypted_media(self, enable_encrypted_media: bool) -> Self
Available on crate feature
v2_20
only.pub fn enable_frame_flattening(self, enable_frame_flattening: bool) -> Self
👎Deprecated: Since 2.38
pub fn enable_fullscreen(self, enable_fullscreen: bool) -> Self
pub fn enable_html5_database(self, enable_html5_database: bool) -> Self
pub fn enable_html5_local_storage( self, enable_html5_local_storage: bool ) -> Self
pub fn enable_hyperlink_auditing(self, enable_hyperlink_auditing: bool) -> Self
pub fn enable_java(self, enable_java: bool) -> Self
👎Deprecated: Since 2.38
pub fn enable_javascript(self, enable_javascript: bool) -> Self
pub fn enable_javascript_markup(self, enable_javascript_markup: bool) -> Self
Available on crate feature
v2_24
only.pub fn enable_media(self, enable_media: bool) -> Self
Available on crate feature
v2_26
only.pub fn enable_media_capabilities(self, enable_media_capabilities: bool) -> Self
Available on crate feature
v2_22
only.pub fn enable_media_stream(self, enable_media_stream: bool) -> Self
Available on crate feature
v2_4
only.pub fn enable_mediasource(self, enable_mediasource: bool) -> Self
Available on crate feature
v2_4
only.pub fn enable_mock_capture_devices( self, enable_mock_capture_devices: bool ) -> Self
Available on crate feature
v2_24
only.pub fn enable_offline_web_application_cache( self, enable_offline_web_application_cache: bool ) -> Self
pub fn enable_page_cache(self, enable_page_cache: bool) -> Self
pub fn enable_plugins(self, enable_plugins: bool) -> Self
👎Deprecated: Since 2.32
pub fn enable_private_browsing(self, enable_private_browsing: bool) -> Self
👎Deprecated: Since 2.16
pub fn enable_resizable_text_areas( self, enable_resizable_text_areas: bool ) -> Self
pub fn enable_site_specific_quirks( self, enable_site_specific_quirks: bool ) -> Self
pub fn enable_smooth_scrolling(self, enable_smooth_scrolling: bool) -> Self
Available on crate feature
v2_4
only.pub fn enable_tabs_to_links(self, enable_tabs_to_links: bool) -> Self
pub fn enable_webaudio(self, enable_webaudio: bool) -> Self
pub fn enable_webgl(self, enable_webgl: bool) -> Self
pub fn enable_webrtc(self, enable_webrtc: bool) -> Self
Available on crate feature
v2_38
only.pub fn enable_write_console_messages_to_stdout( self, enable_write_console_messages_to_stdout: bool ) -> Self
Available on crate feature
v2_2
only.pub fn enable_xss_auditor(self, enable_xss_auditor: bool) -> Self
👎Deprecated: Since 2.38
pub fn fantasy_font_family( self, fantasy_font_family: impl Into<GString> ) -> Self
pub fn hardware_acceleration_policy( self, hardware_acceleration_policy: HardwareAccelerationPolicy ) -> Self
Available on crate feature
v2_16
only.pub fn javascript_can_access_clipboard( self, javascript_can_access_clipboard: bool ) -> Self
pub fn javascript_can_open_windows_automatically( self, javascript_can_open_windows_automatically: bool ) -> Self
pub fn load_icons_ignoring_image_load_setting( self, load_icons_ignoring_image_load_setting: bool ) -> Self
pub fn media_content_types_requiring_hardware_support( self, media_content_types_requiring_hardware_support: impl Into<GString> ) -> Self
Available on crate feature
v2_30
only.pub fn media_playback_allows_inline( self, media_playback_allows_inline: bool ) -> Self
pub fn media_playback_requires_user_gesture( self, media_playback_requires_user_gesture: bool ) -> Self
pub fn minimum_font_size(self, minimum_font_size: u32) -> Self
pub fn monospace_font_family( self, monospace_font_family: impl Into<GString> ) -> Self
pub fn pictograph_font_family( self, pictograph_font_family: impl Into<GString> ) -> Self
pub fn print_backgrounds(self, print_backgrounds: bool) -> Self
pub fn sans_serif_font_family( self, sans_serif_font_family: impl Into<GString> ) -> Self
pub fn serif_font_family(self, serif_font_family: impl Into<GString>) -> Self
pub fn user_agent(self, user_agent: impl Into<GString>) -> Self
pub fn zoom_text_only(self, zoom_text_only: bool) -> Self
Auto Trait Implementations§
impl RefUnwindSafe for SettingsBuilder
impl !Send for SettingsBuilder
impl !Sync for SettingsBuilder
impl Unpin for SettingsBuilder
impl UnwindSafe for SettingsBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more