Maintainer | gtk2hs-users@lists.sourceforge.net |
---|---|
Stability | provisional |
Portability | portable (depends on GHC) |
Safe Haskell | None |
Language | Haskell98 |
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.
- data WebFrame
- class GObjectClass o => WebFrameClass o
- data LoadStatus
- webFrameNew :: WebViewClass webview => webview -> IO WebFrame
- webFrameGetWebView :: WebFrameClass self => self -> IO WebView
- webFrameGetName :: (WebFrameClass self, GlibString string) => self -> IO (Maybe string)
- webFrameGetNetworkResponse :: WebFrameClass self => self -> IO (Maybe NetworkResponse)
- webFrameGetTitle :: (WebFrameClass self, GlibString string) => self -> IO (Maybe string)
- webFrameGetUri :: (WebFrameClass self, GlibString string) => self -> IO (Maybe string)
- webFrameGetParent :: WebFrameClass self => self -> IO (Maybe WebFrame)
- webFrameGetLoadStatus :: WebFrameClass self => self -> IO LoadStatus
- webFrameLoadUri :: (WebFrameClass self, GlibString string) => self -> string -> IO ()
- webFrameLoadString :: (WebFrameClass self, GlibString string) => self -> string -> Maybe string -> string -> IO ()
- webFrameLoadAlternateString :: (WebFrameClass self, GlibString string) => self -> string -> string -> string -> IO ()
- webFrameLoadRequest :: (WebFrameClass self, NetworkRequestClass requ) => self -> requ -> IO ()
- webFrameStopLoading :: WebFrameClass self => self -> IO ()
- webFrameReload :: WebFrameClass self => self -> IO ()
- webFrameFindFrame :: (WebFrameClass self, GlibString string) => self -> string -> IO (Maybe WebFrame)
- webFrameGetDataSource :: WebFrameClass self => self -> IO WebDataSource
- webFrameGetHorizontalScrollbarPolicy :: WebFrameClass self => self -> IO PolicyType
- webFrameGetVerticalScrollbarPolicy :: WebFrameClass self => self -> IO PolicyType
- webFrameGetProvisionalDataSource :: WebFrameClass self => self -> IO WebDataSource
- webFrameGetSecurityOrigin :: WebFrameClass self => self -> IO SecurityOrigin
- webFramePrint :: WebFrameClass self => self -> IO ()
Description
A WebKitWebView contains a main WebKitWebFrame. A WebKitWebFrame contains the content of one
URI. The URI and name of the frame can be retrieved, the load status and progress can be observed
using the signals and can be controlled using the methods of the WebKitWebFrame. A WebKitWebFrame
can have any number of children and one child can be found by using webFrameFindFrame
.
Types
class GObjectClass o => WebFrameClass o Source
Constructors
:: WebViewClass webview | |
=> webview |
|
-> IO WebFrame |
Methods
webFrameGetWebView :: WebFrameClass self => self -> IO WebView Source
:: (WebFrameClass self, GlibString string) | |
=> self | |
-> IO (Maybe string) | the name string or |
Return the name of the given WebFrame
.
webFrameGetNetworkResponse :: WebFrameClass self => self -> IO (Maybe NetworkResponse) Source
Returns a WebKitNetworkResponse object representing the response that was given to the request for
the given frame, or Nothing
if the frame was not created by a load.
- Since 1.1.18
:: (WebFrameClass self, GlibString string) | |
=> self | |
-> IO (Maybe string) | the title string or |
Return the title of the given WebFrame
.
:: (WebFrameClass self, GlibString string) | |
=> self | |
-> IO (Maybe string) | the URI string or |
Return the URI of the given WebFrame
.
:: WebFrameClass self | |
=> self | |
-> IO (Maybe WebFrame) | a |
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
- Since 1.1.7
:: (WebFrameClass self, GlibString string) | |
=> self | |
-> string |
|
-> IO () |
Request loading of the specified URI string.
:: (WebFrameClass self, GlibString string) | |
=> self | |
-> string |
|
-> Maybe string |
|
-> string |
|
-> IO () |
Requests loading of the given content
with the specified mime_type
and base_uri
.
If mime_type
is Nothing
, "text/html" is assumed.
If want control over the encoding use webFrameLoadByteString
webFrameLoadAlternateString Source
:: (WebFrameClass self, GlibString string) | |
=> self | |
-> string |
|
-> string |
|
-> 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, GlibString string) | |
=> self | |
-> 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
webFrameGetDataSource :: WebFrameClass self => self -> IO WebDataSource Source
Returns the committed data source.
webFrameGetHorizontalScrollbarPolicy :: WebFrameClass self => self -> IO PolicyType Source
Return the policy of horizontal scrollbar.
webFrameGetVerticalScrollbarPolicy :: WebFrameClass self => self -> IO PolicyType Source
Return the policy of vertical scrollbar.
webFrameGetProvisionalDataSource :: WebFrameClass self => self -> IO WebDataSource Source
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.
webFrameGetSecurityOrigin :: WebFrameClass self => self -> IO SecurityOrigin 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.