Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
List of visited pages.
WebKitBackForwardList maintains a list of visited pages used to navigate to recent pages. Items are inserted in the list in the order they are visited.
WebKitBackForwardList also maintains the notion of the current item
(which is always at index 0), the preceding item (which is at index -1),
and the following item (which is at index 1).
Methods webViewGoBack
and webViewGoForward
move
the current item backward or forward by one. Method
webViewGoToBackForwardListItem
sets the current item to the
specified item. All other methods returning BackForwardListItem
s
do not change the value of the current item, they just return the requested
item or items.
Synopsis
- newtype BackForwardList = BackForwardList (ManagedPtr BackForwardList)
- class (GObject o, IsDescendantOf BackForwardList o) => IsBackForwardList o
- toBackForwardList :: (MonadIO m, IsBackForwardList o) => o -> m BackForwardList
- backForwardListGetBackItem :: (HasCallStack, MonadIO m, IsBackForwardList a) => a -> m (Maybe BackForwardListItem)
- backForwardListGetBackList :: (HasCallStack, MonadIO m, IsBackForwardList a) => a -> m [BackForwardListItem]
- backForwardListGetBackListWithLimit :: (HasCallStack, MonadIO m, IsBackForwardList a) => a -> Word32 -> m [BackForwardListItem]
- backForwardListGetCurrentItem :: (HasCallStack, MonadIO m, IsBackForwardList a) => a -> m (Maybe BackForwardListItem)
- backForwardListGetForwardItem :: (HasCallStack, MonadIO m, IsBackForwardList a) => a -> m (Maybe BackForwardListItem)
- backForwardListGetForwardList :: (HasCallStack, MonadIO m, IsBackForwardList a) => a -> m [BackForwardListItem]
- backForwardListGetForwardListWithLimit :: (HasCallStack, MonadIO m, IsBackForwardList a) => a -> Word32 -> m [BackForwardListItem]
- backForwardListGetLength :: (HasCallStack, MonadIO m, IsBackForwardList a) => a -> m Word32
- backForwardListGetNthItem :: (HasCallStack, MonadIO m, IsBackForwardList a) => a -> Int32 -> m (Maybe BackForwardListItem)
- type BackForwardListChangedCallback = Maybe BackForwardListItem -> Ptr () -> IO ()
- afterBackForwardListChanged :: (IsBackForwardList a, MonadIO m) => a -> ((?self :: a) => BackForwardListChangedCallback) -> m SignalHandlerId
- onBackForwardListChanged :: (IsBackForwardList a, MonadIO m) => a -> ((?self :: a) => BackForwardListChangedCallback) -> m SignalHandlerId
Exported types
newtype BackForwardList Source #
Memory-managed wrapper type.
BackForwardList (ManagedPtr BackForwardList) |
Instances
Eq BackForwardList Source # | |
Defined in GI.WebKit.Objects.BackForwardList (==) :: BackForwardList -> BackForwardList -> Bool # (/=) :: BackForwardList -> BackForwardList -> Bool # | |
GObject BackForwardList Source # | |
Defined in GI.WebKit.Objects.BackForwardList | |
ManagedPtrNewtype BackForwardList Source # | |
Defined in GI.WebKit.Objects.BackForwardList toManagedPtr :: BackForwardList -> ManagedPtr BackForwardList | |
TypedObject BackForwardList Source # | |
Defined in GI.WebKit.Objects.BackForwardList | |
HasParentTypes BackForwardList Source # | |
Defined in GI.WebKit.Objects.BackForwardList | |
IsGValue (Maybe BackForwardList) Source # | Convert |
Defined in GI.WebKit.Objects.BackForwardList gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe BackForwardList -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe BackForwardList) | |
type ParentTypes BackForwardList Source # | |
Defined in GI.WebKit.Objects.BackForwardList type ParentTypes BackForwardList = '[Object] |
class (GObject o, IsDescendantOf BackForwardList o) => IsBackForwardList o Source #
Type class for types which can be safely cast to BackForwardList
, for instance with toBackForwardList
.
Instances
(GObject o, IsDescendantOf BackForwardList o) => IsBackForwardList o Source # | |
Defined in GI.WebKit.Objects.BackForwardList |
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
Click to display all available methods, including inherited ones
Methods
bindProperty, bindPropertyFull, forceFloating, freezeNotify, getv, isFloating, notify, notifyByPspec, ref, refSink, runDispose, stealData, stealQdata, thawNotify, unref, watchClosure.
Getters
getBackItem, getBackList, getBackListWithLimit, getCurrentItem, getData, getForwardItem, getForwardList, getForwardListWithLimit, getLength, getNthItem, getProperty, getQdata.
Setters
getBackItem
backForwardListGetBackItem Source #
:: (HasCallStack, MonadIO m, IsBackForwardList a) | |
=> a |
|
-> m (Maybe BackForwardListItem) | Returns: the |
Returns the item that precedes the current item.
getBackList
backForwardListGetBackList Source #
:: (HasCallStack, MonadIO m, IsBackForwardList a) | |
=> a |
|
-> m [BackForwardListItem] | Returns: a |
Obtain the list of items preceding the current one.
getBackListWithLimit
backForwardListGetBackListWithLimit Source #
:: (HasCallStack, MonadIO m, IsBackForwardList a) | |
=> a |
|
-> Word32 |
|
-> m [BackForwardListItem] | Returns: a |
Obtain a list up to some number of items preceding the current one.
getCurrentItem
backForwardListGetCurrentItem Source #
:: (HasCallStack, MonadIO m, IsBackForwardList a) | |
=> a |
|
-> m (Maybe BackForwardListItem) | Returns: a |
Returns the current item in backForwardList
.
getForwardItem
backForwardListGetForwardItem Source #
:: (HasCallStack, MonadIO m, IsBackForwardList a) | |
=> a |
|
-> m (Maybe BackForwardListItem) | Returns: the |
Returns the item that follows the current item.
getForwardList
backForwardListGetForwardList Source #
:: (HasCallStack, MonadIO m, IsBackForwardList a) | |
=> a |
|
-> m [BackForwardListItem] | Returns: a |
Obtain the list of items following the current one.
getForwardListWithLimit
backForwardListGetForwardListWithLimit Source #
:: (HasCallStack, MonadIO m, IsBackForwardList a) | |
=> a |
|
-> Word32 |
|
-> m [BackForwardListItem] | Returns: a |
Obtain a list up to some number of items following the current one.
getLength
backForwardListGetLength Source #
:: (HasCallStack, MonadIO m, IsBackForwardList a) | |
=> a |
|
-> m Word32 | Returns: the length of |
Obtain the amount of items in the list.
getNthItem
backForwardListGetNthItem Source #
:: (HasCallStack, MonadIO m, IsBackForwardList a) | |
=> a |
|
-> Int32 |
|
-> m (Maybe BackForwardListItem) | Returns: the |
Returns the item at a given index relative to the current item.
Signals
changed
type BackForwardListChangedCallback Source #
= Maybe BackForwardListItem |
|
-> Ptr () |
|
-> 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.
afterBackForwardListChanged :: (IsBackForwardList a, MonadIO m) => a -> ((?self :: 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
By default the object invoking the signal is not passed to the callback.
If you need to access it, you can use the implit ?self
parameter.
Note that this requires activating the ImplicitParams
GHC extension.
onBackForwardListChanged :: (IsBackForwardList a, MonadIO m) => a -> ((?self :: 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