Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
Safe Haskell | None |
Language | Haskell2010 |
<informalexample><programlisting> /<!-- -->* Get the WebKitWebBackForwardList from the WebKitWebView *<!-- -->/ WebKitWebBackForwardList *back_forward_list = webkit_web_view_get_back_forward_list (my_web_view); WebKitWebHistoryItem *item = webkit_web_back_forward_list_get_current_item (back_forward_list);
/<!-- -->* Do something with a WebKitWebHistoryItem *<!-- -->/
g_print("p
", item);
/<!-- -->* Control some parameters *<!-- -->/ WebKitWebBackForwardList *back_forward_list = webkit_web_view_get_back_forward_list (my_web_view); webkit_web_back_forward_list_set_limit (back_forward_list, 30); </programlisting></informalexample>
- newtype WebBackForwardList = WebBackForwardList (ManagedPtr WebBackForwardList)
- class GObject o => IsWebBackForwardList o
- toWebBackForwardList :: (MonadIO m, IsWebBackForwardList o) => o -> m WebBackForwardList
- noWebBackForwardList :: Maybe WebBackForwardList
- webBackForwardListAddItem :: (HasCallStack, MonadIO m, IsWebBackForwardList a, IsWebHistoryItem b) => a -> b -> m ()
- webBackForwardListClear :: (HasCallStack, MonadIO m, IsWebBackForwardList a) => a -> m ()
- webBackForwardListContainsItem :: (HasCallStack, MonadIO m, IsWebBackForwardList a, IsWebHistoryItem b) => a -> b -> m Bool
- webBackForwardListGetBackItem :: (HasCallStack, MonadIO m, IsWebBackForwardList a) => a -> m WebHistoryItem
- webBackForwardListGetBackLength :: (HasCallStack, MonadIO m, IsWebBackForwardList a) => a -> m Int32
- webBackForwardListGetBackListWithLimit :: (HasCallStack, MonadIO m, IsWebBackForwardList a) => a -> Int32 -> m [WebHistoryItem]
- webBackForwardListGetCurrentItem :: (HasCallStack, MonadIO m, IsWebBackForwardList a) => a -> m WebHistoryItem
- webBackForwardListGetForwardItem :: (HasCallStack, MonadIO m, IsWebBackForwardList a) => a -> m WebHistoryItem
- webBackForwardListGetForwardLength :: (HasCallStack, MonadIO m, IsWebBackForwardList a) => a -> m Int32
- webBackForwardListGetForwardListWithLimit :: (HasCallStack, MonadIO m, IsWebBackForwardList a) => a -> Int32 -> m [WebHistoryItem]
- webBackForwardListGetLimit :: (HasCallStack, MonadIO m, IsWebBackForwardList a) => a -> m Int32
- webBackForwardListGetNthItem :: (HasCallStack, MonadIO m, IsWebBackForwardList a) => a -> Int32 -> m WebHistoryItem
- webBackForwardListGoBack :: (HasCallStack, MonadIO m, IsWebBackForwardList a) => a -> m ()
- webBackForwardListGoForward :: (HasCallStack, MonadIO m, IsWebBackForwardList a) => a -> m ()
- webBackForwardListGoToItem :: (HasCallStack, MonadIO m, IsWebBackForwardList a, IsWebHistoryItem b) => a -> b -> m ()
- webBackForwardListSetLimit :: (HasCallStack, MonadIO m, IsWebBackForwardList a) => a -> Int32 -> m ()
Exported types
newtype WebBackForwardList Source #
class GObject o => IsWebBackForwardList o Source #
toWebBackForwardList :: (MonadIO m, IsWebBackForwardList o) => o -> m WebBackForwardList Source #
Methods
addItem
webBackForwardListAddItem Source #
:: (HasCallStack, MonadIO m, IsWebBackForwardList a, IsWebHistoryItem b) | |
=> a |
|
-> b |
|
-> m () |
Adds the item to the WebBackForwardList
.
The webBackForwardList
will add a reference to the webHistoryItem
, so you
don't need to keep a reference once you've added it to the list.
Since: 1.1.1
clear
webBackForwardListClear Source #
:: (HasCallStack, MonadIO m, IsWebBackForwardList a) | |
=> a |
|
-> m () |
Clears the webBackForwardList
by removing all its elements. Note that not even
the current page is kept in list when cleared so you would have to add it later.
This method also clears the list of visited links which means that all links will
appear unvisited.
Since: 1.3.1
containsItem
webBackForwardListContainsItem Source #
:: (HasCallStack, MonadIO m, IsWebBackForwardList a, IsWebHistoryItem b) | |
=> a |
|
-> b |
|
-> m Bool | Returns: |
Checks if webHistoryItem
is in the back forward list
getBackItem
webBackForwardListGetBackItem Source #
:: (HasCallStack, MonadIO m, IsWebBackForwardList a) | |
=> a |
|
-> m WebHistoryItem | Returns: the |
Returns the item that precedes the current item
getBackLength
webBackForwardListGetBackLength Source #
:: (HasCallStack, MonadIO m, IsWebBackForwardList a) | |
=> a |
|
-> m Int32 | Returns: a |
Returns the number of items that preced the current item.
getBackListWithLimit
webBackForwardListGetBackListWithLimit Source #
:: (HasCallStack, MonadIO m, IsWebBackForwardList a) | |
=> a |
|
-> Int32 |
|
-> m [WebHistoryItem] | Returns: a |
Returns a list of items that precede the current item, limited by limit
getCurrentItem
webBackForwardListGetCurrentItem Source #
:: (HasCallStack, MonadIO m, IsWebBackForwardList a) | |
=> a |
|
-> m WebHistoryItem | Returns: a |
Returns the current item.
Returns a NULL value if the back forward list is empty
getForwardItem
webBackForwardListGetForwardItem Source #
:: (HasCallStack, MonadIO m, IsWebBackForwardList a) | |
=> a |
|
-> m WebHistoryItem | Returns: a |
Returns the item that succeeds the current item.
Returns a NULL value if there nothing that succeeds the current item
getForwardLength
webBackForwardListGetForwardLength Source #
:: (HasCallStack, MonadIO m, IsWebBackForwardList a) | |
=> a |
|
-> m Int32 | Returns: a |
Returns the number of items that succeed the current item.
getForwardListWithLimit
webBackForwardListGetForwardListWithLimit Source #
:: (HasCallStack, MonadIO m, IsWebBackForwardList a) | |
=> a |
|
-> Int32 |
|
-> m [WebHistoryItem] | Returns: a |
Returns a list of items that succeed the current item, limited by limit
getLimit
webBackForwardListGetLimit Source #
:: (HasCallStack, MonadIO m, IsWebBackForwardList a) | |
=> a |
|
-> m Int32 | Returns: a |
Returns the maximum limit of the back forward list.
getNthItem
webBackForwardListGetNthItem Source #
:: (HasCallStack, MonadIO m, IsWebBackForwardList a) | |
=> a |
|
-> Int32 |
|
-> m WebHistoryItem | Returns: the |
Returns the item at a given index relative to the current item.
goBack
webBackForwardListGoBack Source #
:: (HasCallStack, MonadIO m, IsWebBackForwardList a) | |
=> a |
|
-> m () |
Steps backward in the back forward list
goForward
webBackForwardListGoForward Source #
:: (HasCallStack, MonadIO m, IsWebBackForwardList a) | |
=> a |
|
-> m () |
Steps forward in the back forward list
goToItem
webBackForwardListGoToItem Source #
:: (HasCallStack, MonadIO m, IsWebBackForwardList a, IsWebHistoryItem b) | |
=> a |
|
-> b |
|
-> m () |
Go to the specified webHistoryItem
in the back forward list
setLimit
webBackForwardListSetLimit Source #
:: (HasCallStack, MonadIO m, IsWebBackForwardList a) | |
=> a |
|
-> Int32 |
|
-> m () |
Sets the maximum limit of the back forward list. If the back forward list exceeds its capacity, items will be removed everytime a new item has been added.