-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/
-- | WebKit2 bindings
--
-- Bindings for WebKit2, autogenerated by haskell-gi.
@package gi-webkit2
@version 4.0.14
module GI.WebKit2.Structs.WebViewSessionState
newtype WebViewSessionState
WebViewSessionState :: (ManagedPtr WebViewSessionState) -> WebViewSessionState
noWebViewSessionState :: Maybe WebViewSessionState
-- | Creates a new WebViewSessionState from serialized data.
webViewSessionStateNew :: (HasCallStack, MonadIO m) => Bytes -> m WebViewSessionState
-- | Atomically increments the reference count of state by
-- one. This function is MT-safe and may be called from any thread.
webViewSessionStateRef :: (HasCallStack, MonadIO m) => WebViewSessionState -> m WebViewSessionState
-- | Serializes a WebViewSessionState.
webViewSessionStateSerialize :: (HasCallStack, MonadIO m) => WebViewSessionState -> m Bytes
-- | Atomically decrements the reference count of state by
-- one. If the reference count drops to 0, all memory allocated by the
-- WebViewSessionState is released. This function is MT-safe and
-- may be called from any thread.
webViewSessionStateUnref :: (HasCallStack, MonadIO m) => WebViewSessionState -> m ()
instance Data.GI.Base.BasicTypes.BoxedObject GI.WebKit2.Structs.WebViewSessionState.WebViewSessionState
module GI.WebKit2.Structs.SecurityOrigin
newtype SecurityOrigin
SecurityOrigin :: (ManagedPtr SecurityOrigin) -> SecurityOrigin
noSecurityOrigin :: Maybe SecurityOrigin
-- | Gets the hostname of origin, or Nothing if
-- origin is opaque or if its protocol does not require a
-- host component.
securityOriginGetHost :: (HasCallStack, MonadIO m) => SecurityOrigin -> m (Maybe Text)
-- | Gets the port of origin. This function will always
-- return 0 if the port is the default port for the given protocol. For
-- example, http://example.com has the same security origin as
-- http://example.com:80, and this function will return 0 for a
-- SecurityOrigin constructed from either URI. It will also return
-- 0 if origin is opaque.
securityOriginGetPort :: (HasCallStack, MonadIO m) => SecurityOrigin -> m Word16
-- | Gets the protocol of origin, or Nothing if
-- origin is opaque.
securityOriginGetProtocol :: (HasCallStack, MonadIO m) => SecurityOrigin -> m (Maybe Text)
-- | Gets whether origin is an opaque security origin,
-- which does not possess an associated protocol, host, or port.
securityOriginIsOpaque :: (HasCallStack, MonadIO m) => SecurityOrigin -> m Bool
-- | Create a new security origin from the provided protocol, host and
-- port.
securityOriginNew :: (HasCallStack, MonadIO m) => Text -> Text -> Word16 -> m SecurityOrigin
-- | Create a new security origin from the provided URI. Components of
-- uri other than protocol, host, and port do not affect
-- the created SecurityOrigin.
securityOriginNewForUri :: (HasCallStack, MonadIO m) => Text -> m SecurityOrigin
-- | Atomically increments the reference count of origin by
-- one. This function is MT-safe and may be called from any thread.
securityOriginRef :: (HasCallStack, MonadIO m) => SecurityOrigin -> m SecurityOrigin
-- | Gets a string representation of origin. The string
-- representation is a valid URI with only protocol, host, and port
-- components. It may be Nothing, but usually only if
-- origin is opaque.
securityOriginToString :: (HasCallStack, MonadIO m) => SecurityOrigin -> m (Maybe Text)
-- | Atomically decrements the reference count of origin by
-- one. If the reference count drops to 0, all memory allocated by
-- SecurityOrigin is released. This function is MT-safe and may be
-- called from any thread.
securityOriginUnref :: (HasCallStack, MonadIO m) => SecurityOrigin -> m ()
instance Data.GI.Base.BasicTypes.BoxedObject GI.WebKit2.Structs.SecurityOrigin.SecurityOrigin
module GI.WebKit2.Structs.NetworkProxySettings
newtype NetworkProxySettings
NetworkProxySettings :: (ManagedPtr NetworkProxySettings) -> NetworkProxySettings
noNetworkProxySettings :: Maybe NetworkProxySettings
-- | Adds a URI-scheme-specific proxy. URIs whose scheme matches
-- uriScheme will be proxied via
-- proxyUri. As with the default proxy URI, if
-- proxyUri starts with "socks://", it will be treated as
-- referring to all three of the socks5, socks4a, and socks4 proxy types.
networkProxySettingsAddProxyForScheme :: (HasCallStack, MonadIO m) => NetworkProxySettings -> Text -> Text -> m ()
-- | Make a copy of the NetworkProxySettings.
networkProxySettingsCopy :: (HasCallStack, MonadIO m) => NetworkProxySettings -> m NetworkProxySettings
-- | Free the NetworkProxySettings.
networkProxySettingsFree :: (HasCallStack, MonadIO m) => NetworkProxySettings -> m ()
-- | Create a new NetworkProxySettings with the given
-- defaultProxyUri and ignoreHosts.
--
-- The default proxy URI will be used for any URI that doesn't match
-- ignoreHosts, and doesn't match any of the schemes
-- added with networkProxySettingsAddProxyForScheme. If
-- defaultProxyUri starts with "socks://", it will be
-- treated as referring to all three of the socks5, socks4a, and socks4
-- proxy types.
--
-- ignoreHosts is a list of hostnames and IP addresses
-- that the resolver should allow direct connections to. Entries can be
-- in one of 4 formats: <itemizedlist> <listitem><para>
-- A hostname, such as "example.com", ".example.com", or "*.example.com",
-- any of which match "example.com" or any subdomain of it.
-- </para></listitem> <listitem><para> An IPv4 or
-- IPv6 address, such as "192.168.1.1", which matches only that address.
-- </para></listitem> <listitem><para> A hostname
-- or IP address followed by a port, such as "example.com:80", which
-- matches whatever the hostname or IP address would match, but only for
-- URLs with the (explicitly) indicated port. In the case of an IPv6
-- address, the address part must appear in brackets: "[::1]:443"
-- </para></listitem> <listitem><para> An IP
-- address range, given by a base address and prefix length, such as
-- "fe80::/10", which matches any address in that range.
-- </para></listitem> </itemizedlist>
--
-- Note that when dealing with Unicode hostnames, the matching is done
-- against the ASCII form of the name. Also note that hostname exclusions
-- apply only to connections made to hosts identified by name, and IP
-- address exclusions apply only to connections made to hosts identified
-- by address. That is, if example.com has an address of 192.168.1.1, and
-- ignoreHosts contains only "192.168.1.1", then a
-- connection to "example.com" will use the proxy, and a connection to
-- 192.168.1.1" will not.
networkProxySettingsNew :: (HasCallStack, MonadIO m) => Maybe (Text) -> Maybe (Text) -> m NetworkProxySettings
instance Data.GI.Base.BasicTypes.BoxedObject GI.WebKit2.Structs.NetworkProxySettings.NetworkProxySettings
module GI.WebKit2.Structs.MimeInfo
newtype MimeInfo
MimeInfo :: (ManagedPtr MimeInfo) -> MimeInfo
noMimeInfo :: Maybe MimeInfo
-- | No description available in the introspection data.
mimeInfoGetDescription :: (HasCallStack, MonadIO m) => MimeInfo -> m Text
-- | Get the list of file extensions associated to the MIME type of
-- info
mimeInfoGetExtensions :: (HasCallStack, MonadIO m) => MimeInfo -> m [Text]
-- | No description available in the introspection data.
mimeInfoGetMimeType :: (HasCallStack, MonadIO m) => MimeInfo -> m Text
-- | Atomically increments the reference count of info by
-- one. This function is MT-safe and may be called from any thread.
mimeInfoRef :: (HasCallStack, MonadIO m) => MimeInfo -> m MimeInfo
-- | Atomically decrements the reference count of info by
-- one. If the reference count drops to 0, all memory allocated by the
-- MimeInfo is released. This function is MT-safe and may be
-- called from any thread.
mimeInfoUnref :: (HasCallStack, MonadIO m) => MimeInfo -> m ()
instance Data.GI.Base.BasicTypes.BoxedObject GI.WebKit2.Structs.MimeInfo.MimeInfo
module GI.WebKit2.Structs.JavascriptResult
newtype JavascriptResult
JavascriptResult :: (ManagedPtr JavascriptResult) -> JavascriptResult
noJavascriptResult :: Maybe JavascriptResult
-- | Get the global Javascript context that should be used with the
-- <function>JSValueRef</function> returned by
-- javascriptResultGetValue.
javascriptResultGetGlobalContext :: (HasCallStack, MonadIO m) => JavascriptResult -> m GlobalContext
-- | Get the value of jsResult. You should use the
-- <function>JSGlobalContextRef</function> returned by
-- javascriptResultGetGlobalContext to use the
-- <function>JSValueRef</function>.
javascriptResultGetValue :: (HasCallStack, MonadIO m) => JavascriptResult -> m Value
-- | Atomically increments the reference count of jsResult
-- by one. This function is MT-safe and may be called from any thread.
javascriptResultRef :: (HasCallStack, MonadIO m) => JavascriptResult -> m JavascriptResult
-- | Atomically decrements the reference count of jsResult
-- by one. If the reference count drops to 0, all memory allocated by the
-- JavascriptResult is released. This function is MT-safe and may
-- be called from any thread.
javascriptResultUnref :: (HasCallStack, MonadIO m) => JavascriptResult -> m ()
instance Data.GI.Base.BasicTypes.BoxedObject GI.WebKit2.Structs.JavascriptResult.JavascriptResult
module GI.WebKit2.PkgInfo
pkgConfigVersions :: [(String, String)]
flags :: [(String, Bool)]
module GI.WebKit2.Objects.WindowProperties
newtype WindowProperties
WindowProperties :: (ManagedPtr WindowProperties) -> WindowProperties
class GObject o => IsWindowProperties o
toWindowProperties :: (MonadIO m, IsWindowProperties o) => o -> m WindowProperties
noWindowProperties :: Maybe WindowProperties
-- | Get whether the window should be shown in fullscreen state or not.
windowPropertiesGetFullscreen :: (HasCallStack, MonadIO m, IsWindowProperties a) => a -> m Bool
-- | Get the geometry the window should have on the screen when shown.
windowPropertiesGetGeometry :: (HasCallStack, MonadIO m, IsWindowProperties a) => a -> m (Rectangle)
-- | Get whether the window should have the locationbar visible or not.
windowPropertiesGetLocationbarVisible :: (HasCallStack, MonadIO m, IsWindowProperties a) => a -> m Bool
-- | Get whether the window should have the menubar visible or not.
windowPropertiesGetMenubarVisible :: (HasCallStack, MonadIO m, IsWindowProperties a) => a -> m Bool
-- | Get whether the window should be resizable by the user or not.
windowPropertiesGetResizable :: (HasCallStack, MonadIO m, IsWindowProperties a) => a -> m Bool
-- | Get whether the window should have the scrollbars visible or not.
windowPropertiesGetScrollbarsVisible :: (HasCallStack, MonadIO m, IsWindowProperties a) => a -> m Bool
-- | Get whether the window should have the statusbar visible or not.
windowPropertiesGetStatusbarVisible :: (HasCallStack, MonadIO m, IsWindowProperties a) => a -> m Bool
-- | Get whether the window should have the toolbar visible or not.
windowPropertiesGetToolbarVisible :: (HasCallStack, MonadIO m, IsWindowProperties a) => a -> m Bool
constructWindowPropertiesFullscreen :: (IsWindowProperties o) => Bool -> IO (GValueConstruct o)
getWindowPropertiesFullscreen :: (MonadIO m, IsWindowProperties o) => o -> m Bool
constructWindowPropertiesGeometry :: (IsWindowProperties o) => Rectangle -> IO (GValueConstruct o)
getWindowPropertiesGeometry :: (MonadIO m, IsWindowProperties o) => o -> m (Maybe Rectangle)
constructWindowPropertiesLocationbarVisible :: (IsWindowProperties o) => Bool -> IO (GValueConstruct o)
getWindowPropertiesLocationbarVisible :: (MonadIO m, IsWindowProperties o) => o -> m Bool
constructWindowPropertiesMenubarVisible :: (IsWindowProperties o) => Bool -> IO (GValueConstruct o)
getWindowPropertiesMenubarVisible :: (MonadIO m, IsWindowProperties o) => o -> m Bool
constructWindowPropertiesResizable :: (IsWindowProperties o) => Bool -> IO (GValueConstruct o)
getWindowPropertiesResizable :: (MonadIO m, IsWindowProperties o) => o -> m Bool
constructWindowPropertiesScrollbarsVisible :: (IsWindowProperties o) => Bool -> IO (GValueConstruct o)
getWindowPropertiesScrollbarsVisible :: (MonadIO m, IsWindowProperties o) => o -> m Bool
constructWindowPropertiesStatusbarVisible :: (IsWindowProperties o) => Bool -> IO (GValueConstruct o)
getWindowPropertiesStatusbarVisible :: (MonadIO m, IsWindowProperties o) => o -> m Bool
constructWindowPropertiesToolbarVisible :: (IsWindowProperties o) => Bool -> IO (GValueConstruct o)
getWindowPropertiesToolbarVisible :: (MonadIO m, IsWindowProperties o) => o -> m Bool
instance Data.GI.Base.BasicTypes.GObject GI.WebKit2.Objects.WindowProperties.WindowProperties
instance (Data.GI.Base.BasicTypes.GObject a, Data.GI.Base.Overloading.UnknownAncestorError GI.WebKit2.Objects.WindowProperties.WindowProperties a) => GI.WebKit2.Objects.WindowProperties.IsWindowProperties a
instance GI.WebKit2.Objects.WindowProperties.IsWindowProperties GI.WebKit2.Objects.WindowProperties.WindowProperties
instance GI.GObject.Objects.Object.IsObject GI.WebKit2.Objects.WindowProperties.WindowProperties
module GI.WebKit2.Objects.WebViewBase
newtype WebViewBase
WebViewBase :: (ManagedPtr WebViewBase) -> WebViewBase
class GObject o => IsWebViewBase o
toWebViewBase :: (MonadIO m, IsWebViewBase o) => o -> m WebViewBase
noWebViewBase :: Maybe WebViewBase
instance Data.GI.Base.BasicTypes.GObject GI.WebKit2.Objects.WebViewBase.WebViewBase
instance (Data.GI.Base.BasicTypes.GObject a, Data.GI.Base.Overloading.UnknownAncestorError GI.WebKit2.Objects.WebViewBase.WebViewBase a) => GI.WebKit2.Objects.WebViewBase.IsWebViewBase a
instance GI.WebKit2.Objects.WebViewBase.IsWebViewBase GI.WebKit2.Objects.WebViewBase.WebViewBase
instance GI.Gtk.Objects.Container.IsContainer GI.WebKit2.Objects.WebViewBase.WebViewBase
instance GI.Gtk.Objects.Widget.IsWidget GI.WebKit2.Objects.WebViewBase.WebViewBase
instance GI.GObject.Objects.Object.IsObject GI.WebKit2.Objects.WebViewBase.WebViewBase
instance GI.Atk.Interfaces.ImplementorIface.IsImplementorIface GI.WebKit2.Objects.WebViewBase.WebViewBase
instance GI.Gtk.Interfaces.Buildable.IsBuildable GI.WebKit2.Objects.WebViewBase.WebViewBase
module GI.WebKit2.Objects.WebInspector
newtype WebInspector
WebInspector :: (ManagedPtr WebInspector) -> WebInspector
class GObject o => IsWebInspector o
toWebInspector :: (MonadIO m, IsWebInspector o) => o -> m WebInspector
noWebInspector :: Maybe WebInspector
-- | Request inspector to be attached. The signal
-- WebInspector::attach will be emitted. If the
-- inspector is already attached it does nothing.
webInspectorAttach :: (HasCallStack, MonadIO m, IsWebInspector a) => a -> m ()
-- | Request inspector to be closed.
webInspectorClose :: (HasCallStack, MonadIO m, IsWebInspector a) => a -> m ()
-- | Request inspector to be detached. The signal
-- WebInspector::detach will be emitted. If the
-- inspector is already detached it does nothing.
webInspectorDetach :: (HasCallStack, MonadIO m, IsWebInspector a) => a -> m ()
-- | Get the height that the inspector view should have when it's attached.
-- If the inspector view is not attached this returns 0.
webInspectorGetAttachedHeight :: (HasCallStack, MonadIO m, IsWebInspector a) => a -> m Word32
-- | Whether the inspector can be attached to the same
-- window that contains the inspected view.
webInspectorGetCanAttach :: (HasCallStack, MonadIO m, IsWebInspector a) => a -> m Bool
-- | Get the URI that is currently being inspected. This can be
-- Nothing if nothing has been loaded yet in the inspected view,
-- if the inspector has been closed or when inspected view was loaded
-- from a HTML string instead of a URI.
webInspectorGetInspectedUri :: (HasCallStack, MonadIO m, IsWebInspector a) => a -> m Text
-- | Get the WebViewBase used to display the inspector. This might
-- be Nothing if the inspector hasn't been loaded yet, or it has
-- been closed.
webInspectorGetWebView :: (HasCallStack, MonadIO m, IsWebInspector a) => a -> m WebViewBase
-- | Whether the inspector view is currently attached to
-- the same window that contains the inspected view.
webInspectorIsAttached :: (HasCallStack, MonadIO m, IsWebInspector a) => a -> m Bool
-- | Request inspector to be shown.
webInspectorShow :: (HasCallStack, MonadIO m, IsWebInspector a) => a -> m ()
getWebInspectorAttachedHeight :: (MonadIO m, IsWebInspector o) => o -> m Word32
getWebInspectorCanAttach :: (MonadIO m, IsWebInspector o) => o -> m Bool
getWebInspectorInspectedUri :: (MonadIO m, IsWebInspector o) => o -> m Text
type C_WebInspectorAttachCallback = Ptr () -> Ptr () -> IO CInt
type WebInspectorAttachCallback = IO Bool
afterWebInspectorAttach :: (IsWebInspector a, MonadIO m) => a -> WebInspectorAttachCallback -> m SignalHandlerId
genClosure_WebInspectorAttach :: WebInspectorAttachCallback -> IO Closure
mk_WebInspectorAttachCallback :: C_WebInspectorAttachCallback -> IO (FunPtr C_WebInspectorAttachCallback)
noWebInspectorAttachCallback :: Maybe WebInspectorAttachCallback
onWebInspectorAttach :: (IsWebInspector a, MonadIO m) => a -> WebInspectorAttachCallback -> m SignalHandlerId
wrap_WebInspectorAttachCallback :: WebInspectorAttachCallback -> Ptr () -> Ptr () -> IO CInt
type C_WebInspectorBringToFrontCallback = Ptr () -> Ptr () -> IO CInt
type WebInspectorBringToFrontCallback = IO Bool
afterWebInspectorBringToFront :: (IsWebInspector a, MonadIO m) => a -> WebInspectorBringToFrontCallback -> m SignalHandlerId
genClosure_WebInspectorBringToFront :: WebInspectorBringToFrontCallback -> IO Closure
mk_WebInspectorBringToFrontCallback :: C_WebInspectorBringToFrontCallback -> IO (FunPtr C_WebInspectorBringToFrontCallback)
noWebInspectorBringToFrontCallback :: Maybe WebInspectorBringToFrontCallback
onWebInspectorBringToFront :: (IsWebInspector a, MonadIO m) => a -> WebInspectorBringToFrontCallback -> m SignalHandlerId
wrap_WebInspectorBringToFrontCallback :: WebInspectorBringToFrontCallback -> Ptr () -> Ptr () -> IO CInt
type C_WebInspectorClosedCallback = Ptr () -> Ptr () -> IO ()
type WebInspectorClosedCallback = IO ()
afterWebInspectorClosed :: (IsWebInspector a, MonadIO m) => a -> WebInspectorClosedCallback -> m SignalHandlerId
genClosure_WebInspectorClosed :: WebInspectorClosedCallback -> IO Closure
mk_WebInspectorClosedCallback :: C_WebInspectorClosedCallback -> IO (FunPtr C_WebInspectorClosedCallback)
noWebInspectorClosedCallback :: Maybe WebInspectorClosedCallback
onWebInspectorClosed :: (IsWebInspector a, MonadIO m) => a -> WebInspectorClosedCallback -> m SignalHandlerId
wrap_WebInspectorClosedCallback :: WebInspectorClosedCallback -> Ptr () -> Ptr () -> IO ()
type C_WebInspectorDetachCallback = Ptr () -> Ptr () -> IO CInt
type WebInspectorDetachCallback = IO Bool
afterWebInspectorDetach :: (IsWebInspector a, MonadIO m) => a -> WebInspectorDetachCallback -> m SignalHandlerId
genClosure_WebInspectorDetach :: WebInspectorDetachCallback -> IO Closure
mk_WebInspectorDetachCallback :: C_WebInspectorDetachCallback -> IO (FunPtr C_WebInspectorDetachCallback)
noWebInspectorDetachCallback :: Maybe WebInspectorDetachCallback
onWebInspectorDetach :: (IsWebInspector a, MonadIO m) => a -> WebInspectorDetachCallback -> m SignalHandlerId
wrap_WebInspectorDetachCallback :: WebInspectorDetachCallback -> Ptr () -> Ptr () -> IO CInt
type C_WebInspectorOpenWindowCallback = Ptr () -> Ptr () -> IO CInt
type WebInspectorOpenWindowCallback = IO Bool
afterWebInspectorOpenWindow :: (IsWebInspector a, MonadIO m) => a -> WebInspectorOpenWindowCallback -> m SignalHandlerId
genClosure_WebInspectorOpenWindow :: WebInspectorOpenWindowCallback -> IO Closure
mk_WebInspectorOpenWindowCallback :: C_WebInspectorOpenWindowCallback -> IO (FunPtr C_WebInspectorOpenWindowCallback)
noWebInspectorOpenWindowCallback :: Maybe WebInspectorOpenWindowCallback
onWebInspectorOpenWindow :: (IsWebInspector a, MonadIO m) => a -> WebInspectorOpenWindowCallback -> m SignalHandlerId
wrap_WebInspectorOpenWindowCallback :: WebInspectorOpenWindowCallback -> Ptr () -> Ptr () -> IO CInt
instance Data.GI.Base.BasicTypes.GObject GI.WebKit2.Objects.WebInspector.WebInspector
instance (Data.GI.Base.BasicTypes.GObject a, Data.GI.Base.Overloading.UnknownAncestorError GI.WebKit2.Objects.WebInspector.WebInspector a) => GI.WebKit2.Objects.WebInspector.IsWebInspector a
instance GI.WebKit2.Objects.WebInspector.IsWebInspector GI.WebKit2.Objects.WebInspector.WebInspector
instance GI.GObject.Objects.Object.IsObject GI.WebKit2.Objects.WebInspector.WebInspector
module GI.WebKit2.Objects.UserContentManager
newtype UserContentManager
UserContentManager :: (ManagedPtr UserContentManager) -> UserContentManager
class GObject o => IsUserContentManager o
toUserContentManager :: (MonadIO m, IsUserContentManager o) => o -> m UserContentManager
noUserContentManager :: Maybe UserContentManager
-- | Adds a UserScript to the given UserContentManager. The
-- same UserScript can be reused with multiple
-- UserContentManager instances.
userContentManagerAddScript :: (HasCallStack, MonadIO m, IsUserContentManager a) => a -> UserScript -> m ()
-- | Adds a UserStyleSheet to the given UserContentManager.
-- The same UserStyleSheet can be reused with multiple
-- UserContentManager instances.
userContentManagerAddStyleSheet :: (HasCallStack, MonadIO m, IsUserContentManager a) => a -> UserStyleSheet -> m ()
-- | Creates a new user content manager.
userContentManagerNew :: (HasCallStack, MonadIO m) => m UserContentManager
-- | Registers a new user script message handler. After it is registered,
-- scripts can use
-- window.webkit.messageHandlers.<name>.postMessage(value)
-- to send messages. Those messages are received by connecting handlers
-- to the
-- UserContentManager::script-message-received
-- signal. The handler name is used as the detail of the signal. To avoid
-- race conditions between registering the handler name, and starting to
-- receive the signals, it is recommended to connect to the signal
-- *before* registering the handler name:
--
-- <informalexample><programlisting> WebKitWebView *view =
-- webkit_web_view_new (); WebKitUserContentManager *manager =
-- webkit_web_view_get_user_content_manager (); g_signal_connect
-- (manager, "script-message-received::foobar", G_CALLBACK
-- (handle_script_message), NULL);
-- webkit_user_content_manager_register_script_message_handler (manager,
-- "foobar"); </programlisting></informalexample>
--
-- Registering a script message handler will fail if the requested name
-- has been already registered before.
userContentManagerRegisterScriptMessageHandler :: (HasCallStack, MonadIO m, IsUserContentManager a) => a -> Text -> m Bool
-- | Removes all user scripts from the given UserContentManager
userContentManagerRemoveAllScripts :: (HasCallStack, MonadIO m, IsUserContentManager a) => a -> m ()
-- | Removes all user style sheets from the given
-- UserContentManager.
userContentManagerRemoveAllStyleSheets :: (HasCallStack, MonadIO m, IsUserContentManager a) => a -> m ()
-- | Unregisters a previously registered message handler.
--
-- Note that this does *not* disconnect handlers for the
-- UserContentManager::script-message-received
-- signal, they will be kept connected, but the signal will not be
-- emitted unless the handler name is registered again.
--
-- See also userContentManagerRegisterScriptMessageHandler
userContentManagerUnregisterScriptMessageHandler :: (HasCallStack, MonadIO m, IsUserContentManager a) => a -> Text -> m ()
type C_UserContentManagerScriptMessageReceivedCallback = Ptr () -> Ptr JavascriptResult -> Ptr () -> IO ()
type UserContentManagerScriptMessageReceivedCallback = JavascriptResult -> IO ()
afterUserContentManagerScriptMessageReceived :: (IsUserContentManager a, MonadIO m) => a -> UserContentManagerScriptMessageReceivedCallback -> m SignalHandlerId
genClosure_UserContentManagerScriptMessageReceived :: UserContentManagerScriptMessageReceivedCallback -> IO Closure
mk_UserContentManagerScriptMessageReceivedCallback :: C_UserContentManagerScriptMessageReceivedCallback -> IO (FunPtr C_UserContentManagerScriptMessageReceivedCallback)
noUserContentManagerScriptMessageReceivedCallback :: Maybe UserContentManagerScriptMessageReceivedCallback
onUserContentManagerScriptMessageReceived :: (IsUserContentManager a, MonadIO m) => a -> UserContentManagerScriptMessageReceivedCallback -> m SignalHandlerId
wrap_UserContentManagerScriptMessageReceivedCallback :: UserContentManagerScriptMessageReceivedCallback -> Ptr () -> Ptr JavascriptResult -> Ptr () -> IO ()
instance Data.GI.Base.BasicTypes.GObject GI.WebKit2.Objects.UserContentManager.UserContentManager
instance (Data.GI.Base.BasicTypes.GObject a, Data.GI.Base.Overloading.UnknownAncestorError GI.WebKit2.Objects.UserContentManager.UserContentManager a) => GI.WebKit2.Objects.UserContentManager.IsUserContentManager a
instance GI.WebKit2.Objects.UserContentManager.IsUserContentManager GI.WebKit2.Objects.UserContentManager.UserContentManager
instance GI.GObject.Objects.Object.IsObject GI.WebKit2.Objects.UserContentManager.UserContentManager
module GI.WebKit2.Objects.URISchemeRequest
newtype URISchemeRequest
URISchemeRequest :: (ManagedPtr URISchemeRequest) -> URISchemeRequest
class GObject o => IsURISchemeRequest o
toURISchemeRequest :: (MonadIO m, IsURISchemeRequest o) => o -> m URISchemeRequest
noURISchemeRequest :: Maybe URISchemeRequest
-- | Finish a URISchemeRequest by setting the contents of the
-- request and its mime type.
uRISchemeRequestFinish :: (HasCallStack, MonadIO m, IsURISchemeRequest a, IsInputStream b) => a -> b -> Int64 -> Maybe (Text) -> m ()
-- | Finish a URISchemeRequest with a GError.
uRISchemeRequestFinishError :: (HasCallStack, MonadIO m, IsURISchemeRequest a) => a -> GError -> m ()
-- | Get the URI path of request
uRISchemeRequestGetPath :: (HasCallStack, MonadIO m, IsURISchemeRequest a) => a -> m Text
-- | Get the URI scheme of request
uRISchemeRequestGetScheme :: (HasCallStack, MonadIO m, IsURISchemeRequest a) => a -> m Text
-- | Get the URI of request
uRISchemeRequestGetUri :: (HasCallStack, MonadIO m, IsURISchemeRequest a) => a -> m Text
-- | Get the WebView that initiated the request.
uRISchemeRequestGetWebView :: (HasCallStack, MonadIO m, IsURISchemeRequest a) => a -> m WebView
instance Data.GI.Base.BasicTypes.GObject GI.WebKit2.Objects.URISchemeRequest.URISchemeRequest
instance (Data.GI.Base.BasicTypes.GObject a, Data.GI.Base.Overloading.UnknownAncestorError GI.WebKit2.Objects.URISchemeRequest.URISchemeRequest a) => GI.WebKit2.Objects.URISchemeRequest.IsURISchemeRequest a
instance GI.WebKit2.Objects.URISchemeRequest.IsURISchemeRequest GI.WebKit2.Objects.URISchemeRequest.URISchemeRequest
instance GI.GObject.Objects.Object.IsObject GI.WebKit2.Objects.URISchemeRequest.URISchemeRequest
module GI.WebKit2.Objects.URIResponse
newtype URIResponse
URIResponse :: (ManagedPtr URIResponse) -> URIResponse
class GObject o => IsURIResponse o
toURIResponse :: (MonadIO m, IsURIResponse o) => o -> m URIResponse
noURIResponse :: Maybe URIResponse
-- | Get the expected content length of the URIResponse. It can be 0
-- if the server provided an incorrect or missing Content-Length.
uRIResponseGetContentLength :: (HasCallStack, MonadIO m, IsURIResponse a) => a -> m Word64
-- | Get the HTTP headers of a URIResponse as a
-- MessageHeaders.
uRIResponseGetHttpHeaders :: (HasCallStack, MonadIO m, IsURIResponse a) => a -> m MessageHeaders
-- | No description available in the introspection data.
uRIResponseGetMimeType :: (HasCallStack, MonadIO m, IsURIResponse a) => a -> m Text
-- | Get the status code of the URIResponse as returned by the
-- server. It will normally be a KnownStatusCode, for example
-- StatusOk, though the server can respond with any unsigned
-- integer.
uRIResponseGetStatusCode :: (HasCallStack, MonadIO m, IsURIResponse a) => a -> m Word32
-- | Get the suggested filename for response, as specified
-- by the 'Content-Disposition' HTTP header, or Nothing if it's
-- not present.
uRIResponseGetSuggestedFilename :: (HasCallStack, MonadIO m, IsURIResponse a) => a -> m Text
-- | No description available in the introspection data.
uRIResponseGetUri :: (HasCallStack, MonadIO m, IsURIResponse a) => a -> m Text
getURIResponseContentLength :: (MonadIO m, IsURIResponse o) => o -> m Word64
getURIResponseHttpHeaders :: (MonadIO m, IsURIResponse o) => o -> m MessageHeaders
getURIResponseMimeType :: (MonadIO m, IsURIResponse o) => o -> m Text
getURIResponseStatusCode :: (MonadIO m, IsURIResponse o) => o -> m Word32
getURIResponseSuggestedFilename :: (MonadIO m, IsURIResponse o) => o -> m Text
getURIResponseUri :: (MonadIO m, IsURIResponse o) => o -> m Text
instance Data.GI.Base.BasicTypes.GObject GI.WebKit2.Objects.URIResponse.URIResponse
instance (Data.GI.Base.BasicTypes.GObject a, Data.GI.Base.Overloading.UnknownAncestorError GI.WebKit2.Objects.URIResponse.URIResponse a) => GI.WebKit2.Objects.URIResponse.IsURIResponse a
instance GI.WebKit2.Objects.URIResponse.IsURIResponse GI.WebKit2.Objects.URIResponse.URIResponse
instance GI.GObject.Objects.Object.IsObject GI.WebKit2.Objects.URIResponse.URIResponse
module GI.WebKit2.Objects.URIRequest
newtype URIRequest
URIRequest :: (ManagedPtr URIRequest) -> URIRequest
class GObject o => IsURIRequest o
toURIRequest :: (MonadIO m, IsURIRequest o) => o -> m URIRequest
noURIRequest :: Maybe URIRequest
-- | Get the HTTP headers of a URIRequest as a
-- MessageHeaders.
uRIRequestGetHttpHeaders :: (HasCallStack, MonadIO m, IsURIRequest a) => a -> m MessageHeaders
-- | Get the HTTP method of the URIRequest.
uRIRequestGetHttpMethod :: (HasCallStack, MonadIO m, IsURIRequest a) => a -> m Text
-- | No description available in the introspection data.
uRIRequestGetUri :: (HasCallStack, MonadIO m, IsURIRequest a) => a -> m Text
-- | Creates a new URIRequest for the given URI.
uRIRequestNew :: (HasCallStack, MonadIO m) => Text -> m URIRequest
-- | Set the URI of request
uRIRequestSetUri :: (HasCallStack, MonadIO m, IsURIRequest a) => a -> Text -> m ()
constructURIRequestUri :: (IsURIRequest o) => Text -> IO (GValueConstruct o)
getURIRequestUri :: (MonadIO m, IsURIRequest o) => o -> m Text
setURIRequestUri :: (MonadIO m, IsURIRequest o) => o -> Text -> m ()
instance Data.GI.Base.BasicTypes.GObject GI.WebKit2.Objects.URIRequest.URIRequest
instance (Data.GI.Base.BasicTypes.GObject a, Data.GI.Base.Overloading.UnknownAncestorError GI.WebKit2.Objects.URIRequest.URIRequest a) => GI.WebKit2.Objects.URIRequest.IsURIRequest a
instance GI.WebKit2.Objects.URIRequest.IsURIRequest GI.WebKit2.Objects.URIRequest.URIRequest
instance GI.GObject.Objects.Object.IsObject GI.WebKit2.Objects.URIRequest.URIRequest
module GI.WebKit2.Objects.WebResource
newtype WebResource
WebResource :: (ManagedPtr WebResource) -> WebResource
class GObject o => IsWebResource o
toWebResource :: (MonadIO m, IsWebResource o) => o -> m WebResource
noWebResource :: Maybe WebResource
-- | Asynchronously get the raw data for resource.
--
-- When the operation is finished, callback will be
-- called. You can then call webResourceGetDataFinish to get the
-- result of the operation.
webResourceGetData :: (HasCallStack, MonadIO m, IsWebResource a, IsCancellable b) => a -> Maybe (b) -> Maybe (AsyncReadyCallback) -> m ()
-- | Finish an asynchronous operation started with
-- webResourceGetData.
webResourceGetDataFinish :: (HasCallStack, MonadIO m, IsWebResource a, IsAsyncResult b) => a -> b -> m ByteString
-- | Retrieves the URIResponse of the resource load operation. This
-- method returns Nothing if called before the response is
-- received from the server. You can connect to notify::response signal
-- to be notified when the response is received.
webResourceGetResponse :: (HasCallStack, MonadIO m, IsWebResource a) => a -> m URIResponse
-- | Returns the current active URI of resource. The active
-- URI might change during a load operation:
--
-- <orderedlist> <listitem><para> When the resource
-- load starts, the active URI is the requested URI
-- </para></listitem> <listitem><para> When the
-- initial request is sent to the server,
-- WebResource::sent-request signal is emitted
-- without a redirected response, the active URI is the URI of the
-- request sent to the server. </para></listitem>
-- <listitem><para> In case of a server redirection,
-- WebResource::sent-request signal is emitted
-- again with a redirected response, the active URI is the URI the
-- request was redirected to. </para></listitem>
-- <listitem><para> When the response is received from the
-- server, the active URI is the final one and it will not change again.
-- </para></listitem> </orderedlist>
--
-- You can monitor the active URI by connecting to the notify::uri signal
-- of resource.
webResourceGetUri :: (HasCallStack, MonadIO m, IsWebResource a) => a -> m Text
getWebResourceResponse :: (MonadIO m, IsWebResource o) => o -> m URIResponse
getWebResourceUri :: (MonadIO m, IsWebResource o) => o -> m Text
type C_WebResourceFailedCallback = Ptr () -> Ptr GError -> Ptr () -> IO ()
type WebResourceFailedCallback = GError -> IO ()
afterWebResourceFailed :: (IsWebResource a, MonadIO m) => a -> WebResourceFailedCallback -> m SignalHandlerId
genClosure_WebResourceFailed :: WebResourceFailedCallback -> IO Closure
mk_WebResourceFailedCallback :: C_WebResourceFailedCallback -> IO (FunPtr C_WebResourceFailedCallback)
noWebResourceFailedCallback :: Maybe WebResourceFailedCallback
onWebResourceFailed :: (IsWebResource a, MonadIO m) => a -> WebResourceFailedCallback -> m SignalHandlerId
wrap_WebResourceFailedCallback :: WebResourceFailedCallback -> Ptr () -> Ptr GError -> Ptr () -> IO ()
type C_WebResourceFailedWithTlsErrorsCallback = Ptr () -> Ptr TlsCertificate -> CUInt -> Ptr () -> IO ()
type WebResourceFailedWithTlsErrorsCallback = TlsCertificate -> [TlsCertificateFlags] -> IO ()
afterWebResourceFailedWithTlsErrors :: (IsWebResource a, MonadIO m) => a -> WebResourceFailedWithTlsErrorsCallback -> m SignalHandlerId
genClosure_WebResourceFailedWithTlsErrors :: WebResourceFailedWithTlsErrorsCallback -> IO Closure
mk_WebResourceFailedWithTlsErrorsCallback :: C_WebResourceFailedWithTlsErrorsCallback -> IO (FunPtr C_WebResourceFailedWithTlsErrorsCallback)
noWebResourceFailedWithTlsErrorsCallback :: Maybe WebResourceFailedWithTlsErrorsCallback
onWebResourceFailedWithTlsErrors :: (IsWebResource a, MonadIO m) => a -> WebResourceFailedWithTlsErrorsCallback -> m SignalHandlerId
wrap_WebResourceFailedWithTlsErrorsCallback :: WebResourceFailedWithTlsErrorsCallback -> Ptr () -> Ptr TlsCertificate -> CUInt -> Ptr () -> IO ()
type C_WebResourceFinishedCallback = Ptr () -> Ptr () -> IO ()
type WebResourceFinishedCallback = IO ()
afterWebResourceFinished :: (IsWebResource a, MonadIO m) => a -> WebResourceFinishedCallback -> m SignalHandlerId
genClosure_WebResourceFinished :: WebResourceFinishedCallback -> IO Closure
mk_WebResourceFinishedCallback :: C_WebResourceFinishedCallback -> IO (FunPtr C_WebResourceFinishedCallback)
noWebResourceFinishedCallback :: Maybe WebResourceFinishedCallback
onWebResourceFinished :: (IsWebResource a, MonadIO m) => a -> WebResourceFinishedCallback -> m SignalHandlerId
wrap_WebResourceFinishedCallback :: WebResourceFinishedCallback -> Ptr () -> Ptr () -> IO ()
type C_WebResourceReceivedDataCallback = Ptr () -> Word64 -> Ptr () -> IO ()
type WebResourceReceivedDataCallback = Word64 -> IO ()
afterWebResourceReceivedData :: (IsWebResource a, MonadIO m) => a -> WebResourceReceivedDataCallback -> m SignalHandlerId
genClosure_WebResourceReceivedData :: WebResourceReceivedDataCallback -> IO Closure
mk_WebResourceReceivedDataCallback :: C_WebResourceReceivedDataCallback -> IO (FunPtr C_WebResourceReceivedDataCallback)
noWebResourceReceivedDataCallback :: Maybe WebResourceReceivedDataCallback
onWebResourceReceivedData :: (IsWebResource a, MonadIO m) => a -> WebResourceReceivedDataCallback -> m SignalHandlerId
wrap_WebResourceReceivedDataCallback :: WebResourceReceivedDataCallback -> Ptr () -> Word64 -> Ptr () -> IO ()
type C_WebResourceSentRequestCallback = Ptr () -> Ptr URIRequest -> Ptr URIResponse -> Ptr () -> IO ()
type WebResourceSentRequestCallback = URIRequest -> URIResponse -> IO ()
afterWebResourceSentRequest :: (IsWebResource a, MonadIO m) => a -> WebResourceSentRequestCallback -> m SignalHandlerId
genClosure_WebResourceSentRequest :: WebResourceSentRequestCallback -> IO Closure
mk_WebResourceSentRequestCallback :: C_WebResourceSentRequestCallback -> IO (FunPtr C_WebResourceSentRequestCallback)
noWebResourceSentRequestCallback :: Maybe WebResourceSentRequestCallback
onWebResourceSentRequest :: (IsWebResource a, MonadIO m) => a -> WebResourceSentRequestCallback -> m SignalHandlerId
wrap_WebResourceSentRequestCallback :: WebResourceSentRequestCallback -> Ptr () -> Ptr URIRequest -> Ptr URIResponse -> Ptr () -> IO ()
instance Data.GI.Base.BasicTypes.GObject GI.WebKit2.Objects.WebResource.WebResource
instance (Data.GI.Base.BasicTypes.GObject a, Data.GI.Base.Overloading.UnknownAncestorError GI.WebKit2.Objects.WebResource.WebResource a) => GI.WebKit2.Objects.WebResource.IsWebResource a
instance GI.WebKit2.Objects.WebResource.IsWebResource GI.WebKit2.Objects.WebResource.WebResource
instance GI.GObject.Objects.Object.IsObject GI.WebKit2.Objects.WebResource.WebResource
module GI.WebKit2.Objects.SecurityManager
newtype SecurityManager
SecurityManager :: (ManagedPtr SecurityManager) -> SecurityManager
class GObject o => IsSecurityManager o
toSecurityManager :: (MonadIO m, IsSecurityManager o) => o -> m SecurityManager
noSecurityManager :: Maybe SecurityManager
-- | Register scheme as a CORS (Cross-origin resource
-- sharing) enabled scheme. This means that CORS requests are allowed.
-- See W3C CORS specification http://www.w3.org/TR/cors/.
securityManagerRegisterUriSchemeAsCorsEnabled :: (HasCallStack, MonadIO m, IsSecurityManager a) => a -> Text -> m ()
-- | Register scheme as a display isolated scheme. This
-- means that pages cannot display these URIs unless they are from the
-- same scheme.
securityManagerRegisterUriSchemeAsDisplayIsolated :: (HasCallStack, MonadIO m, IsSecurityManager a) => a -> Text -> m ()
-- | Register scheme as an empty document scheme. This
-- means that they are allowed to commit synchronously.
securityManagerRegisterUriSchemeAsEmptyDocument :: (HasCallStack, MonadIO m, IsSecurityManager a) => a -> Text -> m ()
-- | Register scheme as a local scheme. This means that
-- other non-local pages cannot link to or access URIs of this scheme.
securityManagerRegisterUriSchemeAsLocal :: (HasCallStack, MonadIO m, IsSecurityManager a) => a -> Text -> m ()
-- | Register scheme as a no-access scheme. This means that
-- pages loaded with this URI scheme cannot access pages loaded with any
-- other URI scheme.
securityManagerRegisterUriSchemeAsNoAccess :: (HasCallStack, MonadIO m, IsSecurityManager a) => a -> Text -> m ()
-- | Register scheme as a secure scheme. This means that
-- mixed content warnings won't be generated for this scheme when
-- included by an HTTPS page.
securityManagerRegisterUriSchemeAsSecure :: (HasCallStack, MonadIO m, IsSecurityManager a) => a -> Text -> m ()
-- | Whether scheme is considered as a CORS enabled scheme.
-- See also securityManagerRegisterUriSchemeAsCorsEnabled.
securityManagerUriSchemeIsCorsEnabled :: (HasCallStack, MonadIO m, IsSecurityManager a) => a -> Text -> m Bool
-- | Whether scheme is considered as a display isolated
-- scheme. See also
-- securityManagerRegisterUriSchemeAsDisplayIsolated.
securityManagerUriSchemeIsDisplayIsolated :: (HasCallStack, MonadIO m, IsSecurityManager a) => a -> Text -> m Bool
-- | Whether scheme is considered as an empty document
-- scheme. See also
-- securityManagerRegisterUriSchemeAsEmptyDocument.
securityManagerUriSchemeIsEmptyDocument :: (HasCallStack, MonadIO m, IsSecurityManager a) => a -> Text -> m Bool
-- | Whether scheme is considered as a local scheme. See
-- also securityManagerRegisterUriSchemeAsLocal.
securityManagerUriSchemeIsLocal :: (HasCallStack, MonadIO m, IsSecurityManager a) => a -> Text -> m Bool
-- | Whether scheme is considered as a no-access scheme.
-- See also securityManagerRegisterUriSchemeAsNoAccess.
securityManagerUriSchemeIsNoAccess :: (HasCallStack, MonadIO m, IsSecurityManager a) => a -> Text -> m Bool
-- | Whether scheme is considered as a secure scheme. See
-- also securityManagerRegisterUriSchemeAsSecure.
securityManagerUriSchemeIsSecure :: (HasCallStack, MonadIO m, IsSecurityManager a) => a -> Text -> m Bool
instance Data.GI.Base.BasicTypes.GObject GI.WebKit2.Objects.SecurityManager.SecurityManager
instance (Data.GI.Base.BasicTypes.GObject a, Data.GI.Base.Overloading.UnknownAncestorError GI.WebKit2.Objects.SecurityManager.SecurityManager a) => GI.WebKit2.Objects.SecurityManager.IsSecurityManager a
instance GI.WebKit2.Objects.SecurityManager.IsSecurityManager GI.WebKit2.Objects.SecurityManager.SecurityManager
instance GI.GObject.Objects.Object.IsObject GI.WebKit2.Objects.SecurityManager.SecurityManager
module GI.WebKit2.Objects.PrintCustomWidget
newtype PrintCustomWidget
PrintCustomWidget :: (ManagedPtr PrintCustomWidget) -> PrintCustomWidget
class GObject o => IsPrintCustomWidget o
toPrintCustomWidget :: (MonadIO m, IsPrintCustomWidget o) => o -> m PrintCustomWidget
noPrintCustomWidget :: Maybe PrintCustomWidget
-- | Return the value of PrintCustomWidget:title
-- property for the given printCustomWidget object.
printCustomWidgetGetTitle :: (HasCallStack, MonadIO m, IsPrintCustomWidget a) => a -> m Text
-- | Return the value of PrintCustomWidget:widget
-- property for the given printCustomWidget object. The
-- returned value will always be valid if called from
-- PrintCustomWidget::apply or
-- PrintCustomWidget::update callbacks, but it
-- will be Nothing if called after the
-- PrintCustomWidget::apply signal is emitted.
printCustomWidgetGetWidget :: (HasCallStack, MonadIO m, IsPrintCustomWidget a) => a -> m Widget
-- | Create a new PrintCustomWidget with given
-- widget and title. The
-- widget ownership is taken and it is destroyed together
-- with the dialog even if this object could still be alive at that
-- point. You typically want to pass a container widget with multiple
-- widgets in it.
printCustomWidgetNew :: (HasCallStack, MonadIO m, IsWidget a) => a -> Text -> m PrintCustomWidget
constructPrintCustomWidgetTitle :: (IsPrintCustomWidget o) => Text -> IO (GValueConstruct o)
getPrintCustomWidgetTitle :: (MonadIO m, IsPrintCustomWidget o) => o -> m Text
constructPrintCustomWidgetWidget :: (IsPrintCustomWidget o, IsWidget a) => a -> IO (GValueConstruct o)
getPrintCustomWidgetWidget :: (MonadIO m, IsPrintCustomWidget o) => o -> m Widget
type C_PrintCustomWidgetApplyCallback = Ptr () -> Ptr () -> IO ()
type PrintCustomWidgetApplyCallback = IO ()
afterPrintCustomWidgetApply :: (IsPrintCustomWidget a, MonadIO m) => a -> PrintCustomWidgetApplyCallback -> m SignalHandlerId
genClosure_PrintCustomWidgetApply :: PrintCustomWidgetApplyCallback -> IO Closure
mk_PrintCustomWidgetApplyCallback :: C_PrintCustomWidgetApplyCallback -> IO (FunPtr C_PrintCustomWidgetApplyCallback)
noPrintCustomWidgetApplyCallback :: Maybe PrintCustomWidgetApplyCallback
onPrintCustomWidgetApply :: (IsPrintCustomWidget a, MonadIO m) => a -> PrintCustomWidgetApplyCallback -> m SignalHandlerId
wrap_PrintCustomWidgetApplyCallback :: PrintCustomWidgetApplyCallback -> Ptr () -> Ptr () -> IO ()
type C_PrintCustomWidgetUpdateCallback = Ptr () -> Ptr PageSetup -> Ptr PrintSettings -> Ptr () -> IO ()
type PrintCustomWidgetUpdateCallback = PageSetup -> PrintSettings -> IO ()
afterPrintCustomWidgetUpdate :: (IsPrintCustomWidget a, MonadIO m) => a -> PrintCustomWidgetUpdateCallback -> m SignalHandlerId
genClosure_PrintCustomWidgetUpdate :: PrintCustomWidgetUpdateCallback -> IO Closure
mk_PrintCustomWidgetUpdateCallback :: C_PrintCustomWidgetUpdateCallback -> IO (FunPtr C_PrintCustomWidgetUpdateCallback)
noPrintCustomWidgetUpdateCallback :: Maybe PrintCustomWidgetUpdateCallback
onPrintCustomWidgetUpdate :: (IsPrintCustomWidget a, MonadIO m) => a -> PrintCustomWidgetUpdateCallback -> m SignalHandlerId
wrap_PrintCustomWidgetUpdateCallback :: PrintCustomWidgetUpdateCallback -> Ptr () -> Ptr PageSetup -> Ptr PrintSettings -> Ptr () -> IO ()
instance Data.GI.Base.BasicTypes.GObject GI.WebKit2.Objects.PrintCustomWidget.PrintCustomWidget
instance (Data.GI.Base.BasicTypes.GObject a, Data.GI.Base.Overloading.UnknownAncestorError GI.WebKit2.Objects.PrintCustomWidget.PrintCustomWidget a) => GI.WebKit2.Objects.PrintCustomWidget.IsPrintCustomWidget a
instance GI.WebKit2.Objects.PrintCustomWidget.IsPrintCustomWidget GI.WebKit2.Objects.PrintCustomWidget.PrintCustomWidget
instance GI.GObject.Objects.Object.IsObject GI.WebKit2.Objects.PrintCustomWidget.PrintCustomWidget
module GI.WebKit2.Objects.PolicyDecision
newtype PolicyDecision
PolicyDecision :: (ManagedPtr PolicyDecision) -> PolicyDecision
class GObject o => IsPolicyDecision o
toPolicyDecision :: (MonadIO m, IsPolicyDecision o) => o -> m PolicyDecision
noPolicyDecision :: Maybe PolicyDecision
-- | Spawn a download from this decision.
policyDecisionDownload :: (HasCallStack, MonadIO m, IsPolicyDecision a) => a -> m ()
-- | Ignore the action which triggerd this decision. For instance, for a
-- ResponsePolicyDecision, this would cancel the request.
policyDecisionIgnore :: (HasCallStack, MonadIO m, IsPolicyDecision a) => a -> m ()
-- | Accept the action which triggerd this decision.
policyDecisionUse :: (HasCallStack, MonadIO m, IsPolicyDecision a) => a -> m ()
instance Data.GI.Base.BasicTypes.GObject GI.WebKit2.Objects.PolicyDecision.PolicyDecision
instance (Data.GI.Base.BasicTypes.GObject a, Data.GI.Base.Overloading.UnknownAncestorError GI.WebKit2.Objects.PolicyDecision.PolicyDecision a) => GI.WebKit2.Objects.PolicyDecision.IsPolicyDecision a
instance GI.WebKit2.Objects.PolicyDecision.IsPolicyDecision GI.WebKit2.Objects.PolicyDecision.PolicyDecision
instance GI.GObject.Objects.Object.IsObject GI.WebKit2.Objects.PolicyDecision.PolicyDecision
module GI.WebKit2.Objects.ResponsePolicyDecision
newtype ResponsePolicyDecision
ResponsePolicyDecision :: (ManagedPtr ResponsePolicyDecision) -> ResponsePolicyDecision
class GObject o => IsResponsePolicyDecision o
toResponsePolicyDecision :: (MonadIO m, IsResponsePolicyDecision o) => o -> m ResponsePolicyDecision
noResponsePolicyDecision :: Maybe ResponsePolicyDecision
-- | Gets the value of the
-- ResponsePolicyDecision:request property.
responsePolicyDecisionGetRequest :: (HasCallStack, MonadIO m, IsResponsePolicyDecision a) => a -> m URIRequest
-- | Gets the value of the
-- ResponsePolicyDecision:response property.
responsePolicyDecisionGetResponse :: (HasCallStack, MonadIO m, IsResponsePolicyDecision a) => a -> m URIResponse
-- | Gets whether the MIME type of the response can be displayed in the
-- WebView that triggered this policy decision request. See also
-- webViewCanShowMimeType.
responsePolicyDecisionIsMimeTypeSupported :: (HasCallStack, MonadIO m, IsResponsePolicyDecision a) => a -> m Bool
getResponsePolicyDecisionRequest :: (MonadIO m, IsResponsePolicyDecision o) => o -> m URIRequest
getResponsePolicyDecisionResponse :: (MonadIO m, IsResponsePolicyDecision o) => o -> m URIResponse
instance Data.GI.Base.BasicTypes.GObject GI.WebKit2.Objects.ResponsePolicyDecision.ResponsePolicyDecision
instance (Data.GI.Base.BasicTypes.GObject a, Data.GI.Base.Overloading.UnknownAncestorError GI.WebKit2.Objects.ResponsePolicyDecision.ResponsePolicyDecision a) => GI.WebKit2.Objects.ResponsePolicyDecision.IsResponsePolicyDecision a
instance GI.WebKit2.Objects.ResponsePolicyDecision.IsResponsePolicyDecision GI.WebKit2.Objects.ResponsePolicyDecision.ResponsePolicyDecision
instance GI.WebKit2.Objects.PolicyDecision.IsPolicyDecision GI.WebKit2.Objects.ResponsePolicyDecision.ResponsePolicyDecision
instance GI.GObject.Objects.Object.IsObject GI.WebKit2.Objects.ResponsePolicyDecision.ResponsePolicyDecision
module GI.WebKit2.Objects.Plugin
newtype Plugin
Plugin :: (ManagedPtr Plugin) -> Plugin
class GObject o => IsPlugin o
toPlugin :: (MonadIO m, IsPlugin o) => o -> m Plugin
noPlugin :: Maybe Plugin
-- | No description available in the introspection data.
pluginGetDescription :: (HasCallStack, MonadIO m, IsPlugin a) => a -> m Text
-- | Get information about MIME types handled by the plugin, as a list of
-- MimeInfo.
pluginGetMimeInfoList :: (HasCallStack, MonadIO m, IsPlugin a) => a -> m [MimeInfo]
-- | No description available in the introspection data.
pluginGetName :: (HasCallStack, MonadIO m, IsPlugin a) => a -> m Text
-- | No description available in the introspection data.
pluginGetPath :: (HasCallStack, MonadIO m, IsPlugin a) => a -> m Text
instance Data.GI.Base.BasicTypes.GObject GI.WebKit2.Objects.Plugin.Plugin
instance (Data.GI.Base.BasicTypes.GObject a, Data.GI.Base.Overloading.UnknownAncestorError GI.WebKit2.Objects.Plugin.Plugin a) => GI.WebKit2.Objects.Plugin.IsPlugin a
instance GI.WebKit2.Objects.Plugin.IsPlugin GI.WebKit2.Objects.Plugin.Plugin
instance GI.GObject.Objects.Object.IsObject GI.WebKit2.Objects.Plugin.Plugin
module GI.WebKit2.Objects.Notification
newtype Notification
Notification :: (ManagedPtr Notification) -> Notification
class GObject o => IsNotification o
toNotification :: (MonadIO m, IsNotification o) => o -> m Notification
noNotification :: Maybe Notification
-- | Tells WebKit the notification has been clicked. This will emit the
-- Notification::clicked signal.
notificationClicked :: (HasCallStack, MonadIO m, IsNotification a) => a -> m ()
-- | Closes the notification.
notificationClose :: (HasCallStack, MonadIO m, IsNotification a) => a -> m ()
-- | Obtains the body for the notification.
notificationGetBody :: (HasCallStack, MonadIO m, IsNotification a) => a -> m Text
-- | Obtains the unique id for the notification.
notificationGetId :: (HasCallStack, MonadIO m, IsNotification a) => a -> m Word64
-- | Obtains the tag identifier for the notification.
notificationGetTag :: (HasCallStack, MonadIO m, IsNotification a) => a -> m (Maybe Text)
-- | Obtains the title for the notification.
notificationGetTitle :: (HasCallStack, MonadIO m, IsNotification a) => a -> m Text
getNotificationBody :: (MonadIO m, IsNotification o) => o -> m Text
getNotificationId :: (MonadIO m, IsNotification o) => o -> m Word64
getNotificationTag :: (MonadIO m, IsNotification o) => o -> m (Maybe Text)
getNotificationTitle :: (MonadIO m, IsNotification o) => o -> m Text
type C_NotificationClickedCallback = Ptr () -> Ptr () -> IO ()
type NotificationClickedCallback = IO ()
afterNotificationClicked :: (IsNotification a, MonadIO m) => a -> NotificationClickedCallback -> m SignalHandlerId
genClosure_NotificationClicked :: NotificationClickedCallback -> IO Closure
mk_NotificationClickedCallback :: C_NotificationClickedCallback -> IO (FunPtr C_NotificationClickedCallback)
noNotificationClickedCallback :: Maybe NotificationClickedCallback
onNotificationClicked :: (IsNotification a, MonadIO m) => a -> NotificationClickedCallback -> m SignalHandlerId
wrap_NotificationClickedCallback :: NotificationClickedCallback -> Ptr () -> Ptr () -> IO ()
type C_NotificationClosedCallback = Ptr () -> Ptr () -> IO ()
type NotificationClosedCallback = IO ()
afterNotificationClosed :: (IsNotification a, MonadIO m) => a -> NotificationClosedCallback -> m SignalHandlerId
genClosure_NotificationClosed :: NotificationClosedCallback -> IO Closure
mk_NotificationClosedCallback :: C_NotificationClosedCallback -> IO (FunPtr C_NotificationClosedCallback)
noNotificationClosedCallback :: Maybe NotificationClosedCallback
onNotificationClosed :: (IsNotification a, MonadIO m) => a -> NotificationClosedCallback -> m SignalHandlerId
wrap_NotificationClosedCallback :: NotificationClosedCallback -> Ptr () -> Ptr () -> IO ()
instance Data.GI.Base.BasicTypes.GObject GI.WebKit2.Objects.Notification.Notification
instance (Data.GI.Base.BasicTypes.GObject a, Data.GI.Base.Overloading.UnknownAncestorError GI.WebKit2.Objects.Notification.Notification a) => GI.WebKit2.Objects.Notification.IsNotification a
instance GI.WebKit2.Objects.Notification.IsNotification GI.WebKit2.Objects.Notification.Notification
instance GI.GObject.Objects.Object.IsObject GI.WebKit2.Objects.Notification.Notification
module GI.WebKit2.Objects.HitTestResult
newtype HitTestResult
HitTestResult :: (ManagedPtr HitTestResult) -> HitTestResult
class GObject o => IsHitTestResult o
toHitTestResult :: (MonadIO m, IsHitTestResult o) => o -> m HitTestResult
noHitTestResult :: Maybe HitTestResult
-- | Gets whether HitTestResultContextEditable flag is present in
-- HitTestResult:context.
hitTestResultContextIsEditable :: (HasCallStack, MonadIO m, IsHitTestResult a) => a -> m Bool
-- | Gets whether HitTestResultContextImage flag is present in
-- HitTestResult:context.
hitTestResultContextIsImage :: (HasCallStack, MonadIO m, IsHitTestResult a) => a -> m Bool
-- | Gets whether HitTestResultContextLink flag is present in
-- HitTestResult:context.
hitTestResultContextIsLink :: (HasCallStack, MonadIO m, IsHitTestResult a) => a -> m Bool
-- | Gets whether HitTestResultContextMedia flag is present in
-- HitTestResult:context.
hitTestResultContextIsMedia :: (HasCallStack, MonadIO m, IsHitTestResult a) => a -> m Bool
-- | Gets whether HitTestResultContextScrollbar flag is present in
-- HitTestResult:context.
hitTestResultContextIsScrollbar :: (HasCallStack, MonadIO m, IsHitTestResult a) => a -> m Bool
-- | Gets whether HitTestResultContextSelection flag is present in
-- HitTestResult:context.
hitTestResultContextIsSelection :: (HasCallStack, MonadIO m, IsHitTestResult a) => a -> m Bool
-- | Gets the value of the HitTestResult:context
-- property.
hitTestResultGetContext :: (HasCallStack, MonadIO m, IsHitTestResult a) => a -> m Word32
-- | Gets the value of the HitTestResult:image-uri
-- property.
hitTestResultGetImageUri :: (HasCallStack, MonadIO m, IsHitTestResult a) => a -> m Text
-- | Gets the value of the HitTestResult:link-label
-- property.
hitTestResultGetLinkLabel :: (HasCallStack, MonadIO m, IsHitTestResult a) => a -> m Text
-- | Gets the value of the HitTestResult:link-title
-- property.
hitTestResultGetLinkTitle :: (HasCallStack, MonadIO m, IsHitTestResult a) => a -> m Text
-- | Gets the value of the HitTestResult:link-uri
-- property.
hitTestResultGetLinkUri :: (HasCallStack, MonadIO m, IsHitTestResult a) => a -> m Text
-- | Gets the value of the HitTestResult:media-uri
-- property.
hitTestResultGetMediaUri :: (HasCallStack, MonadIO m, IsHitTestResult a) => a -> m Text
constructHitTestResultContext :: (IsHitTestResult o) => Word32 -> IO (GValueConstruct o)
getHitTestResultContext :: (MonadIO m, IsHitTestResult o) => o -> m Word32
constructHitTestResultImageUri :: (IsHitTestResult o) => Text -> IO (GValueConstruct o)
getHitTestResultImageUri :: (MonadIO m, IsHitTestResult o) => o -> m Text
constructHitTestResultLinkLabel :: (IsHitTestResult o) => Text -> IO (GValueConstruct o)
getHitTestResultLinkLabel :: (MonadIO m, IsHitTestResult o) => o -> m Text
constructHitTestResultLinkTitle :: (IsHitTestResult o) => Text -> IO (GValueConstruct o)
getHitTestResultLinkTitle :: (MonadIO m, IsHitTestResult o) => o -> m Text
constructHitTestResultLinkUri :: (IsHitTestResult o) => Text -> IO (GValueConstruct o)
getHitTestResultLinkUri :: (MonadIO m, IsHitTestResult o) => o -> m Text
constructHitTestResultMediaUri :: (IsHitTestResult o) => Text -> IO (GValueConstruct o)
getHitTestResultMediaUri :: (MonadIO m, IsHitTestResult o) => o -> m Text
instance Data.GI.Base.BasicTypes.GObject GI.WebKit2.Objects.HitTestResult.HitTestResult
instance (Data.GI.Base.BasicTypes.GObject a, Data.GI.Base.Overloading.UnknownAncestorError GI.WebKit2.Objects.HitTestResult.HitTestResult a) => GI.WebKit2.Objects.HitTestResult.IsHitTestResult a
instance GI.WebKit2.Objects.HitTestResult.IsHitTestResult GI.WebKit2.Objects.HitTestResult.HitTestResult
instance GI.GObject.Objects.Object.IsObject GI.WebKit2.Objects.HitTestResult.HitTestResult
module GI.WebKit2.Objects.FormSubmissionRequest
newtype FormSubmissionRequest
FormSubmissionRequest :: (ManagedPtr FormSubmissionRequest) -> FormSubmissionRequest
class GObject o => IsFormSubmissionRequest o
toFormSubmissionRequest :: (MonadIO m, IsFormSubmissionRequest o) => o -> m FormSubmissionRequest
noFormSubmissionRequest :: Maybe FormSubmissionRequest
-- | Get a HashTable with the values of the text fields contained in
-- the form associated to request.
formSubmissionRequestGetTextFields :: (HasCallStack, MonadIO m, IsFormSubmissionRequest a) => a -> m (Map (Ptr ()) (Ptr ()))
-- | Continue the form submission.
formSubmissionRequestSubmit :: (HasCallStack, MonadIO m, IsFormSubmissionRequest a) => a -> m ()
instance Data.GI.Base.BasicTypes.GObject GI.WebKit2.Objects.FormSubmissionRequest.FormSubmissionRequest
instance (Data.GI.Base.BasicTypes.GObject a, Data.GI.Base.Overloading.UnknownAncestorError GI.WebKit2.Objects.FormSubmissionRequest.FormSubmissionRequest a) => GI.WebKit2.Objects.FormSubmissionRequest.IsFormSubmissionRequest a
instance GI.WebKit2.Objects.FormSubmissionRequest.IsFormSubmissionRequest GI.WebKit2.Objects.FormSubmissionRequest.FormSubmissionRequest
instance GI.GObject.Objects.Object.IsObject GI.WebKit2.Objects.FormSubmissionRequest.FormSubmissionRequest
module GI.WebKit2.Objects.FileChooserRequest
newtype FileChooserRequest
FileChooserRequest :: (ManagedPtr FileChooserRequest) -> FileChooserRequest
class GObject o => IsFileChooserRequest o
toFileChooserRequest :: (MonadIO m, IsFileChooserRequest o) => o -> m FileChooserRequest
noFileChooserRequest :: Maybe FileChooserRequest
-- | Ask WebKit to cancel the request. It's important to do this in case no
-- selection has been made in the client, otherwise the request won't be
-- properly completed and the browser will keep the request pending
-- forever, which might cause the browser to hang.
fileChooserRequestCancel :: (HasCallStack, MonadIO m, IsFileChooserRequest a) => a -> m ()
-- | Get the list of MIME types the file chooser dialog should handle, in
-- the format specified in RFC 2046 for "media types". Its contents
-- depend on the value of the 'accept' attribute for HTML input elements.
-- This function should normally be called before presenting the file
-- chooser dialog to the user, to decide whether to allow the user to
-- select multiple files at once or only one.
fileChooserRequestGetMimeTypes :: (HasCallStack, MonadIO m, IsFileChooserRequest a) => a -> m [Text]
-- | Get the filter currently associated with the request, ready to be used
-- by FileChooser. This function should normally be called before
-- presenting the file chooser dialog to the user, to decide whether to
-- apply a filter so the user would not be allowed to select files with
-- other MIME types.
--
-- See fileChooserRequestGetMimeTypes if you are interested in
-- getting the list of accepted MIME types.
fileChooserRequestGetMimeTypesFilter :: (HasCallStack, MonadIO m, IsFileChooserRequest a) => a -> m FileFilter
-- | Determine whether the file chooser associated to this
-- FileChooserRequest should allow selecting multiple files, which
-- depends on the HTML input element having a 'multiple' attribute
-- defined.
fileChooserRequestGetSelectMultiple :: (HasCallStack, MonadIO m, IsFileChooserRequest a) => a -> m Bool
-- | Get the list of selected files currently associated to the request.
-- Initially, the return value of this method contains any files selected
-- in previous file chooser requests for this HTML input element. Once
-- webkit_file_chooser_request_select_files, the value will reflect
-- whatever files are given.
--
-- This function should normally be called only before presenting the
-- file chooser dialog to the user, to decide whether to perform some
-- extra action, like pre-selecting the files from a previous request.
fileChooserRequestGetSelectedFiles :: (HasCallStack, MonadIO m, IsFileChooserRequest a) => a -> m [Text]
-- | Ask WebKit to select local files for upload and complete the request.
fileChooserRequestSelectFiles :: (HasCallStack, MonadIO m, IsFileChooserRequest a) => a -> [Text] -> m ()
getFileChooserRequestFilter :: (MonadIO m, IsFileChooserRequest o) => o -> m (Maybe FileFilter)
getFileChooserRequestMimeTypes :: (MonadIO m, IsFileChooserRequest o) => o -> m [Text]
getFileChooserRequestSelectMultiple :: (MonadIO m, IsFileChooserRequest o) => o -> m Bool
getFileChooserRequestSelectedFiles :: (MonadIO m, IsFileChooserRequest o) => o -> m [Text]
instance Data.GI.Base.BasicTypes.GObject GI.WebKit2.Objects.FileChooserRequest.FileChooserRequest
instance (Data.GI.Base.BasicTypes.GObject a, Data.GI.Base.Overloading.UnknownAncestorError GI.WebKit2.Objects.FileChooserRequest.FileChooserRequest a) => GI.WebKit2.Objects.FileChooserRequest.IsFileChooserRequest a
instance GI.WebKit2.Objects.FileChooserRequest.IsFileChooserRequest GI.WebKit2.Objects.FileChooserRequest.FileChooserRequest
instance GI.GObject.Objects.Object.IsObject GI.WebKit2.Objects.FileChooserRequest.FileChooserRequest
module GI.WebKit2.Objects.FaviconDatabase
newtype FaviconDatabase
FaviconDatabase :: (ManagedPtr FaviconDatabase) -> FaviconDatabase
class GObject o => IsFaviconDatabase o
toFaviconDatabase :: (MonadIO m, IsFaviconDatabase o) => o -> m FaviconDatabase
noFaviconDatabase :: Maybe FaviconDatabase
-- | Clears all icons from the database.
faviconDatabaseClear :: (HasCallStack, MonadIO m, IsFaviconDatabase a) => a -> m ()
-- | Asynchronously obtains a Surface of the favicon for the given
-- page URI. It returns the cached icon if it's in the database
-- asynchronously waiting for the icon to be read from the database.
--
-- This is an asynchronous method. When the operation is finished,
-- callback will be invoked. You can then call
-- faviconDatabaseGetFaviconFinish to get the result of the
-- operation.
--
-- You must call webContextSetFaviconDatabaseDirectory for the
-- WebContext associated with this FaviconDatabase before
-- attempting to use this function; otherwise,
-- faviconDatabaseGetFaviconFinish will return
-- FaviconDatabaseErrorNotInitialized.
faviconDatabaseGetFavicon :: (HasCallStack, MonadIO m, IsFaviconDatabase a, IsCancellable b) => a -> Text -> Maybe (b) -> Maybe (AsyncReadyCallback) -> m ()
-- | Finishes an operation started with faviconDatabaseGetFavicon.
faviconDatabaseGetFaviconFinish :: (HasCallStack, MonadIO m, IsFaviconDatabase a, IsAsyncResult b) => a -> b -> m Surface
-- | Obtains the URI of the favicon for the given pageUri.
faviconDatabaseGetFaviconUri :: (HasCallStack, MonadIO m, IsFaviconDatabase a) => a -> Text -> m Text
type C_FaviconDatabaseFaviconChangedCallback = Ptr () -> CString -> CString -> Ptr () -> IO ()
type FaviconDatabaseFaviconChangedCallback = Text -> Text -> IO ()
afterFaviconDatabaseFaviconChanged :: (IsFaviconDatabase a, MonadIO m) => a -> FaviconDatabaseFaviconChangedCallback -> m SignalHandlerId
genClosure_FaviconDatabaseFaviconChanged :: FaviconDatabaseFaviconChangedCallback -> IO Closure
mk_FaviconDatabaseFaviconChangedCallback :: C_FaviconDatabaseFaviconChangedCallback -> IO (FunPtr C_FaviconDatabaseFaviconChangedCallback)
noFaviconDatabaseFaviconChangedCallback :: Maybe FaviconDatabaseFaviconChangedCallback
onFaviconDatabaseFaviconChanged :: (IsFaviconDatabase a, MonadIO m) => a -> FaviconDatabaseFaviconChangedCallback -> m SignalHandlerId
wrap_FaviconDatabaseFaviconChangedCallback :: FaviconDatabaseFaviconChangedCallback -> Ptr () -> CString -> CString -> Ptr () -> IO ()
instance Data.GI.Base.BasicTypes.GObject GI.WebKit2.Objects.FaviconDatabase.FaviconDatabase
instance (Data.GI.Base.BasicTypes.GObject a, Data.GI.Base.Overloading.UnknownAncestorError GI.WebKit2.Objects.FaviconDatabase.FaviconDatabase a) => GI.WebKit2.Objects.FaviconDatabase.IsFaviconDatabase a
instance GI.WebKit2.Objects.FaviconDatabase.IsFaviconDatabase GI.WebKit2.Objects.FaviconDatabase.FaviconDatabase
instance GI.GObject.Objects.Object.IsObject GI.WebKit2.Objects.FaviconDatabase.FaviconDatabase
module GI.WebKit2.Objects.EditorState
newtype EditorState
EditorState :: (ManagedPtr EditorState) -> EditorState
class GObject o => IsEditorState o
toEditorState :: (MonadIO m, IsEditorState o) => o -> m EditorState
noEditorState :: Maybe EditorState
-- | Gets the typing attributes at the current cursor position. If there is
-- a selection, this returns the typing attributes of the the selected
-- text. Note that in case of a selection, typing attributes are
-- considered active only when they are present throughout the selection.
editorStateGetTypingAttributes :: (HasCallStack, MonadIO m, IsEditorState a) => a -> m Word32
getEditorStateTypingAttributes :: (MonadIO m, IsEditorState o) => o -> m Word32
instance Data.GI.Base.BasicTypes.GObject GI.WebKit2.Objects.EditorState.EditorState
instance (Data.GI.Base.BasicTypes.GObject a, Data.GI.Base.Overloading.UnknownAncestorError GI.WebKit2.Objects.EditorState.EditorState a) => GI.WebKit2.Objects.EditorState.IsEditorState a
instance GI.WebKit2.Objects.EditorState.IsEditorState GI.WebKit2.Objects.EditorState.EditorState
instance GI.GObject.Objects.Object.IsObject GI.WebKit2.Objects.EditorState.EditorState
module GI.WebKit2.Objects.Download
newtype Download
Download :: (ManagedPtr Download) -> Download
class GObject o => IsDownload o
toDownload :: (MonadIO m, IsDownload o) => o -> m Download
noDownload :: Maybe Download
-- | Cancels the download. When the ongoing download operation is
-- effectively cancelled the signal
-- Download::failed is emitted with
-- DownloadErrorCancelledByUser error.
downloadCancel :: (HasCallStack, MonadIO m, IsDownload a) => a -> m ()
-- | Returns the current value of the
-- Download:allow-overwrite property, which
-- determines whether the download will overwrite an existing file on
-- disk, or if it will fail if the destination already exists.
downloadGetAllowOverwrite :: (HasCallStack, MonadIO m, IsDownload a) => a -> m Bool
-- | Obtains the URI to which the downloaded file will be written. You can
-- connect to Download::created-destination to
-- make sure this method returns a valid destination.
downloadGetDestination :: (HasCallStack, MonadIO m, IsDownload a) => a -> m Text
-- | Gets the elapsed time in seconds, including any fractional part. If
-- the download finished, had an error or was cancelled this is the time
-- between its start and the event.
downloadGetElapsedTime :: (HasCallStack, MonadIO m, IsDownload a) => a -> m Double
-- | Gets the value of the
-- Download:estimated-progress property. You can
-- monitor the estimated progress of the download operation by connecting
-- to the notify::estimated-progress signal of download.
downloadGetEstimatedProgress :: (HasCallStack, MonadIO m, IsDownload a) => a -> m Double
-- | Gets the length of the data already downloaded for
-- download in bytes.
downloadGetReceivedDataLength :: (HasCallStack, MonadIO m, IsDownload a) => a -> m Word64
-- | Retrieves the URIRequest object that backs the download
-- process.
downloadGetRequest :: (HasCallStack, MonadIO m, IsDownload a) => a -> m URIRequest
-- | Retrieves the URIResponse object that backs the download
-- process. This method returns Nothing if called before the
-- response is received from the server. You can connect to
-- notify::response signal to be notified when the response is received.
downloadGetResponse :: (HasCallStack, MonadIO m, IsDownload a) => a -> m URIResponse
-- | Get the WebView that initiated the download.
downloadGetWebView :: (HasCallStack, MonadIO m, IsDownload a) => a -> m WebView
-- | Sets the Download:allow-overwrite property,
-- which determines whether the download may overwrite an existing file
-- on disk, or if it will fail if the destination already exists.
downloadSetAllowOverwrite :: (HasCallStack, MonadIO m, IsDownload a) => a -> Bool -> m ()
-- | Sets the URI to which the downloaded file will be written. This method
-- should be called before the download transfer starts or it will not
-- have any effect on the ongoing download operation. To set the
-- destination using the filename suggested by the server connect to
-- Download::decide-destination signal and call
-- downloadSetDestination. If you want to set a fixed destination
-- URI that doesn't depend on the suggested filename you can connect to
-- notify::response signal and call downloadSetDestination. If
-- Download::decide-destination signal is not
-- handled and destination URI is not set when the download tranfer
-- starts, the file will be saved with the filename suggested by the
-- server in UserDirectoryDirectoryDownload directory.
downloadSetDestination :: (HasCallStack, MonadIO m, IsDownload a) => a -> Text -> m ()
constructDownloadAllowOverwrite :: (IsDownload o) => Bool -> IO (GValueConstruct o)
getDownloadAllowOverwrite :: (MonadIO m, IsDownload o) => o -> m Bool
setDownloadAllowOverwrite :: (MonadIO m, IsDownload o) => o -> Bool -> m ()
getDownloadDestination :: (MonadIO m, IsDownload o) => o -> m Text
getDownloadEstimatedProgress :: (MonadIO m, IsDownload o) => o -> m Double
getDownloadResponse :: (MonadIO m, IsDownload o) => o -> m URIResponse
type C_DownloadCreatedDestinationCallback = Ptr () -> CString -> Ptr () -> IO ()
type DownloadCreatedDestinationCallback = Text -> IO ()
afterDownloadCreatedDestination :: (IsDownload a, MonadIO m) => a -> DownloadCreatedDestinationCallback -> m SignalHandlerId
genClosure_DownloadCreatedDestination :: DownloadCreatedDestinationCallback -> IO Closure
mk_DownloadCreatedDestinationCallback :: C_DownloadCreatedDestinationCallback -> IO (FunPtr C_DownloadCreatedDestinationCallback)
noDownloadCreatedDestinationCallback :: Maybe DownloadCreatedDestinationCallback
onDownloadCreatedDestination :: (IsDownload a, MonadIO m) => a -> DownloadCreatedDestinationCallback -> m SignalHandlerId
wrap_DownloadCreatedDestinationCallback :: DownloadCreatedDestinationCallback -> Ptr () -> CString -> Ptr () -> IO ()
type C_DownloadDecideDestinationCallback = Ptr () -> CString -> Ptr () -> IO CInt
type DownloadDecideDestinationCallback = Text -> IO Bool
afterDownloadDecideDestination :: (IsDownload a, MonadIO m) => a -> DownloadDecideDestinationCallback -> m SignalHandlerId
genClosure_DownloadDecideDestination :: DownloadDecideDestinationCallback -> IO Closure
mk_DownloadDecideDestinationCallback :: C_DownloadDecideDestinationCallback -> IO (FunPtr C_DownloadDecideDestinationCallback)
noDownloadDecideDestinationCallback :: Maybe DownloadDecideDestinationCallback
onDownloadDecideDestination :: (IsDownload a, MonadIO m) => a -> DownloadDecideDestinationCallback -> m SignalHandlerId
wrap_DownloadDecideDestinationCallback :: DownloadDecideDestinationCallback -> Ptr () -> CString -> Ptr () -> IO CInt
type C_DownloadFailedCallback = Ptr () -> Ptr GError -> Ptr () -> IO ()
type DownloadFailedCallback = GError -> IO ()
afterDownloadFailed :: (IsDownload a, MonadIO m) => a -> DownloadFailedCallback -> m SignalHandlerId
genClosure_DownloadFailed :: DownloadFailedCallback -> IO Closure
mk_DownloadFailedCallback :: C_DownloadFailedCallback -> IO (FunPtr C_DownloadFailedCallback)
noDownloadFailedCallback :: Maybe DownloadFailedCallback
onDownloadFailed :: (IsDownload a, MonadIO m) => a -> DownloadFailedCallback -> m SignalHandlerId
wrap_DownloadFailedCallback :: DownloadFailedCallback -> Ptr () -> Ptr GError -> Ptr () -> IO ()
type C_DownloadFinishedCallback = Ptr () -> Ptr () -> IO ()
type DownloadFinishedCallback = IO ()
afterDownloadFinished :: (IsDownload a, MonadIO m) => a -> DownloadFinishedCallback -> m SignalHandlerId
genClosure_DownloadFinished :: DownloadFinishedCallback -> IO Closure
mk_DownloadFinishedCallback :: C_DownloadFinishedCallback -> IO (FunPtr C_DownloadFinishedCallback)
noDownloadFinishedCallback :: Maybe DownloadFinishedCallback
onDownloadFinished :: (IsDownload a, MonadIO m) => a -> DownloadFinishedCallback -> m SignalHandlerId
wrap_DownloadFinishedCallback :: DownloadFinishedCallback -> Ptr () -> Ptr () -> IO ()
type C_DownloadReceivedDataCallback = Ptr () -> Word64 -> Ptr () -> IO ()
type DownloadReceivedDataCallback = Word64 -> IO ()
afterDownloadReceivedData :: (IsDownload a, MonadIO m) => a -> DownloadReceivedDataCallback -> m SignalHandlerId
genClosure_DownloadReceivedData :: DownloadReceivedDataCallback -> IO Closure
mk_DownloadReceivedDataCallback :: C_DownloadReceivedDataCallback -> IO (FunPtr C_DownloadReceivedDataCallback)
noDownloadReceivedDataCallback :: Maybe DownloadReceivedDataCallback
onDownloadReceivedData :: (IsDownload a, MonadIO m) => a -> DownloadReceivedDataCallback -> m SignalHandlerId
wrap_DownloadReceivedDataCallback :: DownloadReceivedDataCallback -> Ptr () -> Word64 -> Ptr () -> IO ()
instance Data.GI.Base.BasicTypes.GObject GI.WebKit2.Objects.Download.Download
instance (Data.GI.Base.BasicTypes.GObject a, Data.GI.Base.Overloading.UnknownAncestorError GI.WebKit2.Objects.Download.Download a) => GI.WebKit2.Objects.Download.IsDownload a
instance GI.WebKit2.Objects.Download.IsDownload GI.WebKit2.Objects.Download.Download
instance GI.GObject.Objects.Object.IsObject GI.WebKit2.Objects.Download.Download
module GI.WebKit2.Objects.ContextMenu
newtype ContextMenu
ContextMenu :: (ManagedPtr ContextMenu) -> ContextMenu
class GObject o => IsContextMenu o
toContextMenu :: (MonadIO m, IsContextMenu o) => o -> m ContextMenu
noContextMenu :: Maybe ContextMenu
-- | Adds item at the end of the menu.
contextMenuAppend :: (HasCallStack, MonadIO m, IsContextMenu a, IsContextMenuItem b) => a -> b -> m ()
-- | Gets the first item in the menu.
contextMenuFirst :: (HasCallStack, MonadIO m, IsContextMenu a) => a -> m ContextMenuItem
-- | Gets the item at the given position in the menu.
contextMenuGetItemAtPosition :: (HasCallStack, MonadIO m, IsContextMenu a) => a -> Word32 -> m ContextMenuItem
-- | Returns the item list of menu.
contextMenuGetItems :: (HasCallStack, MonadIO m, IsContextMenu a) => a -> m [ContextMenuItem]
-- | Gets the length of the menu.
contextMenuGetNItems :: (HasCallStack, MonadIO m, IsContextMenu a) => a -> m Word32
-- | Gets the user data of menu. This function can be used
-- from the UI Process to get user data previously set from the Web
-- Process with contextMenuSetUserData.
contextMenuGetUserData :: (HasCallStack, MonadIO m, IsContextMenu a) => a -> m GVariant
-- | Inserts item into the menu at the
-- given position. If position is negative, or is larger
-- than the number of items in the ContextMenu, the item is added
-- on to the end of the menu. The first position is 0.
contextMenuInsert :: (HasCallStack, MonadIO m, IsContextMenu a, IsContextMenuItem b) => a -> b -> Int32 -> m ()
-- | Gets the last item in the menu.
contextMenuLast :: (HasCallStack, MonadIO m, IsContextMenu a) => a -> m ContextMenuItem
-- | Moves item to the given position in the
-- menu. If position is negative, or is
-- larger than the number of items in the ContextMenu, the item is
-- added on to the end of the menu. The first position is
-- 0.
contextMenuMoveItem :: (HasCallStack, MonadIO m, IsContextMenu a, IsContextMenuItem b) => a -> b -> Int32 -> m ()
-- | Creates a new ContextMenu object to be used as a submenu of an
-- existing ContextMenu. The context menu of a WebView is
-- created by the view and passed as an argument of
-- WebView::context-menu signal. To add items to
-- the menu use contextMenuPrepend, contextMenuAppend or
-- contextMenuInsert. See also contextMenuNewWithItems to
-- create a ContextMenu with a list of initial items.
contextMenuNew :: (HasCallStack, MonadIO m) => m ContextMenu
-- | Creates a new ContextMenu object to be used as a submenu of an
-- existing ContextMenu with the given initial items. See also
-- contextMenuNew
contextMenuNewWithItems :: (HasCallStack, MonadIO m, IsContextMenuItem a) => [a] -> m ContextMenu
-- | Adds item at the beginning of the
-- menu.
contextMenuPrepend :: (HasCallStack, MonadIO m, IsContextMenu a, IsContextMenuItem b) => a -> b -> m ()
-- | Removes item from the menu. See also
-- contextMenuRemoveAll to remove all items.
contextMenuRemove :: (HasCallStack, MonadIO m, IsContextMenu a, IsContextMenuItem b) => a -> b -> m ()
-- | Removes all items of the menu.
contextMenuRemoveAll :: (HasCallStack, MonadIO m, IsContextMenu a) => a -> m ()
-- | Sets user data to menu. This function can be used from
-- a Web Process extension to set user data that can be retrieved from
-- the UI Process using contextMenuGetUserData. If the
-- userData GVariant is floating, it is consumed.
contextMenuSetUserData :: (HasCallStack, MonadIO m, IsContextMenu a) => a -> GVariant -> m ()
instance Data.GI.Base.BasicTypes.GObject GI.WebKit2.Objects.ContextMenu.ContextMenu
instance (Data.GI.Base.BasicTypes.GObject a, Data.GI.Base.Overloading.UnknownAncestorError GI.WebKit2.Objects.ContextMenu.ContextMenu a) => GI.WebKit2.Objects.ContextMenu.IsContextMenu a
instance GI.WebKit2.Objects.ContextMenu.IsContextMenu GI.WebKit2.Objects.ContextMenu.ContextMenu
instance GI.GObject.Objects.Object.IsObject GI.WebKit2.Objects.ContextMenu.ContextMenu
module GI.WebKit2.Objects.ColorChooserRequest
newtype ColorChooserRequest
ColorChooserRequest :: (ManagedPtr ColorChooserRequest) -> ColorChooserRequest
class GObject o => IsColorChooserRequest o
toColorChooserRequest :: (MonadIO m, IsColorChooserRequest o) => o -> m ColorChooserRequest
noColorChooserRequest :: Maybe ColorChooserRequest
-- | Cancels request and the input element changes to use
-- the initial color it has before the request started. The signal
-- ColorChooserRequest::finished is emitted to
-- notify that the request has finished.
colorChooserRequestCancel :: (HasCallStack, MonadIO m, IsColorChooserRequest a) => a -> m ()
-- | Finishes request and the input element keeps the
-- current value of ColorChooserRequest:rgba. The
-- signal ColorChooserRequest::finished is emitted
-- to notify that the request has finished.
colorChooserRequestFinish :: (HasCallStack, MonadIO m, IsColorChooserRequest a) => a -> m ()
-- | Gets the bounding box of the color input element.
colorChooserRequestGetElementRectangle :: (HasCallStack, MonadIO m, IsColorChooserRequest a) => a -> m (Rectangle)
-- | Gets the current RGBA color of request
colorChooserRequestGetRgba :: (HasCallStack, MonadIO m, IsColorChooserRequest a) => a -> m (RGBA)
-- | Sets the current RGBA color of request
colorChooserRequestSetRgba :: (HasCallStack, MonadIO m, IsColorChooserRequest a) => a -> RGBA -> m ()
constructColorChooserRequestRgba :: (IsColorChooserRequest o) => RGBA -> IO (GValueConstruct o)
getColorChooserRequestRgba :: (MonadIO m, IsColorChooserRequest o) => o -> m (Maybe RGBA)
setColorChooserRequestRgba :: (MonadIO m, IsColorChooserRequest o) => o -> RGBA -> m ()
type C_ColorChooserRequestFinishedCallback = Ptr () -> Ptr () -> IO ()
type ColorChooserRequestFinishedCallback = IO ()
afterColorChooserRequestFinished :: (IsColorChooserRequest a, MonadIO m) => a -> ColorChooserRequestFinishedCallback -> m SignalHandlerId
genClosure_ColorChooserRequestFinished :: ColorChooserRequestFinishedCallback -> IO Closure
mk_ColorChooserRequestFinishedCallback :: C_ColorChooserRequestFinishedCallback -> IO (FunPtr C_ColorChooserRequestFinishedCallback)
noColorChooserRequestFinishedCallback :: Maybe ColorChooserRequestFinishedCallback
onColorChooserRequestFinished :: (IsColorChooserRequest a, MonadIO m) => a -> ColorChooserRequestFinishedCallback -> m SignalHandlerId
wrap_ColorChooserRequestFinishedCallback :: ColorChooserRequestFinishedCallback -> Ptr () -> Ptr () -> IO ()
instance Data.GI.Base.BasicTypes.GObject GI.WebKit2.Objects.ColorChooserRequest.ColorChooserRequest
instance (Data.GI.Base.BasicTypes.GObject a, Data.GI.Base.Overloading.UnknownAncestorError GI.WebKit2.Objects.ColorChooserRequest.ColorChooserRequest a) => GI.WebKit2.Objects.ColorChooserRequest.IsColorChooserRequest a
instance GI.WebKit2.Objects.ColorChooserRequest.IsColorChooserRequest GI.WebKit2.Objects.ColorChooserRequest.ColorChooserRequest
instance GI.GObject.Objects.Object.IsObject GI.WebKit2.Objects.ColorChooserRequest.ColorChooserRequest
module GI.WebKit2.Objects.BackForwardListItem
newtype BackForwardListItem
BackForwardListItem :: (ManagedPtr BackForwardListItem) -> BackForwardListItem
class GObject o => IsBackForwardListItem o
toBackForwardListItem :: (MonadIO m, IsBackForwardListItem o) => o -> m BackForwardListItem
noBackForwardListItem :: Maybe BackForwardListItem
-- | See also backForwardListItemGetUri.
backForwardListItemGetOriginalUri :: (HasCallStack, MonadIO m, IsBackForwardListItem a) => a -> m Text
-- | No description available in the introspection data.
backForwardListItemGetTitle :: (HasCallStack, MonadIO m, IsBackForwardListItem a) => a -> m Text
-- | This URI may differ from the original URI if the page was, for
-- example, redirected to a new location. See also
-- backForwardListItemGetOriginalUri.
backForwardListItemGetUri :: (HasCallStack, MonadIO m, IsBackForwardListItem a) => a -> m Text
instance Data.GI.Base.BasicTypes.GObject GI.WebKit2.Objects.BackForwardListItem.BackForwardListItem
instance (Data.GI.Base.BasicTypes.GObject a, Data.GI.Base.Overloading.UnknownAncestorError GI.WebKit2.Objects.BackForwardListItem.BackForwardListItem a) => GI.WebKit2.Objects.BackForwardListItem.IsBackForwardListItem a
instance GI.WebKit2.Objects.BackForwardListItem.IsBackForwardListItem GI.WebKit2.Objects.BackForwardListItem.BackForwardListItem
instance GI.GObject.Objects.Object.IsObject GI.WebKit2.Objects.BackForwardListItem.BackForwardListItem
module GI.WebKit2.Objects.BackForwardList
newtype BackForwardList
BackForwardList :: (ManagedPtr BackForwardList) -> BackForwardList
class GObject o => IsBackForwardList o
toBackForwardList :: (MonadIO m, IsBackForwardList o) => o -> m BackForwardList
noBackForwardList :: Maybe BackForwardList
-- | Returns the item that precedes the current item.
backForwardListGetBackItem :: (HasCallStack, MonadIO m, IsBackForwardList a) => a -> m BackForwardListItem
-- | No description available in the introspection data.
backForwardListGetBackList :: (HasCallStack, MonadIO m, IsBackForwardList a) => a -> m [BackForwardListItem]
-- | No description available in the introspection data.
backForwardListGetBackListWithLimit :: (HasCallStack, MonadIO m, IsBackForwardList a) => a -> Word32 -> m [BackForwardListItem]
-- | Returns the current item in backForwardList.
backForwardListGetCurrentItem :: (HasCallStack, MonadIO m, IsBackForwardList a) => a -> m BackForwardListItem
-- | Returns the item that follows the current item.
backForwardListGetForwardItem :: (HasCallStack, MonadIO m, IsBackForwardList a) => a -> m BackForwardListItem
-- | No description available in the introspection data.
backForwardListGetForwardList :: (HasCallStack, MonadIO m, IsBackForwardList a) => a -> m [BackForwardListItem]
-- | No description available in the introspection data.
backForwardListGetForwardListWithLimit :: (HasCallStack, MonadIO m, IsBackForwardList a) => a -> Word32 -> m [BackForwardListItem]
-- | No description available in the introspection data.
backForwardListGetLength :: (HasCallStack, MonadIO m, IsBackForwardList a) => a -> m Word32
-- | Returns the item at a given index relative to the current item.
backForwardListGetNthItem :: (HasCallStack, MonadIO m, IsBackForwardList a) => a -> Int32 -> m BackForwardListItem
type BackForwardListChangedCallback = Maybe BackForwardListItem -> Ptr () -> IO ()
type C_BackForwardListChangedCallback = Ptr () -> Ptr BackForwardListItem -> Ptr () -> Ptr () -> IO ()
afterBackForwardListChanged :: (IsBackForwardList a, MonadIO m) => a -> BackForwardListChangedCallback -> m SignalHandlerId
genClosure_BackForwardListChanged :: BackForwardListChangedCallback -> IO Closure
mk_BackForwardListChangedCallback :: C_BackForwardListChangedCallback -> IO (FunPtr C_BackForwardListChangedCallback)
noBackForwardListChangedCallback :: Maybe BackForwardListChangedCallback
onBackForwardListChanged :: (IsBackForwardList a, MonadIO m) => a -> BackForwardListChangedCallback -> m SignalHandlerId
wrap_BackForwardListChangedCallback :: BackForwardListChangedCallback -> Ptr () -> Ptr BackForwardListItem -> Ptr () -> Ptr () -> IO ()
instance Data.GI.Base.BasicTypes.GObject GI.WebKit2.Objects.BackForwardList.BackForwardList
instance (Data.GI.Base.BasicTypes.GObject a, Data.GI.Base.Overloading.UnknownAncestorError GI.WebKit2.Objects.BackForwardList.BackForwardList a) => GI.WebKit2.Objects.BackForwardList.IsBackForwardList a
instance GI.WebKit2.Objects.BackForwardList.IsBackForwardList GI.WebKit2.Objects.BackForwardList.BackForwardList
instance GI.GObject.Objects.Object.IsObject GI.WebKit2.Objects.BackForwardList.BackForwardList
module GI.WebKit2.Interfaces.PermissionRequest
newtype PermissionRequest
PermissionRequest :: (ManagedPtr PermissionRequest) -> PermissionRequest
noPermissionRequest :: Maybe PermissionRequest
class GObject o => IsPermissionRequest o
toPermissionRequest :: (MonadIO m, IsPermissionRequest o) => o -> m PermissionRequest
-- | Allow the action which triggered this request.
permissionRequestAllow :: (HasCallStack, MonadIO m, IsPermissionRequest a) => a -> m ()
-- | Deny the action which triggered this request.
permissionRequestDeny :: (HasCallStack, MonadIO m, IsPermissionRequest a) => a -> m ()
instance Data.GI.Base.BasicTypes.GObject GI.WebKit2.Interfaces.PermissionRequest.PermissionRequest
instance (Data.GI.Base.BasicTypes.GObject a, Data.GI.Base.Overloading.UnknownAncestorError GI.WebKit2.Interfaces.PermissionRequest.PermissionRequest a) => GI.WebKit2.Interfaces.PermissionRequest.IsPermissionRequest a
instance GI.WebKit2.Interfaces.PermissionRequest.IsPermissionRequest GI.WebKit2.Interfaces.PermissionRequest.PermissionRequest
instance GI.GObject.Objects.Object.IsObject GI.WebKit2.Interfaces.PermissionRequest.PermissionRequest
module GI.WebKit2.Objects.GeolocationPermissionRequest
newtype GeolocationPermissionRequest
GeolocationPermissionRequest :: (ManagedPtr GeolocationPermissionRequest) -> GeolocationPermissionRequest
class GObject o => IsGeolocationPermissionRequest o
toGeolocationPermissionRequest :: (MonadIO m, IsGeolocationPermissionRequest o) => o -> m GeolocationPermissionRequest
noGeolocationPermissionRequest :: Maybe GeolocationPermissionRequest
instance Data.GI.Base.BasicTypes.GObject GI.WebKit2.Objects.GeolocationPermissionRequest.GeolocationPermissionRequest
instance (Data.GI.Base.BasicTypes.GObject a, Data.GI.Base.Overloading.UnknownAncestorError GI.WebKit2.Objects.GeolocationPermissionRequest.GeolocationPermissionRequest a) => GI.WebKit2.Objects.GeolocationPermissionRequest.IsGeolocationPermissionRequest a
instance GI.WebKit2.Objects.GeolocationPermissionRequest.IsGeolocationPermissionRequest GI.WebKit2.Objects.GeolocationPermissionRequest.GeolocationPermissionRequest
instance GI.GObject.Objects.Object.IsObject GI.WebKit2.Objects.GeolocationPermissionRequest.GeolocationPermissionRequest
instance GI.WebKit2.Interfaces.PermissionRequest.IsPermissionRequest GI.WebKit2.Objects.GeolocationPermissionRequest.GeolocationPermissionRequest
module GI.WebKit2.Objects.InstallMissingMediaPluginsPermissionRequest
newtype InstallMissingMediaPluginsPermissionRequest
InstallMissingMediaPluginsPermissionRequest :: (ManagedPtr InstallMissingMediaPluginsPermissionRequest) -> InstallMissingMediaPluginsPermissionRequest
class GObject o => IsInstallMissingMediaPluginsPermissionRequest o
toInstallMissingMediaPluginsPermissionRequest :: (MonadIO m, IsInstallMissingMediaPluginsPermissionRequest o) => o -> m InstallMissingMediaPluginsPermissionRequest
noInstallMissingMediaPluginsPermissionRequest :: Maybe InstallMissingMediaPluginsPermissionRequest
-- | Gets the description about the missing plugins provided by the media
-- backend when a media couldn't be played.
installMissingMediaPluginsPermissionRequestGetDescription :: (HasCallStack, MonadIO m, IsInstallMissingMediaPluginsPermissionRequest a) => a -> m Text
instance Data.GI.Base.BasicTypes.GObject GI.WebKit2.Objects.InstallMissingMediaPluginsPermissionRequest.InstallMissingMediaPluginsPermissionRequest
instance (Data.GI.Base.BasicTypes.GObject a, Data.GI.Base.Overloading.UnknownAncestorError GI.WebKit2.Objects.InstallMissingMediaPluginsPermissionRequest.InstallMissingMediaPluginsPermissionRequest a) => GI.WebKit2.Objects.InstallMissingMediaPluginsPermissionRequest.IsInstallMissingMediaPluginsPermissionRequest a
instance GI.WebKit2.Objects.InstallMissingMediaPluginsPermissionRequest.IsInstallMissingMediaPluginsPermissionRequest GI.WebKit2.Objects.InstallMissingMediaPluginsPermissionRequest.InstallMissingMediaPluginsPermissionRequest
instance GI.GObject.Objects.Object.IsObject GI.WebKit2.Objects.InstallMissingMediaPluginsPermissionRequest.InstallMissingMediaPluginsPermissionRequest
instance GI.WebKit2.Interfaces.PermissionRequest.IsPermissionRequest GI.WebKit2.Objects.InstallMissingMediaPluginsPermissionRequest.InstallMissingMediaPluginsPermissionRequest
module GI.WebKit2.Objects.NotificationPermissionRequest
newtype NotificationPermissionRequest
NotificationPermissionRequest :: (ManagedPtr NotificationPermissionRequest) -> NotificationPermissionRequest
class GObject o => IsNotificationPermissionRequest o
toNotificationPermissionRequest :: (MonadIO m, IsNotificationPermissionRequest o) => o -> m NotificationPermissionRequest
noNotificationPermissionRequest :: Maybe NotificationPermissionRequest
instance Data.GI.Base.BasicTypes.GObject GI.WebKit2.Objects.NotificationPermissionRequest.NotificationPermissionRequest
instance (Data.GI.Base.BasicTypes.GObject a, Data.GI.Base.Overloading.UnknownAncestorError GI.WebKit2.Objects.NotificationPermissionRequest.NotificationPermissionRequest a) => GI.WebKit2.Objects.NotificationPermissionRequest.IsNotificationPermissionRequest a
instance GI.WebKit2.Objects.NotificationPermissionRequest.IsNotificationPermissionRequest GI.WebKit2.Objects.NotificationPermissionRequest.NotificationPermissionRequest
instance GI.GObject.Objects.Object.IsObject GI.WebKit2.Objects.NotificationPermissionRequest.NotificationPermissionRequest
instance GI.WebKit2.Interfaces.PermissionRequest.IsPermissionRequest GI.WebKit2.Objects.NotificationPermissionRequest.NotificationPermissionRequest
module GI.WebKit2.Objects.UserMediaPermissionRequest
newtype UserMediaPermissionRequest
UserMediaPermissionRequest :: (ManagedPtr UserMediaPermissionRequest) -> UserMediaPermissionRequest
class GObject o => IsUserMediaPermissionRequest o
toUserMediaPermissionRequest :: (MonadIO m, IsUserMediaPermissionRequest o) => o -> m UserMediaPermissionRequest
noUserMediaPermissionRequest :: Maybe UserMediaPermissionRequest
getUserMediaPermissionRequestIsForAudioDevice :: (MonadIO m, IsUserMediaPermissionRequest o) => o -> m Bool
getUserMediaPermissionRequestIsForVideoDevice :: (MonadIO m, IsUserMediaPermissionRequest o) => o -> m Bool
instance Data.GI.Base.BasicTypes.GObject GI.WebKit2.Objects.UserMediaPermissionRequest.UserMediaPermissionRequest
instance (Data.GI.Base.BasicTypes.GObject a, Data.GI.Base.Overloading.UnknownAncestorError GI.WebKit2.Objects.UserMediaPermissionRequest.UserMediaPermissionRequest a) => GI.WebKit2.Objects.UserMediaPermissionRequest.IsUserMediaPermissionRequest a
instance GI.WebKit2.Objects.UserMediaPermissionRequest.IsUserMediaPermissionRequest GI.WebKit2.Objects.UserMediaPermissionRequest.UserMediaPermissionRequest
instance GI.GObject.Objects.Object.IsObject GI.WebKit2.Objects.UserMediaPermissionRequest.UserMediaPermissionRequest
instance GI.WebKit2.Interfaces.PermissionRequest.IsPermissionRequest GI.WebKit2.Objects.UserMediaPermissionRequest.UserMediaPermissionRequest
module GI.WebKit2.Interfaces
module GI.WebKit2.Functions
-- | Returns the major version number of the WebKit library. (e.g. in
-- WebKit version 1.8.3 this is 1.)
--
-- This function is in the library, so it represents the WebKit library
-- your code is running against. Contrast with the MAJOR_VERSION
-- macro, which represents the major version of the WebKit headers you
-- have included when compiling your code.
getMajorVersion :: (HasCallStack, MonadIO m) => m Word32
-- | Returns the micro version number of the WebKit library. (e.g. in
-- WebKit version 1.8.3 this is 3.)
--
-- This function is in the library, so it represents the WebKit library
-- your code is running against. Contrast with the MICRO_VERSION
-- macro, which represents the micro version of the WebKit headers you
-- have included when compiling your code.
getMicroVersion :: (HasCallStack, MonadIO m) => m Word32
-- | Returns the minor version number of the WebKit library. (e.g. in
-- WebKit version 1.8.3 this is 8.)
--
-- This function is in the library, so it represents the WebKit library
-- your code is running against. Contrast with the MINOR_VERSION
-- macro, which represents the minor version of the WebKit headers you
-- have included when compiling your code.
getMinorVersion :: (HasCallStack, MonadIO m) => m Word32
-- | No description available in the introspection data.
userMediaPermissionIsForAudioDevice :: (HasCallStack, MonadIO m, IsUserMediaPermissionRequest a) => a -> m Bool
-- | No description available in the introspection data.
userMediaPermissionIsForVideoDevice :: (HasCallStack, MonadIO m, IsUserMediaPermissionRequest a) => a -> m Bool
module GI.WebKit2.Flags
-- | Enum values with flags representing types of Website data.
data WebsiteDataTypes
-- | Memory cache.
WebsiteDataTypesMemoryCache :: WebsiteDataTypes
-- | HTTP disk cache.
WebsiteDataTypesDiskCache :: WebsiteDataTypes
-- | Offline web application cache.
WebsiteDataTypesOfflineApplicationCache :: WebsiteDataTypes
-- | Session storage data.
WebsiteDataTypesSessionStorage :: WebsiteDataTypes
-- | Local storage data.
WebsiteDataTypesLocalStorage :: WebsiteDataTypes
-- | WebSQL databases.
WebsiteDataTypesWebsqlDatabases :: WebsiteDataTypes
-- | IndexedDB databases.
WebsiteDataTypesIndexeddbDatabases :: WebsiteDataTypes
-- | Plugins data.
WebsiteDataTypesPluginData :: WebsiteDataTypes
-- | Cookies.
WebsiteDataTypesCookies :: WebsiteDataTypes
-- | All types.
WebsiteDataTypesAll :: WebsiteDataTypes
-- | Catch-all for unknown values
AnotherWebsiteDataTypes :: Int -> WebsiteDataTypes
-- | Enum values used to specify options when taking a snapshot from a
-- WebView.
data SnapshotOptions
-- | Do not include any special options.
SnapshotOptionsNone :: SnapshotOptions
-- | Whether to include in the snapshot the highlight of the selected
-- content.
SnapshotOptionsIncludeSelectionHighlighting :: SnapshotOptions
-- | Do not fill the background with white before rendering the snapshot.
-- Since 2.8
SnapshotOptionsTransparentBackground :: SnapshotOptions
-- | Catch-all for unknown values
AnotherSnapshotOptions :: Int -> SnapshotOptions
-- | Enum values with flags representing the context of a
-- HitTestResult.
data HitTestResultContext
-- | anywhere in the document.
HitTestResultContextDocument :: HitTestResultContext
-- | a hyperlink element.
HitTestResultContextLink :: HitTestResultContext
-- | an image element.
HitTestResultContextImage :: HitTestResultContext
-- | a video or audio element.
HitTestResultContextMedia :: HitTestResultContext
-- | an editable element
HitTestResultContextEditable :: HitTestResultContext
-- | a scrollbar element.
HitTestResultContextScrollbar :: HitTestResultContext
-- | a selected element. Since 2.8
HitTestResultContextSelection :: HitTestResultContext
-- | Catch-all for unknown values
AnotherHitTestResultContext :: Int -> HitTestResultContext
-- | Enum values used to specify search options.
data FindOptions
-- | no search flags, this means a case sensitive, no wrap, forward only
-- search.
FindOptionsNone :: FindOptions
-- | case insensitive search.
FindOptionsCaseInsensitive :: FindOptions
-- | search text only at the begining of the words.
FindOptionsAtWordStarts :: FindOptions
-- | treat capital letters in the middle of words as word start.
FindOptionsTreatMedialCapitalAsWordStart :: FindOptions
-- | search backwards.
FindOptionsBackwards :: FindOptions
-- | if not present search will stop at the end of the document.
FindOptionsWrapAround :: FindOptions
-- | Catch-all for unknown values
AnotherFindOptions :: Int -> FindOptions
-- | Enum values with flags representing typing attributes.
data EditorTypingAttributes
-- | No typing attrubutes.
EditorTypingAttributesNone :: EditorTypingAttributes
-- | Bold typing attribute.
EditorTypingAttributesBold :: EditorTypingAttributes
-- | Italic typing attribute.
EditorTypingAttributesItalic :: EditorTypingAttributes
-- | Underline typing attribute.
EditorTypingAttributesUnderline :: EditorTypingAttributes
-- | Strikethrough typing attribute.
EditorTypingAttributesStrikethrough :: EditorTypingAttributes
-- | Catch-all for unknown values
AnotherEditorTypingAttributes :: Int -> EditorTypingAttributes
instance GHC.Classes.Eq GI.WebKit2.Flags.EditorTypingAttributes
instance GHC.Show.Show GI.WebKit2.Flags.EditorTypingAttributes
instance GHC.Classes.Eq GI.WebKit2.Flags.FindOptions
instance GHC.Show.Show GI.WebKit2.Flags.FindOptions
instance GHC.Classes.Eq GI.WebKit2.Flags.HitTestResultContext
instance GHC.Show.Show GI.WebKit2.Flags.HitTestResultContext
instance GHC.Classes.Eq GI.WebKit2.Flags.SnapshotOptions
instance GHC.Show.Show GI.WebKit2.Flags.SnapshotOptions
instance GHC.Classes.Eq GI.WebKit2.Flags.WebsiteDataTypes
instance GHC.Show.Show GI.WebKit2.Flags.WebsiteDataTypes
instance GHC.Enum.Enum GI.WebKit2.Flags.WebsiteDataTypes
instance GHC.Classes.Ord GI.WebKit2.Flags.WebsiteDataTypes
instance Data.GI.Base.BasicTypes.BoxedFlags GI.WebKit2.Flags.WebsiteDataTypes
instance Data.GI.Base.BasicTypes.IsGFlag GI.WebKit2.Flags.WebsiteDataTypes
instance GHC.Enum.Enum GI.WebKit2.Flags.SnapshotOptions
instance GHC.Classes.Ord GI.WebKit2.Flags.SnapshotOptions
instance Data.GI.Base.BasicTypes.BoxedFlags GI.WebKit2.Flags.SnapshotOptions
instance Data.GI.Base.BasicTypes.IsGFlag GI.WebKit2.Flags.SnapshotOptions
instance GHC.Enum.Enum GI.WebKit2.Flags.HitTestResultContext
instance GHC.Classes.Ord GI.WebKit2.Flags.HitTestResultContext
instance Data.GI.Base.BasicTypes.BoxedFlags GI.WebKit2.Flags.HitTestResultContext
instance Data.GI.Base.BasicTypes.IsGFlag GI.WebKit2.Flags.HitTestResultContext
instance GHC.Enum.Enum GI.WebKit2.Flags.FindOptions
instance GHC.Classes.Ord GI.WebKit2.Flags.FindOptions
instance Data.GI.Base.BasicTypes.BoxedFlags GI.WebKit2.Flags.FindOptions
instance Data.GI.Base.BasicTypes.IsGFlag GI.WebKit2.Flags.FindOptions
instance GHC.Enum.Enum GI.WebKit2.Flags.EditorTypingAttributes
instance GHC.Classes.Ord GI.WebKit2.Flags.EditorTypingAttributes
instance Data.GI.Base.BasicTypes.BoxedFlags GI.WebKit2.Flags.EditorTypingAttributes
instance Data.GI.Base.BasicTypes.IsGFlag GI.WebKit2.Flags.EditorTypingAttributes
module GI.WebKit2.Objects.FindController
newtype FindController
FindController :: (ManagedPtr FindController) -> FindController
class GObject o => IsFindController o
toFindController :: (MonadIO m, IsFindController o) => o -> m FindController
noFindController :: Maybe FindController
-- | Counts the number of matches for searchText found in
-- the WebView with the provided findOptions. The
-- number of matches will be provided by the
-- FindController::counted-matches signal.
findControllerCountMatches :: (HasCallStack, MonadIO m, IsFindController a) => a -> Text -> Word32 -> Word32 -> m ()
-- | Gets the maximum number of matches to report during a text lookup.
-- This number is passed as the last argument of
-- findControllerSearch or findControllerCountMatches.
findControllerGetMaxMatchCount :: (HasCallStack, MonadIO m, IsFindController a) => a -> m Word32
-- | Gets a bitmask containing the FindOptions associated with the
-- current search.
findControllerGetOptions :: (HasCallStack, MonadIO m, IsFindController a) => a -> m Word32
-- | Gets the text that findController is currently
-- searching for. This text is passed to either
-- findControllerSearch or findControllerCountMatches.
findControllerGetSearchText :: (HasCallStack, MonadIO m, IsFindController a) => a -> m Text
-- | Gets the WebView this find controller is associated to. Do not
-- unref the returned instance as it belongs to the
-- FindController.
findControllerGetWebView :: (HasCallStack, MonadIO m, IsFindController a) => a -> m WebView
-- | Looks for searchText in the WebView associated
-- with findController since the beginning of the
-- document highlighting up to maxMatchCount matches. The
-- outcome of the search will be asynchronously provided by the
-- FindController::found-text and
-- FindController::failed-to-find-text signals.
--
-- To look for the next or previous occurrences of the same text with the
-- same find options use findControllerSearchNext and/or
-- findControllerSearchPrevious. The FindController will
-- use the same text and options for the following searches unless they
-- are modified by another call to this method.
--
-- Note that if the number of matches is higher than
-- maxMatchCount then
-- FindController::found-text will report
-- G_MAXUINT matches instead of the actual number.
--
-- Callers should call findControllerSearchFinish to finish the
-- current search operation.
findControllerSearch :: (HasCallStack, MonadIO m, IsFindController a) => a -> Text -> Word32 -> Word32 -> m ()
-- | Finishes a find operation started by findControllerSearch. It
-- will basically unhighlight every text match found.
--
-- This method will be typically called when the search UI is
-- closed/hidden by the client application.
findControllerSearchFinish :: (HasCallStack, MonadIO m, IsFindController a) => a -> m ()
-- | Looks for the next occurrence of the search text.
--
-- Calling this method before findControllerSearch or
-- findControllerCountMatches is a programming error.
findControllerSearchNext :: (HasCallStack, MonadIO m, IsFindController a) => a -> m ()
-- | Looks for the previous occurrence of the search text.
--
-- Calling this method before findControllerSearch or
-- findControllerCountMatches is a programming error.
findControllerSearchPrevious :: (HasCallStack, MonadIO m, IsFindController a) => a -> m ()
getFindControllerMaxMatchCount :: (MonadIO m, IsFindController o) => o -> m Word32
getFindControllerOptions :: (MonadIO m, IsFindController o) => o -> m [FindOptions]
getFindControllerText :: (MonadIO m, IsFindController o) => o -> m (Maybe Text)
constructFindControllerWebView :: (IsFindController o, IsWebView a) => a -> IO (GValueConstruct o)
getFindControllerWebView :: (MonadIO m, IsFindController o) => o -> m WebView
type C_FindControllerCountedMatchesCallback = Ptr () -> Word32 -> Ptr () -> IO ()
type FindControllerCountedMatchesCallback = Word32 -> IO ()
afterFindControllerCountedMatches :: (IsFindController a, MonadIO m) => a -> FindControllerCountedMatchesCallback -> m SignalHandlerId
genClosure_FindControllerCountedMatches :: FindControllerCountedMatchesCallback -> IO Closure
mk_FindControllerCountedMatchesCallback :: C_FindControllerCountedMatchesCallback -> IO (FunPtr C_FindControllerCountedMatchesCallback)
noFindControllerCountedMatchesCallback :: Maybe FindControllerCountedMatchesCallback
onFindControllerCountedMatches :: (IsFindController a, MonadIO m) => a -> FindControllerCountedMatchesCallback -> m SignalHandlerId
wrap_FindControllerCountedMatchesCallback :: FindControllerCountedMatchesCallback -> Ptr () -> Word32 -> Ptr () -> IO ()
type C_FindControllerFailedToFindTextCallback = Ptr () -> Ptr () -> IO ()
type FindControllerFailedToFindTextCallback = IO ()
afterFindControllerFailedToFindText :: (IsFindController a, MonadIO m) => a -> FindControllerFailedToFindTextCallback -> m SignalHandlerId
genClosure_FindControllerFailedToFindText :: FindControllerFailedToFindTextCallback -> IO Closure
mk_FindControllerFailedToFindTextCallback :: C_FindControllerFailedToFindTextCallback -> IO (FunPtr C_FindControllerFailedToFindTextCallback)
noFindControllerFailedToFindTextCallback :: Maybe FindControllerFailedToFindTextCallback
onFindControllerFailedToFindText :: (IsFindController a, MonadIO m) => a -> FindControllerFailedToFindTextCallback -> m SignalHandlerId
wrap_FindControllerFailedToFindTextCallback :: FindControllerFailedToFindTextCallback -> Ptr () -> Ptr () -> IO ()
type C_FindControllerFoundTextCallback = Ptr () -> Word32 -> Ptr () -> IO ()
type FindControllerFoundTextCallback = Word32 -> IO ()
afterFindControllerFoundText :: (IsFindController a, MonadIO m) => a -> FindControllerFoundTextCallback -> m SignalHandlerId
genClosure_FindControllerFoundText :: FindControllerFoundTextCallback -> IO Closure
mk_FindControllerFoundTextCallback :: C_FindControllerFoundTextCallback -> IO (FunPtr C_FindControllerFoundTextCallback)
noFindControllerFoundTextCallback :: Maybe FindControllerFoundTextCallback
onFindControllerFoundText :: (IsFindController a, MonadIO m) => a -> FindControllerFoundTextCallback -> m SignalHandlerId
wrap_FindControllerFoundTextCallback :: FindControllerFoundTextCallback -> Ptr () -> Word32 -> Ptr () -> IO ()
instance Data.GI.Base.BasicTypes.GObject GI.WebKit2.Objects.FindController.FindController
instance (Data.GI.Base.BasicTypes.GObject a, Data.GI.Base.Overloading.UnknownAncestorError GI.WebKit2.Objects.FindController.FindController a) => GI.WebKit2.Objects.FindController.IsFindController a
instance GI.WebKit2.Objects.FindController.IsFindController GI.WebKit2.Objects.FindController.FindController
instance GI.GObject.Objects.Object.IsObject GI.WebKit2.Objects.FindController.FindController
module GI.WebKit2.Objects.WebsiteDataManager
newtype WebsiteDataManager
WebsiteDataManager :: (ManagedPtr WebsiteDataManager) -> WebsiteDataManager
class GObject o => IsWebsiteDataManager o
toWebsiteDataManager :: (MonadIO m, IsWebsiteDataManager o) => o -> m WebsiteDataManager
noWebsiteDataManager :: Maybe WebsiteDataManager
-- | Asynchronously clear the website data of the given
-- types modified in the past timespan.
-- If timespan is 0, all website data will be removed.
--
-- When the operation is finished, callback will be
-- called. You can then call websiteDataManagerClearFinish to get
-- the result of the operation.
--
-- Due to implementation limitations, this function does not currently
-- delete any stored cookies if timespan is nonzero. This
-- behavior may change in the future.
websiteDataManagerClear :: (HasCallStack, MonadIO m, IsWebsiteDataManager a, IsCancellable b) => a -> [WebsiteDataTypes] -> Int64 -> Maybe (b) -> Maybe (AsyncReadyCallback) -> m ()
-- | Finish an asynchronous operation started with
-- websiteDataManagerClear
websiteDataManagerClearFinish :: (HasCallStack, MonadIO m, IsWebsiteDataManager a, IsAsyncResult b) => a -> b -> m ()
-- | Asynchronously get the list of WebsiteData for the given
-- types.
--
-- When the operation is finished, callback will be
-- called. You can then call websiteDataManagerFetchFinish to get
-- the result of the operation.
websiteDataManagerFetch :: (HasCallStack, MonadIO m, IsWebsiteDataManager a, IsCancellable b) => a -> [WebsiteDataTypes] -> Maybe (b) -> Maybe (AsyncReadyCallback) -> m ()
-- | Finish an asynchronous operation started with
-- websiteDataManagerFetch.
websiteDataManagerFetchFinish :: (HasCallStack, MonadIO m, IsWebsiteDataManager a, IsAsyncResult b) => a -> b -> m [WebsiteData]
-- | Get the WebsiteDataManager:base-cache-directory
-- property.
websiteDataManagerGetBaseCacheDirectory :: (HasCallStack, MonadIO m, IsWebsiteDataManager a) => a -> m (Maybe Text)
-- | Get the WebsiteDataManager:base-data-directory
-- property.
websiteDataManagerGetBaseDataDirectory :: (HasCallStack, MonadIO m, IsWebsiteDataManager a) => a -> m (Maybe Text)
-- | Get the CookieManager of manager.
websiteDataManagerGetCookieManager :: (HasCallStack, MonadIO m, IsWebsiteDataManager a) => a -> m CookieManager
-- | Get the WebsiteDataManager:disk-cache-directory
-- property.
websiteDataManagerGetDiskCacheDirectory :: (HasCallStack, MonadIO m, IsWebsiteDataManager a) => a -> m (Maybe Text)
-- | Get the WebsiteDataManager:indexeddb-directory
-- property.
websiteDataManagerGetIndexeddbDirectory :: (HasCallStack, MonadIO m, IsWebsiteDataManager a) => a -> m (Maybe Text)
-- | Get the
-- WebsiteDataManager:local-storage-directory
-- property.
websiteDataManagerGetLocalStorageDirectory :: (HasCallStack, MonadIO m, IsWebsiteDataManager a) => a -> m (Maybe Text)
-- | Get the
-- WebsiteDataManager:offline-application-cache-directory
-- property.
websiteDataManagerGetOfflineApplicationCacheDirectory :: (HasCallStack, MonadIO m, IsWebsiteDataManager a) => a -> m (Maybe Text)
-- | Get the WebsiteDataManager:websql-directory
-- property.
websiteDataManagerGetWebsqlDirectory :: (HasCallStack, MonadIO m, IsWebsiteDataManager a) => a -> m (Maybe Text)
-- | Get whether a WebsiteDataManager is ephemeral. See
-- WebsiteDataManager::is-ephemerla for more
-- details.
websiteDataManagerIsEphemeral :: (HasCallStack, MonadIO m, IsWebsiteDataManager a) => a -> m Bool
-- | Creates an ephemeral WebsiteDataManager. See
-- WebsiteDataManager:is-ephemeral for more
-- details.
websiteDataManagerNewEphemeral :: (HasCallStack, MonadIO m) => m WebsiteDataManager
-- | Asynchronously removes the website data of the for the given
-- types for websites in the given
-- websiteData list. Use websiteDataManagerClear
-- if you want to remove the website data for all sites.
--
-- When the operation is finished, callback will be
-- called. You can then call websiteDataManagerRemoveFinish to get
-- the result of the operation.
websiteDataManagerRemove :: (HasCallStack, MonadIO m, IsWebsiteDataManager a, IsCancellable b) => a -> [WebsiteDataTypes] -> [WebsiteData] -> Maybe (b) -> Maybe (AsyncReadyCallback) -> m ()
-- | Finish an asynchronous operation started with
-- websiteDataManagerRemove.
websiteDataManagerRemoveFinish :: (HasCallStack, MonadIO m, IsWebsiteDataManager a, IsAsyncResult b) => a -> b -> m ()
constructWebsiteDataManagerBaseCacheDirectory :: (IsWebsiteDataManager o) => Text -> IO (GValueConstruct o)
getWebsiteDataManagerBaseCacheDirectory :: (MonadIO m, IsWebsiteDataManager o) => o -> m (Maybe Text)
constructWebsiteDataManagerBaseDataDirectory :: (IsWebsiteDataManager o) => Text -> IO (GValueConstruct o)
getWebsiteDataManagerBaseDataDirectory :: (MonadIO m, IsWebsiteDataManager o) => o -> m (Maybe Text)
constructWebsiteDataManagerDiskCacheDirectory :: (IsWebsiteDataManager o) => Text -> IO (GValueConstruct o)
getWebsiteDataManagerDiskCacheDirectory :: (MonadIO m, IsWebsiteDataManager o) => o -> m (Maybe Text)
constructWebsiteDataManagerIndexeddbDirectory :: (IsWebsiteDataManager o) => Text -> IO (GValueConstruct o)
getWebsiteDataManagerIndexeddbDirectory :: (MonadIO m, IsWebsiteDataManager o) => o -> m (Maybe Text)
constructWebsiteDataManagerIsEphemeral :: (IsWebsiteDataManager o) => Bool -> IO (GValueConstruct o)
getWebsiteDataManagerIsEphemeral :: (MonadIO m, IsWebsiteDataManager o) => o -> m Bool
constructWebsiteDataManagerLocalStorageDirectory :: (IsWebsiteDataManager o) => Text -> IO (GValueConstruct o)
getWebsiteDataManagerLocalStorageDirectory :: (MonadIO m, IsWebsiteDataManager o) => o -> m (Maybe Text)
constructWebsiteDataManagerOfflineApplicationCacheDirectory :: (IsWebsiteDataManager o) => Text -> IO (GValueConstruct o)
getWebsiteDataManagerOfflineApplicationCacheDirectory :: (MonadIO m, IsWebsiteDataManager o) => o -> m (Maybe Text)
constructWebsiteDataManagerWebsqlDirectory :: (IsWebsiteDataManager o) => Text -> IO (GValueConstruct o)
getWebsiteDataManagerWebsqlDirectory :: (MonadIO m, IsWebsiteDataManager o) => o -> m (Maybe Text)
instance Data.GI.Base.BasicTypes.GObject GI.WebKit2.Objects.WebsiteDataManager.WebsiteDataManager
instance (Data.GI.Base.BasicTypes.GObject a, Data.GI.Base.Overloading.UnknownAncestorError GI.WebKit2.Objects.WebsiteDataManager.WebsiteDataManager a) => GI.WebKit2.Objects.WebsiteDataManager.IsWebsiteDataManager a
instance GI.WebKit2.Objects.WebsiteDataManager.IsWebsiteDataManager GI.WebKit2.Objects.WebsiteDataManager.WebsiteDataManager
instance GI.GObject.Objects.Object.IsObject GI.WebKit2.Objects.WebsiteDataManager.WebsiteDataManager
module GI.WebKit2.Structs.WebsiteData
newtype WebsiteData
WebsiteData :: (ManagedPtr WebsiteData) -> WebsiteData
noWebsiteData :: Maybe WebsiteData
-- | Gets the name of WebsiteData. This is the website name,
-- normally represented by a domain or host name. All local documents are
-- grouped in the same WebsiteData using the name "Local files".
websiteDataGetName :: (HasCallStack, MonadIO m) => WebsiteData -> m Text
-- | Gets the size of the data of types types in a
-- WebsiteData. Note that currently the data size is only known
-- for WebsiteDataTypesDiskCache data type so for all other types
-- 0 will be returned.
websiteDataGetSize :: (HasCallStack, MonadIO m) => WebsiteData -> [WebsiteDataTypes] -> m Word64
-- | Gets the types of data stored in the client for a WebsiteData.
-- These are the types actually present, not the types queried with
-- websiteDataManagerFetch.
websiteDataGetTypes :: (HasCallStack, MonadIO m) => WebsiteData -> m [WebsiteDataTypes]
-- | Atomically increments the reference count of
-- websiteData by one. This function is MT-safe and may
-- be called from any thread.
websiteDataRef :: (HasCallStack, MonadIO m) => WebsiteData -> m WebsiteData
-- | Atomically decrements the reference count of
-- websiteData by one. If the reference count drops to 0,
-- all memory allocated by WebsiteData is released. This function
-- is MT-safe and may be called from any thread.
websiteDataUnref :: (HasCallStack, MonadIO m) => WebsiteData -> m ()
instance Data.GI.Base.BasicTypes.BoxedObject GI.WebKit2.Structs.WebsiteData.WebsiteData
module GI.WebKit2.Enums
catchSnapshotError :: IO a -> (SnapshotError -> GErrorMessage -> IO a) -> IO a
handleSnapshotError :: (SnapshotError -> GErrorMessage -> IO a) -> IO a -> IO a
catchPrintError :: IO a -> (PrintError -> GErrorMessage -> IO a) -> IO a
handlePrintError :: (PrintError -> GErrorMessage -> IO a) -> IO a -> IO a
catchPolicyError :: IO a -> (PolicyError -> GErrorMessage -> IO a) -> IO a
handlePolicyError :: (PolicyError -> GErrorMessage -> IO a) -> IO a -> IO a
catchPluginError :: IO a -> (PluginError -> GErrorMessage -> IO a) -> IO a
handlePluginError :: (PluginError -> GErrorMessage -> IO a) -> IO a -> IO a
catchNetworkError :: IO a -> (NetworkError -> GErrorMessage -> IO a) -> IO a
handleNetworkError :: (NetworkError -> GErrorMessage -> IO a) -> IO a -> IO a
catchJavascriptError :: IO a -> (JavascriptError -> GErrorMessage -> IO a) -> IO a
handleJavascriptError :: (JavascriptError -> GErrorMessage -> IO a) -> IO a -> IO a
catchFaviconDatabaseError :: IO a -> (FaviconDatabaseError -> GErrorMessage -> IO a) -> IO a
handleFaviconDatabaseError :: (FaviconDatabaseError -> GErrorMessage -> IO a) -> IO a -> IO a
catchDownloadError :: IO a -> (DownloadError -> GErrorMessage -> IO a) -> IO a
handleDownloadError :: (DownloadError -> GErrorMessage -> IO a) -> IO a -> IO a
-- | Specifies how to treat an user style sheet.
data UserStyleLevel
-- | The style sheet is an user style sheet, its contents always override
-- other style sheets. This is the default.
UserStyleLevelUser :: UserStyleLevel
-- | The style sheet will be treated as if it was provided by the loaded
-- documents. That means other user style sheets may still override it.
UserStyleLevelAuthor :: UserStyleLevel
-- | Catch-all for unknown values
AnotherUserStyleLevel :: Int -> UserStyleLevel
-- | Specifies at which place of documents an user script will be inserted.
data UserScriptInjectionTime
-- | Insert the code of the user script at the beginning of loaded
-- documents. This is the default.
UserScriptInjectionTimeStart :: UserScriptInjectionTime
-- | Insert the code of the user script at the end of the loaded documents.
UserScriptInjectionTimeEnd :: UserScriptInjectionTime
-- | Catch-all for unknown values
AnotherUserScriptInjectionTime :: Int -> UserScriptInjectionTime
-- | Specifies in which frames user style sheets are to be inserted in.
data UserContentInjectedFrames
-- | Insert the user style sheet in all the frames loaded by the web view,
-- including nested frames. This is the default.
UserContentInjectedFramesAllFrames :: UserContentInjectedFrames
-- | Insert the user style sheet *only* in the top-level frame loaded by
-- the web view, and *not* in the nested frames.
UserContentInjectedFramesTopFrame :: UserContentInjectedFrames
-- | Catch-all for unknown values
AnotherUserContentInjectedFrames :: Int -> UserContentInjectedFrames
-- | Enum values used to denote the TLS errors policy.
data TLSErrorsPolicy
-- | Ignore TLS errors.
TLSErrorsPolicyIgnore :: TLSErrorsPolicy
-- | TLS errors will emit
-- WebView::load-failed-with-tls-errors and, if
-- the signal is handled, finish the load. In case the signal is not
-- handled, WebView::load-failed is emitted before
-- the load finishes.
TLSErrorsPolicyFail :: TLSErrorsPolicy
-- | Catch-all for unknown values
AnotherTLSErrorsPolicy :: Int -> TLSErrorsPolicy
-- | Enum values used to specify the region from which to get a
-- WebView snapshot
data SnapshotRegion
-- | Specifies a snapshot only for the area that is visible in the webview
SnapshotRegionVisible :: SnapshotRegion
-- | A snapshot of the entire document.
SnapshotRegionFullDocument :: SnapshotRegion
-- | Catch-all for unknown values
AnotherSnapshotRegion :: Int -> SnapshotRegion
-- | Enum values used to denote errors happending when creating snapshots
-- of WebView
data SnapshotError
-- | An error occurred when creating a webpage snapshot.
SnapshotErrorCreate :: SnapshotError
-- | Catch-all for unknown values
AnotherSnapshotError :: Int -> SnapshotError
-- | Enum values used for determining the type of ScriptDialog
data ScriptDialogType
-- | Alert script dialog, used to show a message to the user.
ScriptDialogTypeAlert :: ScriptDialogType
-- | Confirm script dialog, used to ask confirmation to the user.
ScriptDialogTypeConfirm :: ScriptDialogType
-- | Prompt script dialog, used to ask information to the user.
ScriptDialogTypePrompt :: ScriptDialogType
-- | Before unload confirm dialog, used to ask confirmation to leave the
-- current page to the user. Since 2.12
ScriptDialogTypeBeforeUnloadConfirm :: ScriptDialogType
-- | Catch-all for unknown values
AnotherScriptDialogType :: Int -> ScriptDialogType
-- | Enum values to specify the different ways in which a WebView
-- can save its current web page into a self-contained file.
data SaveMode
-- | Save the current page using the MHTML format.
SaveModeMhtml :: SaveMode
-- | Catch-all for unknown values
AnotherSaveMode :: Int -> SaveMode
-- | Enum values used for determining the WebContext process model.
data ProcessModel
-- | Use a single process to perform content rendering. The process is
-- shared among all the WebView instances created by the
-- application: if the process hangs or crashes all the web views in the
-- application will be affected. This is the default process model, and
-- it should suffice for most cases.
ProcessModelSharedSecondaryProcess :: ProcessModel
-- | Use one process for each WebView, while still allowing for some
-- of them to share a process in certain situations. The main advantage
-- of this process model is that the rendering process for a web view can
-- crash while the rest of the views keep working normally. This process
-- model is indicated for applications which may use a number of web
-- views and the content of in each must not interfere with the rest —
-- for example a full-fledged web browser with support for multiple tabs.
ProcessModelMultipleSecondaryProcesses :: ProcessModel
-- | Catch-all for unknown values
AnotherProcessModel :: Int -> ProcessModel
-- | Enum values representing the response of the print dialog shown with
-- printOperationRunDialog.
data PrintOperationResponse
-- | Print button was cliked in print dialog
PrintOperationResponsePrint :: PrintOperationResponse
-- | Print dialog was cancelled
PrintOperationResponseCancel :: PrintOperationResponse
-- | Catch-all for unknown values
AnotherPrintOperationResponse :: Int -> PrintOperationResponse
-- | Enum values used to denote the various print errors.
data PrintError
-- | Unspecified error during a print operation
PrintErrorGeneral :: PrintError
-- | Selected printer cannot be found
PrintErrorPrinterNotFound :: PrintError
-- | Invalid page range
PrintErrorInvalidPageRange :: PrintError
-- | Catch-all for unknown values
AnotherPrintError :: Int -> PrintError
-- | Enum values used to denote the various policy errors.
data PolicyError
-- | Generic load failure due to policy error
PolicyErrorFailed :: PolicyError
-- | Load failure due to unsupported mime type
PolicyErrorCannotShowMimeType :: PolicyError
-- | Load failure due to URI that can not be shown
PolicyErrorCannotShowUri :: PolicyError
-- | Load failure due to frame load interruption by policy change
PolicyErrorFrameLoadInterruptedByPolicyChange :: PolicyError
-- | Load failure due to port restriction
PolicyErrorCannotUseRestrictedPort :: PolicyError
-- | Catch-all for unknown values
AnotherPolicyError :: Int -> PolicyError
-- | Enum values used for determining the type of a policy decision during
-- WebView::decide-policy.
data PolicyDecisionType
-- | This type of policy decision is requested when WebKit is about to
-- navigate to a new page in either the main frame or a subframe.
-- Acceptable policy decisions are either policyDecisionUse or
-- policyDecisionIgnore. This type of policy decision is always a
-- NavigationPolicyDecision.
PolicyDecisionTypeNavigationAction :: PolicyDecisionType
-- | This type of policy decision is requested when WebKit is about to
-- create a new window. Acceptable policy decisions are either
-- policyDecisionUse or policyDecisionIgnore. This type of
-- policy decision is always a NavigationPolicyDecision. These
-- decisions are useful for implementing special actions for new windows,
-- such as forcing the new window to open in a tab when a keyboard
-- modifier is active or handling a special target attribute on
-- <a> elements.
PolicyDecisionTypeNewWindowAction :: PolicyDecisionType
-- | This type of decision is used when WebKit has received a response for
-- a network resource and is about to start the load. Note that these
-- resources include all subresources of a page such as images and
-- stylesheets as well as main documents. Appropriate policy responses to
-- this decision are policyDecisionUse,
-- policyDecisionIgnore, or policyDecisionDownload. This
-- type of policy decision is always a ResponsePolicyDecision.
-- This decision is useful for forcing some types of resources to be
-- downloaded rather than rendered in the WebView or to block the
-- transfer of resources entirely.
PolicyDecisionTypeResponse :: PolicyDecisionType
-- | Catch-all for unknown values
AnotherPolicyDecisionType :: Int -> PolicyDecisionType
-- | Enum values used to denote the various plugin errors.
data PluginError
-- | Generic plugin load failure
PluginErrorFailed :: PluginError
-- | Load failure due to missing plugin
PluginErrorCannotFindPlugin :: PluginError
-- | Load failure due to inability to load plugin
PluginErrorCannotLoadPlugin :: PluginError
-- | Load failue due to missing Java support that is required to load
-- plugin
PluginErrorJavaUnavailable :: PluginError
-- | Load failure due to connection cancellation
PluginErrorConnectionCancelled :: PluginError
-- | Load failure since plugin handles the load
PluginErrorWillHandleLoad :: PluginError
-- | Catch-all for unknown values
AnotherPluginError :: Int -> PluginError
-- | Enum values used to set the network proxy mode.
data NetworkProxyMode
-- | Use the default proxy of the system.
NetworkProxyModeDefault :: NetworkProxyMode
-- | Do not use any proxy.
NetworkProxyModeNoProxy :: NetworkProxyMode
-- | Use custom proxy settings.
NetworkProxyModeCustom :: NetworkProxyMode
-- | Catch-all for unknown values
AnotherNetworkProxyMode :: Int -> NetworkProxyMode
-- | Enum values used to denote the various network errors.
data NetworkError
-- | Generic load failure
NetworkErrorFailed :: NetworkError
-- | Load failure due to transport error
NetworkErrorTransport :: NetworkError
-- | Load failure due to unknown protocol
NetworkErrorUnknownProtocol :: NetworkError
-- | Load failure due to cancellation
NetworkErrorCancelled :: NetworkError
-- | Load failure due to missing file
NetworkErrorFileDoesNotExist :: NetworkError
-- | Catch-all for unknown values
AnotherNetworkError :: Int -> NetworkError
-- | Enum values used to denote the various navigation types.
data NavigationType
-- | The navigation was triggered by clicking a link.
NavigationTypeLinkClicked :: NavigationType
-- | The navigation was triggered by submitting a form.
NavigationTypeFormSubmitted :: NavigationType
-- | The navigation was triggered by navigating forward or backward.
NavigationTypeBackForward :: NavigationType
-- | The navigation was triggered by reloading.
NavigationTypeReload :: NavigationType
-- | The navigation was triggered by resubmitting a form.
NavigationTypeFormResubmitted :: NavigationType
-- | The navigation was triggered by some other action.
NavigationTypeOther :: NavigationType
-- | Catch-all for unknown values
AnotherNavigationType :: Int -> NavigationType
-- | Enum values used to denote the different events that happen during a
-- WebView load operation.
data LoadEvent
-- | A new load request has been made. No data has been received yet, empty
-- structures have been allocated to perform the load; the load may still
-- fail due to transport issues such as not being able to resolve a name,
-- or connect to a port.
LoadEventStarted :: LoadEvent
-- | A provisional data source received a server redirect.
LoadEventRedirected :: LoadEvent
-- | The content started arriving for a page load. The necessary transport
-- requirements are stabilished, and the load is being performed.
LoadEventCommitted :: LoadEvent
-- | Load completed. All resources are done loading or there was an error
-- during the load operation.
LoadEventFinished :: LoadEvent
-- | Catch-all for unknown values
AnotherLoadEvent :: Int -> LoadEvent
-- | Enum values used to denote errors happending when executing Javascript
data JavascriptError
-- | An exception was raised in Javascript execution
JavascriptErrorFailed :: JavascriptError
-- | Catch-all for unknown values
AnotherJavascriptError :: Int -> JavascriptError
-- | Enum values used to denote the different events which can trigger the
-- detection of insecure content.
data InsecureContentEvent
-- | Insecure content has been detected by trying to execute any kind of
-- logic (e.g. a script) from an untrusted source.
InsecureContentEventRun :: InsecureContentEvent
-- | Insecure content has been detected by trying to display any kind of
-- resource (e.g. an image) from an untrusted source.
InsecureContentEventDisplayed :: InsecureContentEvent
-- | Catch-all for unknown values
AnotherInsecureContentEvent :: Int -> InsecureContentEvent
-- | Enum values used for determining the hardware acceleration policy.
data HardwareAccelerationPolicy
-- | Hardware acceleration is enabled/disabled as request by web contents.
HardwareAccelerationPolicyOnDemand :: HardwareAccelerationPolicy
-- | Hardware acceleration is always enabled, even for websites not
-- requesting it.
HardwareAccelerationPolicyAlways :: HardwareAccelerationPolicy
-- | Hardware acceleration is always disabled, even for websites requesting
-- it.
HardwareAccelerationPolicyNever :: HardwareAccelerationPolicy
-- | Catch-all for unknown values
AnotherHardwareAccelerationPolicy :: Int -> HardwareAccelerationPolicy
-- | Enum values used to denote the various errors related to the
-- FaviconDatabase.
data FaviconDatabaseError
-- | The FaviconDatabase has not been initialized yet
FaviconDatabaseErrorNotInitialized :: FaviconDatabaseError
-- | There is not an icon available for the requested URL
FaviconDatabaseErrorFaviconNotFound :: FaviconDatabaseError
-- | There might be an icon for the requested URL, but its data is unknown
-- at the moment
FaviconDatabaseErrorFaviconUnknown :: FaviconDatabaseError
-- | Catch-all for unknown values
AnotherFaviconDatabaseError :: Int -> FaviconDatabaseError
-- | Enum values used to denote the various download errors.
data DownloadError
-- | Download failure due to network error
DownloadErrorNetwork :: DownloadError
-- | Download was cancelled by user
DownloadErrorCancelledByUser :: DownloadError
-- | Download failure due to destination error
DownloadErrorDestination :: DownloadError
-- | Catch-all for unknown values
AnotherDownloadError :: Int -> DownloadError
-- | Enum values representing the duration for which a credential persists.
data CredentialPersistence
-- | Credential does not persist
CredentialPersistenceNone :: CredentialPersistence
-- | Credential persists for session only
CredentialPersistenceForSession :: CredentialPersistence
-- | Credential persists permanently
CredentialPersistencePermanent :: CredentialPersistence
-- | Catch-all for unknown values
AnotherCredentialPersistence :: Int -> CredentialPersistence
-- | Enum values used to denote the cookie persistent storage types.
data CookiePersistentStorage
-- | Cookies are stored in a text file in the Mozilla "cookies.txt" format.
CookiePersistentStorageText :: CookiePersistentStorage
-- | Cookies are stored in a SQLite file in the current Mozilla format.
CookiePersistentStorageSqlite :: CookiePersistentStorage
-- | Catch-all for unknown values
AnotherCookiePersistentStorage :: Int -> CookiePersistentStorage
-- | Enum values used to denote the cookie acceptance policies.
data CookieAcceptPolicy
-- | Accept all cookies unconditionally.
CookieAcceptPolicyAlways :: CookieAcceptPolicy
-- | Reject all cookies unconditionally.
CookieAcceptPolicyNever :: CookieAcceptPolicy
-- | Accept only cookies set by the main document loaded.
CookieAcceptPolicyNoThirdParty :: CookieAcceptPolicy
-- | Catch-all for unknown values
AnotherCookieAcceptPolicy :: Int -> CookieAcceptPolicy
-- | Enum values used to denote the stock actions for
-- ContextMenuItem<!-- -->s
data ContextMenuAction
-- | No action, used by separator menu items.
ContextMenuActionNoAction :: ContextMenuAction
-- | Open current link.
ContextMenuActionOpenLink :: ContextMenuAction
-- | Open current link in a new window.
ContextMenuActionOpenLinkInNewWindow :: ContextMenuAction
-- | Download link destination.
ContextMenuActionDownloadLinkToDisk :: ContextMenuAction
-- | Copy link location to the clipboard.
ContextMenuActionCopyLinkToClipboard :: ContextMenuAction
-- | Open current image in a new window.
ContextMenuActionOpenImageInNewWindow :: ContextMenuAction
-- | Download current image.
ContextMenuActionDownloadImageToDisk :: ContextMenuAction
-- | Copy current image to the clipboard.
ContextMenuActionCopyImageToClipboard :: ContextMenuAction
-- | Copy curent image location to the clipboard.
ContextMenuActionCopyImageUrlToClipboard :: ContextMenuAction
-- | Open current frame in a new window.
ContextMenuActionOpenFrameInNewWindow :: ContextMenuAction
-- | Load the previous history item.
ContextMenuActionGoBack :: ContextMenuAction
-- | Load the next history item.
ContextMenuActionGoForward :: ContextMenuAction
-- | Stop any ongoing loading operation.
ContextMenuActionStop :: ContextMenuAction
-- | Reload the conents of current view.
ContextMenuActionReload :: ContextMenuAction
-- | Copy current selection the clipboard.
ContextMenuActionCopy :: ContextMenuAction
-- | Cut current selection to the clipboard.
ContextMenuActionCut :: ContextMenuAction
-- | Paste clipboard contents.
ContextMenuActionPaste :: ContextMenuAction
-- | Delete current selection.
ContextMenuActionDelete :: ContextMenuAction
-- | Select all text.
ContextMenuActionSelectAll :: ContextMenuAction
-- | Input methods menu.
ContextMenuActionInputMethods :: ContextMenuAction
-- | Unicode menu.
ContextMenuActionUnicode :: ContextMenuAction
-- | A proposed replacement for a misspelled word.
ContextMenuActionSpellingGuess :: ContextMenuAction
-- | An indicator that spellchecking found no proposed replacements.
ContextMenuActionNoGuessesFound :: ContextMenuAction
-- | Causes the spellchecker to ignore the word for this session.
ContextMenuActionIgnoreSpelling :: ContextMenuAction
-- | Causes the spellchecker to add the word to the dictionary.
ContextMenuActionLearnSpelling :: ContextMenuAction
-- | Ignore grammar.
ContextMenuActionIgnoreGrammar :: ContextMenuAction
-- | Font options menu.
ContextMenuActionFontMenu :: ContextMenuAction
-- | Bold.
ContextMenuActionBold :: ContextMenuAction
-- | Italic.
ContextMenuActionItalic :: ContextMenuAction
-- | Underline.
ContextMenuActionUnderline :: ContextMenuAction
-- | Outline.
ContextMenuActionOutline :: ContextMenuAction
-- | Open current element in the inspector.
ContextMenuActionInspectElement :: ContextMenuAction
-- | Open current video element in a new window.
ContextMenuActionOpenVideoInNewWindow :: ContextMenuAction
-- | Open current audio element in a new window.
ContextMenuActionOpenAudioInNewWindow :: ContextMenuAction
-- | Copy video link location in to the clipboard.
ContextMenuActionCopyVideoLinkToClipboard :: ContextMenuAction
-- | Copy audio link location in to the clipboard.
ContextMenuActionCopyAudioLinkToClipboard :: ContextMenuAction
-- | Enable or disable media controls.
ContextMenuActionToggleMediaControls :: ContextMenuAction
-- | Enable or disable media loop.
ContextMenuActionToggleMediaLoop :: ContextMenuAction
-- | Show current video element in fullscreen mode.
ContextMenuActionEnterVideoFullscreen :: ContextMenuAction
-- | Play current media element.
ContextMenuActionMediaPlay :: ContextMenuAction
-- | Pause current media element.
ContextMenuActionMediaPause :: ContextMenuAction
-- | Mute current media element.
ContextMenuActionMediaMute :: ContextMenuAction
-- | Download video to disk. Since 2.2
ContextMenuActionDownloadVideoToDisk :: ContextMenuAction
-- | Download audio to disk. Since 2.2
ContextMenuActionDownloadAudioToDisk :: ContextMenuAction
-- | Custom action defined by applications.
ContextMenuActionCustom :: ContextMenuAction
-- | Catch-all for unknown values
AnotherContextMenuAction :: Int -> ContextMenuAction
-- | Enum values used for determining the WebContext cache model.
data CacheModel
-- | Disable the cache completely, which substantially reduces memory
-- usage. Useful for applications that only access a single local file,
-- with no navigation to other pages. No remote resources will be cached.
CacheModelDocumentViewer :: CacheModel
-- | Improve document load speed substantially by caching a very large
-- number of resources and previously viewed content.
CacheModelWebBrowser :: CacheModel
-- | A cache model optimized for viewing a series of local files -- for
-- example, a documentation viewer or a website designer. WebKit will
-- cache a moderate number of resources.
CacheModelDocumentBrowser :: CacheModel
-- | Catch-all for unknown values
AnotherCacheModel :: Int -> CacheModel
-- | Enum values representing the authentication scheme.
data AuthenticationScheme
-- | The default authentication scheme of WebKit.
AuthenticationSchemeDefault :: AuthenticationScheme
-- | Basic authentication scheme as defined in RFC 2617.
AuthenticationSchemeHttpBasic :: AuthenticationScheme
-- | Digest authentication scheme as defined in RFC 2617.
AuthenticationSchemeHttpDigest :: AuthenticationScheme
-- | HTML Form authentication.
AuthenticationSchemeHtmlForm :: AuthenticationScheme
-- | NTLM Microsoft proprietary authentication scheme.
AuthenticationSchemeNtlm :: AuthenticationScheme
-- | Negotiate (or SPNEGO) authentication scheme as defined in RFC 4559.
AuthenticationSchemeNegotiate :: AuthenticationScheme
-- | Client Certificate Authentication (see RFC 2246).
AuthenticationSchemeClientCertificateRequested :: AuthenticationScheme
-- | Server Trust Authentication.
AuthenticationSchemeServerTrustEvaluationRequested :: AuthenticationScheme
-- | Authentication scheme unknown.
AuthenticationSchemeUnknown :: AuthenticationScheme
-- | Catch-all for unknown values
AnotherAuthenticationScheme :: Int -> AuthenticationScheme
instance GHC.Classes.Eq GI.WebKit2.Enums.AuthenticationScheme
instance GHC.Show.Show GI.WebKit2.Enums.AuthenticationScheme
instance GHC.Classes.Eq GI.WebKit2.Enums.CacheModel
instance GHC.Show.Show GI.WebKit2.Enums.CacheModel
instance GHC.Classes.Eq GI.WebKit2.Enums.ContextMenuAction
instance GHC.Show.Show GI.WebKit2.Enums.ContextMenuAction
instance GHC.Classes.Eq GI.WebKit2.Enums.CookieAcceptPolicy
instance GHC.Show.Show GI.WebKit2.Enums.CookieAcceptPolicy
instance GHC.Classes.Eq GI.WebKit2.Enums.CookiePersistentStorage
instance GHC.Show.Show GI.WebKit2.Enums.CookiePersistentStorage
instance GHC.Classes.Eq GI.WebKit2.Enums.CredentialPersistence
instance GHC.Show.Show GI.WebKit2.Enums.CredentialPersistence
instance GHC.Classes.Eq GI.WebKit2.Enums.DownloadError
instance GHC.Show.Show GI.WebKit2.Enums.DownloadError
instance GHC.Classes.Eq GI.WebKit2.Enums.FaviconDatabaseError
instance GHC.Show.Show GI.WebKit2.Enums.FaviconDatabaseError
instance GHC.Classes.Eq GI.WebKit2.Enums.HardwareAccelerationPolicy
instance GHC.Show.Show GI.WebKit2.Enums.HardwareAccelerationPolicy
instance GHC.Classes.Eq GI.WebKit2.Enums.InsecureContentEvent
instance GHC.Show.Show GI.WebKit2.Enums.InsecureContentEvent
instance GHC.Classes.Eq GI.WebKit2.Enums.JavascriptError
instance GHC.Show.Show GI.WebKit2.Enums.JavascriptError
instance GHC.Classes.Eq GI.WebKit2.Enums.LoadEvent
instance GHC.Show.Show GI.WebKit2.Enums.LoadEvent
instance GHC.Classes.Eq GI.WebKit2.Enums.NavigationType
instance GHC.Show.Show GI.WebKit2.Enums.NavigationType
instance GHC.Classes.Eq GI.WebKit2.Enums.NetworkError
instance GHC.Show.Show GI.WebKit2.Enums.NetworkError
instance GHC.Classes.Eq GI.WebKit2.Enums.NetworkProxyMode
instance GHC.Show.Show GI.WebKit2.Enums.NetworkProxyMode
instance GHC.Classes.Eq GI.WebKit2.Enums.PluginError
instance GHC.Show.Show GI.WebKit2.Enums.PluginError
instance GHC.Classes.Eq GI.WebKit2.Enums.PolicyDecisionType
instance GHC.Show.Show GI.WebKit2.Enums.PolicyDecisionType
instance GHC.Classes.Eq GI.WebKit2.Enums.PolicyError
instance GHC.Show.Show GI.WebKit2.Enums.PolicyError
instance GHC.Classes.Eq GI.WebKit2.Enums.PrintError
instance GHC.Show.Show GI.WebKit2.Enums.PrintError
instance GHC.Classes.Eq GI.WebKit2.Enums.PrintOperationResponse
instance GHC.Show.Show GI.WebKit2.Enums.PrintOperationResponse
instance GHC.Classes.Eq GI.WebKit2.Enums.ProcessModel
instance GHC.Show.Show GI.WebKit2.Enums.ProcessModel
instance GHC.Classes.Eq GI.WebKit2.Enums.SaveMode
instance GHC.Show.Show GI.WebKit2.Enums.SaveMode
instance GHC.Classes.Eq GI.WebKit2.Enums.ScriptDialogType
instance GHC.Show.Show GI.WebKit2.Enums.ScriptDialogType
instance GHC.Classes.Eq GI.WebKit2.Enums.SnapshotError
instance GHC.Show.Show GI.WebKit2.Enums.SnapshotError
instance GHC.Classes.Eq GI.WebKit2.Enums.SnapshotRegion
instance GHC.Show.Show GI.WebKit2.Enums.SnapshotRegion
instance GHC.Classes.Eq GI.WebKit2.Enums.TLSErrorsPolicy
instance GHC.Show.Show GI.WebKit2.Enums.TLSErrorsPolicy
instance GHC.Classes.Eq GI.WebKit2.Enums.UserContentInjectedFrames
instance GHC.Show.Show GI.WebKit2.Enums.UserContentInjectedFrames
instance GHC.Classes.Eq GI.WebKit2.Enums.UserScriptInjectionTime
instance GHC.Show.Show GI.WebKit2.Enums.UserScriptInjectionTime
instance GHC.Classes.Eq GI.WebKit2.Enums.UserStyleLevel
instance GHC.Show.Show GI.WebKit2.Enums.UserStyleLevel
instance GHC.Enum.Enum GI.WebKit2.Enums.UserStyleLevel
instance GHC.Classes.Ord GI.WebKit2.Enums.UserStyleLevel
instance Data.GI.Base.BasicTypes.BoxedEnum GI.WebKit2.Enums.UserStyleLevel
instance GHC.Enum.Enum GI.WebKit2.Enums.UserScriptInjectionTime
instance GHC.Classes.Ord GI.WebKit2.Enums.UserScriptInjectionTime
instance Data.GI.Base.BasicTypes.BoxedEnum GI.WebKit2.Enums.UserScriptInjectionTime
instance GHC.Enum.Enum GI.WebKit2.Enums.UserContentInjectedFrames
instance GHC.Classes.Ord GI.WebKit2.Enums.UserContentInjectedFrames
instance Data.GI.Base.BasicTypes.BoxedEnum GI.WebKit2.Enums.UserContentInjectedFrames
instance GHC.Enum.Enum GI.WebKit2.Enums.TLSErrorsPolicy
instance GHC.Classes.Ord GI.WebKit2.Enums.TLSErrorsPolicy
instance Data.GI.Base.BasicTypes.BoxedEnum GI.WebKit2.Enums.TLSErrorsPolicy
instance GHC.Enum.Enum GI.WebKit2.Enums.SnapshotRegion
instance GHC.Classes.Ord GI.WebKit2.Enums.SnapshotRegion
instance Data.GI.Base.BasicTypes.BoxedEnum GI.WebKit2.Enums.SnapshotRegion
instance GHC.Enum.Enum GI.WebKit2.Enums.SnapshotError
instance GHC.Classes.Ord GI.WebKit2.Enums.SnapshotError
instance Data.GI.Base.GError.GErrorClass GI.WebKit2.Enums.SnapshotError
instance Data.GI.Base.BasicTypes.BoxedEnum GI.WebKit2.Enums.SnapshotError
instance GHC.Enum.Enum GI.WebKit2.Enums.ScriptDialogType
instance GHC.Classes.Ord GI.WebKit2.Enums.ScriptDialogType
instance Data.GI.Base.BasicTypes.BoxedEnum GI.WebKit2.Enums.ScriptDialogType
instance GHC.Enum.Enum GI.WebKit2.Enums.SaveMode
instance GHC.Classes.Ord GI.WebKit2.Enums.SaveMode
instance Data.GI.Base.BasicTypes.BoxedEnum GI.WebKit2.Enums.SaveMode
instance GHC.Enum.Enum GI.WebKit2.Enums.ProcessModel
instance GHC.Classes.Ord GI.WebKit2.Enums.ProcessModel
instance Data.GI.Base.BasicTypes.BoxedEnum GI.WebKit2.Enums.ProcessModel
instance GHC.Enum.Enum GI.WebKit2.Enums.PrintOperationResponse
instance GHC.Classes.Ord GI.WebKit2.Enums.PrintOperationResponse
instance Data.GI.Base.BasicTypes.BoxedEnum GI.WebKit2.Enums.PrintOperationResponse
instance GHC.Enum.Enum GI.WebKit2.Enums.PrintError
instance GHC.Classes.Ord GI.WebKit2.Enums.PrintError
instance Data.GI.Base.GError.GErrorClass GI.WebKit2.Enums.PrintError
instance Data.GI.Base.BasicTypes.BoxedEnum GI.WebKit2.Enums.PrintError
instance GHC.Enum.Enum GI.WebKit2.Enums.PolicyError
instance GHC.Classes.Ord GI.WebKit2.Enums.PolicyError
instance Data.GI.Base.GError.GErrorClass GI.WebKit2.Enums.PolicyError
instance Data.GI.Base.BasicTypes.BoxedEnum GI.WebKit2.Enums.PolicyError
instance GHC.Enum.Enum GI.WebKit2.Enums.PolicyDecisionType
instance GHC.Classes.Ord GI.WebKit2.Enums.PolicyDecisionType
instance Data.GI.Base.BasicTypes.BoxedEnum GI.WebKit2.Enums.PolicyDecisionType
instance GHC.Enum.Enum GI.WebKit2.Enums.PluginError
instance GHC.Classes.Ord GI.WebKit2.Enums.PluginError
instance Data.GI.Base.GError.GErrorClass GI.WebKit2.Enums.PluginError
instance Data.GI.Base.BasicTypes.BoxedEnum GI.WebKit2.Enums.PluginError
instance GHC.Enum.Enum GI.WebKit2.Enums.NetworkProxyMode
instance GHC.Classes.Ord GI.WebKit2.Enums.NetworkProxyMode
instance Data.GI.Base.BasicTypes.BoxedEnum GI.WebKit2.Enums.NetworkProxyMode
instance GHC.Enum.Enum GI.WebKit2.Enums.NetworkError
instance GHC.Classes.Ord GI.WebKit2.Enums.NetworkError
instance Data.GI.Base.GError.GErrorClass GI.WebKit2.Enums.NetworkError
instance Data.GI.Base.BasicTypes.BoxedEnum GI.WebKit2.Enums.NetworkError
instance GHC.Enum.Enum GI.WebKit2.Enums.NavigationType
instance GHC.Classes.Ord GI.WebKit2.Enums.NavigationType
instance Data.GI.Base.BasicTypes.BoxedEnum GI.WebKit2.Enums.NavigationType
instance GHC.Enum.Enum GI.WebKit2.Enums.LoadEvent
instance GHC.Classes.Ord GI.WebKit2.Enums.LoadEvent
instance Data.GI.Base.BasicTypes.BoxedEnum GI.WebKit2.Enums.LoadEvent
instance GHC.Enum.Enum GI.WebKit2.Enums.JavascriptError
instance GHC.Classes.Ord GI.WebKit2.Enums.JavascriptError
instance Data.GI.Base.GError.GErrorClass GI.WebKit2.Enums.JavascriptError
instance Data.GI.Base.BasicTypes.BoxedEnum GI.WebKit2.Enums.JavascriptError
instance GHC.Enum.Enum GI.WebKit2.Enums.InsecureContentEvent
instance GHC.Classes.Ord GI.WebKit2.Enums.InsecureContentEvent
instance Data.GI.Base.BasicTypes.BoxedEnum GI.WebKit2.Enums.InsecureContentEvent
instance GHC.Enum.Enum GI.WebKit2.Enums.HardwareAccelerationPolicy
instance GHC.Classes.Ord GI.WebKit2.Enums.HardwareAccelerationPolicy
instance Data.GI.Base.BasicTypes.BoxedEnum GI.WebKit2.Enums.HardwareAccelerationPolicy
instance GHC.Enum.Enum GI.WebKit2.Enums.FaviconDatabaseError
instance GHC.Classes.Ord GI.WebKit2.Enums.FaviconDatabaseError
instance Data.GI.Base.GError.GErrorClass GI.WebKit2.Enums.FaviconDatabaseError
instance Data.GI.Base.BasicTypes.BoxedEnum GI.WebKit2.Enums.FaviconDatabaseError
instance GHC.Enum.Enum GI.WebKit2.Enums.DownloadError
instance GHC.Classes.Ord GI.WebKit2.Enums.DownloadError
instance Data.GI.Base.GError.GErrorClass GI.WebKit2.Enums.DownloadError
instance Data.GI.Base.BasicTypes.BoxedEnum GI.WebKit2.Enums.DownloadError
instance GHC.Enum.Enum GI.WebKit2.Enums.CredentialPersistence
instance GHC.Classes.Ord GI.WebKit2.Enums.CredentialPersistence
instance Data.GI.Base.BasicTypes.BoxedEnum GI.WebKit2.Enums.CredentialPersistence
instance GHC.Enum.Enum GI.WebKit2.Enums.CookiePersistentStorage
instance GHC.Classes.Ord GI.WebKit2.Enums.CookiePersistentStorage
instance Data.GI.Base.BasicTypes.BoxedEnum GI.WebKit2.Enums.CookiePersistentStorage
instance GHC.Enum.Enum GI.WebKit2.Enums.CookieAcceptPolicy
instance GHC.Classes.Ord GI.WebKit2.Enums.CookieAcceptPolicy
instance Data.GI.Base.BasicTypes.BoxedEnum GI.WebKit2.Enums.CookieAcceptPolicy
instance GHC.Enum.Enum GI.WebKit2.Enums.ContextMenuAction
instance GHC.Classes.Ord GI.WebKit2.Enums.ContextMenuAction
instance Data.GI.Base.BasicTypes.BoxedEnum GI.WebKit2.Enums.ContextMenuAction
instance GHC.Enum.Enum GI.WebKit2.Enums.CacheModel
instance GHC.Classes.Ord GI.WebKit2.Enums.CacheModel
instance Data.GI.Base.BasicTypes.BoxedEnum GI.WebKit2.Enums.CacheModel
instance GHC.Enum.Enum GI.WebKit2.Enums.AuthenticationScheme
instance GHC.Classes.Ord GI.WebKit2.Enums.AuthenticationScheme
instance Data.GI.Base.BasicTypes.BoxedEnum GI.WebKit2.Enums.AuthenticationScheme
module GI.WebKit2.Objects.AuthenticationRequest
newtype AuthenticationRequest
AuthenticationRequest :: (ManagedPtr AuthenticationRequest) -> AuthenticationRequest
class GObject o => IsAuthenticationRequest o
toAuthenticationRequest :: (MonadIO m, IsAuthenticationRequest o) => o -> m AuthenticationRequest
noAuthenticationRequest :: Maybe AuthenticationRequest
-- | Authenticate the AuthenticationRequest using the
-- Credential supplied. To continue without credentials, pass
-- Nothing as credential.
authenticationRequestAuthenticate :: (HasCallStack, MonadIO m, IsAuthenticationRequest a) => a -> Maybe (Credential) -> m ()
-- | Determine whether the authentication method associated with this
-- AuthenticationRequest should allow the storage of credentials.
-- This will return False if webkit doesn't support credential
-- storing or if private browsing is enabled.
authenticationRequestCanSaveCredentials :: (HasCallStack, MonadIO m, IsAuthenticationRequest a) => a -> m Bool
-- | Cancel the authentication challenge. This will also cancel the page
-- loading and result in a WebView::load-failed
-- signal with a NetworkError of type NetworkErrorCancelled
-- being emitted.
authenticationRequestCancel :: (HasCallStack, MonadIO m, IsAuthenticationRequest a) => a -> m ()
-- | Get the host that this authentication challenge is applicable to.
authenticationRequestGetHost :: (HasCallStack, MonadIO m, IsAuthenticationRequest a) => a -> m Text
-- | Get the port that this authentication challenge is applicable to.
authenticationRequestGetPort :: (HasCallStack, MonadIO m, IsAuthenticationRequest a) => a -> m Word32
-- | Get the Credential of the proposed authentication challenge
-- that was stored from a previous session. The client can use this
-- directly for authentication or construct their own Credential.
authenticationRequestGetProposedCredential :: (HasCallStack, MonadIO m, IsAuthenticationRequest a) => a -> m Credential
-- | Get the realm that this authentication challenge is applicable to.
authenticationRequestGetRealm :: (HasCallStack, MonadIO m, IsAuthenticationRequest a) => a -> m Text
-- | Get the authentication scheme of the authentication challenge.
authenticationRequestGetScheme :: (HasCallStack, MonadIO m, IsAuthenticationRequest a) => a -> m AuthenticationScheme
-- | Determine whether the authentication challenge is associated with a
-- proxy server rather than an "origin" server.
authenticationRequestIsForProxy :: (HasCallStack, MonadIO m, IsAuthenticationRequest a) => a -> m Bool
-- | Determine whether this this is a first attempt or a retry for this
-- authentication challenge.
authenticationRequestIsRetry :: (HasCallStack, MonadIO m, IsAuthenticationRequest a) => a -> m Bool
type AuthenticationRequestCancelledCallback = IO ()
type C_AuthenticationRequestCancelledCallback = Ptr () -> Ptr () -> IO ()
afterAuthenticationRequestCancelled :: (IsAuthenticationRequest a, MonadIO m) => a -> AuthenticationRequestCancelledCallback -> m SignalHandlerId
genClosure_AuthenticationRequestCancelled :: AuthenticationRequestCancelledCallback -> IO Closure
mk_AuthenticationRequestCancelledCallback :: C_AuthenticationRequestCancelledCallback -> IO (FunPtr C_AuthenticationRequestCancelledCallback)
noAuthenticationRequestCancelledCallback :: Maybe AuthenticationRequestCancelledCallback
onAuthenticationRequestCancelled :: (IsAuthenticationRequest a, MonadIO m) => a -> AuthenticationRequestCancelledCallback -> m SignalHandlerId
wrap_AuthenticationRequestCancelledCallback :: AuthenticationRequestCancelledCallback -> Ptr () -> Ptr () -> IO ()
instance Data.GI.Base.BasicTypes.GObject GI.WebKit2.Objects.AuthenticationRequest.AuthenticationRequest
instance (Data.GI.Base.BasicTypes.GObject a, Data.GI.Base.Overloading.UnknownAncestorError GI.WebKit2.Objects.AuthenticationRequest.AuthenticationRequest a) => GI.WebKit2.Objects.AuthenticationRequest.IsAuthenticationRequest a
instance GI.WebKit2.Objects.AuthenticationRequest.IsAuthenticationRequest GI.WebKit2.Objects.AuthenticationRequest.AuthenticationRequest
instance GI.GObject.Objects.Object.IsObject GI.WebKit2.Objects.AuthenticationRequest.AuthenticationRequest
module GI.WebKit2.Objects.ContextMenuItem
newtype ContextMenuItem
ContextMenuItem :: (ManagedPtr ContextMenuItem) -> ContextMenuItem
class GObject o => IsContextMenuItem o
toContextMenuItem :: (MonadIO m, IsContextMenuItem o) => o -> m ContextMenuItem
noContextMenuItem :: Maybe ContextMenuItem
-- | Gets the action associated to item.
contextMenuItemGetAction :: (HasCallStack, MonadIO m, IsContextMenuItem a) => a -> m Action
-- | Gets the ContextMenuAction of item. If the
-- ContextMenuItem was not created for a stock action
-- ContextMenuActionCustom will be returned. If the
-- ContextMenuItem is a separator ContextMenuActionNoAction
-- will be returned.
contextMenuItemGetStockAction :: (HasCallStack, MonadIO m, IsContextMenuItem a) => a -> m ContextMenuAction
-- | Gets the submenu of item.
contextMenuItemGetSubmenu :: (HasCallStack, MonadIO m, IsContextMenuItem a) => a -> m ContextMenu
-- | Checks whether item is a separator.
contextMenuItemIsSeparator :: (HasCallStack, MonadIO m, IsContextMenuItem a) => a -> m Bool
-- | Creates a new ContextMenuItem for the given
-- action.
contextMenuItemNew :: (HasCallStack, MonadIO m, IsAction a) => a -> m ContextMenuItem
-- | Creates a new ContextMenuItem for the given stock action. Stock
-- actions are handled automatically by WebKit so that, for example, when
-- a menu item created with a ContextMenuActionStop is activated
-- the action associated will be handled by WebKit and the current load
-- operation will be stopped. You can get the Action of a
-- ContextMenuItem created with a ContextMenuAction with
-- contextMenuItemGetAction and connect to
-- Action::activate signal to be notified when the
-- item is activated. But you can't prevent the asociated action from
-- being performed.
contextMenuItemNewFromStockAction :: (HasCallStack, MonadIO m) => ContextMenuAction -> m ContextMenuItem
-- | Creates a new ContextMenuItem for the given stock action using
-- the given label. Stock actions have a predefined
-- label, this method can be used to create a ContextMenuItem for
-- a ContextMenuAction but using a custom label.
contextMenuItemNewFromStockActionWithLabel :: (HasCallStack, MonadIO m) => ContextMenuAction -> Text -> m ContextMenuItem
-- | Creates a new ContextMenuItem representing a separator.
contextMenuItemNewSeparator :: (HasCallStack, MonadIO m) => m ContextMenuItem
-- | Creates a new ContextMenuItem using the given
-- label with a submenu.
contextMenuItemNewWithSubmenu :: (HasCallStack, MonadIO m, IsContextMenu a) => Text -> a -> m ContextMenuItem
-- | Sets or replaces the item submenu. If
-- submenu is Nothing the current submenu of
-- item is removed.
contextMenuItemSetSubmenu :: (HasCallStack, MonadIO m, IsContextMenuItem a, IsContextMenu b) => a -> Maybe (b) -> m ()
instance Data.GI.Base.BasicTypes.GObject GI.WebKit2.Objects.ContextMenuItem.ContextMenuItem
instance (Data.GI.Base.BasicTypes.GObject a, Data.GI.Base.Overloading.UnknownAncestorError GI.WebKit2.Objects.ContextMenuItem.ContextMenuItem a) => GI.WebKit2.Objects.ContextMenuItem.IsContextMenuItem a
instance GI.WebKit2.Objects.ContextMenuItem.IsContextMenuItem GI.WebKit2.Objects.ContextMenuItem.ContextMenuItem
instance GI.GObject.Objects.Object.IsObject GI.WebKit2.Objects.ContextMenuItem.ContextMenuItem
module GI.WebKit2.Objects.CookieManager
newtype CookieManager
CookieManager :: (ManagedPtr CookieManager) -> CookieManager
class GObject o => IsCookieManager o
toCookieManager :: (MonadIO m, IsCookieManager o) => o -> m CookieManager
noCookieManager :: Maybe CookieManager
-- | Delete all cookies of cookieManager
-- | Deprecated: (Since version 2.16)Use websiteDataManagerClear
-- instead.
cookieManagerDeleteAllCookies :: (HasCallStack, MonadIO m, IsCookieManager a) => a -> m ()
-- | Remove all cookies of cookieManager for the given
-- domain.
-- | Deprecated: (Since version 2.16)Use websiteDataManagerRemove
-- instead.
cookieManagerDeleteCookiesForDomain :: (HasCallStack, MonadIO m, IsCookieManager a) => a -> Text -> m ()
-- | Asynchronously get the cookie acceptance policy of
-- cookieManager.
--
-- When the operation is finished, callback will be
-- called. You can then call cookieManagerGetAcceptPolicyFinish to
-- get the result of the operation.
cookieManagerGetAcceptPolicy :: (HasCallStack, MonadIO m, IsCookieManager a, IsCancellable b) => a -> Maybe (b) -> Maybe (AsyncReadyCallback) -> m ()
-- | Finish an asynchronous operation started with
-- cookieManagerGetAcceptPolicy.
cookieManagerGetAcceptPolicyFinish :: (HasCallStack, MonadIO m, IsCookieManager a, IsAsyncResult b) => a -> b -> m CookieAcceptPolicy
-- | Asynchronously get the list of domains for which
-- cookieManager contains cookies.
--
-- When the operation is finished, callback will be
-- called. You can then call
-- cookieManagerGetDomainsWithCookiesFinish to get the result of
-- the operation.
-- | Deprecated: (Since version 2.16)Use websiteDataManagerFetch
-- instead.
cookieManagerGetDomainsWithCookies :: (HasCallStack, MonadIO m, IsCookieManager a, IsCancellable b) => a -> Maybe (b) -> Maybe (AsyncReadyCallback) -> m ()
-- | Finish an asynchronous operation started with
-- cookieManagerGetDomainsWithCookies. The return value is a
-- Nothing terminated list of strings which should be released
-- with strfreev.
-- | Deprecated: (Since version 2.16)Use
-- websiteDataManagerFetchFinish instead.
cookieManagerGetDomainsWithCookiesFinish :: (HasCallStack, MonadIO m, IsCookieManager a, IsAsyncResult b) => a -> b -> m [Text]
-- | Set the cookie acceptance policy of cookieManager as
-- policy.
cookieManagerSetAcceptPolicy :: (HasCallStack, MonadIO m, IsCookieManager a) => a -> CookieAcceptPolicy -> m ()
-- | Set the filename where non-session cookies are stored
-- persistently using storage as the format to read/write
-- the cookies. Cookies are initially read from filename
-- to create an initial set of cookies. Then, non-session cookies will be
-- written to filename when the
-- WebKitCookieManager::changed signal is emitted. By default,
-- cookieManager doesn't store the cookies persistently,
-- so you need to call this method to keep cookies saved across sessions.
--
-- This method should never be called on a CookieManager
-- associated to an ephemeral WebsiteDataManager.
cookieManagerSetPersistentStorage :: (HasCallStack, MonadIO m, IsCookieManager a) => a -> Text -> CookiePersistentStorage -> m ()
type C_CookieManagerChangedCallback = Ptr () -> Ptr () -> IO ()
type CookieManagerChangedCallback = IO ()
afterCookieManagerChanged :: (IsCookieManager a, MonadIO m) => a -> CookieManagerChangedCallback -> m SignalHandlerId
genClosure_CookieManagerChanged :: CookieManagerChangedCallback -> IO Closure
mk_CookieManagerChangedCallback :: C_CookieManagerChangedCallback -> IO (FunPtr C_CookieManagerChangedCallback)
noCookieManagerChangedCallback :: Maybe CookieManagerChangedCallback
onCookieManagerChanged :: (IsCookieManager a, MonadIO m) => a -> CookieManagerChangedCallback -> m SignalHandlerId
wrap_CookieManagerChangedCallback :: CookieManagerChangedCallback -> Ptr () -> Ptr () -> IO ()
instance Data.GI.Base.BasicTypes.GObject GI.WebKit2.Objects.CookieManager.CookieManager
instance (Data.GI.Base.BasicTypes.GObject a, Data.GI.Base.Overloading.UnknownAncestorError GI.WebKit2.Objects.CookieManager.CookieManager a) => GI.WebKit2.Objects.CookieManager.IsCookieManager a
instance GI.WebKit2.Objects.CookieManager.IsCookieManager GI.WebKit2.Objects.CookieManager.CookieManager
instance GI.GObject.Objects.Object.IsObject GI.WebKit2.Objects.CookieManager.CookieManager
module GI.WebKit2.Objects.NavigationPolicyDecision
newtype NavigationPolicyDecision
NavigationPolicyDecision :: (ManagedPtr NavigationPolicyDecision) -> NavigationPolicyDecision
class GObject o => IsNavigationPolicyDecision o
toNavigationPolicyDecision :: (MonadIO m, IsNavigationPolicyDecision o) => o -> m NavigationPolicyDecision
noNavigationPolicyDecision :: Maybe NavigationPolicyDecision
-- | Gets the value of the
-- NavigationPolicyDecision:frame-name property.
navigationPolicyDecisionGetFrameName :: (HasCallStack, MonadIO m, IsNavigationPolicyDecision a) => a -> m Text
-- | Gets the value of the
-- NavigationPolicyDecision:modifiers property.
-- | Deprecated: (Since version 2.6)Use
-- navigationPolicyDecisionGetNavigationAction instead.
navigationPolicyDecisionGetModifiers :: (HasCallStack, MonadIO m, IsNavigationPolicyDecision a) => a -> m Word32
-- | Gets the value of the
-- NavigationPolicyDecision:mouse-button property.
-- | Deprecated: (Since version 2.6)Use
-- navigationPolicyDecisionGetNavigationAction instead.
navigationPolicyDecisionGetMouseButton :: (HasCallStack, MonadIO m, IsNavigationPolicyDecision a) => a -> m Word32
-- | Gets the value of the
-- NavigationPolicyDecision:navigation-action
-- property.
navigationPolicyDecisionGetNavigationAction :: (HasCallStack, MonadIO m, IsNavigationPolicyDecision a) => a -> m NavigationAction
-- | Gets the value of the
-- NavigationPolicyDecision:navigation-type
-- property.
-- | Deprecated: (Since version 2.6)Use
-- navigationPolicyDecisionGetNavigationAction instead.
navigationPolicyDecisionGetNavigationType :: (HasCallStack, MonadIO m, IsNavigationPolicyDecision a) => a -> m NavigationType
-- | Gets the value of the
-- NavigationPolicyDecision:request property.
-- | Deprecated: (Since version 2.6)Use
-- navigationPolicyDecisionGetNavigationAction instead.
navigationPolicyDecisionGetRequest :: (HasCallStack, MonadIO m, IsNavigationPolicyDecision a) => a -> m URIRequest
getNavigationPolicyDecisionFrameName :: (MonadIO m, IsNavigationPolicyDecision o) => o -> m Text
getNavigationPolicyDecisionModifiers :: (MonadIO m, IsNavigationPolicyDecision o) => o -> m Word32
getNavigationPolicyDecisionMouseButton :: (MonadIO m, IsNavigationPolicyDecision o) => o -> m Word32
getNavigationPolicyDecisionNavigationAction :: (MonadIO m, IsNavigationPolicyDecision o) => o -> m NavigationAction
getNavigationPolicyDecisionNavigationType :: (MonadIO m, IsNavigationPolicyDecision o) => o -> m NavigationType
getNavigationPolicyDecisionRequest :: (MonadIO m, IsNavigationPolicyDecision o) => o -> m URIRequest
instance Data.GI.Base.BasicTypes.GObject GI.WebKit2.Objects.NavigationPolicyDecision.NavigationPolicyDecision
instance (Data.GI.Base.BasicTypes.GObject a, Data.GI.Base.Overloading.UnknownAncestorError GI.WebKit2.Objects.NavigationPolicyDecision.NavigationPolicyDecision a) => GI.WebKit2.Objects.NavigationPolicyDecision.IsNavigationPolicyDecision a
instance GI.WebKit2.Objects.NavigationPolicyDecision.IsNavigationPolicyDecision GI.WebKit2.Objects.NavigationPolicyDecision.NavigationPolicyDecision
instance GI.WebKit2.Objects.PolicyDecision.IsPolicyDecision GI.WebKit2.Objects.NavigationPolicyDecision.NavigationPolicyDecision
instance GI.GObject.Objects.Object.IsObject GI.WebKit2.Objects.NavigationPolicyDecision.NavigationPolicyDecision
module GI.WebKit2.Objects.PrintOperation
newtype PrintOperation
PrintOperation :: (ManagedPtr PrintOperation) -> PrintOperation
class GObject o => IsPrintOperation o
toPrintOperation :: (MonadIO m, IsPrintOperation o) => o -> m PrintOperation
noPrintOperation :: Maybe PrintOperation
-- | Return the current page setup of printOperation. It
-- returns Nothing until either printOperationSetPageSetup
-- or printOperationRunDialog have been called.
printOperationGetPageSetup :: (HasCallStack, MonadIO m, IsPrintOperation a) => a -> m PageSetup
-- | Return the current print settings of printOperation.
-- It returns Nothing until either
-- printOperationSetPrintSettings or
-- printOperationRunDialog have been called.
printOperationGetPrintSettings :: (HasCallStack, MonadIO m, IsPrintOperation a) => a -> m PrintSettings
-- | Create a new PrintOperation to print webView
-- contents.
printOperationNew :: (HasCallStack, MonadIO m, IsWebView a) => a -> m PrintOperation
-- | Start a print operation using current print settings and page setup
-- without showing the print dialog. If either print settings or page
-- setup are not set with printOperationSetPrintSettings and
-- printOperationSetPageSetup, the default options will be used
-- and the print job will be sent to the default printer. The
-- PrintOperation::finished signal is emitted when
-- the printing operation finishes. If an error occurs while printing the
-- signal PrintOperation::failed is emitted before
-- PrintOperation::finished.
printOperationPrint :: (HasCallStack, MonadIO m, IsPrintOperation a) => a -> m ()
-- | Run the print dialog and start printing using the options selected by
-- the user. This method returns when the print dialog is closed. If the
-- print dialog is cancelled PrintOperationResponseCancel is
-- returned. If the user clicks on the print button,
-- PrintOperationResponsePrint is returned and the print operation
-- starts. In this case, the
-- PrintOperation::finished signal is emitted when
-- the operation finishes. If an error occurs while printing, the signal
-- PrintOperation::failed is emitted before
-- PrintOperation::finished. If the print dialog
-- is not cancelled current print settings and page setup of
-- printOperation are updated with options selected by
-- the user when Print button is pressed in print dialog. You can get the
-- updated print settings and page setup by calling
-- printOperationGetPrintSettings and
-- printOperationGetPageSetup after this method.
printOperationRunDialog :: (HasCallStack, MonadIO m, IsPrintOperation a, IsWindow b) => a -> Maybe (b) -> m PrintOperationResponse
-- | Set the current page setup of printOperation. Current
-- page setup is used for the initial values of the print dialog when
-- printOperationRunDialog is called.
printOperationSetPageSetup :: (HasCallStack, MonadIO m, IsPrintOperation a, IsPageSetup b) => a -> b -> m ()
-- | Set the current print settings of printOperation.
-- Current print settings are used for the initial values of the print
-- dialog when printOperationRunDialog is called.
printOperationSetPrintSettings :: (HasCallStack, MonadIO m, IsPrintOperation a, IsPrintSettings b) => a -> b -> m ()
constructPrintOperationPageSetup :: (IsPrintOperation o, IsPageSetup a) => a -> IO (GValueConstruct o)
getPrintOperationPageSetup :: (MonadIO m, IsPrintOperation o) => o -> m PageSetup
setPrintOperationPageSetup :: (MonadIO m, IsPrintOperation o, IsPageSetup a) => o -> a -> m ()
constructPrintOperationPrintSettings :: (IsPrintOperation o, IsPrintSettings a) => a -> IO (GValueConstruct o)
getPrintOperationPrintSettings :: (MonadIO m, IsPrintOperation o) => o -> m PrintSettings
setPrintOperationPrintSettings :: (MonadIO m, IsPrintOperation o, IsPrintSettings a) => o -> a -> m ()
constructPrintOperationWebView :: (IsPrintOperation o, IsWebView a) => a -> IO (GValueConstruct o)
getPrintOperationWebView :: (MonadIO m, IsPrintOperation o) => o -> m (Maybe WebView)
type C_PrintOperationCreateCustomWidgetCallback = Ptr () -> Ptr () -> IO (Ptr PrintCustomWidget)
type PrintOperationCreateCustomWidgetCallback = IO PrintCustomWidget
afterPrintOperationCreateCustomWidget :: (IsPrintOperation a, MonadIO m) => a -> PrintOperationCreateCustomWidgetCallback -> m SignalHandlerId
genClosure_PrintOperationCreateCustomWidget :: PrintOperationCreateCustomWidgetCallback -> IO Closure
mk_PrintOperationCreateCustomWidgetCallback :: C_PrintOperationCreateCustomWidgetCallback -> IO (FunPtr C_PrintOperationCreateCustomWidgetCallback)
noPrintOperationCreateCustomWidgetCallback :: Maybe PrintOperationCreateCustomWidgetCallback
onPrintOperationCreateCustomWidget :: (IsPrintOperation a, MonadIO m) => a -> PrintOperationCreateCustomWidgetCallback -> m SignalHandlerId
wrap_PrintOperationCreateCustomWidgetCallback :: PrintOperationCreateCustomWidgetCallback -> Ptr () -> Ptr () -> IO (Ptr PrintCustomWidget)
type C_PrintOperationFailedCallback = Ptr () -> Ptr GError -> Ptr () -> IO ()
type PrintOperationFailedCallback = GError -> IO ()
afterPrintOperationFailed :: (IsPrintOperation a, MonadIO m) => a -> PrintOperationFailedCallback -> m SignalHandlerId
genClosure_PrintOperationFailed :: PrintOperationFailedCallback -> IO Closure
mk_PrintOperationFailedCallback :: C_PrintOperationFailedCallback -> IO (FunPtr C_PrintOperationFailedCallback)
noPrintOperationFailedCallback :: Maybe PrintOperationFailedCallback
onPrintOperationFailed :: (IsPrintOperation a, MonadIO m) => a -> PrintOperationFailedCallback -> m SignalHandlerId
wrap_PrintOperationFailedCallback :: PrintOperationFailedCallback -> Ptr () -> Ptr GError -> Ptr () -> IO ()
type C_PrintOperationFinishedCallback = Ptr () -> Ptr () -> IO ()
type PrintOperationFinishedCallback = IO ()
afterPrintOperationFinished :: (IsPrintOperation a, MonadIO m) => a -> PrintOperationFinishedCallback -> m SignalHandlerId
genClosure_PrintOperationFinished :: PrintOperationFinishedCallback -> IO Closure
mk_PrintOperationFinishedCallback :: C_PrintOperationFinishedCallback -> IO (FunPtr C_PrintOperationFinishedCallback)
noPrintOperationFinishedCallback :: Maybe PrintOperationFinishedCallback
onPrintOperationFinished :: (IsPrintOperation a, MonadIO m) => a -> PrintOperationFinishedCallback -> m SignalHandlerId
wrap_PrintOperationFinishedCallback :: PrintOperationFinishedCallback -> Ptr () -> Ptr () -> IO ()
instance Data.GI.Base.BasicTypes.GObject GI.WebKit2.Objects.PrintOperation.PrintOperation
instance (Data.GI.Base.BasicTypes.GObject a, Data.GI.Base.Overloading.UnknownAncestorError GI.WebKit2.Objects.PrintOperation.PrintOperation a) => GI.WebKit2.Objects.PrintOperation.IsPrintOperation a
instance GI.WebKit2.Objects.PrintOperation.IsPrintOperation GI.WebKit2.Objects.PrintOperation.PrintOperation
instance GI.GObject.Objects.Object.IsObject GI.WebKit2.Objects.PrintOperation.PrintOperation
module GI.WebKit2.Objects.Settings
newtype Settings
Settings :: (ManagedPtr Settings) -> Settings
class GObject o => IsSettings o
toSettings :: (MonadIO m, IsSettings o) => o -> m Settings
noSettings :: Maybe Settings
-- | Get the
-- Settings:allow-file-access-from-file-urls
-- property.
settingsGetAllowFileAccessFromFileUrls :: (HasCallStack, MonadIO m, IsSettings a) => a -> m Bool
-- | Get the Settings:allow-modal-dialogs property.
settingsGetAllowModalDialogs :: (HasCallStack, MonadIO m, IsSettings a) => a -> m Bool
-- | Get the
-- Settings:allow-universal-access-from-file-urls
-- property.
settingsGetAllowUniversalAccessFromFileUrls :: (HasCallStack, MonadIO m, IsSettings a) => a -> m Bool
-- | Get the Settings:auto-load-images property.
settingsGetAutoLoadImages :: (HasCallStack, MonadIO m, IsSettings a) => a -> m Bool
-- | Gets the Settings:cursive-font-family property.
settingsGetCursiveFontFamily :: (HasCallStack, MonadIO m, IsSettings a) => a -> m Text
-- | Gets the Settings:default-charset property.
settingsGetDefaultCharset :: (HasCallStack, MonadIO m, IsSettings a) => a -> m Text
-- | No description available in the introspection data.
settingsGetDefaultFontFamily :: (HasCallStack, MonadIO m, IsSettings a) => a -> m Text
-- | Gets the Settings:default-font-size property.
settingsGetDefaultFontSize :: (HasCallStack, MonadIO m, IsSettings a) => a -> m Word32
-- | Gets the Settings:default-monospace-font-size
-- property.
settingsGetDefaultMonospaceFontSize :: (HasCallStack, MonadIO m, IsSettings a) => a -> m Word32
-- | Get the Settings:draw-compositing-indicators
-- property.
settingsGetDrawCompositingIndicators :: (HasCallStack, MonadIO m, IsSettings a) => a -> m Bool
-- | Get the Settings:enable-accelerated-2d-canvas
-- property.
settingsGetEnableAccelerated2dCanvas :: (HasCallStack, MonadIO m, IsSettings a) => a -> m Bool
-- | Get the Settings:enable-caret-browsing
-- property.
settingsGetEnableCaretBrowsing :: (HasCallStack, MonadIO m, IsSettings a) => a -> m Bool
-- | Get the Settings:enable-developer-extras
-- property.
settingsGetEnableDeveloperExtras :: (HasCallStack, MonadIO m, IsSettings a) => a -> m Bool
-- | Get the Settings:enable-dns-prefetching
-- property.
settingsGetEnableDnsPrefetching :: (HasCallStack, MonadIO m, IsSettings a) => a -> m Bool
-- | Get the Settings:enable-frame-flattening
-- property.
settingsGetEnableFrameFlattening :: (HasCallStack, MonadIO m, IsSettings a) => a -> m Bool
-- | Get the Settings:enable-fullscreen property.
settingsGetEnableFullscreen :: (HasCallStack, MonadIO m, IsSettings a) => a -> m Bool
-- | Get the Settings:enable-html5-database
-- property.
settingsGetEnableHtml5Database :: (HasCallStack, MonadIO m, IsSettings a) => a -> m Bool
-- | Get the Settings:enable-html5-local-storage
-- property.
settingsGetEnableHtml5LocalStorage :: (HasCallStack, MonadIO m, IsSettings a) => a -> m Bool
-- | Get the Settings:enable-hyperlink-auditing
-- property.
settingsGetEnableHyperlinkAuditing :: (HasCallStack, MonadIO m, IsSettings a) => a -> m Bool
-- | Get the Settings:enable-java property.
settingsGetEnableJava :: (HasCallStack, MonadIO m, IsSettings a) => a -> m Bool
-- | Get the Settings:enable-javascript property.
settingsGetEnableJavascript :: (HasCallStack, MonadIO m, IsSettings a) => a -> m Bool
-- | Get the Settings:enable-media-stream property.
settingsGetEnableMediaStream :: (HasCallStack, MonadIO m, IsSettings a) => a -> m Bool
-- | Get the Settings:enable-mediasource property.
settingsGetEnableMediasource :: (HasCallStack, MonadIO m, IsSettings a) => a -> m Bool
-- | Get the
-- Settings:enable-offline-web-application-cache
-- property.
settingsGetEnableOfflineWebApplicationCache :: (HasCallStack, MonadIO m, IsSettings a) => a -> m Bool
-- | Get the Settings:enable-page-cache property.
settingsGetEnablePageCache :: (HasCallStack, MonadIO m, IsSettings a) => a -> m Bool
-- | Get the Settings:enable-plugins property.
settingsGetEnablePlugins :: (HasCallStack, MonadIO m, IsSettings a) => a -> m Bool
-- | Get the Settings:enable-private-browsing
-- property.
-- | Deprecated: (Since version 2.16.)Use
-- WebView:is-ephemeral or
-- WebContext:is-ephemeral instead.
settingsGetEnablePrivateBrowsing :: (HasCallStack, MonadIO m, IsSettings a) => a -> m Bool
-- | Get the Settings:enable-resizable-text-areas
-- property.
settingsGetEnableResizableTextAreas :: (HasCallStack, MonadIO m, IsSettings a) => a -> m Bool
-- | Get the Settings:enable-site-specific-quirks
-- property.
settingsGetEnableSiteSpecificQuirks :: (HasCallStack, MonadIO m, IsSettings a) => a -> m Bool
-- | Get the Settings:enable-smooth-scrolling
-- property.
settingsGetEnableSmoothScrolling :: (HasCallStack, MonadIO m, IsSettings a) => a -> m Bool
-- | Get the Settings:enable-spatial-navigation
-- property.
settingsGetEnableSpatialNavigation :: (HasCallStack, MonadIO m, IsSettings a) => a -> m Bool
-- | Get the Settings:enable-tabs-to-links property.
settingsGetEnableTabsToLinks :: (HasCallStack, MonadIO m, IsSettings a) => a -> m Bool
-- | Get the Settings:enable-webaudio property.
settingsGetEnableWebaudio :: (HasCallStack, MonadIO m, IsSettings a) => a -> m Bool
-- | Get the Settings:enable-webgl property.
settingsGetEnableWebgl :: (HasCallStack, MonadIO m, IsSettings a) => a -> m Bool
-- | Get the
-- Settings:enable-write-console-messages-to-stdout
-- property.
settingsGetEnableWriteConsoleMessagesToStdout :: (HasCallStack, MonadIO m, IsSettings a) => a -> m Bool
-- | Get the Settings:enable-xss-auditor property.
settingsGetEnableXssAuditor :: (HasCallStack, MonadIO m, IsSettings a) => a -> m Bool
-- | Gets the Settings:fantasy-font-family property.
settingsGetFantasyFontFamily :: (HasCallStack, MonadIO m, IsSettings a) => a -> m Text
-- | Get the Settings:hardware-acceleration-policy
-- property.
settingsGetHardwareAccelerationPolicy :: (HasCallStack, MonadIO m, IsSettings a) => a -> m HardwareAccelerationPolicy
-- | Get the
-- Settings:javascript-can-access-clipboard
-- property.
settingsGetJavascriptCanAccessClipboard :: (HasCallStack, MonadIO m, IsSettings a) => a -> m Bool
-- | Get the
-- Settings:javascript-can-open-windows-automatically
-- property.
settingsGetJavascriptCanOpenWindowsAutomatically :: (HasCallStack, MonadIO m, IsSettings a) => a -> m Bool
-- | Get the
-- Settings:load-icons-ignoring-image-load-setting
-- property.
settingsGetLoadIconsIgnoringImageLoadSetting :: (HasCallStack, MonadIO m, IsSettings a) => a -> m Bool
-- | Get the Settings:media-playback-allows-inline
-- property.
settingsGetMediaPlaybackAllowsInline :: (HasCallStack, MonadIO m, IsSettings a) => a -> m Bool
-- | Get the
-- Settings:media-playback-requires-user-gesture
-- property.
settingsGetMediaPlaybackRequiresUserGesture :: (HasCallStack, MonadIO m, IsSettings a) => a -> m Bool
-- | Gets the Settings:minimum-font-size property.
settingsGetMinimumFontSize :: (HasCallStack, MonadIO m, IsSettings a) => a -> m Word32
-- | Gets the Settings:monospace-font-family
-- property.
settingsGetMonospaceFontFamily :: (HasCallStack, MonadIO m, IsSettings a) => a -> m Text
-- | Gets the Settings:pictograph-font-family
-- property.
settingsGetPictographFontFamily :: (HasCallStack, MonadIO m, IsSettings a) => a -> m Text
-- | Get the Settings:print-backgrounds property.
settingsGetPrintBackgrounds :: (HasCallStack, MonadIO m, IsSettings a) => a -> m Bool
-- | Gets the Settings:sans-serif-font-family
-- property.
settingsGetSansSerifFontFamily :: (HasCallStack, MonadIO m, IsSettings a) => a -> m Text
-- | Gets the Settings:serif-font-family property.
settingsGetSerifFontFamily :: (HasCallStack, MonadIO m, IsSettings a) => a -> m Text
-- | Get the Settings:user-agent property.
settingsGetUserAgent :: (HasCallStack, MonadIO m, IsSettings a) => a -> m Text
-- | Get the Settings:zoom-text-only property.
settingsGetZoomTextOnly :: (HasCallStack, MonadIO m, IsSettings a) => a -> m Bool
-- | Creates a new Settings instance with default values. It must be
-- manually attached to a WebView. See also
-- webkit_settings_new_with_settings().
settingsNew :: (HasCallStack, MonadIO m) => m Settings
-- | Set the
-- Settings:allow-file-access-from-file-urls
-- property.
settingsSetAllowFileAccessFromFileUrls :: (HasCallStack, MonadIO m, IsSettings a) => a -> Bool -> m ()
-- | Set the Settings:allow-modal-dialogs property.
settingsSetAllowModalDialogs :: (HasCallStack, MonadIO m, IsSettings a) => a -> Bool -> m ()
-- | Set the
-- Settings:allow-universal-access-from-file-urls
-- property.
settingsSetAllowUniversalAccessFromFileUrls :: (HasCallStack, MonadIO m, IsSettings a) => a -> Bool -> m ()
-- | Set the Settings:auto-load-images property.
settingsSetAutoLoadImages :: (HasCallStack, MonadIO m, IsSettings a) => a -> Bool -> m ()
-- | Set the Settings:cursive-font-family property.
settingsSetCursiveFontFamily :: (HasCallStack, MonadIO m, IsSettings a) => a -> Text -> m ()
-- | Set the Settings:default-charset property.
settingsSetDefaultCharset :: (HasCallStack, MonadIO m, IsSettings a) => a -> Text -> m ()
-- | Set the Settings:default-font-family property.
settingsSetDefaultFontFamily :: (HasCallStack, MonadIO m, IsSettings a) => a -> Text -> m ()
-- | Set the Settings:default-font-size property.
settingsSetDefaultFontSize :: (HasCallStack, MonadIO m, IsSettings a) => a -> Word32 -> m ()
-- | Set the Settings:default-monospace-font-size
-- property.
settingsSetDefaultMonospaceFontSize :: (HasCallStack, MonadIO m, IsSettings a) => a -> Word32 -> m ()
-- | Set the Settings:draw-compositing-indicators
-- property.
settingsSetDrawCompositingIndicators :: (HasCallStack, MonadIO m, IsSettings a) => a -> Bool -> m ()
-- | Set the Settings:enable-accelerated-2d-canvas
-- property.
settingsSetEnableAccelerated2dCanvas :: (HasCallStack, MonadIO m, IsSettings a) => a -> Bool -> m ()
-- | Set the Settings:enable-caret-browsing
-- property.
settingsSetEnableCaretBrowsing :: (HasCallStack, MonadIO m, IsSettings a) => a -> Bool -> m ()
-- | Set the Settings:enable-developer-extras
-- property.
settingsSetEnableDeveloperExtras :: (HasCallStack, MonadIO m, IsSettings a) => a -> Bool -> m ()
-- | Set the Settings:enable-dns-prefetching
-- property.
settingsSetEnableDnsPrefetching :: (HasCallStack, MonadIO m, IsSettings a) => a -> Bool -> m ()
-- | Set the Settings:enable-frame-flattening
-- property.
settingsSetEnableFrameFlattening :: (HasCallStack, MonadIO m, IsSettings a) => a -> Bool -> m ()
-- | Set the Settings:enable-fullscreen property.
settingsSetEnableFullscreen :: (HasCallStack, MonadIO m, IsSettings a) => a -> Bool -> m ()
-- | Set the Settings:enable-html5-database
-- property.
settingsSetEnableHtml5Database :: (HasCallStack, MonadIO m, IsSettings a) => a -> Bool -> m ()
-- | Set the Settings:enable-html5-local-storage
-- property.
settingsSetEnableHtml5LocalStorage :: (HasCallStack, MonadIO m, IsSettings a) => a -> Bool -> m ()
-- | Set the Settings:enable-hyperlink-auditing
-- property.
settingsSetEnableHyperlinkAuditing :: (HasCallStack, MonadIO m, IsSettings a) => a -> Bool -> m ()
-- | Set the Settings:enable-java property.
settingsSetEnableJava :: (HasCallStack, MonadIO m, IsSettings a) => a -> Bool -> m ()
-- | Set the Settings:enable-javascript property.
settingsSetEnableJavascript :: (HasCallStack, MonadIO m, IsSettings a) => a -> Bool -> m ()
-- | Set the Settings:enable-media-stream property.
settingsSetEnableMediaStream :: (HasCallStack, MonadIO m, IsSettings a) => a -> Bool -> m ()
-- | Set the Settings:enable-mediasource property.
settingsSetEnableMediasource :: (HasCallStack, MonadIO m, IsSettings a) => a -> Bool -> m ()
-- | Set the
-- Settings:enable-offline-web-application-cache
-- property.
settingsSetEnableOfflineWebApplicationCache :: (HasCallStack, MonadIO m, IsSettings a) => a -> Bool -> m ()
-- | Set the Settings:enable-page-cache property.
settingsSetEnablePageCache :: (HasCallStack, MonadIO m, IsSettings a) => a -> Bool -> m ()
-- | Set the Settings:enable-plugins property.
settingsSetEnablePlugins :: (HasCallStack, MonadIO m, IsSettings a) => a -> Bool -> m ()
-- | Set the Settings:enable-private-browsing
-- property.
-- | Deprecated: (Since version 2.16.)Use
-- WebView:is-ephemeral or
-- WebContext:is-ephemeral instead.
settingsSetEnablePrivateBrowsing :: (HasCallStack, MonadIO m, IsSettings a) => a -> Bool -> m ()
-- | Set the Settings:enable-resizable-text-areas
-- property.
settingsSetEnableResizableTextAreas :: (HasCallStack, MonadIO m, IsSettings a) => a -> Bool -> m ()
-- | Set the Settings:enable-site-specific-quirks
-- property.
settingsSetEnableSiteSpecificQuirks :: (HasCallStack, MonadIO m, IsSettings a) => a -> Bool -> m ()
-- | Set the Settings:enable-smooth-scrolling
-- property.
settingsSetEnableSmoothScrolling :: (HasCallStack, MonadIO m, IsSettings a) => a -> Bool -> m ()
-- | Set the Settings:enable-spatial-navigation
-- property.
settingsSetEnableSpatialNavigation :: (HasCallStack, MonadIO m, IsSettings a) => a -> Bool -> m ()
-- | Set the Settings:enable-tabs-to-links property.
settingsSetEnableTabsToLinks :: (HasCallStack, MonadIO m, IsSettings a) => a -> Bool -> m ()
-- | Set the Settings:enable-webaudio property.
settingsSetEnableWebaudio :: (HasCallStack, MonadIO m, IsSettings a) => a -> Bool -> m ()
-- | Set the Settings:enable-webgl property.
settingsSetEnableWebgl :: (HasCallStack, MonadIO m, IsSettings a) => a -> Bool -> m ()
-- | Set the
-- Settings:enable-write-console-messages-to-stdout
-- property.
settingsSetEnableWriteConsoleMessagesToStdout :: (HasCallStack, MonadIO m, IsSettings a) => a -> Bool -> m ()
-- | Set the Settings:enable-xss-auditor property.
settingsSetEnableXssAuditor :: (HasCallStack, MonadIO m, IsSettings a) => a -> Bool -> m ()
-- | Set the Settings:fantasy-font-family property.
settingsSetFantasyFontFamily :: (HasCallStack, MonadIO m, IsSettings a) => a -> Text -> m ()
-- | Set the Settings:hardware-acceleration-policy
-- property.
settingsSetHardwareAccelerationPolicy :: (HasCallStack, MonadIO m, IsSettings a) => a -> HardwareAccelerationPolicy -> m ()
-- | Set the
-- Settings:javascript-can-access-clipboard
-- property.
settingsSetJavascriptCanAccessClipboard :: (HasCallStack, MonadIO m, IsSettings a) => a -> Bool -> m ()
-- | Set the
-- Settings:javascript-can-open-windows-automatically
-- property.
settingsSetJavascriptCanOpenWindowsAutomatically :: (HasCallStack, MonadIO m, IsSettings a) => a -> Bool -> m ()
-- | Set the
-- Settings:load-icons-ignoring-image-load-setting
-- property.
settingsSetLoadIconsIgnoringImageLoadSetting :: (HasCallStack, MonadIO m, IsSettings a) => a -> Bool -> m ()
-- | Set the Settings:media-playback-allows-inline
-- property.
settingsSetMediaPlaybackAllowsInline :: (HasCallStack, MonadIO m, IsSettings a) => a -> Bool -> m ()
-- | Set the
-- Settings:media-playback-requires-user-gesture
-- property.
settingsSetMediaPlaybackRequiresUserGesture :: (HasCallStack, MonadIO m, IsSettings a) => a -> Bool -> m ()
-- | Set the Settings:minimum-font-size property.
settingsSetMinimumFontSize :: (HasCallStack, MonadIO m, IsSettings a) => a -> Word32 -> m ()
-- | Set the Settings:monospace-font-family
-- property.
settingsSetMonospaceFontFamily :: (HasCallStack, MonadIO m, IsSettings a) => a -> Text -> m ()
-- | Set the Settings:pictograph-font-family
-- property.
settingsSetPictographFontFamily :: (HasCallStack, MonadIO m, IsSettings a) => a -> Text -> m ()
-- | Set the Settings:print-backgrounds property.
settingsSetPrintBackgrounds :: (HasCallStack, MonadIO m, IsSettings a) => a -> Bool -> m ()
-- | Set the Settings:sans-serif-font-family
-- property.
settingsSetSansSerifFontFamily :: (HasCallStack, MonadIO m, IsSettings a) => a -> Text -> m ()
-- | Set the Settings:serif-font-family property.
settingsSetSerifFontFamily :: (HasCallStack, MonadIO m, IsSettings a) => a -> Text -> m ()
-- | Set the Settings:user-agent property.
settingsSetUserAgent :: (HasCallStack, MonadIO m, IsSettings a) => a -> Maybe (Text) -> m ()
-- | Set the Settings:user-agent property by
-- appending the application details to the default user agent. If no
-- application name or version is given, the default user agent used will
-- be used. If only the version is given, the default engine version is
-- used with the given application name.
settingsSetUserAgentWithApplicationDetails :: (HasCallStack, MonadIO m, IsSettings a) => a -> Maybe (Text) -> Maybe (Text) -> m ()
-- | Set the Settings:zoom-text-only property.
settingsSetZoomTextOnly :: (HasCallStack, MonadIO m, IsSettings a) => a -> Bool -> m ()
constructSettingsAllowFileAccessFromFileUrls :: (IsSettings o) => Bool -> IO (GValueConstruct o)
getSettingsAllowFileAccessFromFileUrls :: (MonadIO m, IsSettings o) => o -> m Bool
setSettingsAllowFileAccessFromFileUrls :: (MonadIO m, IsSettings o) => o -> Bool -> m ()
constructSettingsAllowModalDialogs :: (IsSettings o) => Bool -> IO (GValueConstruct o)
getSettingsAllowModalDialogs :: (MonadIO m, IsSettings o) => o -> m Bool
setSettingsAllowModalDialogs :: (MonadIO m, IsSettings o) => o -> Bool -> m ()
constructSettingsAllowUniversalAccessFromFileUrls :: (IsSettings o) => Bool -> IO (GValueConstruct o)
getSettingsAllowUniversalAccessFromFileUrls :: (MonadIO m, IsSettings o) => o -> m Bool
setSettingsAllowUniversalAccessFromFileUrls :: (MonadIO m, IsSettings o) => o -> Bool -> m ()
constructSettingsAutoLoadImages :: (IsSettings o) => Bool -> IO (GValueConstruct o)
getSettingsAutoLoadImages :: (MonadIO m, IsSettings o) => o -> m Bool
setSettingsAutoLoadImages :: (MonadIO m, IsSettings o) => o -> Bool -> m ()
constructSettingsCursiveFontFamily :: (IsSettings o) => Text -> IO (GValueConstruct o)
getSettingsCursiveFontFamily :: (MonadIO m, IsSettings o) => o -> m Text
setSettingsCursiveFontFamily :: (MonadIO m, IsSettings o) => o -> Text -> m ()
constructSettingsDefaultCharset :: (IsSettings o) => Text -> IO (GValueConstruct o)
getSettingsDefaultCharset :: (MonadIO m, IsSettings o) => o -> m Text
setSettingsDefaultCharset :: (MonadIO m, IsSettings o) => o -> Text -> m ()
constructSettingsDefaultFontFamily :: (IsSettings o) => Text -> IO (GValueConstruct o)
getSettingsDefaultFontFamily :: (MonadIO m, IsSettings o) => o -> m Text
setSettingsDefaultFontFamily :: (MonadIO m, IsSettings o) => o -> Text -> m ()
constructSettingsDefaultFontSize :: (IsSettings o) => Word32 -> IO (GValueConstruct o)
getSettingsDefaultFontSize :: (MonadIO m, IsSettings o) => o -> m Word32
setSettingsDefaultFontSize :: (MonadIO m, IsSettings o) => o -> Word32 -> m ()
constructSettingsDefaultMonospaceFontSize :: (IsSettings o) => Word32 -> IO (GValueConstruct o)
getSettingsDefaultMonospaceFontSize :: (MonadIO m, IsSettings o) => o -> m Word32
setSettingsDefaultMonospaceFontSize :: (MonadIO m, IsSettings o) => o -> Word32 -> m ()
constructSettingsDrawCompositingIndicators :: (IsSettings o) => Bool -> IO (GValueConstruct o)
getSettingsDrawCompositingIndicators :: (MonadIO m, IsSettings o) => o -> m Bool
setSettingsDrawCompositingIndicators :: (MonadIO m, IsSettings o) => o -> Bool -> m ()
constructSettingsEnableAccelerated2dCanvas :: (IsSettings o) => Bool -> IO (GValueConstruct o)
getSettingsEnableAccelerated2dCanvas :: (MonadIO m, IsSettings o) => o -> m Bool
setSettingsEnableAccelerated2dCanvas :: (MonadIO m, IsSettings o) => o -> Bool -> m ()
constructSettingsEnableCaretBrowsing :: (IsSettings o) => Bool -> IO (GValueConstruct o)
getSettingsEnableCaretBrowsing :: (MonadIO m, IsSettings o) => o -> m Bool
setSettingsEnableCaretBrowsing :: (MonadIO m, IsSettings o) => o -> Bool -> m ()
constructSettingsEnableDeveloperExtras :: (IsSettings o) => Bool -> IO (GValueConstruct o)
getSettingsEnableDeveloperExtras :: (MonadIO m, IsSettings o) => o -> m Bool
setSettingsEnableDeveloperExtras :: (MonadIO m, IsSettings o) => o -> Bool -> m ()
constructSettingsEnableDnsPrefetching :: (IsSettings o) => Bool -> IO (GValueConstruct o)
getSettingsEnableDnsPrefetching :: (MonadIO m, IsSettings o) => o -> m Bool
setSettingsEnableDnsPrefetching :: (MonadIO m, IsSettings o) => o -> Bool -> m ()
constructSettingsEnableFrameFlattening :: (IsSettings o) => Bool -> IO (GValueConstruct o)
getSettingsEnableFrameFlattening :: (MonadIO m, IsSettings o) => o -> m Bool
setSettingsEnableFrameFlattening :: (MonadIO m, IsSettings o) => o -> Bool -> m ()
constructSettingsEnableFullscreen :: (IsSettings o) => Bool -> IO (GValueConstruct o)
getSettingsEnableFullscreen :: (MonadIO m, IsSettings o) => o -> m Bool
setSettingsEnableFullscreen :: (MonadIO m, IsSettings o) => o -> Bool -> m ()
constructSettingsEnableHtml5Database :: (IsSettings o) => Bool -> IO (GValueConstruct o)
getSettingsEnableHtml5Database :: (MonadIO m, IsSettings o) => o -> m Bool
setSettingsEnableHtml5Database :: (MonadIO m, IsSettings o) => o -> Bool -> m ()
constructSettingsEnableHtml5LocalStorage :: (IsSettings o) => Bool -> IO (GValueConstruct o)
getSettingsEnableHtml5LocalStorage :: (MonadIO m, IsSettings o) => o -> m Bool
setSettingsEnableHtml5LocalStorage :: (MonadIO m, IsSettings o) => o -> Bool -> m ()
constructSettingsEnableHyperlinkAuditing :: (IsSettings o) => Bool -> IO (GValueConstruct o)
getSettingsEnableHyperlinkAuditing :: (MonadIO m, IsSettings o) => o -> m Bool
setSettingsEnableHyperlinkAuditing :: (MonadIO m, IsSettings o) => o -> Bool -> m ()
constructSettingsEnableJava :: (IsSettings o) => Bool -> IO (GValueConstruct o)
getSettingsEnableJava :: (MonadIO m, IsSettings o) => o -> m Bool
setSettingsEnableJava :: (MonadIO m, IsSettings o) => o -> Bool -> m ()
constructSettingsEnableJavascript :: (IsSettings o) => Bool -> IO (GValueConstruct o)
getSettingsEnableJavascript :: (MonadIO m, IsSettings o) => o -> m Bool
setSettingsEnableJavascript :: (MonadIO m, IsSettings o) => o -> Bool -> m ()
constructSettingsEnableMediaStream :: (IsSettings o) => Bool -> IO (GValueConstruct o)
getSettingsEnableMediaStream :: (MonadIO m, IsSettings o) => o -> m Bool
setSettingsEnableMediaStream :: (MonadIO m, IsSettings o) => o -> Bool -> m ()
constructSettingsEnableMediasource :: (IsSettings o) => Bool -> IO (GValueConstruct o)
getSettingsEnableMediasource :: (MonadIO m, IsSettings o) => o -> m Bool
setSettingsEnableMediasource :: (MonadIO m, IsSettings o) => o -> Bool -> m ()
constructSettingsEnableOfflineWebApplicationCache :: (IsSettings o) => Bool -> IO (GValueConstruct o)
getSettingsEnableOfflineWebApplicationCache :: (MonadIO m, IsSettings o) => o -> m Bool
setSettingsEnableOfflineWebApplicationCache :: (MonadIO m, IsSettings o) => o -> Bool -> m ()
constructSettingsEnablePageCache :: (IsSettings o) => Bool -> IO (GValueConstruct o)
getSettingsEnablePageCache :: (MonadIO m, IsSettings o) => o -> m Bool
setSettingsEnablePageCache :: (MonadIO m, IsSettings o) => o -> Bool -> m ()
constructSettingsEnablePlugins :: (IsSettings o) => Bool -> IO (GValueConstruct o)
getSettingsEnablePlugins :: (MonadIO m, IsSettings o) => o -> m Bool
setSettingsEnablePlugins :: (MonadIO m, IsSettings o) => o -> Bool -> m ()
constructSettingsEnablePrivateBrowsing :: (IsSettings o) => Bool -> IO (GValueConstruct o)
getSettingsEnablePrivateBrowsing :: (MonadIO m, IsSettings o) => o -> m Bool
setSettingsEnablePrivateBrowsing :: (MonadIO m, IsSettings o) => o -> Bool -> m ()
constructSettingsEnableResizableTextAreas :: (IsSettings o) => Bool -> IO (GValueConstruct o)
getSettingsEnableResizableTextAreas :: (MonadIO m, IsSettings o) => o -> m Bool
setSettingsEnableResizableTextAreas :: (MonadIO m, IsSettings o) => o -> Bool -> m ()
constructSettingsEnableSiteSpecificQuirks :: (IsSettings o) => Bool -> IO (GValueConstruct o)
getSettingsEnableSiteSpecificQuirks :: (MonadIO m, IsSettings o) => o -> m Bool
setSettingsEnableSiteSpecificQuirks :: (MonadIO m, IsSettings o) => o -> Bool -> m ()
constructSettingsEnableSmoothScrolling :: (IsSettings o) => Bool -> IO (GValueConstruct o)
getSettingsEnableSmoothScrolling :: (MonadIO m, IsSettings o) => o -> m Bool
setSettingsEnableSmoothScrolling :: (MonadIO m, IsSettings o) => o -> Bool -> m ()
constructSettingsEnableSpatialNavigation :: (IsSettings o) => Bool -> IO (GValueConstruct o)
getSettingsEnableSpatialNavigation :: (MonadIO m, IsSettings o) => o -> m Bool
setSettingsEnableSpatialNavigation :: (MonadIO m, IsSettings o) => o -> Bool -> m ()
constructSettingsEnableTabsToLinks :: (IsSettings o) => Bool -> IO (GValueConstruct o)
getSettingsEnableTabsToLinks :: (MonadIO m, IsSettings o) => o -> m Bool
setSettingsEnableTabsToLinks :: (MonadIO m, IsSettings o) => o -> Bool -> m ()
constructSettingsEnableWebaudio :: (IsSettings o) => Bool -> IO (GValueConstruct o)
getSettingsEnableWebaudio :: (MonadIO m, IsSettings o) => o -> m Bool
setSettingsEnableWebaudio :: (MonadIO m, IsSettings o) => o -> Bool -> m ()
constructSettingsEnableWebgl :: (IsSettings o) => Bool -> IO (GValueConstruct o)
getSettingsEnableWebgl :: (MonadIO m, IsSettings o) => o -> m Bool
setSettingsEnableWebgl :: (MonadIO m, IsSettings o) => o -> Bool -> m ()
constructSettingsEnableWriteConsoleMessagesToStdout :: (IsSettings o) => Bool -> IO (GValueConstruct o)
getSettingsEnableWriteConsoleMessagesToStdout :: (MonadIO m, IsSettings o) => o -> m Bool
setSettingsEnableWriteConsoleMessagesToStdout :: (MonadIO m, IsSettings o) => o -> Bool -> m ()
constructSettingsEnableXssAuditor :: (IsSettings o) => Bool -> IO (GValueConstruct o)
getSettingsEnableXssAuditor :: (MonadIO m, IsSettings o) => o -> m Bool
setSettingsEnableXssAuditor :: (MonadIO m, IsSettings o) => o -> Bool -> m ()
constructSettingsFantasyFontFamily :: (IsSettings o) => Text -> IO (GValueConstruct o)
getSettingsFantasyFontFamily :: (MonadIO m, IsSettings o) => o -> m Text
setSettingsFantasyFontFamily :: (MonadIO m, IsSettings o) => o -> Text -> m ()
constructSettingsHardwareAccelerationPolicy :: (IsSettings o) => HardwareAccelerationPolicy -> IO (GValueConstruct o)
getSettingsHardwareAccelerationPolicy :: (MonadIO m, IsSettings o) => o -> m HardwareAccelerationPolicy
setSettingsHardwareAccelerationPolicy :: (MonadIO m, IsSettings o) => o -> HardwareAccelerationPolicy -> m ()
constructSettingsJavascriptCanAccessClipboard :: (IsSettings o) => Bool -> IO (GValueConstruct o)
getSettingsJavascriptCanAccessClipboard :: (MonadIO m, IsSettings o) => o -> m Bool
setSettingsJavascriptCanAccessClipboard :: (MonadIO m, IsSettings o) => o -> Bool -> m ()
constructSettingsJavascriptCanOpenWindowsAutomatically :: (IsSettings o) => Bool -> IO (GValueConstruct o)
getSettingsJavascriptCanOpenWindowsAutomatically :: (MonadIO m, IsSettings o) => o -> m Bool
setSettingsJavascriptCanOpenWindowsAutomatically :: (MonadIO m, IsSettings o) => o -> Bool -> m ()
constructSettingsLoadIconsIgnoringImageLoadSetting :: (IsSettings o) => Bool -> IO (GValueConstruct o)
getSettingsLoadIconsIgnoringImageLoadSetting :: (MonadIO m, IsSettings o) => o -> m Bool
setSettingsLoadIconsIgnoringImageLoadSetting :: (MonadIO m, IsSettings o) => o -> Bool -> m ()
constructSettingsMediaPlaybackAllowsInline :: (IsSettings o) => Bool -> IO (GValueConstruct o)
getSettingsMediaPlaybackAllowsInline :: (MonadIO m, IsSettings o) => o -> m Bool
setSettingsMediaPlaybackAllowsInline :: (MonadIO m, IsSettings o) => o -> Bool -> m ()
constructSettingsMediaPlaybackRequiresUserGesture :: (IsSettings o) => Bool -> IO (GValueConstruct o)
getSettingsMediaPlaybackRequiresUserGesture :: (MonadIO m, IsSettings o) => o -> m Bool
setSettingsMediaPlaybackRequiresUserGesture :: (MonadIO m, IsSettings o) => o -> Bool -> m ()
constructSettingsMinimumFontSize :: (IsSettings o) => Word32 -> IO (GValueConstruct o)
getSettingsMinimumFontSize :: (MonadIO m, IsSettings o) => o -> m Word32
setSettingsMinimumFontSize :: (MonadIO m, IsSettings o) => o -> Word32 -> m ()
constructSettingsMonospaceFontFamily :: (IsSettings o) => Text -> IO (GValueConstruct o)
getSettingsMonospaceFontFamily :: (MonadIO m, IsSettings o) => o -> m Text
setSettingsMonospaceFontFamily :: (MonadIO m, IsSettings o) => o -> Text -> m ()
constructSettingsPictographFontFamily :: (IsSettings o) => Text -> IO (GValueConstruct o)
getSettingsPictographFontFamily :: (MonadIO m, IsSettings o) => o -> m Text
setSettingsPictographFontFamily :: (MonadIO m, IsSettings o) => o -> Text -> m ()
constructSettingsPrintBackgrounds :: (IsSettings o) => Bool -> IO (GValueConstruct o)
getSettingsPrintBackgrounds :: (MonadIO m, IsSettings o) => o -> m Bool
setSettingsPrintBackgrounds :: (MonadIO m, IsSettings o) => o -> Bool -> m ()
constructSettingsSansSerifFontFamily :: (IsSettings o) => Text -> IO (GValueConstruct o)
getSettingsSansSerifFontFamily :: (MonadIO m, IsSettings o) => o -> m Text
setSettingsSansSerifFontFamily :: (MonadIO m, IsSettings o) => o -> Text -> m ()
constructSettingsSerifFontFamily :: (IsSettings o) => Text -> IO (GValueConstruct o)
getSettingsSerifFontFamily :: (MonadIO m, IsSettings o) => o -> m Text
setSettingsSerifFontFamily :: (MonadIO m, IsSettings o) => o -> Text -> m ()
clearSettingsUserAgent :: (MonadIO m, IsSettings o) => o -> m ()
constructSettingsUserAgent :: (IsSettings o) => Text -> IO (GValueConstruct o)
getSettingsUserAgent :: (MonadIO m, IsSettings o) => o -> m Text
setSettingsUserAgent :: (MonadIO m, IsSettings o) => o -> Text -> m ()
constructSettingsZoomTextOnly :: (IsSettings o) => Bool -> IO (GValueConstruct o)
getSettingsZoomTextOnly :: (MonadIO m, IsSettings o) => o -> m Bool
setSettingsZoomTextOnly :: (MonadIO m, IsSettings o) => o -> Bool -> m ()
instance Data.GI.Base.BasicTypes.GObject GI.WebKit2.Objects.Settings.Settings
instance (Data.GI.Base.BasicTypes.GObject a, Data.GI.Base.Overloading.UnknownAncestorError GI.WebKit2.Objects.Settings.Settings a) => GI.WebKit2.Objects.Settings.IsSettings a
instance GI.WebKit2.Objects.Settings.IsSettings GI.WebKit2.Objects.Settings.Settings
instance GI.GObject.Objects.Object.IsObject GI.WebKit2.Objects.Settings.Settings
module GI.WebKit2.Objects.WebView
newtype WebView
WebView :: (ManagedPtr WebView) -> WebView
class GObject o => IsWebView o
toWebView :: (MonadIO m, IsWebView o) => o -> m WebView
noWebView :: Maybe WebView
-- | Asynchronously check if it is possible to execute the given editing
-- command.
--
-- When the operation is finished, callback will be
-- called. You can then call webViewCanExecuteEditingCommandFinish
-- to get the result of the operation.
webViewCanExecuteEditingCommand :: (HasCallStack, MonadIO m, IsWebView a, IsCancellable b) => a -> Text -> Maybe (b) -> Maybe (AsyncReadyCallback) -> m ()
-- | Finish an asynchronous operation started with
-- webViewCanExecuteEditingCommand.
webViewCanExecuteEditingCommandFinish :: (HasCallStack, MonadIO m, IsWebView a, IsAsyncResult b) => a -> b -> m ()
-- | Determines whether webView has a previous history
-- item.
webViewCanGoBack :: (HasCallStack, MonadIO m, IsWebView a) => a -> m Bool
-- | Determines whether webView has a next history item.
webViewCanGoForward :: (HasCallStack, MonadIO m, IsWebView a) => a -> m Bool
-- | Whether or not a MIME type can be displayed in
-- webView.
webViewCanShowMimeType :: (HasCallStack, MonadIO m, IsWebView a) => a -> Text -> m Bool
-- | Requests downloading of the specified URI string for
-- webView.
webViewDownloadUri :: (HasCallStack, MonadIO m, IsWebView a) => a -> Text -> m Download
-- | Request to execute the given command for
-- webView. You can use
-- webViewCanExecuteEditingCommand to check whether it's possible
-- to execute the command.
webViewExecuteEditingCommand :: (HasCallStack, MonadIO m, IsWebView a) => a -> Text -> m ()
-- | Request to execute the given command with
-- argument for webView. You can use
-- webViewCanExecuteEditingCommand to check whether it's possible
-- to execute the command.
webViewExecuteEditingCommandWithArgument :: (HasCallStack, MonadIO m, IsWebView a) => a -> Text -> Text -> m ()
-- | Obtains the BackForwardList associated with the given
-- WebView. The BackForwardList is owned by the
-- WebView.
webViewGetBackForwardList :: (HasCallStack, MonadIO m, IsWebView a) => a -> m BackForwardList
-- | Gets the color that is used to draw the webView
-- background before the actual contents are rendered. For more
-- information see also webViewSetBackgroundColor
webViewGetBackgroundColor :: (HasCallStack, MonadIO m, IsWebView a) => a -> m (RGBA)
-- | Gets the web context of webView.
webViewGetContext :: (HasCallStack, MonadIO m, IsWebView a) => a -> m WebContext
-- | Returns the current custom character encoding name of
-- webView.
webViewGetCustomCharset :: (HasCallStack, MonadIO m, IsWebView a) => a -> m Text
-- | Gets the web editor state of webView.
webViewGetEditorState :: (HasCallStack, MonadIO m, IsWebView a) => a -> m EditorState
-- | Gets the value of the
-- WebView:estimated-load-progress property. You
-- can monitor the estimated progress of a load operation by connecting
-- to the notify::estimated-load-progress signal of
-- webView.
webViewGetEstimatedLoadProgress :: (HasCallStack, MonadIO m, IsWebView a) => a -> m Double
-- | Returns favicon currently associated to webView, if
-- any. You can connect to notify::favicon signal of
-- webView to be notified when the favicon is available.
webViewGetFavicon :: (HasCallStack, MonadIO m, IsWebView a) => a -> m Surface
-- | Gets the FindController that will allow the caller to query the
-- WebView for the text to look for.
webViewGetFindController :: (HasCallStack, MonadIO m, IsWebView a) => a -> m FindController
-- | Get the WebInspector associated to webView
webViewGetInspector :: (HasCallStack, MonadIO m, IsWebView a) => a -> m WebInspector
-- | Get the global JavaScript context used by webView to
-- deserialize the result values of scripts executed with
-- webViewRunJavascript.
webViewGetJavascriptGlobalContext :: (HasCallStack, MonadIO m, IsWebView a) => a -> m GlobalContext
-- | Return the main resource of webView.
webViewGetMainResource :: (HasCallStack, MonadIO m, IsWebView a) => a -> m WebResource
-- | Get the identifier of the WebKitWebPage corresponding
-- to the WebView
webViewGetPageId :: (HasCallStack, MonadIO m, IsWebView a) => a -> m Word64
-- | Gets the current session state of webView
webViewGetSessionState :: (HasCallStack, MonadIO m, IsWebView a) => a -> m WebViewSessionState
-- | Gets the Settings currently applied to webView.
-- If no other Settings have been explicitly applied to
-- webView with webViewSetSettings, the default
-- Settings will be returned. This method always returns a valid
-- Settings object. To modify any of the webView
-- settings, you can either create a new Settings object with
-- settingsNew, setting the desired preferences, and then replace
-- the existing webView settings with
-- webViewSetSettings or get the existing webView
-- settings and update it directly. Settings objects can be shared
-- by multiple WebView<!-- -->s, so modifying the settings
-- of a WebView would affect other WebView<!-- -->s
-- using the same Settings.
webViewGetSettings :: (HasCallStack, MonadIO m, IsWebView a) => a -> m Settings
-- | Asynchronously retrieves a snapshot of webView for
-- region. options specifies how the
-- snapshot should be rendered.
--
-- When the operation is finished, callback will be
-- called. You must call webViewGetSnapshotFinish to get the
-- result of the operation.
webViewGetSnapshot :: (HasCallStack, MonadIO m, IsWebView a, IsCancellable b) => a -> SnapshotRegion -> [SnapshotOptions] -> Maybe (b) -> Maybe (AsyncReadyCallback) -> m ()
-- | Finishes an asynchronous operation started with
-- webViewGetSnapshot.
webViewGetSnapshotFinish :: (HasCallStack, MonadIO m, IsWebView a, IsAsyncResult b) => a -> b -> m Surface
-- | Gets the value of the WebView:title property.
-- You can connect to notify::title signal of webView to
-- be notified when the title has been received.
webViewGetTitle :: (HasCallStack, MonadIO m, IsWebView a) => a -> m Text
-- | Retrieves the TlsCertificate associated with the main resource
-- of webView, and the TlsCertificateFlags showing
-- what problems, if any, have been found with that certificate. If the
-- connection is not HTTPS, this function returns False. This
-- function should be called after a response has been received from the
-- server, so you can connect to
-- WebView::load-changed and call this function
-- when it's emitted with LoadEventCommitted event.
--
-- Note that this function provides no information about the security of
-- the web page if the current TLSErrorsPolicy is
-- wEBKITTLSERRORSPOLICYIGNORE, as subresources of the
-- page may be controlled by an attacker. This function may safely be
-- used to determine the security status of the current page only if the
-- current TLSErrorsPolicy is
-- wEBKITTLSERRORSPOLICYFAIL, in which case subresources
-- that fail certificate verification will be blocked.
webViewGetTlsInfo :: (HasCallStack, MonadIO m, IsWebView a) => a -> m ((Bool, TlsCertificate, [TlsCertificateFlags]))
-- | Returns the current active URI of webView. The active
-- URI might change during a load operation:
--
-- <orderedlist> <listitem><para> When nothing has been
-- loaded yet on webView the active URI is
-- Nothing. </para></listitem>
-- <listitem><para> When a new load operation starts the
-- active URI is the requested URI: <itemizedlist>
-- <listitem><para> If the load operation was started by
-- webViewLoadUri, the requested URI is the given one.
-- </para></listitem> <listitem><para> If the
-- load operation was started by webViewLoadHtml, the requested
-- URI is "about:blank". </para></listitem>
-- <listitem><para> If the load operation was started by
-- webViewLoadAlternateHtml, the requested URI is content URI
-- provided. </para></listitem> <listitem><para>
-- If the load operation was started by webViewGoBack or
-- webViewGoForward, the requested URI is the original URI of the
-- previous/next item in the BackForwardList of
-- webView. </para></listitem>
-- <listitem><para> If the load operation was started by
-- webViewGoToBackForwardListItem, the requested URI is the
-- opriginal URI of the given BackForwardListItem.
-- </para></listitem> </itemizedlist>
-- </para></listitem> <listitem><para> If there
-- is a server redirection during the load operation, the active URI is
-- the redirected URI. When the signal
-- WebView::load-changed is emitted with
-- LoadEventRedirected event, the active URI is already updated to
-- the redirected URI. </para></listitem>
-- <listitem><para> When the signal
-- WebView::load-changed is emitted with
-- LoadEventCommitted event, the active URI is the final one and
-- it will not change unless a new load operation is started or a
-- navigation action within the same page is performed.
-- </para></listitem> </orderedlist>
--
-- You can monitor the active URI by connecting to the notify::uri signal
-- of webView.
webViewGetUri :: (HasCallStack, MonadIO m, IsWebView a) => a -> m (Maybe Text)
-- | Gets the user content manager associated to webView,
-- or Nothing if the view does not have an user content manager.
webViewGetUserContentManager :: (HasCallStack, MonadIO m, IsWebView a) => a -> m UserContentManager
-- | Get the WebsiteDataManager associated to
-- webView. If webView is not ephemeral,
-- the returned WebsiteDataManager will be the same as the
-- WebsiteDataManager of webView's
-- WebContext.
webViewGetWebsiteDataManager :: (HasCallStack, MonadIO m, IsWebView a) => a -> m WebsiteDataManager
-- | Get the WindowProperties object containing the properties that
-- the window containing webView should have.
webViewGetWindowProperties :: (HasCallStack, MonadIO m, IsWebView a) => a -> m WindowProperties
-- | Get the zoom level of webView, i.e. the factor by
-- which the view contents are scaled with respect to their original
-- size.
webViewGetZoomLevel :: (HasCallStack, MonadIO m, IsWebView a) => a -> m Double
-- | Loads the previous history item. You can monitor the load operation by
-- connecting to WebView::load-changed signal.
webViewGoBack :: (HasCallStack, MonadIO m, IsWebView a) => a -> m ()
-- | Loads the next history item. You can monitor the load operation by
-- connecting to WebView::load-changed signal.
webViewGoForward :: (HasCallStack, MonadIO m, IsWebView a) => a -> m ()
-- | Loads the specific history item listItem. You can
-- monitor the load operation by connecting to
-- WebView::load-changed signal.
webViewGoToBackForwardListItem :: (HasCallStack, MonadIO m, IsWebView a, IsBackForwardListItem b) => a -> b -> m ()
-- | No description available in the introspection data.
webViewIsEditable :: (HasCallStack, MonadIO m, IsWebView a) => a -> m Bool
-- | Get whether a WebView is ephemeral. To create an ephemeral
-- WebView you need to use g_object_new() and pass
-- is-ephemeral propery with True value. See
-- WebView:is-ephemeral for more details. If
-- webView was created with a ephemeral
-- WebView:related-view or an ephemeral
-- WebView:web-context it will also be ephemeral.
webViewIsEphemeral :: (HasCallStack, MonadIO m, IsWebView a) => a -> m Bool
-- | Gets the value of the WebView:is-loading
-- property. You can monitor when a WebView is loading a page by
-- connecting to notify::is-loading signal of webView.
-- This is useful when you are interesting in knowing when the view is
-- loding something but not in the details about the status of the load
-- operation, for example to start a spinner when the view is loading a
-- page and stop it when it finishes.
webViewIsLoading :: (HasCallStack, MonadIO m, IsWebView a) => a -> m Bool
-- | Gets the value of the WebView:is-playing-audio
-- property. You can monitor when a page in a WebView is playing
-- audio by connecting to the notify::is-playing-audio signal of
-- webView. This is useful when the application wants to
-- provide visual feedback when a page is producing sound.
webViewIsPlayingAudio :: (HasCallStack, MonadIO m, IsWebView a) => a -> m Bool
-- | Load the given content string for the URI
-- contentUri. This allows clients to display
-- page-loading errors in the WebView itself. When this method is
-- called from WebView::load-failed signal to show
-- an error page, the the back-forward list is maintained appropriately.
-- For everything else this method works the same way as
-- webViewLoadHtml.
webViewLoadAlternateHtml :: (HasCallStack, MonadIO m, IsWebView a) => a -> Text -> Text -> Maybe (Text) -> m ()
-- | Load the specified bytes into webView
-- using the given mimeType and encoding.
-- When mimeType is Nothing, it defaults to
-- "text/html". When encoding is Nothing, it
-- defaults to "UTF-8". When baseUri is Nothing,
-- it defaults to "about:blank". You can monitor the load operation by
-- connecting to WebView::load-changed signal.
webViewLoadBytes :: (HasCallStack, MonadIO m, IsWebView a) => a -> Bytes -> Maybe (Text) -> Maybe (Text) -> Maybe (Text) -> m ()
-- | Load the given content string with the specified
-- baseUri. If baseUri is not
-- Nothing, relative URLs in the content will be
-- resolved against baseUri and absolute local paths must
-- be children of the baseUri. For security reasons
-- absolute local paths that are not children of baseUri
-- will cause the web process to terminate. If you need to include URLs
-- in content that are local paths in a different
-- directory than baseUri you can build a data URI for
-- them. When baseUri is Nothing, it defaults to
-- "about:blank". The mime type of the document will be "text/html". You
-- can monitor the load operation by connecting to
-- WebView::load-changed signal.
webViewLoadHtml :: (HasCallStack, MonadIO m, IsWebView a) => a -> Text -> Maybe (Text) -> m ()
-- | Load the specified plainText string into
-- webView. The mime type of document will be
-- "text/plain". You can monitor the load operation by connecting to
-- WebView::load-changed signal.
webViewLoadPlainText :: (HasCallStack, MonadIO m, IsWebView a) => a -> Text -> m ()
-- | Requests loading of the specified URIRequest. You can monitor
-- the load operation by connecting to
-- WebView::load-changed signal.
webViewLoadRequest :: (HasCallStack, MonadIO m, IsWebView a, IsURIRequest b) => a -> b -> m ()
-- | Requests loading of the specified URI string. You can monitor the load
-- operation by connecting to
-- WebView::load-changed signal.
webViewLoadUri :: (HasCallStack, MonadIO m, IsWebView a) => a -> Text -> m ()
-- | Creates a new WebView with the default WebContext and no
-- UserContentManager associated with it. See also
-- webViewNewWithContext, webViewNewWithUserContentManager,
-- and webViewNewWithSettings.
webViewNew :: (HasCallStack, MonadIO m) => m WebView
-- | Creates a new WebView with the given WebContext and no
-- UserContentManager associated with it. See also
-- webViewNewWithUserContentManager and
-- webViewNewWithSettings.
webViewNewWithContext :: (HasCallStack, MonadIO m, IsWebContext a) => a -> m WebView
-- | Creates a new WebView sharing the same web process with
-- webView. This method doesn't have any effect when
-- ProcessModelSharedSecondaryProcess process model is used,
-- because a single web process is shared for all the web views in the
-- same WebContext. When using
-- ProcessModelMultipleSecondaryProcesses process model, this
-- method should always be used when creating the WebView in the
-- WebView::create signal. You can also use this
-- method to implement other process models based on
-- ProcessModelMultipleSecondaryProcesses, like for example,
-- sharing the same web process for all the views in the same security
-- domain.
--
-- The newly created WebView will also have the same
-- UserContentManager and Settings as
-- webView.
webViewNewWithRelatedView :: (HasCallStack, MonadIO m, IsWebView a) => a -> m Widget
-- | Creates a new WebView with the given Settings. See also
-- webViewNewWithContext, and
-- webViewNewWithUserContentManager.
webViewNewWithSettings :: (HasCallStack, MonadIO m, IsSettings a) => a -> m WebView
-- | Creates a new WebView with the given UserContentManager.
-- The content loaded in the view may be affected by the content injected
-- in the view by the user content manager.
webViewNewWithUserContentManager :: (HasCallStack, MonadIO m, IsUserContentManager a) => a -> m WebView
-- | Reloads the current contents of webView. See also
-- webViewReloadBypassCache.
webViewReload :: (HasCallStack, MonadIO m, IsWebView a) => a -> m ()
-- | Reloads the current contents of webView without using
-- any cached data.
webViewReloadBypassCache :: (HasCallStack, MonadIO m, IsWebView a) => a -> m ()
-- | Restore the webView session state from
-- state
webViewRestoreSessionState :: (HasCallStack, MonadIO m, IsWebView a) => a -> WebViewSessionState -> m ()
-- | Asynchronously run script in the context of the
-- current page in webView. If
-- WebKitSettings:enable-javascript is FALSE, this method will do
-- nothing.
--
-- When the operation is finished, callback will be
-- called. You can then call webViewRunJavascriptFinish to get the
-- result of the operation.
webViewRunJavascript :: (HasCallStack, MonadIO m, IsWebView a, IsCancellable b) => a -> Text -> Maybe (b) -> Maybe (AsyncReadyCallback) -> m ()
-- | Finish an asynchronous operation started with
-- webViewRunJavascript.
--
-- This is an example of using webViewRunJavascript with a script
-- returning a string:
--
-- <informalexample><programlisting> static void
-- web_view_javascript_finished (GObject *object, GAsyncResult *result,
-- gpointer user_data) { WebKitJavascriptResult *js_result; JSValueRef
-- value; JSGlobalContextRef context; GError *error = NULL;
--
-- js_result = webkit_web_view_run_javascript_finish (WEBKIT_WEB_VIEW
-- (object), result, &error); if (!js_result) { g_warning ("Error
-- running javascript: s", error->message);
-- g_error_free (error); return; }
--
-- context = webkit_javascript_result_get_global_context (js_result);
-- value = webkit_javascript_result_get_value (js_result); if
-- (JSValueIsString (context, value)) { JSStringRef js_str_value; gchar
-- *str_value; gsize str_length;
--
-- js_str_value = JSValueToStringCopy (context, value, NULL); str_length
-- = JSStringGetMaximumUTF8CStringSize (js_str_value); str_value = (gchar
-- *)g_malloc (str_length); JSStringGetUTF8CString (js_str_value,
-- str_value, str_length); JSStringRelease (js_str_value); g_print
-- ("Script result: s\n", str_value); g_free (str_value);
-- } else { g_warning ("Error running javascript: unexpected return
-- value"); } webkit_javascript_result_unref (js_result); }
--
-- static void web_view_get_link_url (WebKitWebView *web_view, const
-- gchar *link_id) { gchar *script;
--
-- script = g_strdup_printf
-- ("window.document.getElementById('s').href;",
-- link_id); webkit_web_view_run_javascript (web_view, script, NULL,
-- web_view_javascript_finished, NULL); g_free (script); }
-- </programlisting></informalexample>
webViewRunJavascriptFinish :: (HasCallStack, MonadIO m, IsWebView a, IsAsyncResult b) => a -> b -> m JavascriptResult
-- | Asynchronously run the script from resource in the
-- context of the current page in webView.
--
-- When the operation is finished, callback will be
-- called. You can then call
-- webViewRunJavascriptFromGresourceFinish to get the result of
-- the operation.
webViewRunJavascriptFromGresource :: (HasCallStack, MonadIO m, IsWebView a, IsCancellable b) => a -> Text -> Maybe (b) -> Maybe (AsyncReadyCallback) -> m ()
-- | Finish an asynchronous operation started with
-- webViewRunJavascriptFromGresource.
--
-- Check webViewRunJavascriptFinish for a usage example.
webViewRunJavascriptFromGresourceFinish :: (HasCallStack, MonadIO m, IsWebView a, IsAsyncResult b) => a -> b -> m JavascriptResult
-- | Asynchronously save the current web page associated to the
-- WebView into a self-contained format using the mode specified
-- in saveMode.
--
-- When the operation is finished, callback will be
-- called. You can then call webViewSaveFinish to get the result
-- of the operation.
webViewSave :: (HasCallStack, MonadIO m, IsWebView a, IsCancellable b) => a -> SaveMode -> Maybe (b) -> Maybe (AsyncReadyCallback) -> m ()
-- | Finish an asynchronous operation started with webViewSave.
webViewSaveFinish :: (HasCallStack, MonadIO m, IsWebView a, IsAsyncResult b) => a -> b -> m InputStream
-- | Asynchronously save the current web page associated to the
-- WebView into a self-contained format using the mode specified
-- in saveMode and writing it to file.
--
-- When the operation is finished, callback will be
-- called. You can then call webViewSaveToFileFinish to get the
-- result of the operation.
webViewSaveToFile :: (HasCallStack, MonadIO m, IsWebView a, IsFile b, IsCancellable c) => a -> b -> SaveMode -> Maybe (c) -> Maybe (AsyncReadyCallback) -> m ()
-- | Finish an asynchronous operation started with
-- webViewSaveToFile.
webViewSaveToFileFinish :: (HasCallStack, MonadIO m, IsWebView a, IsAsyncResult b) => a -> b -> m ()
-- | Sets the color that will be used to draw the webView
-- background before the actual contents are rendered. Note that if the
-- web page loaded in webView specifies a background
-- color, it will take precedence over the rgba color. By
-- default the webView background color is opaque white.
-- Note that the parent window must have a RGBA visual and
-- Widget:app-paintable property set to
-- True for backgrounds colors to work.
--
-- <informalexample><programlisting> static void
-- browser_window_set_background_color (BrowserWindow *window, const
-- GdkRGBA *rgba) { WebKitWebView *web_view; GdkScreen *screen =
-- gtk_window_get_screen (GTK_WINDOW (window)); GdkVisual *rgba_visual =
-- gdk_screen_get_rgba_visual (screen);
--
-- if (!rgba_visual) return;
--
-- gtk_widget_set_visual (GTK_WIDGET (window), rgba_visual);
-- gtk_widget_set_app_paintable (GTK_WIDGET (window), TRUE);
--
-- web_view = browser_window_get_web_view (window);
-- webkit_web_view_set_background_color (web_view, rgba); }
-- </programlisting></informalexample>
webViewSetBackgroundColor :: (HasCallStack, MonadIO m, IsWebView a) => a -> RGBA -> m ()
-- | Sets the current custom character encoding override of
-- webView. The custom character encoding will override
-- any text encoding detected via HTTP headers or META tags. Calling this
-- method will stop any current load operation and reload the current
-- page. Setting the custom character encoding to Nothing removes
-- the character encoding override.
webViewSetCustomCharset :: (HasCallStack, MonadIO m, IsWebView a) => a -> Maybe (Text) -> m ()
-- | Sets whether the user is allowed to edit the HTML document.
--
-- If editable is True, webView
-- allows the user to edit the HTML document. If editable
-- is False, an element in webView's document can
-- only be edited if the CONTENTEDITABLE attribute has been set on the
-- element or one of its parent elements. By default a WebView is
-- not editable.
--
-- Normally, a HTML document is not editable unless the elements within
-- the document are editable. This function provides a way to make the
-- contents of a WebView editable without altering the document or
-- DOM structure.
webViewSetEditable :: (HasCallStack, MonadIO m, IsWebView a) => a -> Bool -> m ()
-- | Sets the Settings to be applied to webView. The
-- existing Settings of webView will be replaced
-- by settings. New settings are applied immediately on
-- webView. The same Settings object can be shared
-- by multiple WebView<!-- -->s.
webViewSetSettings :: (HasCallStack, MonadIO m, IsWebView a, IsSettings b) => a -> b -> m ()
-- | Set the zoom level of webView, i.e. the factor by
-- which the view contents are scaled with respect to their original
-- size.
webViewSetZoomLevel :: (HasCallStack, MonadIO m, IsWebView a) => a -> Double -> m ()
-- | Stops any ongoing loading operation in webView. This
-- method does nothing if no content is being loaded. If there is a
-- loading operation in progress, it will be cancelled and
-- WebView::load-failed signal will be emitted
-- with NetworkErrorCancelled error.
webViewStopLoading :: (HasCallStack, MonadIO m, IsWebView a) => a -> m ()
-- | Tries to close the webView. This will fire the
-- onbeforeunload event to ask the user for confirmation to close the
-- page. If there isn't an onbeforeunload event handler or the user
-- confirms to close the page, the WebView::close
-- signal is emitted, otherwise nothing happens.
webViewTryClose :: (HasCallStack, MonadIO m, IsWebView a) => a -> m ()
constructWebViewEditable :: (IsWebView o) => Bool -> IO (GValueConstruct o)
getWebViewEditable :: (MonadIO m, IsWebView o) => o -> m Bool
setWebViewEditable :: (MonadIO m, IsWebView o) => o -> Bool -> m ()
getWebViewEstimatedLoadProgress :: (MonadIO m, IsWebView o) => o -> m Double
getWebViewFavicon :: (MonadIO m, IsWebView o) => o -> m (Ptr ())
constructWebViewIsEphemeral :: (IsWebView o) => Bool -> IO (GValueConstruct o)
getWebViewIsEphemeral :: (MonadIO m, IsWebView o) => o -> m Bool
getWebViewIsLoading :: (MonadIO m, IsWebView o) => o -> m Bool
getWebViewIsPlayingAudio :: (MonadIO m, IsWebView o) => o -> m Bool
constructWebViewRelatedView :: (IsWebView o, IsWebView a) => a -> IO (GValueConstruct o)
constructWebViewSettings :: (IsWebView o, IsSettings a) => a -> IO (GValueConstruct o)
setWebViewSettings :: (MonadIO m, IsWebView o, IsSettings a) => o -> a -> m ()
getWebViewTitle :: (MonadIO m, IsWebView o) => o -> m Text
getWebViewUri :: (MonadIO m, IsWebView o) => o -> m (Maybe Text)
constructWebViewUserContentManager :: (IsWebView o, IsUserContentManager a) => a -> IO (GValueConstruct o)
getWebViewUserContentManager :: (MonadIO m, IsWebView o) => o -> m UserContentManager
constructWebViewWebContext :: (IsWebView o, IsWebContext a) => a -> IO (GValueConstruct o)
getWebViewWebContext :: (MonadIO m, IsWebView o) => o -> m (Maybe WebContext)
constructWebViewZoomLevel :: (IsWebView o) => Double -> IO (GValueConstruct o)
getWebViewZoomLevel :: (MonadIO m, IsWebView o) => o -> m Double
setWebViewZoomLevel :: (MonadIO m, IsWebView o) => o -> Double -> m ()
type C_WebViewAuthenticateCallback = Ptr () -> Ptr AuthenticationRequest -> Ptr () -> IO CInt
type WebViewAuthenticateCallback = AuthenticationRequest -> IO Bool
afterWebViewAuthenticate :: (IsWebView a, MonadIO m) => a -> WebViewAuthenticateCallback -> m SignalHandlerId
genClosure_WebViewAuthenticate :: WebViewAuthenticateCallback -> IO Closure
mk_WebViewAuthenticateCallback :: C_WebViewAuthenticateCallback -> IO (FunPtr C_WebViewAuthenticateCallback)
noWebViewAuthenticateCallback :: Maybe WebViewAuthenticateCallback
onWebViewAuthenticate :: (IsWebView a, MonadIO m) => a -> WebViewAuthenticateCallback -> m SignalHandlerId
wrap_WebViewAuthenticateCallback :: WebViewAuthenticateCallback -> Ptr () -> Ptr AuthenticationRequest -> Ptr () -> IO CInt
type C_WebViewCloseCallback = Ptr () -> Ptr () -> IO ()
type WebViewCloseCallback = IO ()
afterWebViewClose :: (IsWebView a, MonadIO m) => a -> WebViewCloseCallback -> m SignalHandlerId
genClosure_WebViewClose :: WebViewCloseCallback -> IO Closure
mk_WebViewCloseCallback :: C_WebViewCloseCallback -> IO (FunPtr C_WebViewCloseCallback)
noWebViewCloseCallback :: Maybe WebViewCloseCallback
onWebViewClose :: (IsWebView a, MonadIO m) => a -> WebViewCloseCallback -> m SignalHandlerId
wrap_WebViewCloseCallback :: WebViewCloseCallback -> Ptr () -> Ptr () -> IO ()
type C_WebViewContextMenuCallback = Ptr () -> Ptr ContextMenu -> Ptr Event -> Ptr HitTestResult -> Ptr () -> IO CInt
type WebViewContextMenuCallback = ContextMenu -> Event -> HitTestResult -> IO Bool
afterWebViewContextMenu :: (IsWebView a, MonadIO m) => a -> WebViewContextMenuCallback -> m SignalHandlerId
genClosure_WebViewContextMenu :: WebViewContextMenuCallback -> IO Closure
mk_WebViewContextMenuCallback :: C_WebViewContextMenuCallback -> IO (FunPtr C_WebViewContextMenuCallback)
noWebViewContextMenuCallback :: Maybe WebViewContextMenuCallback
onWebViewContextMenu :: (IsWebView a, MonadIO m) => a -> WebViewContextMenuCallback -> m SignalHandlerId
wrap_WebViewContextMenuCallback :: WebViewContextMenuCallback -> Ptr () -> Ptr ContextMenu -> Ptr Event -> Ptr HitTestResult -> Ptr () -> IO CInt
type C_WebViewContextMenuDismissedCallback = Ptr () -> Ptr () -> IO ()
type WebViewContextMenuDismissedCallback = IO ()
afterWebViewContextMenuDismissed :: (IsWebView a, MonadIO m) => a -> WebViewContextMenuDismissedCallback -> m SignalHandlerId
genClosure_WebViewContextMenuDismissed :: WebViewContextMenuDismissedCallback -> IO Closure
mk_WebViewContextMenuDismissedCallback :: C_WebViewContextMenuDismissedCallback -> IO (FunPtr C_WebViewContextMenuDismissedCallback)
noWebViewContextMenuDismissedCallback :: Maybe WebViewContextMenuDismissedCallback
onWebViewContextMenuDismissed :: (IsWebView a, MonadIO m) => a -> WebViewContextMenuDismissedCallback -> m SignalHandlerId
wrap_WebViewContextMenuDismissedCallback :: WebViewContextMenuDismissedCallback -> Ptr () -> Ptr () -> IO ()
type C_WebViewCreateCallback = Ptr () -> Ptr NavigationAction -> Ptr () -> IO (Ptr Widget)
type WebViewCreateCallback = NavigationAction -> IO Widget
afterWebViewCreate :: (IsWebView a, MonadIO m) => a -> WebViewCreateCallback -> m SignalHandlerId
genClosure_WebViewCreate :: WebViewCreateCallback -> IO Closure
mk_WebViewCreateCallback :: C_WebViewCreateCallback -> IO (FunPtr C_WebViewCreateCallback)
noWebViewCreateCallback :: Maybe WebViewCreateCallback
onWebViewCreate :: (IsWebView a, MonadIO m) => a -> WebViewCreateCallback -> m SignalHandlerId
wrap_WebViewCreateCallback :: WebViewCreateCallback -> Ptr () -> Ptr NavigationAction -> Ptr () -> IO (Ptr Widget)
type C_WebViewDecidePolicyCallback = Ptr () -> Ptr PolicyDecision -> CUInt -> Ptr () -> IO CInt
type WebViewDecidePolicyCallback = PolicyDecision -> PolicyDecisionType -> IO Bool
afterWebViewDecidePolicy :: (IsWebView a, MonadIO m) => a -> WebViewDecidePolicyCallback -> m SignalHandlerId
genClosure_WebViewDecidePolicy :: WebViewDecidePolicyCallback -> IO Closure
mk_WebViewDecidePolicyCallback :: C_WebViewDecidePolicyCallback -> IO (FunPtr C_WebViewDecidePolicyCallback)
noWebViewDecidePolicyCallback :: Maybe WebViewDecidePolicyCallback
onWebViewDecidePolicy :: (IsWebView a, MonadIO m) => a -> WebViewDecidePolicyCallback -> m SignalHandlerId
wrap_WebViewDecidePolicyCallback :: WebViewDecidePolicyCallback -> Ptr () -> Ptr PolicyDecision -> CUInt -> Ptr () -> IO CInt
type C_WebViewEnterFullscreenCallback = Ptr () -> Ptr () -> IO CInt
type WebViewEnterFullscreenCallback = IO Bool
afterWebViewEnterFullscreen :: (IsWebView a, MonadIO m) => a -> WebViewEnterFullscreenCallback -> m SignalHandlerId
genClosure_WebViewEnterFullscreen :: WebViewEnterFullscreenCallback -> IO Closure
mk_WebViewEnterFullscreenCallback :: C_WebViewEnterFullscreenCallback -> IO (FunPtr C_WebViewEnterFullscreenCallback)
noWebViewEnterFullscreenCallback :: Maybe WebViewEnterFullscreenCallback
onWebViewEnterFullscreen :: (IsWebView a, MonadIO m) => a -> WebViewEnterFullscreenCallback -> m SignalHandlerId
wrap_WebViewEnterFullscreenCallback :: WebViewEnterFullscreenCallback -> Ptr () -> Ptr () -> IO CInt
type C_WebViewInsecureContentDetectedCallback = Ptr () -> CUInt -> Ptr () -> IO ()
type WebViewInsecureContentDetectedCallback = InsecureContentEvent -> IO ()
afterWebViewInsecureContentDetected :: (IsWebView a, MonadIO m) => a -> WebViewInsecureContentDetectedCallback -> m SignalHandlerId
genClosure_WebViewInsecureContentDetected :: WebViewInsecureContentDetectedCallback -> IO Closure
mk_WebViewInsecureContentDetectedCallback :: C_WebViewInsecureContentDetectedCallback -> IO (FunPtr C_WebViewInsecureContentDetectedCallback)
noWebViewInsecureContentDetectedCallback :: Maybe WebViewInsecureContentDetectedCallback
onWebViewInsecureContentDetected :: (IsWebView a, MonadIO m) => a -> WebViewInsecureContentDetectedCallback -> m SignalHandlerId
wrap_WebViewInsecureContentDetectedCallback :: WebViewInsecureContentDetectedCallback -> Ptr () -> CUInt -> Ptr () -> IO ()
type C_WebViewLeaveFullscreenCallback = Ptr () -> Ptr () -> IO CInt
type WebViewLeaveFullscreenCallback = IO Bool
afterWebViewLeaveFullscreen :: (IsWebView a, MonadIO m) => a -> WebViewLeaveFullscreenCallback -> m SignalHandlerId
genClosure_WebViewLeaveFullscreen :: WebViewLeaveFullscreenCallback -> IO Closure
mk_WebViewLeaveFullscreenCallback :: C_WebViewLeaveFullscreenCallback -> IO (FunPtr C_WebViewLeaveFullscreenCallback)
noWebViewLeaveFullscreenCallback :: Maybe WebViewLeaveFullscreenCallback
onWebViewLeaveFullscreen :: (IsWebView a, MonadIO m) => a -> WebViewLeaveFullscreenCallback -> m SignalHandlerId
wrap_WebViewLeaveFullscreenCallback :: WebViewLeaveFullscreenCallback -> Ptr () -> Ptr () -> IO CInt
type C_WebViewLoadChangedCallback = Ptr () -> CUInt -> Ptr () -> IO ()
type WebViewLoadChangedCallback = LoadEvent -> IO ()
afterWebViewLoadChanged :: (IsWebView a, MonadIO m) => a -> WebViewLoadChangedCallback -> m SignalHandlerId
genClosure_WebViewLoadChanged :: WebViewLoadChangedCallback -> IO Closure
mk_WebViewLoadChangedCallback :: C_WebViewLoadChangedCallback -> IO (FunPtr C_WebViewLoadChangedCallback)
noWebViewLoadChangedCallback :: Maybe WebViewLoadChangedCallback
onWebViewLoadChanged :: (IsWebView a, MonadIO m) => a -> WebViewLoadChangedCallback -> m SignalHandlerId
wrap_WebViewLoadChangedCallback :: WebViewLoadChangedCallback -> Ptr () -> CUInt -> Ptr () -> IO ()
type C_WebViewLoadFailedCallback = Ptr () -> CUInt -> CString -> Ptr GError -> Ptr () -> IO CInt
type WebViewLoadFailedCallback = LoadEvent -> Text -> GError -> IO Bool
afterWebViewLoadFailed :: (IsWebView a, MonadIO m) => a -> WebViewLoadFailedCallback -> m SignalHandlerId
genClosure_WebViewLoadFailed :: WebViewLoadFailedCallback -> IO Closure
mk_WebViewLoadFailedCallback :: C_WebViewLoadFailedCallback -> IO (FunPtr C_WebViewLoadFailedCallback)
noWebViewLoadFailedCallback :: Maybe WebViewLoadFailedCallback
onWebViewLoadFailed :: (IsWebView a, MonadIO m) => a -> WebViewLoadFailedCallback -> m SignalHandlerId
wrap_WebViewLoadFailedCallback :: WebViewLoadFailedCallback -> Ptr () -> CUInt -> CString -> Ptr GError -> Ptr () -> IO CInt
type C_WebViewLoadFailedWithTlsErrorsCallback = Ptr () -> CString -> Ptr TlsCertificate -> CUInt -> Ptr () -> IO CInt
type WebViewLoadFailedWithTlsErrorsCallback = Text -> TlsCertificate -> [TlsCertificateFlags] -> IO Bool
afterWebViewLoadFailedWithTlsErrors :: (IsWebView a, MonadIO m) => a -> WebViewLoadFailedWithTlsErrorsCallback -> m SignalHandlerId
genClosure_WebViewLoadFailedWithTlsErrors :: WebViewLoadFailedWithTlsErrorsCallback -> IO Closure
mk_WebViewLoadFailedWithTlsErrorsCallback :: C_WebViewLoadFailedWithTlsErrorsCallback -> IO (FunPtr C_WebViewLoadFailedWithTlsErrorsCallback)
noWebViewLoadFailedWithTlsErrorsCallback :: Maybe WebViewLoadFailedWithTlsErrorsCallback
onWebViewLoadFailedWithTlsErrors :: (IsWebView a, MonadIO m) => a -> WebViewLoadFailedWithTlsErrorsCallback -> m SignalHandlerId
wrap_WebViewLoadFailedWithTlsErrorsCallback :: WebViewLoadFailedWithTlsErrorsCallback -> Ptr () -> CString -> Ptr TlsCertificate -> CUInt -> Ptr () -> IO CInt
type C_WebViewMouseTargetChangedCallback = Ptr () -> Ptr HitTestResult -> Word32 -> Ptr () -> IO ()
type WebViewMouseTargetChangedCallback = HitTestResult -> Word32 -> IO ()
afterWebViewMouseTargetChanged :: (IsWebView a, MonadIO m) => a -> WebViewMouseTargetChangedCallback -> m SignalHandlerId
genClosure_WebViewMouseTargetChanged :: WebViewMouseTargetChangedCallback -> IO Closure
mk_WebViewMouseTargetChangedCallback :: C_WebViewMouseTargetChangedCallback -> IO (FunPtr C_WebViewMouseTargetChangedCallback)
noWebViewMouseTargetChangedCallback :: Maybe WebViewMouseTargetChangedCallback
onWebViewMouseTargetChanged :: (IsWebView a, MonadIO m) => a -> WebViewMouseTargetChangedCallback -> m SignalHandlerId
wrap_WebViewMouseTargetChangedCallback :: WebViewMouseTargetChangedCallback -> Ptr () -> Ptr HitTestResult -> Word32 -> Ptr () -> IO ()
type C_WebViewPermissionRequestCallback = Ptr () -> Ptr PermissionRequest -> Ptr () -> IO CInt
type WebViewPermissionRequestCallback = PermissionRequest -> IO Bool
afterWebViewPermissionRequest :: (IsWebView a, MonadIO m) => a -> WebViewPermissionRequestCallback -> m SignalHandlerId
genClosure_WebViewPermissionRequest :: WebViewPermissionRequestCallback -> IO Closure
mk_WebViewPermissionRequestCallback :: C_WebViewPermissionRequestCallback -> IO (FunPtr C_WebViewPermissionRequestCallback)
noWebViewPermissionRequestCallback :: Maybe WebViewPermissionRequestCallback
onWebViewPermissionRequest :: (IsWebView a, MonadIO m) => a -> WebViewPermissionRequestCallback -> m SignalHandlerId
wrap_WebViewPermissionRequestCallback :: WebViewPermissionRequestCallback -> Ptr () -> Ptr PermissionRequest -> Ptr () -> IO CInt
type C_WebViewPrintCallback = Ptr () -> Ptr PrintOperation -> Ptr () -> IO CInt
type WebViewPrintCallback = PrintOperation -> IO Bool
afterWebViewPrint :: (IsWebView a, MonadIO m) => a -> WebViewPrintCallback -> m SignalHandlerId
genClosure_WebViewPrint :: WebViewPrintCallback -> IO Closure
mk_WebViewPrintCallback :: C_WebViewPrintCallback -> IO (FunPtr C_WebViewPrintCallback)
noWebViewPrintCallback :: Maybe WebViewPrintCallback
onWebViewPrint :: (IsWebView a, MonadIO m) => a -> WebViewPrintCallback -> m SignalHandlerId
wrap_WebViewPrintCallback :: WebViewPrintCallback -> Ptr () -> Ptr PrintOperation -> Ptr () -> IO CInt
type C_WebViewReadyToShowCallback = Ptr () -> Ptr () -> IO ()
type WebViewReadyToShowCallback = IO ()
afterWebViewReadyToShow :: (IsWebView a, MonadIO m) => a -> WebViewReadyToShowCallback -> m SignalHandlerId
genClosure_WebViewReadyToShow :: WebViewReadyToShowCallback -> IO Closure
mk_WebViewReadyToShowCallback :: C_WebViewReadyToShowCallback -> IO (FunPtr C_WebViewReadyToShowCallback)
noWebViewReadyToShowCallback :: Maybe WebViewReadyToShowCallback
onWebViewReadyToShow :: (IsWebView a, MonadIO m) => a -> WebViewReadyToShowCallback -> m SignalHandlerId
wrap_WebViewReadyToShowCallback :: WebViewReadyToShowCallback -> Ptr () -> Ptr () -> IO ()
type C_WebViewResourceLoadStartedCallback = Ptr () -> Ptr WebResource -> Ptr URIRequest -> Ptr () -> IO ()
type WebViewResourceLoadStartedCallback = WebResource -> URIRequest -> IO ()
afterWebViewResourceLoadStarted :: (IsWebView a, MonadIO m) => a -> WebViewResourceLoadStartedCallback -> m SignalHandlerId
genClosure_WebViewResourceLoadStarted :: WebViewResourceLoadStartedCallback -> IO Closure
mk_WebViewResourceLoadStartedCallback :: C_WebViewResourceLoadStartedCallback -> IO (FunPtr C_WebViewResourceLoadStartedCallback)
noWebViewResourceLoadStartedCallback :: Maybe WebViewResourceLoadStartedCallback
onWebViewResourceLoadStarted :: (IsWebView a, MonadIO m) => a -> WebViewResourceLoadStartedCallback -> m SignalHandlerId
wrap_WebViewResourceLoadStartedCallback :: WebViewResourceLoadStartedCallback -> Ptr () -> Ptr WebResource -> Ptr URIRequest -> Ptr () -> IO ()
type C_WebViewRunAsModalCallback = Ptr () -> Ptr () -> IO ()
type WebViewRunAsModalCallback = IO ()
afterWebViewRunAsModal :: (IsWebView a, MonadIO m) => a -> WebViewRunAsModalCallback -> m SignalHandlerId
genClosure_WebViewRunAsModal :: WebViewRunAsModalCallback -> IO Closure
mk_WebViewRunAsModalCallback :: C_WebViewRunAsModalCallback -> IO (FunPtr C_WebViewRunAsModalCallback)
noWebViewRunAsModalCallback :: Maybe WebViewRunAsModalCallback
onWebViewRunAsModal :: (IsWebView a, MonadIO m) => a -> WebViewRunAsModalCallback -> m SignalHandlerId
wrap_WebViewRunAsModalCallback :: WebViewRunAsModalCallback -> Ptr () -> Ptr () -> IO ()
type C_WebViewRunColorChooserCallback = Ptr () -> Ptr ColorChooserRequest -> Ptr () -> IO CInt
type WebViewRunColorChooserCallback = ColorChooserRequest -> IO Bool
afterWebViewRunColorChooser :: (IsWebView a, MonadIO m) => a -> WebViewRunColorChooserCallback -> m SignalHandlerId
genClosure_WebViewRunColorChooser :: WebViewRunColorChooserCallback -> IO Closure
mk_WebViewRunColorChooserCallback :: C_WebViewRunColorChooserCallback -> IO (FunPtr C_WebViewRunColorChooserCallback)
noWebViewRunColorChooserCallback :: Maybe WebViewRunColorChooserCallback
onWebViewRunColorChooser :: (IsWebView a, MonadIO m) => a -> WebViewRunColorChooserCallback -> m SignalHandlerId
wrap_WebViewRunColorChooserCallback :: WebViewRunColorChooserCallback -> Ptr () -> Ptr ColorChooserRequest -> Ptr () -> IO CInt
type C_WebViewRunFileChooserCallback = Ptr () -> Ptr FileChooserRequest -> Ptr () -> IO CInt
type WebViewRunFileChooserCallback = FileChooserRequest -> IO Bool
afterWebViewRunFileChooser :: (IsWebView a, MonadIO m) => a -> WebViewRunFileChooserCallback -> m SignalHandlerId
genClosure_WebViewRunFileChooser :: WebViewRunFileChooserCallback -> IO Closure
mk_WebViewRunFileChooserCallback :: C_WebViewRunFileChooserCallback -> IO (FunPtr C_WebViewRunFileChooserCallback)
noWebViewRunFileChooserCallback :: Maybe WebViewRunFileChooserCallback
onWebViewRunFileChooser :: (IsWebView a, MonadIO m) => a -> WebViewRunFileChooserCallback -> m SignalHandlerId
wrap_WebViewRunFileChooserCallback :: WebViewRunFileChooserCallback -> Ptr () -> Ptr FileChooserRequest -> Ptr () -> IO CInt
type C_WebViewScriptDialogCallback = Ptr () -> Ptr ScriptDialog -> Ptr () -> IO CInt
type WebViewScriptDialogCallback = ScriptDialog -> IO Bool
afterWebViewScriptDialog :: (IsWebView a, MonadIO m) => a -> WebViewScriptDialogCallback -> m SignalHandlerId
genClosure_WebViewScriptDialog :: WebViewScriptDialogCallback -> IO Closure
mk_WebViewScriptDialogCallback :: C_WebViewScriptDialogCallback -> IO (FunPtr C_WebViewScriptDialogCallback)
noWebViewScriptDialogCallback :: Maybe WebViewScriptDialogCallback
onWebViewScriptDialog :: (IsWebView a, MonadIO m) => a -> WebViewScriptDialogCallback -> m SignalHandlerId
wrap_WebViewScriptDialogCallback :: WebViewScriptDialogCallback -> Ptr () -> Ptr ScriptDialog -> Ptr () -> IO CInt
type C_WebViewShowNotificationCallback = Ptr () -> Ptr Notification -> Ptr () -> IO CInt
type WebViewShowNotificationCallback = Notification -> IO Bool
afterWebViewShowNotification :: (IsWebView a, MonadIO m) => a -> WebViewShowNotificationCallback -> m SignalHandlerId
genClosure_WebViewShowNotification :: WebViewShowNotificationCallback -> IO Closure
mk_WebViewShowNotificationCallback :: C_WebViewShowNotificationCallback -> IO (FunPtr C_WebViewShowNotificationCallback)
noWebViewShowNotificationCallback :: Maybe WebViewShowNotificationCallback
onWebViewShowNotification :: (IsWebView a, MonadIO m) => a -> WebViewShowNotificationCallback -> m SignalHandlerId
wrap_WebViewShowNotificationCallback :: WebViewShowNotificationCallback -> Ptr () -> Ptr Notification -> Ptr () -> IO CInt
type C_WebViewSubmitFormCallback = Ptr () -> Ptr FormSubmissionRequest -> Ptr () -> IO ()
type WebViewSubmitFormCallback = FormSubmissionRequest -> IO ()
afterWebViewSubmitForm :: (IsWebView a, MonadIO m) => a -> WebViewSubmitFormCallback -> m SignalHandlerId
genClosure_WebViewSubmitForm :: WebViewSubmitFormCallback -> IO Closure
mk_WebViewSubmitFormCallback :: C_WebViewSubmitFormCallback -> IO (FunPtr C_WebViewSubmitFormCallback)
noWebViewSubmitFormCallback :: Maybe WebViewSubmitFormCallback
onWebViewSubmitForm :: (IsWebView a, MonadIO m) => a -> WebViewSubmitFormCallback -> m SignalHandlerId
wrap_WebViewSubmitFormCallback :: WebViewSubmitFormCallback -> Ptr () -> Ptr FormSubmissionRequest -> Ptr () -> IO ()
type C_WebViewWebProcessCrashedCallback = Ptr () -> Ptr () -> IO CInt
type WebViewWebProcessCrashedCallback = IO Bool
afterWebViewWebProcessCrashed :: (IsWebView a, MonadIO m) => a -> WebViewWebProcessCrashedCallback -> m SignalHandlerId
genClosure_WebViewWebProcessCrashed :: WebViewWebProcessCrashedCallback -> IO Closure
mk_WebViewWebProcessCrashedCallback :: C_WebViewWebProcessCrashedCallback -> IO (FunPtr C_WebViewWebProcessCrashedCallback)
noWebViewWebProcessCrashedCallback :: Maybe WebViewWebProcessCrashedCallback
onWebViewWebProcessCrashed :: (IsWebView a, MonadIO m) => a -> WebViewWebProcessCrashedCallback -> m SignalHandlerId
wrap_WebViewWebProcessCrashedCallback :: WebViewWebProcessCrashedCallback -> Ptr () -> Ptr () -> IO CInt
instance Data.GI.Base.BasicTypes.GObject GI.WebKit2.Objects.WebView.WebView
instance (Data.GI.Base.BasicTypes.GObject a, Data.GI.Base.Overloading.UnknownAncestorError GI.WebKit2.Objects.WebView.WebView a) => GI.WebKit2.Objects.WebView.IsWebView a
instance GI.WebKit2.Objects.WebView.IsWebView GI.WebKit2.Objects.WebView.WebView
instance GI.WebKit2.Objects.WebViewBase.IsWebViewBase GI.WebKit2.Objects.WebView.WebView
instance GI.Gtk.Objects.Container.IsContainer GI.WebKit2.Objects.WebView.WebView
instance GI.Gtk.Objects.Widget.IsWidget GI.WebKit2.Objects.WebView.WebView
instance GI.GObject.Objects.Object.IsObject GI.WebKit2.Objects.WebView.WebView
instance GI.Atk.Interfaces.ImplementorIface.IsImplementorIface GI.WebKit2.Objects.WebView.WebView
instance GI.Gtk.Interfaces.Buildable.IsBuildable GI.WebKit2.Objects.WebView.WebView
module GI.WebKit2.Structs.Credential
newtype Credential
Credential :: (ManagedPtr Credential) -> Credential
noCredential :: Maybe Credential
-- | Make a copy of the Credential.
credentialCopy :: (HasCallStack, MonadIO m) => Credential -> m Credential
-- | Free the Credential.
credentialFree :: (HasCallStack, MonadIO m) => Credential -> m ()
-- | Get the password currently held by this Credential.
credentialGetPassword :: (HasCallStack, MonadIO m) => Credential -> m Text
-- | Get the persistence mode currently held by this Credential.
credentialGetPersistence :: (HasCallStack, MonadIO m) => Credential -> m CredentialPersistence
-- | Get the username currently held by this Credential.
credentialGetUsername :: (HasCallStack, MonadIO m) => Credential -> m Text
-- | Determine whether this credential has a password stored.
credentialHasPassword :: (HasCallStack, MonadIO m) => Credential -> m Bool
-- | Create a new credential from the provided username, password and
-- persistence mode.
credentialNew :: (HasCallStack, MonadIO m) => Text -> Text -> CredentialPersistence -> m Credential
instance Data.GI.Base.BasicTypes.BoxedObject GI.WebKit2.Structs.Credential.Credential
module GI.WebKit2.Structs.NavigationAction
newtype NavigationAction
NavigationAction :: (ManagedPtr NavigationAction) -> NavigationAction
noNavigationAction :: Maybe NavigationAction
-- | Make a copy of navigation.
navigationActionCopy :: (HasCallStack, MonadIO m) => NavigationAction -> m NavigationAction
-- | Free the NavigationAction
navigationActionFree :: (HasCallStack, MonadIO m) => NavigationAction -> m ()
-- | Return a bitmask of ModifierType values describing the modifier
-- keys that were in effect when the navigation was requested
navigationActionGetModifiers :: (HasCallStack, MonadIO m) => NavigationAction -> m Word32
-- | Return the number of the mouse button that triggered the navigation,
-- or 0 if the navigation was not started by a mouse event.
navigationActionGetMouseButton :: (HasCallStack, MonadIO m) => NavigationAction -> m Word32
-- | Return the type of action that triggered the navigation.
navigationActionGetNavigationType :: (HasCallStack, MonadIO m) => NavigationAction -> m NavigationType
-- | Return the navigation URIRequest
navigationActionGetRequest :: (HasCallStack, MonadIO m) => NavigationAction -> m URIRequest
-- | Return whether the navigation was triggered by a user gesture like a
-- mouse click.
navigationActionIsUserGesture :: (HasCallStack, MonadIO m) => NavigationAction -> m Bool
instance Data.GI.Base.BasicTypes.BoxedObject GI.WebKit2.Structs.NavigationAction.NavigationAction
module GI.WebKit2.Structs.ScriptDialog
newtype ScriptDialog
ScriptDialog :: (ManagedPtr ScriptDialog) -> ScriptDialog
noScriptDialog :: Maybe ScriptDialog
-- | This method is used for ScriptDialogTypeConfirm and
-- ScriptDialogTypeBeforeUnloadConfirm dialogs when
-- WebView::script-dialog signal is emitted to set
-- whether the user confirmed the dialog or not. The default
-- implementation of WebView::script-dialog signal
-- sets True when the OK or Stay buttons are clicked and
-- False otherwise. It's an error to use this method with a
-- ScriptDialog that is not of type ScriptDialogTypeConfirm
-- or ScriptDialogTypeBeforeUnloadConfirm
scriptDialogConfirmSetConfirmed :: (HasCallStack, MonadIO m) => ScriptDialog -> Bool -> m ()
-- | Get the dialog type of a ScriptDialog.
scriptDialogGetDialogType :: (HasCallStack, MonadIO m) => ScriptDialog -> m ScriptDialogType
-- | Get the message of a ScriptDialog.
scriptDialogGetMessage :: (HasCallStack, MonadIO m) => ScriptDialog -> m Text
-- | Get the default text of a ScriptDialog of type
-- ScriptDialogTypePrompt. It's an error to use this method with a
-- ScriptDialog that is not of type ScriptDialogTypePrompt.
scriptDialogPromptGetDefaultText :: (HasCallStack, MonadIO m) => ScriptDialog -> m Text
-- | This method is used for ScriptDialogTypePrompt dialogs when
-- WebView::script-dialog signal is emitted to set
-- the text entered by the user. The default implementation of
-- WebView::script-dialog signal sets the text of
-- the entry form when OK button is clicked, otherwise Nothing is
-- set. It's an error to use this method with a ScriptDialog that
-- is not of type ScriptDialogTypePrompt.
scriptDialogPromptSetText :: (HasCallStack, MonadIO m) => ScriptDialog -> Text -> m ()
instance Data.GI.Base.BasicTypes.BoxedObject GI.WebKit2.Structs.ScriptDialog.ScriptDialog
module GI.WebKit2.Structs.UserScript
newtype UserScript
UserScript :: (ManagedPtr UserScript) -> UserScript
noUserScript :: Maybe UserScript
-- | Creates a new user script. Scripts can be applied to some URIs only by
-- passing non-null values for whitelist or
-- blacklist. Passing a Nothing whitelist implies
-- that all URIs are on the whitelist. The script is applied if an URI
-- matches the whitelist and not the blacklist. URI patterns must be of
-- the form [protocol]://[host]/[path], where the *host* and
-- *path* components can contain the wildcard character (*) to
-- represent zero or more other characters.
userScriptNew :: (HasCallStack, MonadIO m) => Text -> UserContentInjectedFrames -> UserScriptInjectionTime -> Maybe ([Text]) -> Maybe ([Text]) -> m UserScript
-- | Atomically increments the reference count of
-- userScript by one. This function is MT-safe and may be
-- called from any thread.
userScriptRef :: (HasCallStack, MonadIO m) => UserScript -> m UserScript
-- | Atomically decrements the reference count of
-- userScript by one. If the reference count drops to 0,
-- all memory allocated by UserScript is released. This function
-- is MT-safe and may be called from any thread.
userScriptUnref :: (HasCallStack, MonadIO m) => UserScript -> m ()
instance Data.GI.Base.BasicTypes.BoxedObject GI.WebKit2.Structs.UserScript.UserScript
module GI.WebKit2.Structs.UserStyleSheet
newtype UserStyleSheet
UserStyleSheet :: (ManagedPtr UserStyleSheet) -> UserStyleSheet
noUserStyleSheet :: Maybe UserStyleSheet
-- | Creates a new user style sheet. Style sheets can be applied to some
-- URIs only by passing non-null values for whitelist or
-- blacklist. Passing a Nothing whitelist implies
-- that all URIs are on the whitelist. The style sheet is applied if an
-- URI matches the whitelist and not the blacklist. URI patterns must be
-- of the form [protocol]://[host]/[path], where the *host* and
-- *path* components can contain the wildcard character (*) to
-- represent zero or more other characters.
userStyleSheetNew :: (HasCallStack, MonadIO m) => Text -> UserContentInjectedFrames -> UserStyleLevel -> Maybe ([Text]) -> Maybe ([Text]) -> m UserStyleSheet
-- | Atomically increments the reference count of
-- userStyleSheet by one. This function is MT-safe and
-- may be called from any thread.
userStyleSheetRef :: (HasCallStack, MonadIO m) => UserStyleSheet -> m UserStyleSheet
-- | Atomically decrements the reference count of
-- userStyleSheet by one. If the reference count drops to
-- 0, all memory allocated by UserStyleSheet is released. This
-- function is MT-safe and may be called from any thread.
userStyleSheetUnref :: (HasCallStack, MonadIO m) => UserStyleSheet -> m ()
instance Data.GI.Base.BasicTypes.BoxedObject GI.WebKit2.Structs.UserStyleSheet.UserStyleSheet
module GI.WebKit2.Structs
module GI.WebKit2.Constants
-- | Like getMinorVersion, but from the headers used at application
-- compile time, rather than from the library linked against at
-- application run time.
-- | Like getMicroVersion, but from the headers used at application
-- compile time, rather than from the library linked against at
-- application run time.
-- | Like getMajorVersion, but from the headers used at application
-- compile time, rather than from the library linked against at
-- application run time.
-- | The undo command. Undoes the last editing command in a WebView.
-- You can check whether it's possible to execute the command with
-- webViewCanExecuteEditingCommand. It's only possible to undo a
-- command after a previously executed editing operation.
-- | The select all command. Selects all the content of the current text
-- field in a WebView. It is always possible to select all text,
-- no matter whether the WebView content is editable or not. You
-- can still check it with webViewCanExecuteEditingCommand.
-- | The redo command. Redoes a previously undone editing command in a
-- WebView. You can check whether it's possible to execute the
-- command with webViewCanExecuteEditingCommand. It's only
-- possible to redo a command when it has been previously undone.
-- | The paste clipboard command. Pastes the contents of the clipboard to a
-- WebView. You can check whether it's possible to execute the
-- command with webViewCanExecuteEditingCommand. In general it's
-- possible to paste from the clipboard when the WebView content
-- is editable and clipboard is not empty.
-- | The insert image command. Creates an image element that is inserted at
-- the current cursor position. It receives an URI as argument, that is
-- used as the image source. This command should be executed with
-- webViewExecuteEditingCommandWithArgument.
-- | The cut clipboard command. Copies the current selection inside a
-- WebView to the clipboard and deletes the selected content. You
-- can check whether it's possible to execute the command with
-- webViewCanExecuteEditingCommand. In general it's possible to
-- cut to the clipboard when the WebView content is editable and
-- there is an active selection.
-- | The create link command. Creates a link element that is inserted at
-- the current cursor position. If there's a selection, the selected text
-- will be used as the link text, otherwise the URL itself will be used.
-- It receives the link URL as argument. This command should be executed
-- with webViewExecuteEditingCommandWithArgument
-- | The copy clipboard command. Copies the current selection inside a
-- WebView to the clipboard. You can check whether it's possible
-- to execute the command with webViewCanExecuteEditingCommand. In
-- general it's possible to copy to the clipboard when there is an active
-- selection inside the WebView.
module GI.WebKit2.Callbacks
type C_URISchemeRequestCallback = Ptr URISchemeRequest -> Ptr () -> IO ()
type URISchemeRequestCallback = URISchemeRequest -> IO ()
type URISchemeRequestCallback_WithClosures = URISchemeRequest -> Ptr () -> IO ()
drop_closures_URISchemeRequestCallback :: URISchemeRequestCallback -> URISchemeRequestCallback_WithClosures
dynamic_URISchemeRequestCallback :: (HasCallStack, MonadIO m, IsURISchemeRequest a) => FunPtr C_URISchemeRequestCallback -> a -> Ptr () -> m ()
genClosure_URISchemeRequestCallback :: URISchemeRequestCallback -> IO Closure
mk_URISchemeRequestCallback :: C_URISchemeRequestCallback -> IO (FunPtr C_URISchemeRequestCallback)
noURISchemeRequestCallback :: Maybe URISchemeRequestCallback
noURISchemeRequestCallback_WithClosures :: Maybe URISchemeRequestCallback_WithClosures
wrap_URISchemeRequestCallback :: Maybe (Ptr (FunPtr C_URISchemeRequestCallback)) -> URISchemeRequestCallback_WithClosures -> Ptr URISchemeRequest -> Ptr () -> IO ()
module GI.WebKit2.Objects.WebContext
newtype WebContext
WebContext :: (ManagedPtr WebContext) -> WebContext
class GObject o => IsWebContext o
toWebContext :: (MonadIO m, IsWebContext o) => o -> m WebContext
noWebContext :: Maybe WebContext
-- | Ignore further TLS errors on the host for the
-- certificate present in info.
webContextAllowTlsCertificateForHost :: (HasCallStack, MonadIO m, IsWebContext a, IsTlsCertificate b) => a -> b -> Text -> m ()
-- | Clears all resources currently cached. See also
-- webContextSetCacheModel.
webContextClearCache :: (HasCallStack, MonadIO m, IsWebContext a) => a -> m ()
-- | Requests downloading of the specified URI string. The download
-- operation will not be associated to any WebView, if you are
-- interested in starting a download from a particular WebView use
-- webViewDownloadUri instead.
webContextDownloadUri :: (HasCallStack, MonadIO m, IsWebContext a) => a -> Text -> m Download
-- | Returns the current cache model. For more information about this value
-- check the documentation of the function
-- webContextSetCacheModel.
webContextGetCacheModel :: (HasCallStack, MonadIO m, IsWebContext a) => a -> m CacheModel
-- | Get the CookieManager of the context's
-- WebsiteDataManager.
webContextGetCookieManager :: (HasCallStack, MonadIO m, IsWebContext a) => a -> m CookieManager
-- | Gets the default web context
webContextGetDefault :: (HasCallStack, MonadIO m) => m WebContext
-- | Get the FaviconDatabase associated with
-- context.
--
-- To initialize the database you need to call
-- webContextSetFaviconDatabaseDirectory.
webContextGetFaviconDatabase :: (HasCallStack, MonadIO m, IsWebContext a) => a -> m FaviconDatabase
-- | Get the directory path being used to store the favicons database for
-- context, or Nothing if
-- webContextSetFaviconDatabaseDirectory hasn't been called yet.
--
-- This function will always return the same path after having called
-- webContextSetFaviconDatabaseDirectory for the first time.
webContextGetFaviconDatabaseDirectory :: (HasCallStack, MonadIO m, IsWebContext a) => a -> m Text
-- | Asynchronously get the list of installed plugins.
--
-- When the operation is finished, callback will be
-- called. You can then call webContextGetPluginsFinish to get the
-- result of the operation.
webContextGetPlugins :: (HasCallStack, MonadIO m, IsWebContext a, IsCancellable b) => a -> Maybe (b) -> Maybe (AsyncReadyCallback) -> m ()
-- | Finish an asynchronous operation started with
-- webkit_web_context_get_plugins.
webContextGetPluginsFinish :: (HasCallStack, MonadIO m, IsWebContext a, IsAsyncResult b) => a -> b -> m [Plugin]
-- | Returns the current process model. For more information about this
-- value see webContextSetProcessModel.
webContextGetProcessModel :: (HasCallStack, MonadIO m, IsWebContext a) => a -> m ProcessModel
-- | Get the SecurityManager of context.
webContextGetSecurityManager :: (HasCallStack, MonadIO m, IsWebContext a) => a -> m SecurityManager
-- | Get whether spell checking feature is currently enabled.
webContextGetSpellCheckingEnabled :: (HasCallStack, MonadIO m, IsWebContext a) => a -> m Bool
-- | Get the the list of spell checking languages associated with
-- context, or Nothing if no languages have been
-- previously set.
--
-- See webContextSetSpellCheckingLanguages for more details on the
-- format of the languages in the list.
webContextGetSpellCheckingLanguages :: (HasCallStack, MonadIO m, IsWebContext a) => a -> m [Text]
-- | Get the TLS errors policy of context
webContextGetTlsErrorsPolicy :: (HasCallStack, MonadIO m, IsWebContext a) => a -> m TLSErrorsPolicy
-- | Gets the maximum number of web processes that can be created at the
-- same time for the context.
webContextGetWebProcessCountLimit :: (HasCallStack, MonadIO m, IsWebContext a) => a -> m Word32
-- | Get the WebsiteDataManager of context.
webContextGetWebsiteDataManager :: (HasCallStack, MonadIO m, IsWebContext a) => a -> m WebsiteDataManager
-- | Sets initial desktop notification permissions for the
-- context. allowedOrigins and
-- disallowedOrigins must each be List of
-- SecurityOrigin objects representing origins that will,
-- respectively, either always or never have permission to show desktop
-- notifications. No NotificationPermissionRequest will ever be
-- generated for any of the security origins represented in
-- allowedOrigins or disallowedOrigins.
-- This function is necessary because some webpages proactively check
-- whether they have permission to display notifications without ever
-- creating a permission request.
--
-- This function only affects web processes that have not already been
-- created. The best time to call it is when handling
-- WebContext::initialize-notification-permissions
-- so as to ensure that new web processes receive the most recent set of
-- permissions.
webContextInitializeNotificationPermissions :: (HasCallStack, MonadIO m, IsWebContext a) => a -> [SecurityOrigin] -> [SecurityOrigin] -> m ()
-- | Get whether a WebContext is ephemeral.
webContextIsEphemeral :: (HasCallStack, MonadIO m, IsWebContext a) => a -> m Bool
-- | Create a new WebContext
webContextNew :: (HasCallStack, MonadIO m) => m WebContext
-- | Create a new ephemeral WebContext. An ephemeral
-- WebContext is a context created with an ephemeral
-- WebsiteDataManager. This is just a convenient method to create
-- ephemeral contexts without having to create your own
-- WebsiteDataManager. All WebView<!-- -->s
-- associated with this context will also be ephemeral. Websites will not
-- store any data in the client storage. This is normally used to
-- implement private instances.
webContextNewEphemeral :: (HasCallStack, MonadIO m) => m WebContext
-- | Create a new WebContext with a WebsiteDataManager.
webContextNewWithWebsiteDataManager :: (HasCallStack, MonadIO m, IsWebsiteDataManager a) => a -> m WebContext
-- | Resolve the domain name of the given hostname in
-- advance, so that if a URI of hostname is requested the
-- load will be performed more quickly.
webContextPrefetchDns :: (HasCallStack, MonadIO m, IsWebContext a) => a -> Text -> m ()
-- | Register scheme in context, so that
-- when an URI request with scheme is made in the
-- WebContext, the URISchemeRequestCallback registered will
-- be called with a URISchemeRequest. It is possible to handle URI
-- scheme requests asynchronously, by calling objectRef on the
-- URISchemeRequest and calling uRISchemeRequestFinish
-- later when the data of the request is available or
-- uRISchemeRequestFinishError in case of error.
--
-- <informalexample><programlisting> static void
-- about_uri_scheme_request_cb (WebKitURISchemeRequest *request, gpointer
-- user_data) { GInputStream *stream; gsize stream_length; const gchar
-- *path;
--
-- path = webkit_uri_scheme_request_get_path (request); if (!g_strcmp0
-- (path, "plugins")) { /<!-- -->* Create a GInputStream with the
-- contents of plugins about page, and set its length to stream_length
-- *<!-- -->/ } else if (!g_strcmp0 (path, "memory")) { /<!--
-- -->* Create a GInputStream with the contents of memory about page,
-- and set its length to stream_length *<!-- -->/ } else if
-- (!g_strcmp0 (path, "applications")) { /<!-- -->* Create a
-- GInputStream with the contents of applications about page, and set its
-- length to stream_length *<!-- -->/ } else if (!g_strcmp0 (path,
-- "example")) { gchar *contents;
--
-- contents = g_strdup_printf
-- ("<html><body><p>Example
-- about
-- page</p></body></html>");
-- stream_length = strlen (contents); stream =
-- g_memory_input_stream_new_from_data (contents, stream_length, g_free);
-- } else { GError *error;
--
-- error = g_error_new (ABOUT_HANDLER_ERROR, ABOUT_HANDLER_ERROR_INVALID,
-- "Invalid about:s page.", path);
-- webkit_uri_scheme_request_finish_error (request, error); g_error_free
-- (error); return; } webkit_uri_scheme_request_finish (request, stream,
-- stream_length, "text/html"); g_object_unref (stream); }
-- </programlisting></informalexample>
webContextRegisterUriScheme :: (HasCallStack, MonadIO m, IsWebContext a) => a -> Text -> URISchemeRequestCallback -> m ()
-- | Set an additional directory where WebKit will look for plugins.
webContextSetAdditionalPluginsDirectory :: (HasCallStack, MonadIO m, IsWebContext a) => a -> Text -> m ()
-- | Specifies a usage model for WebViews, which WebKit will use to
-- determine its caching behavior. All web views follow the cache model.
-- This cache model determines the RAM and disk space to use for caching
-- previously viewed content .
--
-- Research indicates that users tend to browse within clusters of
-- documents that hold resources in common, and to revisit previously
-- visited documents. WebKit and the frameworks below it include built-in
-- caches that take advantage of these patterns, substantially improving
-- document load speed in browsing situations. The WebKit cache model
-- controls the behaviors of all of these caches, including various
-- WebCore caches.
--
-- Browsers can improve document load speed substantially by specifying
-- CacheModelWebBrowser. Applications without a browsing interface
-- can reduce memory usage substantially by specifying
-- CacheModelDocumentViewer. The default value is
-- CacheModelWebBrowser.
webContextSetCacheModel :: (HasCallStack, MonadIO m, IsWebContext a) => a -> CacheModel -> m ()
-- | Set the directory where disk cache files will be stored This method
-- must be called before loading anything in this context, otherwise it
-- will not have any effect.
--
-- Note that this method overrides the directory set in the
-- WebsiteDataManager, but it doesn't change the value returned by
-- websiteDataManagerGetDiskCacheDirectory since the
-- WebsiteDataManager is immutable.
-- | Deprecated: (Since version 2.10.)Use
-- webContextNewWithWebsiteDataManager instead.
webContextSetDiskCacheDirectory :: (HasCallStack, MonadIO m, IsWebContext a) => a -> Text -> m ()
-- | Set the directory path to be used to store the favicons database for
-- context on disk. Passing Nothing as
-- path means using the default directory for the
-- platform (see getUserDataDir).
--
-- Calling this method also means enabling the favicons database for its
-- use from the applications, so that's why it's expected to be called
-- only once. Further calls for the same instance of WebContext
-- won't cause any effect.
webContextSetFaviconDatabaseDirectory :: (HasCallStack, MonadIO m, IsWebContext a) => a -> Maybe (Text) -> m ()
-- | Set the network proxy settings to be used by connections started in
-- context. By default NetworkProxyModeDefault is
-- used, which means that the system settings will be used
-- (proxyResolverGetDefault). If you want to override the system
-- default settings, you can either use NetworkProxyModeNoProxy to
-- make sure no proxies are used at all, or NetworkProxyModeCustom
-- to provide your own proxy settings. When proxyMode is
-- NetworkProxyModeCustom proxySettings must be a
-- valid NetworkProxySettings; otherwise,
-- proxySettings must be Nothing.
webContextSetNetworkProxySettings :: (HasCallStack, MonadIO m, IsWebContext a) => a -> NetworkProxyMode -> Maybe (NetworkProxySettings) -> m ()
-- | Set the list of preferred languages, sorted from most desirable to
-- least desirable. The list will be used to build the "Accept-Language"
-- header that will be included in the network requests started by the
-- WebContext.
webContextSetPreferredLanguages :: (HasCallStack, MonadIO m, IsWebContext a) => a -> Maybe ([Text]) -> m ()
-- | Specifies a process model for WebViews, which WebKit will use to
-- determine how auxiliary processes are handled. The default setting
-- (ProcessModelSharedSecondaryProcess) is suitable for most
-- applications which embed a small amount of WebViews, or are used to
-- display documents which are considered safe — like local files.
--
-- Applications which may potentially use a large amount of WebViews —for
-- example a multi-tabbed web browser— may want to use
-- ProcessModelMultipleSecondaryProcesses, which will use one
-- process per view most of the time, while still allowing for web views
-- to share a process when needed (for example when different views
-- interact with each other). Using this model, when a process hangs or
-- crashes, only the WebViews using it stop working, while the rest of
-- the WebViews in the application will still function normally.
--
-- This method **must be called before any web process has been
-- created**, as early as possible in your application. Calling it later
-- will make your application crash.
webContextSetProcessModel :: (HasCallStack, MonadIO m, IsWebContext a) => a -> ProcessModel -> m ()
-- | Enable or disable the spell checking feature.
webContextSetSpellCheckingEnabled :: (HasCallStack, MonadIO m, IsWebContext a) => a -> Bool -> m ()
-- | Set the list of spell checking languages to be used for spell
-- checking.
--
-- The locale string typically is in the form lang_COUNTRY, where lang is
-- an ISO-639 language code, and COUNTRY is an ISO-3166 country code. For
-- instance, sv_FI for Swedish as written in Finland or pt_BR for
-- Portuguese as written in Brazil.
--
-- You need to call this function with a valid list of languages at least
-- once in order to properly enable the spell checking feature in WebKit.
webContextSetSpellCheckingLanguages :: (HasCallStack, MonadIO m, IsWebContext a) => a -> [Text] -> m ()
-- | Set the TLS errors policy of context as
-- policy
webContextSetTlsErrorsPolicy :: (HasCallStack, MonadIO m, IsWebContext a) => a -> TLSErrorsPolicy -> m ()
-- | Set the directory where WebKit will look for Web Extensions. This
-- method must be called before loading anything in this context,
-- otherwise it will not have any effect. You can connect to
-- WebContext::initialize-web-extensions to call
-- this method before anything is loaded.
webContextSetWebExtensionsDirectory :: (HasCallStack, MonadIO m, IsWebContext a) => a -> Text -> m ()
-- | Set user data to be passed to Web Extensions on initialization. The
-- data will be passed to the
-- WebKitWebExtensionInitializeWithUserDataFunction. This
-- method must be called before loading anything in this context,
-- otherwise it will not have any effect. You can connect to
-- WebContext::initialize-web-extensions to call
-- this method before anything is loaded.
webContextSetWebExtensionsInitializationUserData :: (HasCallStack, MonadIO m, IsWebContext a) => a -> GVariant -> m ()
-- | Sets the maximum number of web processes that can be created at the
-- same time for the context. The default value is 0 and
-- means no limit.
--
-- This method **must be called before any web process has been
-- created**, as early as possible in your application. Calling it later
-- will make your application crash.
webContextSetWebProcessCountLimit :: (HasCallStack, MonadIO m, IsWebContext a) => a -> Word32 -> m ()
constructWebContextLocalStorageDirectory :: (IsWebContext o) => Text -> IO (GValueConstruct o)
getWebContextLocalStorageDirectory :: (MonadIO m, IsWebContext o) => o -> m (Maybe Text)
constructWebContextWebsiteDataManager :: (IsWebContext o, IsWebsiteDataManager a) => a -> IO (GValueConstruct o)
getWebContextWebsiteDataManager :: (MonadIO m, IsWebContext o) => o -> m WebsiteDataManager
type C_WebContextDownloadStartedCallback = Ptr () -> Ptr Download -> Ptr () -> IO ()
type WebContextDownloadStartedCallback = Download -> IO ()
afterWebContextDownloadStarted :: (IsWebContext a, MonadIO m) => a -> WebContextDownloadStartedCallback -> m SignalHandlerId
genClosure_WebContextDownloadStarted :: WebContextDownloadStartedCallback -> IO Closure
mk_WebContextDownloadStartedCallback :: C_WebContextDownloadStartedCallback -> IO (FunPtr C_WebContextDownloadStartedCallback)
noWebContextDownloadStartedCallback :: Maybe WebContextDownloadStartedCallback
onWebContextDownloadStarted :: (IsWebContext a, MonadIO m) => a -> WebContextDownloadStartedCallback -> m SignalHandlerId
wrap_WebContextDownloadStartedCallback :: WebContextDownloadStartedCallback -> Ptr () -> Ptr Download -> Ptr () -> IO ()
type C_WebContextInitializeNotificationPermissionsCallback = Ptr () -> Ptr () -> IO ()
type WebContextInitializeNotificationPermissionsCallback = IO ()
afterWebContextInitializeNotificationPermissions :: (IsWebContext a, MonadIO m) => a -> WebContextInitializeNotificationPermissionsCallback -> m SignalHandlerId
genClosure_WebContextInitializeNotificationPermissions :: WebContextInitializeNotificationPermissionsCallback -> IO Closure
mk_WebContextInitializeNotificationPermissionsCallback :: C_WebContextInitializeNotificationPermissionsCallback -> IO (FunPtr C_WebContextInitializeNotificationPermissionsCallback)
noWebContextInitializeNotificationPermissionsCallback :: Maybe WebContextInitializeNotificationPermissionsCallback
onWebContextInitializeNotificationPermissions :: (IsWebContext a, MonadIO m) => a -> WebContextInitializeNotificationPermissionsCallback -> m SignalHandlerId
wrap_WebContextInitializeNotificationPermissionsCallback :: WebContextInitializeNotificationPermissionsCallback -> Ptr () -> Ptr () -> IO ()
type C_WebContextInitializeWebExtensionsCallback = Ptr () -> Ptr () -> IO ()
type WebContextInitializeWebExtensionsCallback = IO ()
afterWebContextInitializeWebExtensions :: (IsWebContext a, MonadIO m) => a -> WebContextInitializeWebExtensionsCallback -> m SignalHandlerId
genClosure_WebContextInitializeWebExtensions :: WebContextInitializeWebExtensionsCallback -> IO Closure
mk_WebContextInitializeWebExtensionsCallback :: C_WebContextInitializeWebExtensionsCallback -> IO (FunPtr C_WebContextInitializeWebExtensionsCallback)
noWebContextInitializeWebExtensionsCallback :: Maybe WebContextInitializeWebExtensionsCallback
onWebContextInitializeWebExtensions :: (IsWebContext a, MonadIO m) => a -> WebContextInitializeWebExtensionsCallback -> m SignalHandlerId
wrap_WebContextInitializeWebExtensionsCallback :: WebContextInitializeWebExtensionsCallback -> Ptr () -> Ptr () -> IO ()
instance Data.GI.Base.BasicTypes.GObject GI.WebKit2.Objects.WebContext.WebContext
instance (Data.GI.Base.BasicTypes.GObject a, Data.GI.Base.Overloading.UnknownAncestorError GI.WebKit2.Objects.WebContext.WebContext a) => GI.WebKit2.Objects.WebContext.IsWebContext a
instance GI.WebKit2.Objects.WebContext.IsWebContext GI.WebKit2.Objects.WebContext.WebContext
instance GI.GObject.Objects.Object.IsObject GI.WebKit2.Objects.WebContext.WebContext
module GI.WebKit2.Objects
module GI.WebKit2