BackForwardList

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 webkit_web_view_go_back() and webkit_web_view_go_forward() move the current item backward or forward by one. Method webkit_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.

Constructors

this
this(WebKitBackForwardList* webKitBackForwardList, bool ownedRef)

Sets our main struct and passes it to the parent class.

Members

Functions

addOnChanged
gulong addOnChanged(void delegate(BackForwardListItem, void*, BackForwardList) dlg, ConnectFlags connectFlags)

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 %NULL when only the current item is updated. Items are only removed when the list is cleared or the maximum items limit is reached.

getBackForwardListStruct
WebKitBackForwardList* getBackForwardListStruct(bool transferOwnership)

Get the main Gtk struct

getBackItem
BackForwardListItem getBackItem()

Returns the item that precedes the current item.

getBackList
ListG getBackList()
getBackListWithLimit
ListG getBackListWithLimit(uint limit)
getCurrentItem
BackForwardListItem getCurrentItem()

Returns the current item in @back_forward_list.

getForwardItem
BackForwardListItem getForwardItem()

Returns the item that follows the current item.

getForwardList
ListG getForwardList()
getForwardListWithLimit
ListG getForwardListWithLimit(uint limit)
getLength
uint getLength()
getNthItem
BackForwardListItem getNthItem(int index)

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

getStruct
void* getStruct()

the main Gtk struct as a void*

Static functions

getType
GType getType()

Variables

webKitBackForwardList
WebKitBackForwardList* webKitBackForwardList;

the main Gtk struct

Meta