Loading...
Searching...
No Matches
juce::WebBrowserComponent::Options::LinuxWkWebView Class Reference

Detailed Description

Options specific to the WkWebView backend used on Linux systems.

These options will be ignored on other platforms.


The documentation for this class was generated from the following file:

Public Member Functions

LinuxWkWebView withNativeZoomGesture (bool x) const
 Specifies whether the pinch-to-zoom and CTRL + wheel gestures are handled natively by the WebView.
LinuxWkWebView withPinchTranslationSensitivity (float x) const
 A multiplier applied to deltaY parameter of the wheel event on Linux when the default GTK to Javascript translation is enabled.
auto getAllowNativeZoomGesture () const
auto getPinchTranslationSensitivity () const

Member Functions

◆ withNativeZoomGesture()

LinuxWkWebView juce::WebBrowserComponent::Options::LinuxWkWebView::withNativeZoomGesture ( bool x) const
inlinenodiscard

Specifies whether the pinch-to-zoom and CTRL + wheel gestures are handled natively by the WebView.

This is disabled by default, and instead both events are propagated to the page hosted by the WebView, where it can be handled as CTRL + wheel up/down events.

If you enable this option the page no longer receives these events and the zoom operation is instead carried out by the WebView unconditionally. This behaviour is unlike any other OS implementation, hence the disabled default.

References juce::withMember(), and x.

◆ withPinchTranslationSensitivity()

LinuxWkWebView juce::WebBrowserComponent::Options::LinuxWkWebView::withPinchTranslationSensitivity ( float x) const
inlinenodiscard

A multiplier applied to deltaY parameter of the wheel event on Linux when the default GTK to Javascript translation is enabled.

The default value is 100.0f.

To disable this translation, call withNativeZoomGesture (true). After this no wheel events will be received during touchpad pinch gestures.

See also
withNativeZoomGesture

References juce::withMember(), and x.

◆ getAllowNativeZoomGesture()

auto juce::WebBrowserComponent::Options::LinuxWkWebView::getAllowNativeZoomGesture ( ) const
inline

◆ getPinchTranslationSensitivity()

auto juce::WebBrowserComponent::Options::LinuxWkWebView::getPinchTranslationSensitivity ( ) const
inline
linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram