gi-webkit-3.0.14: WebKit bindings

CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (garetxe@gmail.com)
Safe HaskellNone
LanguageHaskell2010

GI.WebKit.Objects.WebHistoryItem

Contents

Description

A history item consists out of a title and a uri. It can be part of the WebBackForwardList and the global history. The global history is used for coloring the links of visited sites. 'GI.WebKit.Objects.WebHistoryItem.WebHistoryItem'\'s constructed with webkit_web_history_item_new and webkit_web_history_item_new_with_data are automatically added to the global history.

<informalexample><programlisting> /<!-- -->* Inject a visited page into the global history *<!-- -->/ webkit_web_history_item_new_with_data("http://www.gnome.org/", "GNOME: The Free Software Desktop Project"); webkit_web_history_item_new_with_data("http://www.webkit.org/", "The WebKit Open Source Project"); </programlisting></informalexample>

Synopsis

Exported types

Methods

copy

webHistoryItemCopy Source #

Arguments

:: (HasCallStack, MonadIO m, IsWebHistoryItem a) 
=> a

webHistoryItem: a WebHistoryItem

-> m WebHistoryItem

Returns: the new WebHistoryItem.

Makes a copy of the item for use with other WebView objects.

Since: 1.1.18

getAlternateTitle

webHistoryItemGetAlternateTitle Source #

Arguments

:: (HasCallStack, MonadIO m, IsWebHistoryItem a) 
=> a

webHistoryItem: a WebHistoryItem

-> m Text

Returns: the alternate title of webHistoryItem

Returns the alternate title of webHistoryItem

getLastVisitedTime

webHistoryItemGetLastVisitedTime :: (HasCallStack, MonadIO m, IsWebHistoryItem a) => a -> m Double Source #

No description available in the introspection data.

getOriginalUri

webHistoryItemGetOriginalUri Source #

Arguments

:: (HasCallStack, MonadIO m, IsWebHistoryItem a) 
=> a

webHistoryItem: a WebHistoryItem

-> m Text

Returns: the original URI of webHistoryItem

Returns the original URI of webHistoryItem.

getTitle

webHistoryItemGetTitle Source #

Arguments

:: (HasCallStack, MonadIO m, IsWebHistoryItem a) 
=> a

webHistoryItem: a WebHistoryItem

-> m Text

Returns: the page title of webHistoryItem

No description available in the introspection data.

getUri

webHistoryItemGetUri Source #

Arguments

:: (HasCallStack, MonadIO m, IsWebHistoryItem a) 
=> a

webHistoryItem: a WebHistoryItem

-> m Text

Returns: the URI of webHistoryItem

Returns the URI of this

new

webHistoryItemNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> m WebHistoryItem

Returns: the new WebHistoryItem

Creates a new WebHistoryItem instance

newWithData

webHistoryItemNewWithData Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Text

uri: the URI of the page

-> Text

title: the title of the page

-> m WebHistoryItem

Returns: the new WebHistoryItem

Creates a new WebHistoryItem with the given URI and title

setAlternateTitle

webHistoryItemSetAlternateTitle Source #

Arguments

:: (HasCallStack, MonadIO m, IsWebHistoryItem a) 
=> a

webHistoryItem: a WebHistoryItem

-> Text

title: the alternate title for this history item

-> m () 

Sets an alternate title for webHistoryItem

Properties

alternateTitle

lastVisitedTime

originalUri

title

uri