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.WebNavigationAction

Contents

Description

WebNavigationAction is used in signals to provide details about what led the navigation to happen. This includes, for instance, if the user clicked a link to start that navigation, and what mouse button was used.

Synopsis

Exported types

Methods

getButton

webNavigationActionGetButton Source #

Arguments

:: (HasCallStack, MonadIO m, IsWebNavigationAction a) 
=> a

navigationAction: a WebNavigationAction

-> m Int32

Returns: the mouse button used to click

The GTK+ identifier for the mouse button used to click. Notice that GTK+ button values are 1, 2 and 3 for left, middle and right buttons, so they are DOM button values +1. If the action was not initiated by a mouse click the value will be -1.

Since: 1.0.3

getModifierState

webNavigationActionGetModifierState Source #

Arguments

:: (HasCallStack, MonadIO m, IsWebNavigationAction a) 
=> a

navigationAction: a WebNavigationAction

-> m Int32

Returns: a bitmask with the state of the modifier keys

Returns a bitmask with the the state of the modifier keys.

Since: 1.0.3

getOriginalUri

webNavigationActionGetOriginalUri Source #

Arguments

:: (HasCallStack, MonadIO m, IsWebNavigationAction a) 
=> a

navigationAction: a WebNavigationAction

-> m Text

Returns: the originally requested URI

Returns the URI that was originally requested. This may differ from the navigation target, for instance because of a redirect.

Since: 1.0.3

getReason

webNavigationActionGetReason Source #

Arguments

:: (HasCallStack, MonadIO m, IsWebNavigationAction a) 
=> a

navigationAction: a WebNavigationAction

-> m WebNavigationReason

Returns: a WebNavigationReason

Returns the reason why WebKit is requesting a navigation.

Since: 1.0.3

getTargetFrame

webNavigationActionGetTargetFrame Source #

Arguments

:: (HasCallStack, MonadIO m, IsWebNavigationAction a) 
=> a

navigationAction: a WebNavigationAction

-> m Text

Returns: the target frame of the action or NULL if there is no target.

Returns the target frame of the action.

Since: 1.1.13

setOriginalUri

webNavigationActionSetOriginalUri Source #

Arguments

:: (HasCallStack, MonadIO m, IsWebNavigationAction a) 
=> a

navigationAction: a WebNavigationAction

-> Text

originalUri: a URI

-> m () 

Sets the URI that was originally requested. This may differ from the navigation target, for instance because of a redirect.

Since: 1.0.3

setReason

webNavigationActionSetReason Source #

Arguments

:: (HasCallStack, MonadIO m, IsWebNavigationAction a) 
=> a

navigationAction: a WebNavigationAction

-> WebNavigationReason

reason: a WebNavigationReason

-> m () 

Sets the reason why WebKit is requesting a navigation.

Since: 1.0.3

Properties

button

modifierState

originalUri

reason

targetFrame