Maintainer | gtk2hs-users@lists.sourceforge.net |
---|---|
Stability | provisional |
Portability | portable (depends on GHC) |
Safe Haskell | None |
Language | Haskell98 |
Access to the WebKit NavigationAction
- data WebNavigationAction
- class GObjectClass o => WebNavigationActionClass o
- data NavigationReason
- webNavigationActionGetButton :: WebNavigationActionClass self => self -> IO Int
- webNavigationActionGetModifierState :: WebNavigationActionClass self => self -> IO Int
- webNavigationActionGetOriginalUri :: (WebNavigationActionClass self, GlibString string) => self -> IO string
- webNavigationActionSetOriginalUri :: (WebNavigationActionClass self, GlibString string) => self -> string -> IO ()
- webNavigationActionGetReason :: WebNavigationActionClass self => self -> IO NavigationReason
- webNavigationActionSetReason :: WebNavigationActionClass self => self -> NavigationReason -> IO ()
- webNavigationActionGetTargetFrame :: (WebNavigationActionClass self, GlibString string) => self -> IO string
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.
Types
class GObjectClass o => WebNavigationActionClass o Source
Enums
data NavigationReason Source
WebNavigationReasonLinkClicked | |
WebNavigationReasonFormSubmitted | |
WebNavigationReasonBackForward | |
WebNavigationReasonReload | |
WebNavigationReasonFormResubmitted | |
WebNavigationReasonOther |
Methods
webNavigationActionGetButton :: WebNavigationActionClass self => self -> IO Int Source
Returns the DOM identifier for the mouse button used to click. DOM button values are 1, 2 and 3 for left, middle and right buttons. If the action was not initiated by a mouse click, returns -1.
webNavigationActionGetModifierState :: WebNavigationActionClass self => self -> IO Int Source
Returns a bitmask with the the state of the modifier keys.
webNavigationActionGetOriginalUri :: (WebNavigationActionClass self, GlibString string) => self -> IO string Source
Returns the URI that was originally requested. This may differ from the navigation target, for instance because of a redirect.
webNavigationActionSetOriginalUri :: (WebNavigationActionClass self, GlibString string) => self -> string -> IO () Source
Sets the URI that was originally requested. This may differ from the navigation target, for instance because of a redirect.
webNavigationActionGetReason :: WebNavigationActionClass self => self -> IO NavigationReason Source
Returns the reason why WebKit is requesting a navigation.
webNavigationActionSetReason :: WebNavigationActionClass self => self -> NavigationReason -> IO () Source
Sets the reason why WebKit is requesting a navigation.
webNavigationActionGetTargetFrame :: (WebNavigationActionClass self, GlibString string) => self -> IO string Source
Returns the target frame of the action.