gi-webkit-3.0.14: WebKit bindings

CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (garetxe@gmail.com)
Safe HaskellNone
LanguageHaskell2010

GI.WebKit.Objects.WebWindowFeatures

Contents

Description

The content of a WebView can request to change certain properties of a WebView. This can include the x, y position of the window, the width and height but also if a toolbar, scrollbar, statusbar, locationbar should be visible to the user, the request to show the WebView fullscreen.

In the normal case one will use webkit_web_view_get_window_features to get the WebWindowFeatures and then monitor the property changes. Be aware that the WebWindowFeatures might change before WebView::web-view-ready signal is emitted. To be safe listen to the notify::window-features signal of the WebView and reconnect the signals whenever the WebWindowFeatures of a WebView changes.

<informalexample><programlisting> /<!-- -->* Get the current WebKitWebWindowFeatures *<!-- -->/ WebKitWebWindowFeatures *features = webkit_web_view_get_window_features (my_webview);

/<!-- -->* Connect to the property changes *<!-- -->/ g_signal_connect (G_OBJECT(features), "notify::menubar-visible", G_CALLBACK(make_menu_bar_visible), NULL); g_signal_connect (G_OBJECT(features), "notify::statusbar-visible", G_CALLBACK(make_status_bar_visible), NULL);

</programlisting></informalexample>

Synopsis

Exported types

Methods

equal

webWindowFeaturesEqual Source #

Arguments

:: (HasCallStack, MonadIO m, IsWebWindowFeatures a, IsWebWindowFeatures b) 
=> a

features1: a WebWindowFeatures instance

-> b

features2: another WebWindowFeatures instance

-> m Bool

Returns: True if the instances have the same values, False otherwise

Decides if a WebWindowFeatures instance equals another, as in has the same values.

Since: 1.0.3

new

webWindowFeaturesNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> m WebWindowFeatures

Returns: a new WebWindowFeatures instance

Creates a new WebWindowFeatures instance with default values. It must be manually attached to a WebView.

Since: 1.0.3

Properties

fullscreen

height

locationbarVisible

menubarVisible

scrollbarVisible

statusbarVisible

toolbarVisible

width

x

y