gi-webkit2-4.0.24: WebKit2 bindings

CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (inaki@blueleaf.cc)
Safe HaskellNone
LanguageHaskell2010

GI.WebKit2.Objects.BackForwardList

Contents

Description

No description available in the introspection data.

Synopsis

Exported types

class (GObject o, IsDescendantOf BackForwardList o) => IsBackForwardList o Source #

Type class for types which can be safely cast to BackForwardList, for instance with toBackForwardList.

toBackForwardList :: (MonadIO m, IsBackForwardList o) => o -> m BackForwardList Source #

Cast to BackForwardList, for types for which this is known to be safe. For general casts, use castTo.

Methods

getBackItem

backForwardListGetBackItem Source #

Arguments

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

backForwardList: a BackForwardList

-> m (Maybe BackForwardListItem)

Returns: the BackForwardListItem preceding the current item or Nothing.

Returns the item that precedes the current item.

getBackList

backForwardListGetBackList Source #

Arguments

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

backForwardList: a BackForwardList

-> m [BackForwardListItem]

Returns: a List of items preceding the current item.

No description available in the introspection data.

getBackListWithLimit

backForwardListGetBackListWithLimit Source #

Arguments

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

backForwardList: a BackForwardList

-> Word32

limit: the number of items to retrieve

-> m [BackForwardListItem]

Returns: a List of items preceding the current item limited by limit.

No description available in the introspection data.

getCurrentItem

backForwardListGetCurrentItem Source #

Arguments

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

backForwardList: a BackForwardList

-> m (Maybe BackForwardListItem)

Returns: a BackForwardListItem or Nothing if backForwardList is empty.

Returns the current item in backForwardList.

getForwardItem

backForwardListGetForwardItem Source #

Arguments

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

backForwardList: a BackForwardList

-> m (Maybe BackForwardListItem)

Returns: the BackForwardListItem following the current item or Nothing.

Returns the item that follows the current item.

getForwardList

backForwardListGetForwardList Source #

Arguments

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

backForwardList: a BackForwardList

-> m [BackForwardListItem]

Returns: a List of items following the current item.

No description available in the introspection data.

getForwardListWithLimit

backForwardListGetForwardListWithLimit Source #

Arguments

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

backForwardList: a BackForwardList

-> Word32

limit: the number of items to retrieve

-> m [BackForwardListItem]

Returns: a List of items following the current item limited by limit.

No description available in the introspection data.

getLength

backForwardListGetLength Source #

Arguments

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

backForwardList: a BackForwardList

-> m Word32

Returns: the length of backForwardList.

No description available in the introspection data.

getNthItem

backForwardListGetNthItem Source #

Arguments

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

backForwardList: a BackForwardList

-> Int32

index: the index of the item

-> m (Maybe BackForwardListItem)

Returns: the BackForwardListItem located at the specified index relative to the current item or Nothing.

Returns the item at a given index relative to the current item.

Signals

changed

type BackForwardListChangedCallback Source #

Arguments

 = Maybe BackForwardListItem

itemAdded: the BackForwardListItem added or Nothing

-> Ptr ()

itemsRemoved: a List of BackForwardListItem<!-- -->s

-> IO () 

This signal is emitted when backForwardList changes. This happens when the current item is updated, a new item is added or one or more items are removed. Note that both itemAdded and itemsRemoved can Nothing when only the current item is updated. Items are only removed when the list is cleared or the maximum items limit is reached.

type C_BackForwardListChangedCallback = Ptr () -> Ptr BackForwardListItem -> Ptr () -> Ptr () -> IO () Source #

Type for the callback on the (unwrapped) C side.

afterBackForwardListChanged :: (IsBackForwardList a, MonadIO m) => a -> BackForwardListChangedCallback -> m SignalHandlerId Source #

Connect a signal handler for the “changed” signal, to be run after the default handler. When overloading is enabled, this is equivalent to

after backForwardList #changed callback

onBackForwardListChanged :: (IsBackForwardList a, MonadIO m) => a -> BackForwardListChangedCallback -> m SignalHandlerId Source #

Connect a signal handler for the “changed” signal, to be run before the default handler. When overloading is enabled, this is equivalent to

on backForwardList #changed callback