1.3 <WebKitBackForwardList>

Class: <WebKitBackForwardList>

It derives from <GObject>.

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 web-view:go-back and web-view:go-forward move the current item backward or forward by one. Method web-view:go-to-back-forward-list-item sets the current item to the specified item. All other methods returning <WebKitBackForwardListItem><!– –>s do not change the value of the current item, they just return the requested item or items.

Procedures

Method: back-forward-list:get-back-item self ⇒ %return
Method: get-back-item self ⇒ %return

Returns the item that precedes the current item.

self

Passed: a <WebKitBackForwardList>.

a <WebKitBackForwardList>

%return

Returned: a <WebKitBackForwardListItem>, or #f.

the <WebKitBackForwardListItem> preceding the current item or #f.

Method: back-forward-list:get-back-list self ⇒ %return
Method: get-back-list self ⇒ %return

Obtain the list of items preceding the current one.

self

Passed: a <WebKitBackForwardList>.

a <WebKitBackForwardList>

%return

Returned: a list, each a <WebKitBackForwardListItem>.

a GList of items preceding the current item.

Method: back-forward-list:get-back-list-with-limit self limit ⇒ %return
Method: get-back-list-with-limit self limit ⇒ %return

Obtain a list up to some number of items preceding the current one.

self

Passed: a <WebKitBackForwardList>.

a <WebKitBackForwardList>

limit

Passed: an unsigned 32-bit integer.

the number of items to retrieve

%return

Returned: a list, each a <WebKitBackForwardListItem>.

a GList of items preceding the current item limited by limit.

Method: back-forward-list:get-current-item self ⇒ %return
Method: get-current-item self ⇒ %return

Returns the current item in self.

self

Passed: a <WebKitBackForwardList>.

a <WebKitBackForwardList>

%return

Returned: a <WebKitBackForwardListItem>, or #f.

a <WebKitBackForwardListItem> or #f if self is empty.

Method: back-forward-list:get-forward-item self ⇒ %return
Method: get-forward-item self ⇒ %return

Returns the item that follows the current item.

self

Passed: a <WebKitBackForwardList>.

a <WebKitBackForwardList>

%return

Returned: a <WebKitBackForwardListItem>, or #f.

the <WebKitBackForwardListItem> following the current item or #f.

Method: back-forward-list:get-forward-list self ⇒ %return
Method: get-forward-list self ⇒ %return

Obtain the list of items following the current one.

self

Passed: a <WebKitBackForwardList>.

a <WebKitBackForwardList>

%return

Returned: a list, each a <WebKitBackForwardListItem>.

a GList of items following the current item.

Method: back-forward-list:get-forward-list-with-limit self limit ⇒ %return
Method: get-forward-list-with-limit self limit ⇒ %return

Obtain a list up to some number of items following the current one.

self

Passed: a <WebKitBackForwardList>.

a <WebKitBackForwardList>

limit

Passed: an unsigned 32-bit integer.

the number of items to retrieve

%return

Returned: a list, each a <WebKitBackForwardListItem>.

a GList of items following the current item limited by limit.

Method: back-forward-list:get-length self ⇒ %return
Method: get-length self ⇒ %return

Obtain the amount of items in the list.

self

Passed: a <WebKitBackForwardList>.

a <WebKitBackForwardList>

%return

Returned: an unsigned 32-bit integer.

the length of self.

Method: back-forward-list:get-nth-item self index ⇒ %return
Method: get-nth-item self index ⇒ %return

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

self

Passed: a <WebKitBackForwardList>.

a <WebKitBackForwardList>

index

Passed: a 32-bit integer.

the index of the item

%return

Returned: a <WebKitBackForwardListItem>, or #f.

the <WebKitBackForwardListItem> located at the specified index relative to the current item or #f.

Signals

Signal: back-forward-list:changed

Connect a handler with (connect object back-forward-list:changed handler). It is called as (handler self item-added items-removed).

This signal is emitted when back-forward-list changes. This happens when the current item is updated, a new item is added or one or more items are removed. Note that both item-added and items-removed can #f when only the current item is updated. Items are only removed when the list is cleared or the maximum items limit is reached.

self

Passed: a <WebKitBackForwardList>.

item-added

Passed: a <WebKitBackForwardListItem>, or #f.

the <WebKitBackForwardListItem> added or #f

items-removed

Passed: a foreign pointer, or #f.

a GList of <WebKitBackForwardListItem><!– –>s