JUCE API reference
Loading...
Searching...
No Matches
Public Member Functions | List of all members
juce::WebBrowserComponent::Options::LinuxWkWebView Class Reference

Options specific to the WkWebView backend used on Linux systems. More...

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
 

Detailed Description

Options specific to the WkWebView backend used on Linux systems.

These options will be ignored on other platforms.

Member Function Documentation

◆ withNativeZoomGesture()

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

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
inline

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

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