gi-webkit-3.0.11: 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

data WebWindowFeaturesFullscreenPropertyInfo Source #

Instances

AttrInfo WebWindowFeaturesFullscreenPropertyInfo Source # 
type AttrOrigin WebWindowFeaturesFullscreenPropertyInfo Source # 
type AttrLabel WebWindowFeaturesFullscreenPropertyInfo Source # 
type AttrGetType WebWindowFeaturesFullscreenPropertyInfo Source # 
type AttrBaseTypeConstraint WebWindowFeaturesFullscreenPropertyInfo Source # 
type AttrSetTypeConstraint WebWindowFeaturesFullscreenPropertyInfo Source # 
type AttrAllowedOps WebWindowFeaturesFullscreenPropertyInfo Source # 

height

data WebWindowFeaturesHeightPropertyInfo Source #

Instances

AttrInfo WebWindowFeaturesHeightPropertyInfo Source # 
type AttrOrigin WebWindowFeaturesHeightPropertyInfo Source # 
type AttrLabel WebWindowFeaturesHeightPropertyInfo Source # 
type AttrGetType WebWindowFeaturesHeightPropertyInfo Source # 
type AttrBaseTypeConstraint WebWindowFeaturesHeightPropertyInfo Source # 
type AttrSetTypeConstraint WebWindowFeaturesHeightPropertyInfo Source # 
type AttrAllowedOps WebWindowFeaturesHeightPropertyInfo Source # 

locationbarVisible

data WebWindowFeaturesLocationbarVisiblePropertyInfo Source #

Instances

AttrInfo WebWindowFeaturesLocationbarVisiblePropertyInfo Source # 
type AttrOrigin WebWindowFeaturesLocationbarVisiblePropertyInfo Source # 
type AttrLabel WebWindowFeaturesLocationbarVisiblePropertyInfo Source # 
type AttrGetType WebWindowFeaturesLocationbarVisiblePropertyInfo Source # 
type AttrBaseTypeConstraint WebWindowFeaturesLocationbarVisiblePropertyInfo Source # 
type AttrSetTypeConstraint WebWindowFeaturesLocationbarVisiblePropertyInfo Source # 
type AttrAllowedOps WebWindowFeaturesLocationbarVisiblePropertyInfo Source # 

menubarVisible

data WebWindowFeaturesMenubarVisiblePropertyInfo Source #

Instances

AttrInfo WebWindowFeaturesMenubarVisiblePropertyInfo Source # 
type AttrOrigin WebWindowFeaturesMenubarVisiblePropertyInfo Source # 
type AttrLabel WebWindowFeaturesMenubarVisiblePropertyInfo Source # 
type AttrGetType WebWindowFeaturesMenubarVisiblePropertyInfo Source # 
type AttrBaseTypeConstraint WebWindowFeaturesMenubarVisiblePropertyInfo Source # 
type AttrSetTypeConstraint WebWindowFeaturesMenubarVisiblePropertyInfo Source # 
type AttrAllowedOps WebWindowFeaturesMenubarVisiblePropertyInfo Source # 

scrollbarVisible

data WebWindowFeaturesScrollbarVisiblePropertyInfo Source #

Instances

AttrInfo WebWindowFeaturesScrollbarVisiblePropertyInfo Source # 
type AttrOrigin WebWindowFeaturesScrollbarVisiblePropertyInfo Source # 
type AttrLabel WebWindowFeaturesScrollbarVisiblePropertyInfo Source # 
type AttrGetType WebWindowFeaturesScrollbarVisiblePropertyInfo Source # 
type AttrBaseTypeConstraint WebWindowFeaturesScrollbarVisiblePropertyInfo Source # 
type AttrSetTypeConstraint WebWindowFeaturesScrollbarVisiblePropertyInfo Source # 
type AttrAllowedOps WebWindowFeaturesScrollbarVisiblePropertyInfo Source # 

statusbarVisible

data WebWindowFeaturesStatusbarVisiblePropertyInfo Source #

Instances

AttrInfo WebWindowFeaturesStatusbarVisiblePropertyInfo Source # 
type AttrOrigin WebWindowFeaturesStatusbarVisiblePropertyInfo Source # 
type AttrLabel WebWindowFeaturesStatusbarVisiblePropertyInfo Source # 
type AttrGetType WebWindowFeaturesStatusbarVisiblePropertyInfo Source # 
type AttrBaseTypeConstraint WebWindowFeaturesStatusbarVisiblePropertyInfo Source # 
type AttrSetTypeConstraint WebWindowFeaturesStatusbarVisiblePropertyInfo Source # 
type AttrAllowedOps WebWindowFeaturesStatusbarVisiblePropertyInfo Source # 

toolbarVisible

data WebWindowFeaturesToolbarVisiblePropertyInfo Source #

Instances

AttrInfo WebWindowFeaturesToolbarVisiblePropertyInfo Source # 
type AttrOrigin WebWindowFeaturesToolbarVisiblePropertyInfo Source # 
type AttrLabel WebWindowFeaturesToolbarVisiblePropertyInfo Source # 
type AttrGetType WebWindowFeaturesToolbarVisiblePropertyInfo Source # 
type AttrBaseTypeConstraint WebWindowFeaturesToolbarVisiblePropertyInfo Source # 
type AttrSetTypeConstraint WebWindowFeaturesToolbarVisiblePropertyInfo Source # 
type AttrAllowedOps WebWindowFeaturesToolbarVisiblePropertyInfo Source # 

width

data WebWindowFeaturesWidthPropertyInfo Source #

Instances

AttrInfo WebWindowFeaturesWidthPropertyInfo Source # 
type AttrOrigin WebWindowFeaturesWidthPropertyInfo Source # 
type AttrLabel WebWindowFeaturesWidthPropertyInfo Source # 
type AttrGetType WebWindowFeaturesWidthPropertyInfo Source # 
type AttrBaseTypeConstraint WebWindowFeaturesWidthPropertyInfo Source # 
type AttrSetTypeConstraint WebWindowFeaturesWidthPropertyInfo Source # 
type AttrAllowedOps WebWindowFeaturesWidthPropertyInfo Source # 

x

data WebWindowFeaturesXPropertyInfo Source #

Instances

AttrInfo WebWindowFeaturesXPropertyInfo Source # 
type AttrOrigin WebWindowFeaturesXPropertyInfo Source # 
type AttrLabel WebWindowFeaturesXPropertyInfo Source # 
type AttrGetType WebWindowFeaturesXPropertyInfo Source # 
type AttrBaseTypeConstraint WebWindowFeaturesXPropertyInfo Source # 
type AttrSetTypeConstraint WebWindowFeaturesXPropertyInfo Source # 
type AttrAllowedOps WebWindowFeaturesXPropertyInfo Source # 

y

data WebWindowFeaturesYPropertyInfo Source #

Instances

AttrInfo WebWindowFeaturesYPropertyInfo Source # 
type AttrOrigin WebWindowFeaturesYPropertyInfo Source # 
type AttrLabel WebWindowFeaturesYPropertyInfo Source # 
type AttrGetType WebWindowFeaturesYPropertyInfo Source # 
type AttrBaseTypeConstraint WebWindowFeaturesYPropertyInfo Source # 
type AttrSetTypeConstraint WebWindowFeaturesYPropertyInfo Source # 
type AttrAllowedOps WebWindowFeaturesYPropertyInfo Source #