BackForwardList
Superclasses: Object
- Constructors:
BackForwardList(**properties)
Methods
- class BackForwardList
- get_back_item() BackForwardListItem | None
Returns the item that precedes the current item.
- get_back_list() list[BackForwardListItem]
Obtain the list of items preceding the current one.
- get_back_list_with_limit(limit: int) list[BackForwardListItem]
Obtain a list up to some number of items preceding the current one.
- Parameters:
limit – the number of items to retrieve
- get_current_item() BackForwardListItem | None
Returns the current item in
back_forward_list
.
- get_forward_item() BackForwardListItem | None
Returns the item that follows the current item.
- get_forward_list() list[BackForwardListItem]
Obtain the list of items following the current one.
- get_forward_list_with_limit(limit: int) list[BackForwardListItem]
Obtain a list up to some number of items following the current one.
- Parameters:
limit – the number of items to retrieve
- get_nth_item(index: int) BackForwardListItem | None
Returns the item at a given index relative to the current item.
- Parameters:
index – the index of the item
Signals
- class BackForwardList.signals
- changed(item_added: BackForwardListItem | None, items_removed: None) None
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 bothitem_added
anditems_removed
canNone
when only the current item is updated. Items are only removed when the list is cleared or the maximum items limit is reached.- Parameters:
item_added – the
BackForwardListItem
added orNone
items_removed – a
List
of :obj:`~gi.repository.WebKit.BackForwardListItem`<!– –>s