|
Graphics.UI.Gtk.WebKit.WebFrame | Portability | portable (depends on GHC) | Stability | provisional | Maintainer | gtk2hs-users@lists.sourceforge.net |
|
|
|
|
|
Description |
The content of a WebView
Note:
Functon webkit_web_frame_get_global_context can't binding now,
Because it need JSGlobalContextRef exist in JavaScriptCore.
Function webkit_web_frame_print_full can't binding now,
Because library GtkPrintOperation haven't binding.
|
|
Synopsis |
|
|
|
|
Types
|
|
|
|
Constructors
|
|
|
:: WebViewClass webview | | => webview | | -> IO WebFrame | | Create a new WebFrame instance with the given webview.
A WebFrame contains the content of one URI.
|
|
|
Methods
|
|
|
Return the WebView that manages the given WebFrame.
|
|
|
:: WebFrameClass self | | => self | the name string or Nothing in case failed.
| -> IO (Maybe String) | | Return the name of the given WebFrame.
|
|
|
|
:: WebFrameClass self | | => self | the title string or Nothing in case failed.
| -> IO (Maybe String) | | Return the title of the given WebFrame.
|
|
|
|
:: WebFrameClass self | | => self | the URI string or Nothing in case failed.
| -> IO (Maybe String) | | Return the URI of the given WebFrame.
|
|
|
|
:: WebFrameClass self | | => self | a WebFrame or Nothing in case failed.
| -> IO (Maybe WebFrame) | | Return the WebFrame's parent frame if it has one,
Otherwise return Nothing.
|
|
|
webFrameGetLoadStatus :: WebFrameClass self => self -> IO LoadStatus | Source |
|
Determines the current status of the load.
frame: a WebKitWebView
|
|
|
:: WebFrameClass self | | => self | uri - an URI string.
| -> String | | -> IO () | | Request loading of the specified URI string.
|
|
|
|
:: WebFrameClass self | | => self | content - the content string to be loaded.
| -> String | mime_type - the MIME type or Nothing.
| -> Maybe String | encoding - the encoding or Nothing.
| -> Maybe String | base_uri - the base URI for relative locations.
| -> String | | -> IO () | | Requests loading of the given content
with the specified mime_type, encoding and base_uri.
If mime_type is Nothing, "text/html" is assumed.
If encoding is Nothing, "UTF-8" is assumed.
|
|
|
webFrameLoadAlternateString | Source |
|
:: WebFrameClass self | | => self | content - the alternate content to display
as the main page of the frame
| -> String | base_uri - the base URI for relative locations.
| -> String | unreachable_url - the URL for the alternate page content.
| -> String | | -> IO () | | Request loading of an alternate content for a URL that is unreachable.
Using this method will preserve the back-forward list.
The URI passed in base_uri has to be an absolute URI.
|
|
|
webFrameLoadRequest :: (WebFrameClass self, NetworkRequestClass requ) => self -> requ -> IO () | Source |
|
Connects to a given URI by initiating an asynchronous client request.
Creates a provisional data source that will transition to a committed data source once any data has been received.
Use webFrameStopLoading to stop the load.
This function is typically invoked on the main frame.
|
|
webFrameStopLoading :: WebFrameClass self => self -> IO () | Source |
|
Stops and pending loads on the given data source and those of its children.
|
|
webFrameReload :: WebFrameClass self => self -> IO () | Source |
|
Reloads the initial request.
|
|
|
:: WebFrameClass self | | => self | name - the name of the frame to be found.
| -> String | | -> IO (Maybe WebFrame) | | Return the WebFrame associated with the given name
or Nothing in case none if found
For pre-defined names, return the given webframe if name is
|
|
|
|
Returns the committed data source.
|
|
|
Return the policy of horizontal scrollbar.
|
|
|
Return the policy of vertical scrollbar.
|
|
|
You use the webFrameLoadRequest method to initiate a request that creates a provisional data source.
The provisional data source will transition to a committed data source once any data has been received.
Use webFrameGetDataSource to get the committed data source.
|
|
|
Returns the frame's security origin.
|
|
webFramePrint :: WebFrameClass self => self -> IO () | Source |
|
Prints the given WebFrame.
by presenting a print dialog to the user.
|
|
Produced by Haddock version 2.6.0 |