-- 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.21 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. -- -- Since: 2.10 -- | 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 -- -- Since: 2.10 -- | 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.Enums -- | Enum values representing the authentication scheme. -- -- Since: 2.2 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 -- | 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 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 current 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 contents 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 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 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 representing the duration for which a credential persists. -- -- Since: 2.2 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 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 -- | Catch exceptions of type DownloadError. This is a specialized -- version of catchGErrorJustDomain. catchDownloadError :: IO a -> (DownloadError -> GErrorMessage -> IO a) -> IO a -- | Handle exceptions of type DownloadError. This is a specialized -- version of handleGErrorJustDomain. handleDownloadError :: (DownloadError -> GErrorMessage -> IO a) -> IO a -> IO a -- | 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 -- | Catch exceptions of type FaviconDatabaseError. This is a -- specialized version of catchGErrorJustDomain. catchFaviconDatabaseError :: IO a -> (FaviconDatabaseError -> GErrorMessage -> IO a) -> IO a -- | Handle exceptions of type FaviconDatabaseError. This is a -- specialized version of handleGErrorJustDomain. handleFaviconDatabaseError :: (FaviconDatabaseError -> GErrorMessage -> IO a) -> IO a -> IO a -- | Enum values used for determining the hardware acceleration policy. -- -- Since: 2.16 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 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 to denote errors happening when executing JavaScript data JavascriptError -- | An exception was raised in JavaScript execution JavascriptErrorFailed :: JavascriptError -- | Catch-all for unknown values AnotherJavascriptError :: Int -> JavascriptError -- | Catch exceptions of type JavascriptError. This is a specialized -- version of catchGErrorJustDomain. catchJavascriptError :: IO a -> (JavascriptError -> GErrorMessage -> IO a) -> IO a -- | Handle exceptions of type JavascriptError. This is a -- specialized version of handleGErrorJustDomain. handleJavascriptError :: (JavascriptError -> GErrorMessage -> IO a) -> IO a -> IO a -- | 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 established, 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 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 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 -- | Catch exceptions of type NetworkError. This is a specialized -- version of catchGErrorJustDomain. catchNetworkError :: IO a -> (NetworkError -> GErrorMessage -> IO a) -> IO a -- | Handle exceptions of type NetworkError. This is a specialized -- version of handleGErrorJustDomain. handleNetworkError :: (NetworkError -> GErrorMessage -> IO a) -> IO a -> IO a -- | Enum values used to set the network proxy mode. -- -- Since: 2.16 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 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 failure 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 -- | Catch exceptions of type PluginError. This is a specialized -- version of catchGErrorJustDomain. catchPluginError :: IO a -> (PluginError -> GErrorMessage -> IO a) -> IO a -- | Handle exceptions of type PluginError. This is a specialized -- version of handleGErrorJustDomain. handlePluginError :: (PluginError -> GErrorMessage -> IO a) -> IO a -> IO a -- | 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 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 -- | Catch exceptions of type PolicyError. This is a specialized -- version of catchGErrorJustDomain. catchPolicyError :: IO a -> (PolicyError -> GErrorMessage -> IO a) -> IO a -- | Handle exceptions of type PolicyError. This is a specialized -- version of handleGErrorJustDomain. handlePolicyError :: (PolicyError -> GErrorMessage -> IO a) -> IO a -> IO a -- | 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 -- | Catch exceptions of type PrintError. This is a specialized -- version of catchGErrorJustDomain. catchPrintError :: IO a -> (PrintError -> GErrorMessage -> IO a) -> IO a -- | Handle exceptions of type PrintError. This is a specialized -- version of handleGErrorJustDomain. handlePrintError :: (PrintError -> GErrorMessage -> IO a) -> IO a -> IO a -- | Enum values representing the response of the print dialog shown with -- printOperationRunDialog. data PrintOperationResponse -- | Print button was clicked in print dialog PrintOperationResponsePrint :: PrintOperationResponse -- | Print dialog was cancelled PrintOperationResponseCancel :: PrintOperationResponse -- | Catch-all for unknown values AnotherPrintOperationResponse :: Int -> PrintOperationResponse -- | Enum values used for determining the WebContext process model. -- -- Since: 2.4 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 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 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 used to denote errors happening 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 -- | Catch exceptions of type SnapshotError. This is a specialized -- version of catchGErrorJustDomain. catchSnapshotError :: IO a -> (SnapshotError -> GErrorMessage -> IO a) -> IO a -- | Handle exceptions of type SnapshotError. This is a specialized -- version of handleGErrorJustDomain. handleSnapshotError :: (SnapshotError -> GErrorMessage -> IO a) -> IO a -> IO a -- | 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 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 -- | No description available in the introspection data. -- -- Since: 2.24 data UserContentFilterError -- | The JSON source for a content filter is invalid. UserContentFilterErrorInvalidSource :: UserContentFilterError -- | The requested content filter could not be found. UserContentFilterErrorNotFound :: UserContentFilterError -- | Catch-all for unknown values AnotherUserContentFilterError :: Int -> UserContentFilterError -- | Catch exceptions of type UserContentFilterError. This is a -- specialized version of catchGErrorJustDomain. catchUserContentFilterError :: IO a -> (UserContentFilterError -> GErrorMessage -> IO a) -> IO a -- | Handle exceptions of type UserContentFilterError. This is a -- specialized version of handleGErrorJustDomain. handleUserContentFilterError :: (UserContentFilterError -> GErrorMessage -> IO a) -> IO a -> IO a -- | Specifies in which frames user style sheets are to be inserted in. -- -- Since: 2.6 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 -- | Specifies at which place of documents an user script will be inserted. -- -- Since: 2.6 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 how to treat an user style sheet. -- -- Since: 2.6 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 -- | Enum values used to specify the reason why the web process terminated -- abnormally. -- -- Since: 2.20 data WebProcessTerminationReason -- | the web process crashed. WebProcessTerminationReasonCrashed :: WebProcessTerminationReason -- | the web process exceeded the memory limit. WebProcessTerminationReasonExceededMemoryLimit :: WebProcessTerminationReason -- | Catch-all for unknown values AnotherWebProcessTerminationReason :: Int -> WebProcessTerminationReason 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.UserContentFilterError instance GHC.Show.Show GI.WebKit2.Enums.UserContentFilterError 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.Classes.Eq GI.WebKit2.Enums.WebProcessTerminationReason instance GHC.Show.Show GI.WebKit2.Enums.WebProcessTerminationReason 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 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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.UserContentFilterError instance GHC.Classes.Ord GI.WebKit2.Enums.UserContentFilterError instance Data.GI.Base.GError.GErrorClass GI.WebKit2.Enums.UserContentFilterError instance Data.GI.Base.BasicTypes.BoxedEnum GI.WebKit2.Enums.UserContentFilterError 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.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.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.WebProcessTerminationReason instance GHC.Classes.Ord GI.WebKit2.Enums.WebProcessTerminationReason instance Data.GI.Base.BasicTypes.BoxedEnum GI.WebKit2.Enums.WebProcessTerminationReason module GI.WebKit2.Flags -- | Enum values with flags representing typing attributes. -- -- Since: 2.10 data EditorTypingAttributes -- | No typing attributes. 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 -- | 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 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 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 types of Website data. -- -- Since: 2.16 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 -- | Hash salt used to generate the device ids used by webpages. Since 2.24 WebsiteDataTypesDeviceIdHashSalt :: WebsiteDataTypes -- | All types. WebsiteDataTypesAll :: WebsiteDataTypes -- | Catch-all for unknown values AnotherWebsiteDataTypes :: Int -> WebsiteDataTypes 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.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 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.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.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.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 -- | No description available in the introspection data. module GI.WebKit2.Interfaces.PermissionRequest -- | Memory-managed wrapper type. newtype PermissionRequest PermissionRequest :: ManagedPtr PermissionRequest -> PermissionRequest -- | A convenience alias for Nothing :: Maybe -- PermissionRequest. noPermissionRequest :: Maybe PermissionRequest -- | Type class for types which can be safely cast to -- PermissionRequest, for instance with -- toPermissionRequest. class (GObject o, IsDescendantOf PermissionRequest o) => IsPermissionRequest o -- | Cast to PermissionRequest, for types for which this is known to -- be safe. For general casts, use castTo. 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 o, Data.GI.Base.Overloading.IsDescendantOf GI.WebKit2.Interfaces.PermissionRequest.PermissionRequest o) => GI.WebKit2.Interfaces.PermissionRequest.IsPermissionRequest o instance Data.GI.Base.BasicTypes.GObject GI.WebKit2.Interfaces.PermissionRequest.PermissionRequest instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit2.Interfaces.PermissionRequest.PermissionRequest module GI.WebKit2.Interfaces -- | No description available in the introspection data. module GI.WebKit2.Objects.BackForwardList -- | Memory-managed wrapper type. newtype BackForwardList BackForwardList :: ManagedPtr BackForwardList -> BackForwardList -- | Type class for types which can be safely cast to -- BackForwardList, for instance with toBackForwardList. class (GObject o, IsDescendantOf BackForwardList o) => IsBackForwardList o -- | Cast to BackForwardList, for types for which this is known to -- be safe. For general casts, use castTo. toBackForwardList :: (MonadIO m, IsBackForwardList o) => o -> m BackForwardList -- | A convenience alias for Nothing :: Maybe -- BackForwardList. noBackForwardList :: Maybe BackForwardList -- | Returns the item that precedes the current item. backForwardListGetBackItem :: (HasCallStack, MonadIO m, IsBackForwardList a) => a -> m (Maybe 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 (Maybe BackForwardListItem) -- | Returns the item that follows the current item. backForwardListGetForwardItem :: (HasCallStack, MonadIO m, IsBackForwardList a) => a -> m (Maybe 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 (Maybe BackForwardListItem) -- | This signal is emitted when backForwardList changes. -- This happens when the current item is updated, a new item is added or -- one or more items are removed. Note that both -- itemAdded and itemsRemoved can -- Nothing when only the current item is updated. Items are only -- removed when the list is cleared or the maximum items limit is -- reached. type BackForwardListChangedCallback = Maybe BackForwardListItem " /@itemAdded@/: the 'GI.WebKit2.Objects.BackForwardListItem.BackForwardListItem' added or 'Nothing' " -> Ptr () " /@itemsRemoved@/: a 'GI.GLib.Structs.List.List' of 'GI.WebKit2.Objects.BackForwardListItem.BackForwardListItem'\s " -> IO () -- | Type for the callback on the (unwrapped) C side. type C_BackForwardListChangedCallback = Ptr () -> Ptr BackForwardListItem -> Ptr () -> Ptr () -> IO () -- | Connect a signal handler for the “changed” signal, to be run -- after the default handler. When overloading is enabled, this is -- equivalent to -- --
-- after backForwardList #changed callback --afterBackForwardListChanged :: (IsBackForwardList a, MonadIO m) => a -> BackForwardListChangedCallback -> m SignalHandlerId -- | Wrap the callback into a GClosure. genClosure_BackForwardListChanged :: MonadIO m => BackForwardListChangedCallback -> m (GClosure C_BackForwardListChangedCallback) -- | Generate a function pointer callable from C code, from a -- C_BackForwardListChangedCallback. mk_BackForwardListChangedCallback :: C_BackForwardListChangedCallback -> IO (FunPtr C_BackForwardListChangedCallback) -- | A convenience synonym for Nothing :: Maybe -- BackForwardListChangedCallback. noBackForwardListChangedCallback :: Maybe BackForwardListChangedCallback -- | Connect a signal handler for the “changed” signal, to be run -- before the default handler. When overloading is enabled, this -- is equivalent to -- --
-- on backForwardList #changed callback --onBackForwardListChanged :: (IsBackForwardList a, MonadIO m) => a -> BackForwardListChangedCallback -> m SignalHandlerId -- | Wrap a BackForwardListChangedCallback into a -- C_BackForwardListChangedCallback. wrap_BackForwardListChangedCallback :: BackForwardListChangedCallback -> C_BackForwardListChangedCallback instance (Data.GI.Base.BasicTypes.GObject o, Data.GI.Base.Overloading.IsDescendantOf GI.WebKit2.Objects.BackForwardList.BackForwardList o) => GI.WebKit2.Objects.BackForwardList.IsBackForwardList o instance Data.GI.Base.BasicTypes.GObject GI.WebKit2.Objects.BackForwardList.BackForwardList instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit2.Objects.BackForwardList.BackForwardList -- | No description available in the introspection data. module GI.WebKit2.Objects.BackForwardListItem -- | Memory-managed wrapper type. newtype BackForwardListItem BackForwardListItem :: ManagedPtr BackForwardListItem -> BackForwardListItem -- | Type class for types which can be safely cast to -- BackForwardListItem, for instance with -- toBackForwardListItem. class (GObject o, IsDescendantOf BackForwardListItem o) => IsBackForwardListItem o -- | Cast to BackForwardListItem, for types for which this is known -- to be safe. For general casts, use castTo. toBackForwardListItem :: (MonadIO m, IsBackForwardListItem o) => o -> m BackForwardListItem -- | A convenience alias for Nothing :: Maybe -- BackForwardListItem. noBackForwardListItem :: Maybe BackForwardListItem -- | See also backForwardListItemGetUri. backForwardListItemGetOriginalUri :: (HasCallStack, MonadIO m, IsBackForwardListItem a) => a -> m (Maybe Text) -- | No description available in the introspection data. backForwardListItemGetTitle :: (HasCallStack, MonadIO m, IsBackForwardListItem a) => a -> m (Maybe 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 (Maybe Text) instance (Data.GI.Base.BasicTypes.GObject o, Data.GI.Base.Overloading.IsDescendantOf GI.WebKit2.Objects.BackForwardListItem.BackForwardListItem o) => GI.WebKit2.Objects.BackForwardListItem.IsBackForwardListItem o instance Data.GI.Base.BasicTypes.GObject GI.WebKit2.Objects.BackForwardListItem.BackForwardListItem instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit2.Objects.BackForwardListItem.BackForwardListItem -- | No description available in the introspection data. module GI.WebKit2.Objects.ColorChooserRequest -- | Memory-managed wrapper type. newtype ColorChooserRequest ColorChooserRequest :: ManagedPtr ColorChooserRequest -> ColorChooserRequest -- | Type class for types which can be safely cast to -- ColorChooserRequest, for instance with -- toColorChooserRequest. class (GObject o, IsDescendantOf ColorChooserRequest o) => IsColorChooserRequest o -- | Cast to ColorChooserRequest, for types for which this is known -- to be safe. For general casts, use castTo. toColorChooserRequest :: (MonadIO m, IsColorChooserRequest o) => o -> m ColorChooserRequest -- | A convenience alias for Nothing :: Maybe -- 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. -- -- Since: 2.8 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. -- -- Since: 2.8 colorChooserRequestFinish :: (HasCallStack, MonadIO m, IsColorChooserRequest a) => a -> m () -- | Gets the bounding box of the color input element. -- -- Since: 2.8 colorChooserRequestGetElementRectangle :: (HasCallStack, MonadIO m, IsColorChooserRequest a) => a -> m Rectangle -- | Gets the current RGBA color of request -- -- Since: 2.8 colorChooserRequestGetRgba :: (HasCallStack, MonadIO m, IsColorChooserRequest a) => a -> m RGBA -- | Sets the current RGBA color of request -- -- Since: 2.8 colorChooserRequestSetRgba :: (HasCallStack, MonadIO m, IsColorChooserRequest a) => a -> RGBA -> m () -- | Construct a GValueConstruct with valid value for the -- “rgba” property. This is rarely needed directly, but it is -- used by new. constructColorChooserRequestRgba :: IsColorChooserRequest o => RGBA -> IO (GValueConstruct o) -- | Get the value of the “rgba” property. When overloading -- is enabled, this is equivalent to -- --
-- get colorChooserRequest #rgba --getColorChooserRequestRgba :: (MonadIO m, IsColorChooserRequest o) => o -> m (Maybe RGBA) -- | Set the value of the “rgba” property. When overloading -- is enabled, this is equivalent to -- --
-- set colorChooserRequest [ #rgba := value ] --setColorChooserRequestRgba :: (MonadIO m, IsColorChooserRequest o) => o -> RGBA -> m () -- | Type for the callback on the (unwrapped) C side. type C_ColorChooserRequestFinishedCallback = Ptr () -> Ptr () -> IO () -- | Emitted when the request finishes. This signal can be -- emitted because the user completed the request calling -- colorChooserRequestFinish, or cancelled it with -- colorChooserRequestCancel or because the color input element is -- removed from the DOM. -- -- Since: 2.8 type ColorChooserRequestFinishedCallback = IO () -- | Connect a signal handler for the “finished” signal, to be run -- after the default handler. When overloading is enabled, this is -- equivalent to -- --
-- after colorChooserRequest #finished callback --afterColorChooserRequestFinished :: (IsColorChooserRequest a, MonadIO m) => a -> ColorChooserRequestFinishedCallback -> m SignalHandlerId -- | Wrap the callback into a GClosure. genClosure_ColorChooserRequestFinished :: MonadIO m => ColorChooserRequestFinishedCallback -> m (GClosure C_ColorChooserRequestFinishedCallback) -- | Generate a function pointer callable from C code, from a -- C_ColorChooserRequestFinishedCallback. mk_ColorChooserRequestFinishedCallback :: C_ColorChooserRequestFinishedCallback -> IO (FunPtr C_ColorChooserRequestFinishedCallback) -- | A convenience synonym for Nothing :: Maybe -- ColorChooserRequestFinishedCallback. noColorChooserRequestFinishedCallback :: Maybe ColorChooserRequestFinishedCallback -- | Connect a signal handler for the “finished” signal, to be run -- before the default handler. When overloading is enabled, this -- is equivalent to -- --
-- on colorChooserRequest #finished callback --onColorChooserRequestFinished :: (IsColorChooserRequest a, MonadIO m) => a -> ColorChooserRequestFinishedCallback -> m SignalHandlerId -- | Wrap a ColorChooserRequestFinishedCallback into a -- C_ColorChooserRequestFinishedCallback. wrap_ColorChooserRequestFinishedCallback :: ColorChooserRequestFinishedCallback -> C_ColorChooserRequestFinishedCallback instance (Data.GI.Base.BasicTypes.GObject o, Data.GI.Base.Overloading.IsDescendantOf GI.WebKit2.Objects.ColorChooserRequest.ColorChooserRequest o) => GI.WebKit2.Objects.ColorChooserRequest.IsColorChooserRequest o instance Data.GI.Base.BasicTypes.GObject GI.WebKit2.Objects.ColorChooserRequest.ColorChooserRequest instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit2.Objects.ColorChooserRequest.ColorChooserRequest -- | No description available in the introspection data. module GI.WebKit2.Objects.ContextMenu -- | Memory-managed wrapper type. newtype ContextMenu ContextMenu :: ManagedPtr ContextMenu -> ContextMenu -- | Type class for types which can be safely cast to ContextMenu, -- for instance with toContextMenu. class (GObject o, IsDescendantOf ContextMenu o) => IsContextMenu o -- | Cast to ContextMenu, for types for which this is known to be -- safe. For general casts, use castTo. toContextMenu :: (MonadIO m, IsContextMenu o) => o -> m ContextMenu -- | A convenience alias for Nothing :: Maybe -- 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 (Maybe ContextMenuItem) -- | Gets the item at the given position in the menu. contextMenuGetItemAtPosition :: (HasCallStack, MonadIO m, IsContextMenu a) => a -> Word32 -> m (Maybe 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. -- -- Since: 2.8 contextMenuGetUserData :: (HasCallStack, MonadIO m, IsContextMenu a) => a -> m (Maybe 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 (Maybe 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. -- -- Since: 2.8 contextMenuSetUserData :: (HasCallStack, MonadIO m, IsContextMenu a) => a -> GVariant -> m () instance (Data.GI.Base.BasicTypes.GObject o, Data.GI.Base.Overloading.IsDescendantOf GI.WebKit2.Objects.ContextMenu.ContextMenu o) => GI.WebKit2.Objects.ContextMenu.IsContextMenu o instance Data.GI.Base.BasicTypes.GObject GI.WebKit2.Objects.ContextMenu.ContextMenu instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit2.Objects.ContextMenu.ContextMenu -- | No description available in the introspection data. module GI.WebKit2.Objects.ContextMenuItem -- | Memory-managed wrapper type. newtype ContextMenuItem ContextMenuItem :: ManagedPtr ContextMenuItem -> ContextMenuItem -- | Type class for types which can be safely cast to -- ContextMenuItem, for instance with toContextMenuItem. class (GObject o, IsDescendantOf ContextMenuItem o) => IsContextMenuItem o -- | Cast to ContextMenuItem, for types for which this is known to -- be safe. For general casts, use castTo. toContextMenuItem :: (MonadIO m, IsContextMenuItem o) => o -> m ContextMenuItem -- | A convenience alias for Nothing :: Maybe -- ContextMenuItem. noContextMenuItem :: Maybe ContextMenuItem -- | Gets the action associated to item as a Action. -- | Deprecated: (Since version 2.18)Use -- contextMenuItemGetGaction instead. contextMenuItemGetAction :: (HasCallStack, MonadIO m, IsContextMenuItem a) => a -> m (Maybe Action) -- | Gets the action associated to item as a Action. -- -- Since: 2.18 contextMenuItemGetGaction :: (HasCallStack, MonadIO m, IsContextMenuItem a) => a -> m (Maybe 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 (Maybe ContextMenu) -- | Checks whether item is a separator. contextMenuItemIsSeparator :: (HasCallStack, MonadIO m, IsContextMenuItem a) => a -> m Bool -- | Creates a new ContextMenuItem for the given -- action. -- | Deprecated: (Since version 2.18)Use -- contextMenuItemNewFromGaction instead. contextMenuItemNew :: (HasCallStack, MonadIO m, IsAction a) => a -> m ContextMenuItem -- | Creates a new ContextMenuItem for the given -- action and label. On activation -- target will be passed as parameter to the callback. -- -- Since: 2.18 contextMenuItemNewFromGaction :: (HasCallStack, MonadIO m, IsAction a) => a -> Text -> Maybe GVariant -> 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 associated 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 o, Data.GI.Base.Overloading.IsDescendantOf GI.WebKit2.Objects.ContextMenuItem.ContextMenuItem o) => GI.WebKit2.Objects.ContextMenuItem.IsContextMenuItem o instance Data.GI.Base.BasicTypes.GObject GI.WebKit2.Objects.ContextMenuItem.ContextMenuItem instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit2.Objects.ContextMenuItem.ContextMenuItem -- | No description available in the introspection data. module GI.WebKit2.Objects.CookieManager -- | Memory-managed wrapper type. newtype CookieManager CookieManager :: ManagedPtr CookieManager -> CookieManager -- | Type class for types which can be safely cast to CookieManager, -- for instance with toCookieManager. class (GObject o, IsDescendantOf CookieManager o) => IsCookieManager o -- | Cast to CookieManager, for types for which this is known to be -- safe. For general casts, use castTo. toCookieManager :: (MonadIO m, IsCookieManager o) => o -> m CookieManager -- | A convenience alias for Nothing :: Maybe -- CookieManager. noCookieManager :: Maybe CookieManager -- | Asynchronously add a Cookie to the underlying storage. -- -- When the operation is finished, callback will be -- called. You can then call cookieManagerAddCookieFinish to get -- the result of the operation. -- -- Since: 2.20 cookieManagerAddCookie :: (HasCallStack, MonadIO m, IsCookieManager a, IsCancellable b) => a -> Cookie -> Maybe b -> Maybe AsyncReadyCallback -> m () -- | Finish an asynchronous operation started with -- cookieManagerAddCookie. -- -- Since: 2.20 cookieManagerAddCookieFinish :: (HasCallStack, MonadIO m, IsCookieManager a, IsAsyncResult b) => a -> b -> m () -- | Delete all cookies of cookieManager -- | Deprecated: (Since version 2.16)Use websiteDataManagerClear -- instead. cookieManagerDeleteAllCookies :: (HasCallStack, MonadIO m, IsCookieManager a) => a -> m () -- | Asynchronously delete a Cookie from the current session. -- -- When the operation is finished, callback will be -- called. You can then call cookieManagerDeleteCookieFinish to -- get the result of the operation. -- -- Since: 2.20 cookieManagerDeleteCookie :: (HasCallStack, MonadIO m, IsCookieManager a, IsCancellable b) => a -> Cookie -> Maybe b -> Maybe AsyncReadyCallback -> m () -- | Finish an asynchronous operation started with -- cookieManagerDeleteCookie. -- -- Since: 2.20 cookieManagerDeleteCookieFinish :: (HasCallStack, MonadIO m, IsCookieManager a, IsAsyncResult b) => a -> b -> 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 a list of Cookie from -- cookieManager associated with uri, -- which must be either an HTTP or an HTTPS URL. -- -- When the operation is finished, callback will be -- called. You can then call cookieManagerGetCookiesFinish to get -- the result of the operation. -- -- Since: 2.20 cookieManagerGetCookies :: (HasCallStack, MonadIO m, IsCookieManager a, IsCancellable b) => a -> Text -> Maybe b -> Maybe AsyncReadyCallback -> m () -- | Finish an asynchronous operation started with -- cookieManagerGetCookies. The return value is a SList of -- Cookie instances which should be released with -- g_list_free_full() and cookieFree. -- -- Since: 2.20 cookieManagerGetCookiesFinish :: (HasCallStack, MonadIO m, IsCookieManager a, IsAsyncResult b) => a -> b -> m [Cookie] -- | 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 for the callback on the (unwrapped) C side. type C_CookieManagerChangedCallback = Ptr () -> Ptr () -> IO () -- | This signal is emitted when cookies are added, removed or modified. type CookieManagerChangedCallback = IO () -- | Connect a signal handler for the “changed” signal, to be run -- after the default handler. When overloading is enabled, this is -- equivalent to -- --
-- after cookieManager #changed callback --afterCookieManagerChanged :: (IsCookieManager a, MonadIO m) => a -> CookieManagerChangedCallback -> m SignalHandlerId -- | Wrap the callback into a GClosure. genClosure_CookieManagerChanged :: MonadIO m => CookieManagerChangedCallback -> m (GClosure C_CookieManagerChangedCallback) -- | Generate a function pointer callable from C code, from a -- C_CookieManagerChangedCallback. mk_CookieManagerChangedCallback :: C_CookieManagerChangedCallback -> IO (FunPtr C_CookieManagerChangedCallback) -- | A convenience synonym for Nothing :: Maybe -- CookieManagerChangedCallback. noCookieManagerChangedCallback :: Maybe CookieManagerChangedCallback -- | Connect a signal handler for the “changed” signal, to be run -- before the default handler. When overloading is enabled, this -- is equivalent to -- --
-- on cookieManager #changed callback --onCookieManagerChanged :: (IsCookieManager a, MonadIO m) => a -> CookieManagerChangedCallback -> m SignalHandlerId -- | Wrap a CookieManagerChangedCallback into a -- C_CookieManagerChangedCallback. wrap_CookieManagerChangedCallback :: CookieManagerChangedCallback -> C_CookieManagerChangedCallback instance (Data.GI.Base.BasicTypes.GObject o, Data.GI.Base.Overloading.IsDescendantOf GI.WebKit2.Objects.CookieManager.CookieManager o) => GI.WebKit2.Objects.CookieManager.IsCookieManager o instance Data.GI.Base.BasicTypes.GObject GI.WebKit2.Objects.CookieManager.CookieManager instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit2.Objects.CookieManager.CookieManager -- | No description available in the introspection data. module GI.WebKit2.Objects.DeviceInfoPermissionRequest -- | Memory-managed wrapper type. newtype DeviceInfoPermissionRequest DeviceInfoPermissionRequest :: ManagedPtr DeviceInfoPermissionRequest -> DeviceInfoPermissionRequest -- | Type class for types which can be safely cast to -- DeviceInfoPermissionRequest, for instance with -- toDeviceInfoPermissionRequest. class (GObject o, IsDescendantOf DeviceInfoPermissionRequest o) => IsDeviceInfoPermissionRequest o -- | Cast to DeviceInfoPermissionRequest, for types for which this -- is known to be safe. For general casts, use castTo. toDeviceInfoPermissionRequest :: (MonadIO m, IsDeviceInfoPermissionRequest o) => o -> m DeviceInfoPermissionRequest -- | A convenience alias for Nothing :: Maybe -- DeviceInfoPermissionRequest. noDeviceInfoPermissionRequest :: Maybe DeviceInfoPermissionRequest instance (Data.GI.Base.BasicTypes.GObject o, Data.GI.Base.Overloading.IsDescendantOf GI.WebKit2.Objects.DeviceInfoPermissionRequest.DeviceInfoPermissionRequest o) => GI.WebKit2.Objects.DeviceInfoPermissionRequest.IsDeviceInfoPermissionRequest o instance Data.GI.Base.BasicTypes.GObject GI.WebKit2.Objects.DeviceInfoPermissionRequest.DeviceInfoPermissionRequest instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit2.Objects.DeviceInfoPermissionRequest.DeviceInfoPermissionRequest -- | No description available in the introspection data. module GI.WebKit2.Objects.EditorState -- | Memory-managed wrapper type. newtype EditorState EditorState :: ManagedPtr EditorState -> EditorState -- | Type class for types which can be safely cast to EditorState, -- for instance with toEditorState. class (GObject o, IsDescendantOf EditorState o) => IsEditorState o -- | Cast to EditorState, for types for which this is known to be -- safe. For general casts, use castTo. toEditorState :: (MonadIO m, IsEditorState o) => o -> m EditorState -- | A convenience alias for Nothing :: Maybe -- 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 selected text. -- Note that in case of a selection, typing attributes are considered -- active only when they are present throughout the selection. -- -- Since: 2.10 editorStateGetTypingAttributes :: (HasCallStack, MonadIO m, IsEditorState a) => a -> m Word32 -- | Gets whether a copy command can be issued. -- -- Since: 2.20 editorStateIsCopyAvailable :: (HasCallStack, MonadIO m, IsEditorState a) => a -> m Bool -- | Gets whether a cut command can be issued. -- -- Since: 2.20 editorStateIsCutAvailable :: (HasCallStack, MonadIO m, IsEditorState a) => a -> m Bool -- | Gets whether a paste command can be issued. -- -- Since: 2.20 editorStateIsPasteAvailable :: (HasCallStack, MonadIO m, IsEditorState a) => a -> m Bool -- | Gets whether a redo command can be issued. -- -- Since: 2.20 editorStateIsRedoAvailable :: (HasCallStack, MonadIO m, IsEditorState a) => a -> m Bool -- | Gets whether an undo command can be issued. -- -- Since: 2.20 editorStateIsUndoAvailable :: (HasCallStack, MonadIO m, IsEditorState a) => a -> m Bool -- | Get the value of the “typing-attributes” property. When -- overloading is enabled, this is equivalent to -- --
-- get editorState #typingAttributes --getEditorStateTypingAttributes :: (MonadIO m, IsEditorState o) => o -> m Word32 instance (Data.GI.Base.BasicTypes.GObject o, Data.GI.Base.Overloading.IsDescendantOf GI.WebKit2.Objects.EditorState.EditorState o) => GI.WebKit2.Objects.EditorState.IsEditorState o instance Data.GI.Base.BasicTypes.GObject GI.WebKit2.Objects.EditorState.EditorState instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit2.Objects.EditorState.EditorState -- | No description available in the introspection data. module GI.WebKit2.Objects.FaviconDatabase -- | Memory-managed wrapper type. newtype FaviconDatabase FaviconDatabase :: ManagedPtr FaviconDatabase -> FaviconDatabase -- | Type class for types which can be safely cast to -- FaviconDatabase, for instance with toFaviconDatabase. class (GObject o, IsDescendantOf FaviconDatabase o) => IsFaviconDatabase o -- | Cast to FaviconDatabase, for types for which this is known to -- be safe. For general casts, use castTo. toFaviconDatabase :: (MonadIO m, IsFaviconDatabase o) => o -> m FaviconDatabase -- | A convenience alias for Nothing :: Maybe -- 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 (Maybe Text) -- | Type for the callback on the (unwrapped) C side. type C_FaviconDatabaseFaviconChangedCallback = Ptr () -> CString -> CString -> Ptr () -> IO () -- | This signal is emitted when the favicon URI of pageUri -- has been changed to faviconUri in the database. You -- can connect to this signal and call faviconDatabaseGetFavicon -- to get the favicon. If you are interested in the favicon of a -- WebView it's easier to use the -- WebView:favicon property. See -- webViewGetFavicon for more details. type FaviconDatabaseFaviconChangedCallback = Text " /@pageUri@/: the URI of the Web page containing the icon " -> Text " /@faviconUri@/: the URI of the favicon " -> IO () -- | Connect a signal handler for the “favicon-changed” signal, to -- be run after the default handler. When overloading is enabled, -- this is equivalent to -- --
-- after faviconDatabase #faviconChanged callback --afterFaviconDatabaseFaviconChanged :: (IsFaviconDatabase a, MonadIO m) => a -> FaviconDatabaseFaviconChangedCallback -> m SignalHandlerId -- | Wrap the callback into a GClosure. genClosure_FaviconDatabaseFaviconChanged :: MonadIO m => FaviconDatabaseFaviconChangedCallback -> m (GClosure C_FaviconDatabaseFaviconChangedCallback) -- | Generate a function pointer callable from C code, from a -- C_FaviconDatabaseFaviconChangedCallback. mk_FaviconDatabaseFaviconChangedCallback :: C_FaviconDatabaseFaviconChangedCallback -> IO (FunPtr C_FaviconDatabaseFaviconChangedCallback) -- | A convenience synonym for Nothing :: Maybe -- FaviconDatabaseFaviconChangedCallback. noFaviconDatabaseFaviconChangedCallback :: Maybe FaviconDatabaseFaviconChangedCallback -- | Connect a signal handler for the “favicon-changed” signal, to -- be run before the default handler. When overloading is enabled, -- this is equivalent to -- --
-- on faviconDatabase #faviconChanged callback --onFaviconDatabaseFaviconChanged :: (IsFaviconDatabase a, MonadIO m) => a -> FaviconDatabaseFaviconChangedCallback -> m SignalHandlerId -- | Wrap a FaviconDatabaseFaviconChangedCallback into a -- C_FaviconDatabaseFaviconChangedCallback. wrap_FaviconDatabaseFaviconChangedCallback :: FaviconDatabaseFaviconChangedCallback -> C_FaviconDatabaseFaviconChangedCallback instance (Data.GI.Base.BasicTypes.GObject o, Data.GI.Base.Overloading.IsDescendantOf GI.WebKit2.Objects.FaviconDatabase.FaviconDatabase o) => GI.WebKit2.Objects.FaviconDatabase.IsFaviconDatabase o instance Data.GI.Base.BasicTypes.GObject GI.WebKit2.Objects.FaviconDatabase.FaviconDatabase instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit2.Objects.FaviconDatabase.FaviconDatabase -- | No description available in the introspection data. module GI.WebKit2.Objects.FileChooserRequest -- | Memory-managed wrapper type. newtype FileChooserRequest FileChooserRequest :: ManagedPtr FileChooserRequest -> FileChooserRequest -- | Type class for types which can be safely cast to -- FileChooserRequest, for instance with -- toFileChooserRequest. class (GObject o, IsDescendantOf FileChooserRequest o) => IsFileChooserRequest o -- | Cast to FileChooserRequest, for types for which this is known -- to be safe. For general casts, use castTo. toFileChooserRequest :: (MonadIO m, IsFileChooserRequest o) => o -> m FileChooserRequest -- | A convenience alias for Nothing :: Maybe -- 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 (Maybe 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 (Maybe [Text]) -- | Ask WebKit to select local files for upload and complete the request. fileChooserRequestSelectFiles :: (HasCallStack, MonadIO m, IsFileChooserRequest a) => a -> [Text] -> m () -- | Get the value of the “filter” property. When -- overloading is enabled, this is equivalent to -- --
-- get fileChooserRequest #filter --getFileChooserRequestFilter :: (MonadIO m, IsFileChooserRequest o) => o -> m (Maybe FileFilter) -- | Get the value of the “mime-types” property. When -- overloading is enabled, this is equivalent to -- --
-- get fileChooserRequest #mimeTypes --getFileChooserRequestMimeTypes :: (MonadIO m, IsFileChooserRequest o) => o -> m [Text] -- | Get the value of the “select-multiple” property. When -- overloading is enabled, this is equivalent to -- --
-- get fileChooserRequest #selectMultiple --getFileChooserRequestSelectMultiple :: (MonadIO m, IsFileChooserRequest o) => o -> m Bool -- | Get the value of the “selected-files” property. When -- overloading is enabled, this is equivalent to -- --
-- get fileChooserRequest #selectedFiles --getFileChooserRequestSelectedFiles :: (MonadIO m, IsFileChooserRequest o) => o -> m (Maybe [Text]) instance (Data.GI.Base.BasicTypes.GObject o, Data.GI.Base.Overloading.IsDescendantOf GI.WebKit2.Objects.FileChooserRequest.FileChooserRequest o) => GI.WebKit2.Objects.FileChooserRequest.IsFileChooserRequest o instance Data.GI.Base.BasicTypes.GObject GI.WebKit2.Objects.FileChooserRequest.FileChooserRequest instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit2.Objects.FileChooserRequest.FileChooserRequest -- | No description available in the introspection data. module GI.WebKit2.Objects.FormSubmissionRequest -- | Memory-managed wrapper type. newtype FormSubmissionRequest FormSubmissionRequest :: ManagedPtr FormSubmissionRequest -> FormSubmissionRequest -- | Type class for types which can be safely cast to -- FormSubmissionRequest, for instance with -- toFormSubmissionRequest. class (GObject o, IsDescendantOf FormSubmissionRequest o) => IsFormSubmissionRequest o -- | Cast to FormSubmissionRequest, for types for which this is -- known to be safe. For general casts, use castTo. toFormSubmissionRequest :: (MonadIO m, IsFormSubmissionRequest o) => o -> m FormSubmissionRequest -- | A convenience alias for Nothing :: Maybe -- FormSubmissionRequest. noFormSubmissionRequest :: Maybe FormSubmissionRequest -- | Get a HashTable with the values of the text fields contained in -- the form associated to request. Note that fields will -- be missing if the form contains multiple text input elements with the -- same name, so this function does not reliably return all text fields. -- | Deprecated: (Since version 2.20.)Use -- formSubmissionRequestListTextFields instead. formSubmissionRequestGetTextFields :: (HasCallStack, MonadIO m, IsFormSubmissionRequest a) => a -> m (Maybe (Map (Ptr ()) (Ptr ()))) -- | Get lists with the names and values of the text fields contained in -- the form associated to request. Note that names and -- values may be Nothing. -- -- If this function returns False, then both -- fieldNames and fieldValues will be -- empty. -- -- Since: 2.20 formSubmissionRequestListTextFields :: (HasCallStack, MonadIO m, IsFormSubmissionRequest a) => a -> m (Bool, [Text], [Text]) -- | Continue the form submission. formSubmissionRequestSubmit :: (HasCallStack, MonadIO m, IsFormSubmissionRequest a) => a -> m () instance (Data.GI.Base.BasicTypes.GObject o, Data.GI.Base.Overloading.IsDescendantOf GI.WebKit2.Objects.FormSubmissionRequest.FormSubmissionRequest o) => GI.WebKit2.Objects.FormSubmissionRequest.IsFormSubmissionRequest o instance Data.GI.Base.BasicTypes.GObject GI.WebKit2.Objects.FormSubmissionRequest.FormSubmissionRequest instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit2.Objects.FormSubmissionRequest.FormSubmissionRequest -- | No description available in the introspection data. module GI.WebKit2.Objects.GeolocationPermissionRequest -- | Memory-managed wrapper type. newtype GeolocationPermissionRequest GeolocationPermissionRequest :: ManagedPtr GeolocationPermissionRequest -> GeolocationPermissionRequest -- | Type class for types which can be safely cast to -- GeolocationPermissionRequest, for instance with -- toGeolocationPermissionRequest. class (GObject o, IsDescendantOf GeolocationPermissionRequest o) => IsGeolocationPermissionRequest o -- | Cast to GeolocationPermissionRequest, for types for which this -- is known to be safe. For general casts, use castTo. toGeolocationPermissionRequest :: (MonadIO m, IsGeolocationPermissionRequest o) => o -> m GeolocationPermissionRequest -- | A convenience alias for Nothing :: Maybe -- GeolocationPermissionRequest. noGeolocationPermissionRequest :: Maybe GeolocationPermissionRequest instance (Data.GI.Base.BasicTypes.GObject o, Data.GI.Base.Overloading.IsDescendantOf GI.WebKit2.Objects.GeolocationPermissionRequest.GeolocationPermissionRequest o) => GI.WebKit2.Objects.GeolocationPermissionRequest.IsGeolocationPermissionRequest o instance Data.GI.Base.BasicTypes.GObject GI.WebKit2.Objects.GeolocationPermissionRequest.GeolocationPermissionRequest instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit2.Objects.GeolocationPermissionRequest.GeolocationPermissionRequest -- | No description available in the introspection data. module GI.WebKit2.Objects.HitTestResult -- | Memory-managed wrapper type. newtype HitTestResult HitTestResult :: ManagedPtr HitTestResult -> HitTestResult -- | Type class for types which can be safely cast to HitTestResult, -- for instance with toHitTestResult. class (GObject o, IsDescendantOf HitTestResult o) => IsHitTestResult o -- | Cast to HitTestResult, for types for which this is known to be -- safe. For general casts, use castTo. toHitTestResult :: (MonadIO m, IsHitTestResult o) => o -> m HitTestResult -- | A convenience alias for Nothing :: Maybe -- 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. -- -- Since: 2.8 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 (Maybe Text) -- | Gets the value of the HitTestResult:link-label -- property. hitTestResultGetLinkLabel :: (HasCallStack, MonadIO m, IsHitTestResult a) => a -> m (Maybe Text) -- | Gets the value of the HitTestResult:link-title -- property. hitTestResultGetLinkTitle :: (HasCallStack, MonadIO m, IsHitTestResult a) => a -> m (Maybe Text) -- | Gets the value of the HitTestResult:link-uri -- property. hitTestResultGetLinkUri :: (HasCallStack, MonadIO m, IsHitTestResult a) => a -> m (Maybe Text) -- | Gets the value of the HitTestResult:media-uri -- property. hitTestResultGetMediaUri :: (HasCallStack, MonadIO m, IsHitTestResult a) => a -> m (Maybe Text) -- | Construct a GValueConstruct with valid value for the -- “context” property. This is rarely needed directly, but it is -- used by new. constructHitTestResultContext :: IsHitTestResult o => Word32 -> IO (GValueConstruct o) -- | Get the value of the “context” property. When -- overloading is enabled, this is equivalent to -- --
-- get hitTestResult #context --getHitTestResultContext :: (MonadIO m, IsHitTestResult o) => o -> m Word32 -- | Construct a GValueConstruct with valid value for the -- “image-uri” property. This is rarely needed directly, but it -- is used by new. constructHitTestResultImageUri :: IsHitTestResult o => Text -> IO (GValueConstruct o) -- | Get the value of the “image-uri” property. When -- overloading is enabled, this is equivalent to -- --
-- get hitTestResult #imageUri --getHitTestResultImageUri :: (MonadIO m, IsHitTestResult o) => o -> m (Maybe Text) -- | Construct a GValueConstruct with valid value for the -- “link-label” property. This is rarely needed directly, but it -- is used by new. constructHitTestResultLinkLabel :: IsHitTestResult o => Text -> IO (GValueConstruct o) -- | Get the value of the “link-label” property. When -- overloading is enabled, this is equivalent to -- --
-- get hitTestResult #linkLabel --getHitTestResultLinkLabel :: (MonadIO m, IsHitTestResult o) => o -> m (Maybe Text) -- | Construct a GValueConstruct with valid value for the -- “link-title” property. This is rarely needed directly, but it -- is used by new. constructHitTestResultLinkTitle :: IsHitTestResult o => Text -> IO (GValueConstruct o) -- | Get the value of the “link-title” property. When -- overloading is enabled, this is equivalent to -- --
-- get hitTestResult #linkTitle --getHitTestResultLinkTitle :: (MonadIO m, IsHitTestResult o) => o -> m (Maybe Text) -- | Construct a GValueConstruct with valid value for the -- “link-uri” property. This is rarely needed directly, but it -- is used by new. constructHitTestResultLinkUri :: IsHitTestResult o => Text -> IO (GValueConstruct o) -- | Get the value of the “link-uri” property. When -- overloading is enabled, this is equivalent to -- --
-- get hitTestResult #linkUri --getHitTestResultLinkUri :: (MonadIO m, IsHitTestResult o) => o -> m (Maybe Text) -- | Construct a GValueConstruct with valid value for the -- “media-uri” property. This is rarely needed directly, but it -- is used by new. constructHitTestResultMediaUri :: IsHitTestResult o => Text -> IO (GValueConstruct o) -- | Get the value of the “media-uri” property. When -- overloading is enabled, this is equivalent to -- --
-- get hitTestResult #mediaUri --getHitTestResultMediaUri :: (MonadIO m, IsHitTestResult o) => o -> m (Maybe Text) instance (Data.GI.Base.BasicTypes.GObject o, Data.GI.Base.Overloading.IsDescendantOf GI.WebKit2.Objects.HitTestResult.HitTestResult o) => GI.WebKit2.Objects.HitTestResult.IsHitTestResult o instance Data.GI.Base.BasicTypes.GObject GI.WebKit2.Objects.HitTestResult.HitTestResult instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit2.Objects.HitTestResult.HitTestResult -- | No description available in the introspection data. module GI.WebKit2.Objects.InstallMissingMediaPluginsPermissionRequest -- | Memory-managed wrapper type. newtype InstallMissingMediaPluginsPermissionRequest InstallMissingMediaPluginsPermissionRequest :: ManagedPtr InstallMissingMediaPluginsPermissionRequest -> InstallMissingMediaPluginsPermissionRequest -- | Type class for types which can be safely cast to -- InstallMissingMediaPluginsPermissionRequest, for instance with -- toInstallMissingMediaPluginsPermissionRequest. class (GObject o, IsDescendantOf InstallMissingMediaPluginsPermissionRequest o) => IsInstallMissingMediaPluginsPermissionRequest o -- | Cast to InstallMissingMediaPluginsPermissionRequest, for types -- for which this is known to be safe. For general casts, use -- castTo. toInstallMissingMediaPluginsPermissionRequest :: (MonadIO m, IsInstallMissingMediaPluginsPermissionRequest o) => o -> m InstallMissingMediaPluginsPermissionRequest -- | A convenience alias for Nothing :: Maybe -- InstallMissingMediaPluginsPermissionRequest. noInstallMissingMediaPluginsPermissionRequest :: Maybe InstallMissingMediaPluginsPermissionRequest -- | Gets the description about the missing plugins provided by the media -- backend when a media couldn't be played. -- -- Since: 2.10 installMissingMediaPluginsPermissionRequestGetDescription :: (HasCallStack, MonadIO m, IsInstallMissingMediaPluginsPermissionRequest a) => a -> m Text instance (Data.GI.Base.BasicTypes.GObject o, Data.GI.Base.Overloading.IsDescendantOf GI.WebKit2.Objects.InstallMissingMediaPluginsPermissionRequest.InstallMissingMediaPluginsPermissionRequest o) => GI.WebKit2.Objects.InstallMissingMediaPluginsPermissionRequest.IsInstallMissingMediaPluginsPermissionRequest o instance Data.GI.Base.BasicTypes.GObject GI.WebKit2.Objects.InstallMissingMediaPluginsPermissionRequest.InstallMissingMediaPluginsPermissionRequest instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit2.Objects.InstallMissingMediaPluginsPermissionRequest.InstallMissingMediaPluginsPermissionRequest -- | No description available in the introspection data. module GI.WebKit2.Objects.Notification -- | Memory-managed wrapper type. newtype Notification Notification :: ManagedPtr Notification -> Notification -- | Type class for types which can be safely cast to Notification, -- for instance with toNotification. class (GObject o, IsDescendantOf Notification o) => IsNotification o -- | Cast to Notification, for types for which this is known to be -- safe. For general casts, use castTo. toNotification :: (MonadIO m, IsNotification o) => o -> m Notification -- | A convenience alias for Nothing :: Maybe -- Notification. noNotification :: Maybe Notification -- | Tells WebKit the notification has been clicked. This will emit the -- Notification::clicked signal. -- -- Since: 2.12 notificationClicked :: (HasCallStack, MonadIO m, IsNotification a) => a -> m () -- | Closes the notification. -- -- Since: 2.8 notificationClose :: (HasCallStack, MonadIO m, IsNotification a) => a -> m () -- | Obtains the body for the notification. -- -- Since: 2.8 notificationGetBody :: (HasCallStack, MonadIO m, IsNotification a) => a -> m Text -- | Obtains the unique id for the notification. -- -- Since: 2.8 notificationGetId :: (HasCallStack, MonadIO m, IsNotification a) => a -> m Word64 -- | Obtains the tag identifier for the notification. -- -- Since: 2.16 notificationGetTag :: (HasCallStack, MonadIO m, IsNotification a) => a -> m (Maybe Text) -- | Obtains the title for the notification. -- -- Since: 2.8 notificationGetTitle :: (HasCallStack, MonadIO m, IsNotification a) => a -> m Text -- | Get the value of the “body” property. When overloading -- is enabled, this is equivalent to -- --
-- get notification #body --getNotificationBody :: (MonadIO m, IsNotification o) => o -> m Text -- | Get the value of the “id” property. When overloading -- is enabled, this is equivalent to -- --
-- get notification #id --getNotificationId :: (MonadIO m, IsNotification o) => o -> m Word64 -- | Get the value of the “tag” property. When overloading -- is enabled, this is equivalent to -- --
-- get notification #tag --getNotificationTag :: (MonadIO m, IsNotification o) => o -> m (Maybe Text) -- | Get the value of the “title” property. When -- overloading is enabled, this is equivalent to -- --
-- get notification #title --getNotificationTitle :: (MonadIO m, IsNotification o) => o -> m Text -- | Type for the callback on the (unwrapped) C side. type C_NotificationClickedCallback = Ptr () -> Ptr () -> IO () -- | Emitted when a notification has been clicked. See -- notificationClicked. -- -- Since: 2.12 type NotificationClickedCallback = IO () -- | Connect a signal handler for the “clicked” signal, to be run -- after the default handler. When overloading is enabled, this is -- equivalent to -- --
-- after notification #clicked callback --afterNotificationClicked :: (IsNotification a, MonadIO m) => a -> NotificationClickedCallback -> m SignalHandlerId -- | Wrap the callback into a GClosure. genClosure_NotificationClicked :: MonadIO m => NotificationClickedCallback -> m (GClosure C_NotificationClickedCallback) -- | Generate a function pointer callable from C code, from a -- C_NotificationClickedCallback. mk_NotificationClickedCallback :: C_NotificationClickedCallback -> IO (FunPtr C_NotificationClickedCallback) -- | A convenience synonym for Nothing :: Maybe -- NotificationClickedCallback. noNotificationClickedCallback :: Maybe NotificationClickedCallback -- | Connect a signal handler for the “clicked” signal, to be run -- before the default handler. When overloading is enabled, this -- is equivalent to -- --
-- on notification #clicked callback --onNotificationClicked :: (IsNotification a, MonadIO m) => a -> NotificationClickedCallback -> m SignalHandlerId -- | Wrap a NotificationClickedCallback into a -- C_NotificationClickedCallback. wrap_NotificationClickedCallback :: NotificationClickedCallback -> C_NotificationClickedCallback -- | Type for the callback on the (unwrapped) C side. type C_NotificationClosedCallback = Ptr () -> Ptr () -> IO () -- | Emitted when a notification has been withdrawn. -- -- The default handler will close the notification using libnotify, if -- built with support for it. -- -- Since: 2.8 type NotificationClosedCallback = IO () -- | Connect a signal handler for the “closed” signal, to be run -- after the default handler. When overloading is enabled, this is -- equivalent to -- --
-- after notification #closed callback --afterNotificationClosed :: (IsNotification a, MonadIO m) => a -> NotificationClosedCallback -> m SignalHandlerId -- | Wrap the callback into a GClosure. genClosure_NotificationClosed :: MonadIO m => NotificationClosedCallback -> m (GClosure C_NotificationClosedCallback) -- | Generate a function pointer callable from C code, from a -- C_NotificationClosedCallback. mk_NotificationClosedCallback :: C_NotificationClosedCallback -> IO (FunPtr C_NotificationClosedCallback) -- | A convenience synonym for Nothing :: Maybe -- NotificationClosedCallback. noNotificationClosedCallback :: Maybe NotificationClosedCallback -- | Connect a signal handler for the “closed” signal, to be run -- before the default handler. When overloading is enabled, this -- is equivalent to -- --
-- on notification #closed callback --onNotificationClosed :: (IsNotification a, MonadIO m) => a -> NotificationClosedCallback -> m SignalHandlerId -- | Wrap a NotificationClosedCallback into a -- C_NotificationClosedCallback. wrap_NotificationClosedCallback :: NotificationClosedCallback -> C_NotificationClosedCallback instance (Data.GI.Base.BasicTypes.GObject o, Data.GI.Base.Overloading.IsDescendantOf GI.WebKit2.Objects.Notification.Notification o) => GI.WebKit2.Objects.Notification.IsNotification o instance Data.GI.Base.BasicTypes.GObject GI.WebKit2.Objects.Notification.Notification instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit2.Objects.Notification.Notification -- | No description available in the introspection data. module GI.WebKit2.Objects.NotificationPermissionRequest -- | Memory-managed wrapper type. newtype NotificationPermissionRequest NotificationPermissionRequest :: ManagedPtr NotificationPermissionRequest -> NotificationPermissionRequest -- | Type class for types which can be safely cast to -- NotificationPermissionRequest, for instance with -- toNotificationPermissionRequest. class (GObject o, IsDescendantOf NotificationPermissionRequest o) => IsNotificationPermissionRequest o -- | Cast to NotificationPermissionRequest, for types for which this -- is known to be safe. For general casts, use castTo. toNotificationPermissionRequest :: (MonadIO m, IsNotificationPermissionRequest o) => o -> m NotificationPermissionRequest -- | A convenience alias for Nothing :: Maybe -- NotificationPermissionRequest. noNotificationPermissionRequest :: Maybe NotificationPermissionRequest instance (Data.GI.Base.BasicTypes.GObject o, Data.GI.Base.Overloading.IsDescendantOf GI.WebKit2.Objects.NotificationPermissionRequest.NotificationPermissionRequest o) => GI.WebKit2.Objects.NotificationPermissionRequest.IsNotificationPermissionRequest o instance Data.GI.Base.BasicTypes.GObject GI.WebKit2.Objects.NotificationPermissionRequest.NotificationPermissionRequest instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit2.Objects.NotificationPermissionRequest.NotificationPermissionRequest -- | No description available in the introspection data. module GI.WebKit2.Objects.PolicyDecision -- | Memory-managed wrapper type. newtype PolicyDecision PolicyDecision :: ManagedPtr PolicyDecision -> PolicyDecision -- | Type class for types which can be safely cast to -- PolicyDecision, for instance with toPolicyDecision. class (GObject o, IsDescendantOf PolicyDecision o) => IsPolicyDecision o -- | Cast to PolicyDecision, for types for which this is known to be -- safe. For general casts, use castTo. toPolicyDecision :: (MonadIO m, IsPolicyDecision o) => o -> m PolicyDecision -- | A convenience alias for Nothing :: Maybe -- PolicyDecision. noPolicyDecision :: Maybe PolicyDecision -- | Spawn a download from this decision. policyDecisionDownload :: (HasCallStack, MonadIO m, IsPolicyDecision a) => a -> m () -- | Ignore the action which triggered this decision. For instance, for a -- ResponsePolicyDecision, this would cancel the request. policyDecisionIgnore :: (HasCallStack, MonadIO m, IsPolicyDecision a) => a -> m () -- | Accept the action which triggered this decision. policyDecisionUse :: (HasCallStack, MonadIO m, IsPolicyDecision a) => a -> m () instance (Data.GI.Base.BasicTypes.GObject o, Data.GI.Base.Overloading.IsDescendantOf GI.WebKit2.Objects.PolicyDecision.PolicyDecision o) => GI.WebKit2.Objects.PolicyDecision.IsPolicyDecision o instance Data.GI.Base.BasicTypes.GObject GI.WebKit2.Objects.PolicyDecision.PolicyDecision instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit2.Objects.PolicyDecision.PolicyDecision -- | No description available in the introspection data. module GI.WebKit2.Objects.PrintCustomWidget -- | Memory-managed wrapper type. newtype PrintCustomWidget PrintCustomWidget :: ManagedPtr PrintCustomWidget -> PrintCustomWidget -- | Type class for types which can be safely cast to -- PrintCustomWidget, for instance with -- toPrintCustomWidget. class (GObject o, IsDescendantOf PrintCustomWidget o) => IsPrintCustomWidget o -- | Cast to PrintCustomWidget, for types for which this is known to -- be safe. For general casts, use castTo. toPrintCustomWidget :: (MonadIO m, IsPrintCustomWidget o) => o -> m PrintCustomWidget -- | A convenience alias for Nothing :: Maybe -- PrintCustomWidget. noPrintCustomWidget :: Maybe PrintCustomWidget -- | Return the value of PrintCustomWidget:title -- property for the given printCustomWidget object. -- -- Since: 2.16 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. -- -- Since: 2.16 printCustomWidgetGetWidget :: (HasCallStack, MonadIO m, IsPrintCustomWidget a) => a -> m (Maybe 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. -- -- Since: 2.16 printCustomWidgetNew :: (HasCallStack, MonadIO m, IsWidget a) => a -> Text -> m PrintCustomWidget -- | Construct a GValueConstruct with valid value for the -- “title” property. This is rarely needed directly, but it is -- used by new. constructPrintCustomWidgetTitle :: IsPrintCustomWidget o => Text -> IO (GValueConstruct o) -- | Get the value of the “title” property. When -- overloading is enabled, this is equivalent to -- --
-- get printCustomWidget #title --getPrintCustomWidgetTitle :: (MonadIO m, IsPrintCustomWidget o) => o -> m Text -- | Construct a GValueConstruct with valid value for the -- “widget” property. This is rarely needed directly, but it is -- used by new. constructPrintCustomWidgetWidget :: (IsPrintCustomWidget o, IsWidget a) => a -> IO (GValueConstruct o) -- | Get the value of the “widget” property. When -- overloading is enabled, this is equivalent to -- --
-- get printCustomWidget #widget --getPrintCustomWidgetWidget :: (MonadIO m, IsPrintCustomWidget o) => o -> m (Maybe Widget) -- | Type for the callback on the (unwrapped) C side. type C_PrintCustomWidgetApplyCallback = Ptr () -> Ptr () -> IO () -- | Emitted right before the printing will start. You should read the -- information from the widget and update the content based on it if -- necessary. The widget is not guaranteed to be valid at a later time. -- -- Since: 2.16 type PrintCustomWidgetApplyCallback = IO () -- | Connect a signal handler for the “apply” signal, to be run -- after the default handler. When overloading is enabled, this is -- equivalent to -- --
-- after printCustomWidget #apply callback --afterPrintCustomWidgetApply :: (IsPrintCustomWidget a, MonadIO m) => a -> PrintCustomWidgetApplyCallback -> m SignalHandlerId -- | Wrap the callback into a GClosure. genClosure_PrintCustomWidgetApply :: MonadIO m => PrintCustomWidgetApplyCallback -> m (GClosure C_PrintCustomWidgetApplyCallback) -- | Generate a function pointer callable from C code, from a -- C_PrintCustomWidgetApplyCallback. mk_PrintCustomWidgetApplyCallback :: C_PrintCustomWidgetApplyCallback -> IO (FunPtr C_PrintCustomWidgetApplyCallback) -- | A convenience synonym for Nothing :: Maybe -- PrintCustomWidgetApplyCallback. noPrintCustomWidgetApplyCallback :: Maybe PrintCustomWidgetApplyCallback -- | Connect a signal handler for the “apply” signal, to be run -- before the default handler. When overloading is enabled, this -- is equivalent to -- --
-- on printCustomWidget #apply callback --onPrintCustomWidgetApply :: (IsPrintCustomWidget a, MonadIO m) => a -> PrintCustomWidgetApplyCallback -> m SignalHandlerId -- | Wrap a PrintCustomWidgetApplyCallback into a -- C_PrintCustomWidgetApplyCallback. wrap_PrintCustomWidgetApplyCallback :: PrintCustomWidgetApplyCallback -> C_PrintCustomWidgetApplyCallback -- | Type for the callback on the (unwrapped) C side. type C_PrintCustomWidgetUpdateCallback = Ptr () -> Ptr PageSetup -> Ptr PrintSettings -> Ptr () -> IO () -- | Emitted after change of selected printer in the dialog. The actual -- page setup and print settings are available and the custom widget can -- actualize itself according to their values. -- -- Since: 2.16 type PrintCustomWidgetUpdateCallback = PageSetup " /@pageSetup@/: actual page setup " -> PrintSettings " /@printSettings@/: actual print settings " -> IO () -- | Connect a signal handler for the “update” signal, to be run -- after the default handler. When overloading is enabled, this is -- equivalent to -- --
-- after printCustomWidget #update callback --afterPrintCustomWidgetUpdate :: (IsPrintCustomWidget a, MonadIO m) => a -> PrintCustomWidgetUpdateCallback -> m SignalHandlerId -- | Wrap the callback into a GClosure. genClosure_PrintCustomWidgetUpdate :: MonadIO m => PrintCustomWidgetUpdateCallback -> m (GClosure C_PrintCustomWidgetUpdateCallback) -- | Generate a function pointer callable from C code, from a -- C_PrintCustomWidgetUpdateCallback. mk_PrintCustomWidgetUpdateCallback :: C_PrintCustomWidgetUpdateCallback -> IO (FunPtr C_PrintCustomWidgetUpdateCallback) -- | A convenience synonym for Nothing :: Maybe -- PrintCustomWidgetUpdateCallback. noPrintCustomWidgetUpdateCallback :: Maybe PrintCustomWidgetUpdateCallback -- | Connect a signal handler for the “update” signal, to be run -- before the default handler. When overloading is enabled, this -- is equivalent to -- --
-- on printCustomWidget #update callback --onPrintCustomWidgetUpdate :: (IsPrintCustomWidget a, MonadIO m) => a -> PrintCustomWidgetUpdateCallback -> m SignalHandlerId -- | Wrap a PrintCustomWidgetUpdateCallback into a -- C_PrintCustomWidgetUpdateCallback. wrap_PrintCustomWidgetUpdateCallback :: PrintCustomWidgetUpdateCallback -> C_PrintCustomWidgetUpdateCallback instance (Data.GI.Base.BasicTypes.GObject o, Data.GI.Base.Overloading.IsDescendantOf GI.WebKit2.Objects.PrintCustomWidget.PrintCustomWidget o) => GI.WebKit2.Objects.PrintCustomWidget.IsPrintCustomWidget o instance Data.GI.Base.BasicTypes.GObject GI.WebKit2.Objects.PrintCustomWidget.PrintCustomWidget instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit2.Objects.PrintCustomWidget.PrintCustomWidget -- | No description available in the introspection data. module GI.WebKit2.Objects.SecurityManager -- | Memory-managed wrapper type. newtype SecurityManager SecurityManager :: ManagedPtr SecurityManager -> SecurityManager -- | Type class for types which can be safely cast to -- SecurityManager, for instance with toSecurityManager. class (GObject o, IsDescendantOf SecurityManager o) => IsSecurityManager o -- | Cast to SecurityManager, for types for which this is known to -- be safe. For general casts, use castTo. toSecurityManager :: (MonadIO m, IsSecurityManager o) => o -> m SecurityManager -- | A convenience alias for Nothing :: Maybe -- 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 o, Data.GI.Base.Overloading.IsDescendantOf GI.WebKit2.Objects.SecurityManager.SecurityManager o) => GI.WebKit2.Objects.SecurityManager.IsSecurityManager o instance Data.GI.Base.BasicTypes.GObject GI.WebKit2.Objects.SecurityManager.SecurityManager instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit2.Objects.SecurityManager.SecurityManager -- | No description available in the introspection data. module GI.WebKit2.Objects.Settings -- | Memory-managed wrapper type. newtype Settings Settings :: ManagedPtr Settings -> Settings -- | Type class for types which can be safely cast to Settings, for -- instance with toSettings. class (GObject o, IsDescendantOf Settings o) => IsSettings o -- | Cast to Settings, for types for which this is known to be safe. -- For general casts, use castTo. toSettings :: (MonadIO m, IsSettings o) => o -> m Settings -- | A convenience alias for Nothing :: Maybe -- Settings. noSettings :: Maybe Settings -- | Convert points to the equivalent value in pixels, -- based on the current screen DPI. Applications can use this function to -- convert font size values in points to font size values in pixels when -- setting the font size properties of Settings. -- -- Since: 2.20 settingsFontSizeToPixels :: (HasCallStack, MonadIO m) => Word32 -> m Word32 -- | Convert pixels to the equivalent value in points, -- based on the current screen DPI. Applications can use this function to -- convert font size values in pixels to font size values in points when -- getting the font size properties of Settings. -- -- Since: 2.20 settingsFontSizeToPoints :: (HasCallStack, MonadIO m) => Word32 -> m Word32 -- | Get the -- Settings:allow-file-access-from-file-urls -- property. -- -- Since: 2.10 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. -- -- Since: 2.14 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. -- -- Since: 2.2 settingsGetEnableAccelerated2dCanvas :: (HasCallStack, MonadIO m, IsSettings a) => a -> m Bool -- | Get the -- Settings:enable-back-forward-navigation-gestures -- property. -- -- Since: 2.24 settingsGetEnableBackForwardNavigationGestures :: (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-encrypted-media -- property. -- -- Since: 2.20 settingsGetEnableEncryptedMedia :: (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-javascript-markup -- property. -- -- Since: 2.24 settingsGetEnableJavascriptMarkup :: (HasCallStack, MonadIO m, IsSettings a) => a -> m Bool -- | Get the Settings:enable-media-capabilities -- property. -- -- Since: 2.22 settingsGetEnableMediaCapabilities :: (HasCallStack, MonadIO m, IsSettings a) => a -> m Bool -- | Get the Settings:enable-media-stream property. -- -- Since: 2.4 settingsGetEnableMediaStream :: (HasCallStack, MonadIO m, IsSettings a) => a -> m Bool -- | Get the Settings:enable-mediasource property. -- -- Since: 2.4 settingsGetEnableMediasource :: (HasCallStack, MonadIO m, IsSettings a) => a -> m Bool -- | Get the Settings:enable-mock-capture-devices -- property. -- -- Since: 2.24 settingsGetEnableMockCaptureDevices :: (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. -- -- Since: 2.2 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. -- -- Since: 2.2 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. -- -- Since: 2.16 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. -- -- Since: 2.10 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. -- -- Since: 2.14 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. -- -- Since: 2.2 settingsSetEnableAccelerated2dCanvas :: (HasCallStack, MonadIO m, IsSettings a) => a -> Bool -> m () -- | Set the -- Settings:enable-back-forward-navigation-gestures -- property. -- -- Since: 2.24 settingsSetEnableBackForwardNavigationGestures :: (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-encrypted-media -- property. -- -- Since: 2.20 settingsSetEnableEncryptedMedia :: (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-javascript-markup -- property. -- -- Since: 2.24 settingsSetEnableJavascriptMarkup :: (HasCallStack, MonadIO m, IsSettings a) => a -> Bool -> m () -- | Set the Settings:enable-media-capabilities -- property. -- -- Since: 2.22 settingsSetEnableMediaCapabilities :: (HasCallStack, MonadIO m, IsSettings a) => a -> Bool -> m () -- | Set the Settings:enable-media-stream property. -- -- Since: 2.4 settingsSetEnableMediaStream :: (HasCallStack, MonadIO m, IsSettings a) => a -> Bool -> m () -- | Set the Settings:enable-mediasource property. -- -- Since: 2.4 settingsSetEnableMediasource :: (HasCallStack, MonadIO m, IsSettings a) => a -> Bool -> m () -- | Set the Settings:enable-mock-capture-devices -- property. -- -- Since: 2.4 settingsSetEnableMockCaptureDevices :: (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. -- -- Since: 2.2 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. -- -- Since: 2.2 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. -- -- Since: 2.16 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 () -- | Construct a GValueConstruct with valid value for the -- “allow-file-access-from-file-urls” property. This is rarely -- needed directly, but it is used by new. constructSettingsAllowFileAccessFromFileUrls :: IsSettings o => Bool -> IO (GValueConstruct o) -- | Get the value of the “allow-file-access-from-file-urls” -- property. When overloading is enabled, this is equivalent to -- --
-- get settings #allowFileAccessFromFileUrls --getSettingsAllowFileAccessFromFileUrls :: (MonadIO m, IsSettings o) => o -> m Bool -- | Set the value of the “allow-file-access-from-file-urls” -- property. When overloading is enabled, this is equivalent to -- --
-- set settings [ #allowFileAccessFromFileUrls := value ] --setSettingsAllowFileAccessFromFileUrls :: (MonadIO m, IsSettings o) => o -> Bool -> m () -- | Construct a GValueConstruct with valid value for the -- “allow-modal-dialogs” property. This is rarely needed -- directly, but it is used by new. constructSettingsAllowModalDialogs :: IsSettings o => Bool -> IO (GValueConstruct o) -- | Get the value of the “allow-modal-dialogs” property. When -- overloading is enabled, this is equivalent to -- --
-- get settings #allowModalDialogs --getSettingsAllowModalDialogs :: (MonadIO m, IsSettings o) => o -> m Bool -- | Set the value of the “allow-modal-dialogs” property. When -- overloading is enabled, this is equivalent to -- --
-- set settings [ #allowModalDialogs := value ] --setSettingsAllowModalDialogs :: (MonadIO m, IsSettings o) => o -> Bool -> m () -- | Construct a GValueConstruct with valid value for the -- “allow-universal-access-from-file-urls” property. This is -- rarely needed directly, but it is used by new. constructSettingsAllowUniversalAccessFromFileUrls :: IsSettings o => Bool -> IO (GValueConstruct o) -- | Get the value of the “allow-universal-access-from-file-urls” -- property. When overloading is enabled, this is equivalent to -- --
-- get settings #allowUniversalAccessFromFileUrls --getSettingsAllowUniversalAccessFromFileUrls :: (MonadIO m, IsSettings o) => o -> m Bool -- | Set the value of the “allow-universal-access-from-file-urls” -- property. When overloading is enabled, this is equivalent to -- --
-- set settings [ #allowUniversalAccessFromFileUrls := value ] --setSettingsAllowUniversalAccessFromFileUrls :: (MonadIO m, IsSettings o) => o -> Bool -> m () -- | Construct a GValueConstruct with valid value for the -- “auto-load-images” property. This is rarely needed directly, -- but it is used by new. constructSettingsAutoLoadImages :: IsSettings o => Bool -> IO (GValueConstruct o) -- | Get the value of the “auto-load-images” property. When -- overloading is enabled, this is equivalent to -- --
-- get settings #autoLoadImages --getSettingsAutoLoadImages :: (MonadIO m, IsSettings o) => o -> m Bool -- | Set the value of the “auto-load-images” property. When -- overloading is enabled, this is equivalent to -- --
-- set settings [ #autoLoadImages := value ] --setSettingsAutoLoadImages :: (MonadIO m, IsSettings o) => o -> Bool -> m () -- | Construct a GValueConstruct with valid value for the -- “cursive-font-family” property. This is rarely needed -- directly, but it is used by new. constructSettingsCursiveFontFamily :: IsSettings o => Text -> IO (GValueConstruct o) -- | Get the value of the “cursive-font-family” property. When -- overloading is enabled, this is equivalent to -- --
-- get settings #cursiveFontFamily --getSettingsCursiveFontFamily :: (MonadIO m, IsSettings o) => o -> m Text -- | Set the value of the “cursive-font-family” property. When -- overloading is enabled, this is equivalent to -- --
-- set settings [ #cursiveFontFamily := value ] --setSettingsCursiveFontFamily :: (MonadIO m, IsSettings o) => o -> Text -> m () -- | Construct a GValueConstruct with valid value for the -- “default-charset” property. This is rarely needed directly, -- but it is used by new. constructSettingsDefaultCharset :: IsSettings o => Text -> IO (GValueConstruct o) -- | Get the value of the “default-charset” property. When -- overloading is enabled, this is equivalent to -- --
-- get settings #defaultCharset --getSettingsDefaultCharset :: (MonadIO m, IsSettings o) => o -> m Text -- | Set the value of the “default-charset” property. When -- overloading is enabled, this is equivalent to -- --
-- set settings [ #defaultCharset := value ] --setSettingsDefaultCharset :: (MonadIO m, IsSettings o) => o -> Text -> m () -- | Construct a GValueConstruct with valid value for the -- “default-font-family” property. This is rarely needed -- directly, but it is used by new. constructSettingsDefaultFontFamily :: IsSettings o => Text -> IO (GValueConstruct o) -- | Get the value of the “default-font-family” property. When -- overloading is enabled, this is equivalent to -- --
-- get settings #defaultFontFamily --getSettingsDefaultFontFamily :: (MonadIO m, IsSettings o) => o -> m Text -- | Set the value of the “default-font-family” property. When -- overloading is enabled, this is equivalent to -- --
-- set settings [ #defaultFontFamily := value ] --setSettingsDefaultFontFamily :: (MonadIO m, IsSettings o) => o -> Text -> m () -- | Construct a GValueConstruct with valid value for the -- “default-font-size” property. This is rarely needed directly, -- but it is used by new. constructSettingsDefaultFontSize :: IsSettings o => Word32 -> IO (GValueConstruct o) -- | Get the value of the “default-font-size” property. When -- overloading is enabled, this is equivalent to -- --
-- get settings #defaultFontSize --getSettingsDefaultFontSize :: (MonadIO m, IsSettings o) => o -> m Word32 -- | Set the value of the “default-font-size” property. When -- overloading is enabled, this is equivalent to -- --
-- set settings [ #defaultFontSize := value ] --setSettingsDefaultFontSize :: (MonadIO m, IsSettings o) => o -> Word32 -> m () -- | Construct a GValueConstruct with valid value for the -- “default-monospace-font-size” property. This is rarely needed -- directly, but it is used by new. constructSettingsDefaultMonospaceFontSize :: IsSettings o => Word32 -> IO (GValueConstruct o) -- | Get the value of the “default-monospace-font-size” property. -- When overloading is enabled, this is equivalent to -- --
-- get settings #defaultMonospaceFontSize --getSettingsDefaultMonospaceFontSize :: (MonadIO m, IsSettings o) => o -> m Word32 -- | Set the value of the “default-monospace-font-size” property. -- When overloading is enabled, this is equivalent to -- --
-- set settings [ #defaultMonospaceFontSize := value ] --setSettingsDefaultMonospaceFontSize :: (MonadIO m, IsSettings o) => o -> Word32 -> m () -- | Construct a GValueConstruct with valid value for the -- “draw-compositing-indicators” property. This is rarely needed -- directly, but it is used by new. constructSettingsDrawCompositingIndicators :: IsSettings o => Bool -> IO (GValueConstruct o) -- | Get the value of the “draw-compositing-indicators” property. -- When overloading is enabled, this is equivalent to -- --
-- get settings #drawCompositingIndicators --getSettingsDrawCompositingIndicators :: (MonadIO m, IsSettings o) => o -> m Bool -- | Set the value of the “draw-compositing-indicators” property. -- When overloading is enabled, this is equivalent to -- --
-- set settings [ #drawCompositingIndicators := value ] --setSettingsDrawCompositingIndicators :: (MonadIO m, IsSettings o) => o -> Bool -> m () -- | Construct a GValueConstruct with valid value for the -- “enable-accelerated-2d-canvas” property. This is rarely -- needed directly, but it is used by new. constructSettingsEnableAccelerated2dCanvas :: IsSettings o => Bool -> IO (GValueConstruct o) -- | Get the value of the “enable-accelerated-2d-canvas” property. -- When overloading is enabled, this is equivalent to -- --
-- get settings #enableAccelerated2dCanvas --getSettingsEnableAccelerated2dCanvas :: (MonadIO m, IsSettings o) => o -> m Bool -- | Set the value of the “enable-accelerated-2d-canvas” property. -- When overloading is enabled, this is equivalent to -- --
-- set settings [ #enableAccelerated2dCanvas := value ] --setSettingsEnableAccelerated2dCanvas :: (MonadIO m, IsSettings o) => o -> Bool -> m () -- | Construct a GValueConstruct with valid value for the -- “enable-back-forward-navigation-gestures” property. This is -- rarely needed directly, but it is used by new. constructSettingsEnableBackForwardNavigationGestures :: IsSettings o => Bool -> IO (GValueConstruct o) -- | Get the value of the -- “enable-back-forward-navigation-gestures” property. When -- overloading is enabled, this is equivalent to -- --
-- get settings #enableBackForwardNavigationGestures --getSettingsEnableBackForwardNavigationGestures :: (MonadIO m, IsSettings o) => o -> m Bool -- | Set the value of the -- “enable-back-forward-navigation-gestures” property. When -- overloading is enabled, this is equivalent to -- --
-- set settings [ #enableBackForwardNavigationGestures := value ] --setSettingsEnableBackForwardNavigationGestures :: (MonadIO m, IsSettings o) => o -> Bool -> m () -- | Construct a GValueConstruct with valid value for the -- “enable-caret-browsing” property. This is rarely needed -- directly, but it is used by new. constructSettingsEnableCaretBrowsing :: IsSettings o => Bool -> IO (GValueConstruct o) -- | Get the value of the “enable-caret-browsing” property. When -- overloading is enabled, this is equivalent to -- --
-- get settings #enableCaretBrowsing --getSettingsEnableCaretBrowsing :: (MonadIO m, IsSettings o) => o -> m Bool -- | Set the value of the “enable-caret-browsing” property. When -- overloading is enabled, this is equivalent to -- --
-- set settings [ #enableCaretBrowsing := value ] --setSettingsEnableCaretBrowsing :: (MonadIO m, IsSettings o) => o -> Bool -> m () -- | Construct a GValueConstruct with valid value for the -- “enable-developer-extras” property. This is rarely needed -- directly, but it is used by new. constructSettingsEnableDeveloperExtras :: IsSettings o => Bool -> IO (GValueConstruct o) -- | Get the value of the “enable-developer-extras” property. When -- overloading is enabled, this is equivalent to -- --
-- get settings #enableDeveloperExtras --getSettingsEnableDeveloperExtras :: (MonadIO m, IsSettings o) => o -> m Bool -- | Set the value of the “enable-developer-extras” property. When -- overloading is enabled, this is equivalent to -- --
-- set settings [ #enableDeveloperExtras := value ] --setSettingsEnableDeveloperExtras :: (MonadIO m, IsSettings o) => o -> Bool -> m () -- | Construct a GValueConstruct with valid value for the -- “enable-dns-prefetching” property. This is rarely needed -- directly, but it is used by new. constructSettingsEnableDnsPrefetching :: IsSettings o => Bool -> IO (GValueConstruct o) -- | Get the value of the “enable-dns-prefetching” property. When -- overloading is enabled, this is equivalent to -- --
-- get settings #enableDnsPrefetching --getSettingsEnableDnsPrefetching :: (MonadIO m, IsSettings o) => o -> m Bool -- | Set the value of the “enable-dns-prefetching” property. When -- overloading is enabled, this is equivalent to -- --
-- set settings [ #enableDnsPrefetching := value ] --setSettingsEnableDnsPrefetching :: (MonadIO m, IsSettings o) => o -> Bool -> m () -- | Construct a GValueConstruct with valid value for the -- “enable-encrypted-media” property. This is rarely needed -- directly, but it is used by new. constructSettingsEnableEncryptedMedia :: IsSettings o => Bool -> IO (GValueConstruct o) -- | Get the value of the “enable-encrypted-media” property. When -- overloading is enabled, this is equivalent to -- --
-- get settings #enableEncryptedMedia --getSettingsEnableEncryptedMedia :: (MonadIO m, IsSettings o) => o -> m Bool -- | Set the value of the “enable-encrypted-media” property. When -- overloading is enabled, this is equivalent to -- --
-- set settings [ #enableEncryptedMedia := value ] --setSettingsEnableEncryptedMedia :: (MonadIO m, IsSettings o) => o -> Bool -> m () -- | Construct a GValueConstruct with valid value for the -- “enable-frame-flattening” property. This is rarely needed -- directly, but it is used by new. constructSettingsEnableFrameFlattening :: IsSettings o => Bool -> IO (GValueConstruct o) -- | Get the value of the “enable-frame-flattening” property. When -- overloading is enabled, this is equivalent to -- --
-- get settings #enableFrameFlattening --getSettingsEnableFrameFlattening :: (MonadIO m, IsSettings o) => o -> m Bool -- | Set the value of the “enable-frame-flattening” property. When -- overloading is enabled, this is equivalent to -- --
-- set settings [ #enableFrameFlattening := value ] --setSettingsEnableFrameFlattening :: (MonadIO m, IsSettings o) => o -> Bool -> m () -- | Construct a GValueConstruct with valid value for the -- “enable-fullscreen” property. This is rarely needed directly, -- but it is used by new. constructSettingsEnableFullscreen :: IsSettings o => Bool -> IO (GValueConstruct o) -- | Get the value of the “enable-fullscreen” property. When -- overloading is enabled, this is equivalent to -- --
-- get settings #enableFullscreen --getSettingsEnableFullscreen :: (MonadIO m, IsSettings o) => o -> m Bool -- | Set the value of the “enable-fullscreen” property. When -- overloading is enabled, this is equivalent to -- --
-- set settings [ #enableFullscreen := value ] --setSettingsEnableFullscreen :: (MonadIO m, IsSettings o) => o -> Bool -> m () -- | Construct a GValueConstruct with valid value for the -- “enable-html5-database” property. This is rarely needed -- directly, but it is used by new. constructSettingsEnableHtml5Database :: IsSettings o => Bool -> IO (GValueConstruct o) -- | Get the value of the “enable-html5-database” property. When -- overloading is enabled, this is equivalent to -- --
-- get settings #enableHtml5Database --getSettingsEnableHtml5Database :: (MonadIO m, IsSettings o) => o -> m Bool -- | Set the value of the “enable-html5-database” property. When -- overloading is enabled, this is equivalent to -- --
-- set settings [ #enableHtml5Database := value ] --setSettingsEnableHtml5Database :: (MonadIO m, IsSettings o) => o -> Bool -> m () -- | Construct a GValueConstruct with valid value for the -- “enable-html5-local-storage” property. This is rarely needed -- directly, but it is used by new. constructSettingsEnableHtml5LocalStorage :: IsSettings o => Bool -> IO (GValueConstruct o) -- | Get the value of the “enable-html5-local-storage” property. -- When overloading is enabled, this is equivalent to -- --
-- get settings #enableHtml5LocalStorage --getSettingsEnableHtml5LocalStorage :: (MonadIO m, IsSettings o) => o -> m Bool -- | Set the value of the “enable-html5-local-storage” property. -- When overloading is enabled, this is equivalent to -- --
-- set settings [ #enableHtml5LocalStorage := value ] --setSettingsEnableHtml5LocalStorage :: (MonadIO m, IsSettings o) => o -> Bool -> m () -- | Construct a GValueConstruct with valid value for the -- “enable-hyperlink-auditing” property. This is rarely needed -- directly, but it is used by new. constructSettingsEnableHyperlinkAuditing :: IsSettings o => Bool -> IO (GValueConstruct o) -- | Get the value of the “enable-hyperlink-auditing” property. -- When overloading is enabled, this is equivalent to -- --
-- get settings #enableHyperlinkAuditing --getSettingsEnableHyperlinkAuditing :: (MonadIO m, IsSettings o) => o -> m Bool -- | Set the value of the “enable-hyperlink-auditing” property. -- When overloading is enabled, this is equivalent to -- --
-- set settings [ #enableHyperlinkAuditing := value ] --setSettingsEnableHyperlinkAuditing :: (MonadIO m, IsSettings o) => o -> Bool -> m () -- | Construct a GValueConstruct with valid value for the -- “enable-java” property. This is rarely needed directly, but -- it is used by new. constructSettingsEnableJava :: IsSettings o => Bool -> IO (GValueConstruct o) -- | Get the value of the “enable-java” property. When -- overloading is enabled, this is equivalent to -- --
-- get settings #enableJava --getSettingsEnableJava :: (MonadIO m, IsSettings o) => o -> m Bool -- | Set the value of the “enable-java” property. When -- overloading is enabled, this is equivalent to -- --
-- set settings [ #enableJava := value ] --setSettingsEnableJava :: (MonadIO m, IsSettings o) => o -> Bool -> m () -- | Construct a GValueConstruct with valid value for the -- “enable-javascript” property. This is rarely needed directly, -- but it is used by new. constructSettingsEnableJavascript :: IsSettings o => Bool -> IO (GValueConstruct o) -- | Get the value of the “enable-javascript” property. When -- overloading is enabled, this is equivalent to -- --
-- get settings #enableJavascript --getSettingsEnableJavascript :: (MonadIO m, IsSettings o) => o -> m Bool -- | Set the value of the “enable-javascript” property. When -- overloading is enabled, this is equivalent to -- --
-- set settings [ #enableJavascript := value ] --setSettingsEnableJavascript :: (MonadIO m, IsSettings o) => o -> Bool -> m () -- | Construct a GValueConstruct with valid value for the -- “enable-javascript-markup” property. This is rarely needed -- directly, but it is used by new. constructSettingsEnableJavascriptMarkup :: IsSettings o => Bool -> IO (GValueConstruct o) -- | Get the value of the “enable-javascript-markup” property. -- When overloading is enabled, this is equivalent to -- --
-- get settings #enableJavascriptMarkup --getSettingsEnableJavascriptMarkup :: (MonadIO m, IsSettings o) => o -> m Bool -- | Set the value of the “enable-javascript-markup” property. -- When overloading is enabled, this is equivalent to -- --
-- set settings [ #enableJavascriptMarkup := value ] --setSettingsEnableJavascriptMarkup :: (MonadIO m, IsSettings o) => o -> Bool -> m () -- | Construct a GValueConstruct with valid value for the -- “enable-media-capabilities” property. This is rarely needed -- directly, but it is used by new. constructSettingsEnableMediaCapabilities :: IsSettings o => Bool -> IO (GValueConstruct o) -- | Get the value of the “enable-media-capabilities” property. -- When overloading is enabled, this is equivalent to -- --
-- get settings #enableMediaCapabilities --getSettingsEnableMediaCapabilities :: (MonadIO m, IsSettings o) => o -> m Bool -- | Set the value of the “enable-media-capabilities” property. -- When overloading is enabled, this is equivalent to -- --
-- set settings [ #enableMediaCapabilities := value ] --setSettingsEnableMediaCapabilities :: (MonadIO m, IsSettings o) => o -> Bool -> m () -- | Construct a GValueConstruct with valid value for the -- “enable-media-stream” property. This is rarely needed -- directly, but it is used by new. constructSettingsEnableMediaStream :: IsSettings o => Bool -> IO (GValueConstruct o) -- | Get the value of the “enable-media-stream” property. When -- overloading is enabled, this is equivalent to -- --
-- get settings #enableMediaStream --getSettingsEnableMediaStream :: (MonadIO m, IsSettings o) => o -> m Bool -- | Set the value of the “enable-media-stream” property. When -- overloading is enabled, this is equivalent to -- --
-- set settings [ #enableMediaStream := value ] --setSettingsEnableMediaStream :: (MonadIO m, IsSettings o) => o -> Bool -> m () -- | Construct a GValueConstruct with valid value for the -- “enable-mediasource” property. This is rarely needed -- directly, but it is used by new. constructSettingsEnableMediasource :: IsSettings o => Bool -> IO (GValueConstruct o) -- | Get the value of the “enable-mediasource” property. When -- overloading is enabled, this is equivalent to -- --
-- get settings #enableMediasource --getSettingsEnableMediasource :: (MonadIO m, IsSettings o) => o -> m Bool -- | Set the value of the “enable-mediasource” property. When -- overloading is enabled, this is equivalent to -- --
-- set settings [ #enableMediasource := value ] --setSettingsEnableMediasource :: (MonadIO m, IsSettings o) => o -> Bool -> m () -- | Construct a GValueConstruct with valid value for the -- “enable-mock-capture-devices” property. This is rarely needed -- directly, but it is used by new. constructSettingsEnableMockCaptureDevices :: IsSettings o => Bool -> IO (GValueConstruct o) -- | Get the value of the “enable-mock-capture-devices” property. -- When overloading is enabled, this is equivalent to -- --
-- get settings #enableMockCaptureDevices --getSettingsEnableMockCaptureDevices :: (MonadIO m, IsSettings o) => o -> m Bool -- | Set the value of the “enable-mock-capture-devices” property. -- When overloading is enabled, this is equivalent to -- --
-- set settings [ #enableMockCaptureDevices := value ] --setSettingsEnableMockCaptureDevices :: (MonadIO m, IsSettings o) => o -> Bool -> m () -- | Construct a GValueConstruct with valid value for the -- “enable-offline-web-application-cache” property. This is -- rarely needed directly, but it is used by new. constructSettingsEnableOfflineWebApplicationCache :: IsSettings o => Bool -> IO (GValueConstruct o) -- | Get the value of the “enable-offline-web-application-cache” -- property. When overloading is enabled, this is equivalent to -- --
-- get settings #enableOfflineWebApplicationCache --getSettingsEnableOfflineWebApplicationCache :: (MonadIO m, IsSettings o) => o -> m Bool -- | Set the value of the “enable-offline-web-application-cache” -- property. When overloading is enabled, this is equivalent to -- --
-- set settings [ #enableOfflineWebApplicationCache := value ] --setSettingsEnableOfflineWebApplicationCache :: (MonadIO m, IsSettings o) => o -> Bool -> m () -- | Construct a GValueConstruct with valid value for the -- “enable-page-cache” property. This is rarely needed directly, -- but it is used by new. constructSettingsEnablePageCache :: IsSettings o => Bool -> IO (GValueConstruct o) -- | Get the value of the “enable-page-cache” property. When -- overloading is enabled, this is equivalent to -- --
-- get settings #enablePageCache --getSettingsEnablePageCache :: (MonadIO m, IsSettings o) => o -> m Bool -- | Set the value of the “enable-page-cache” property. When -- overloading is enabled, this is equivalent to -- --
-- set settings [ #enablePageCache := value ] --setSettingsEnablePageCache :: (MonadIO m, IsSettings o) => o -> Bool -> m () -- | Construct a GValueConstruct with valid value for the -- “enable-plugins” property. This is rarely needed directly, -- but it is used by new. constructSettingsEnablePlugins :: IsSettings o => Bool -> IO (GValueConstruct o) -- | Get the value of the “enable-plugins” property. When -- overloading is enabled, this is equivalent to -- --
-- get settings #enablePlugins --getSettingsEnablePlugins :: (MonadIO m, IsSettings o) => o -> m Bool -- | Set the value of the “enable-plugins” property. When -- overloading is enabled, this is equivalent to -- --
-- set settings [ #enablePlugins := value ] --setSettingsEnablePlugins :: (MonadIO m, IsSettings o) => o -> Bool -> m () -- | Construct a GValueConstruct with valid value for the -- “enable-private-browsing” property. This is rarely needed -- directly, but it is used by new. constructSettingsEnablePrivateBrowsing :: IsSettings o => Bool -> IO (GValueConstruct o) -- | Get the value of the “enable-private-browsing” property. When -- overloading is enabled, this is equivalent to -- --
-- get settings #enablePrivateBrowsing --getSettingsEnablePrivateBrowsing :: (MonadIO m, IsSettings o) => o -> m Bool -- | Set the value of the “enable-private-browsing” property. When -- overloading is enabled, this is equivalent to -- --
-- set settings [ #enablePrivateBrowsing := value ] --setSettingsEnablePrivateBrowsing :: (MonadIO m, IsSettings o) => o -> Bool -> m () -- | Construct a GValueConstruct with valid value for the -- “enable-resizable-text-areas” property. This is rarely needed -- directly, but it is used by new. constructSettingsEnableResizableTextAreas :: IsSettings o => Bool -> IO (GValueConstruct o) -- | Get the value of the “enable-resizable-text-areas” property. -- When overloading is enabled, this is equivalent to -- --
-- get settings #enableResizableTextAreas --getSettingsEnableResizableTextAreas :: (MonadIO m, IsSettings o) => o -> m Bool -- | Set the value of the “enable-resizable-text-areas” property. -- When overloading is enabled, this is equivalent to -- --
-- set settings [ #enableResizableTextAreas := value ] --setSettingsEnableResizableTextAreas :: (MonadIO m, IsSettings o) => o -> Bool -> m () -- | Construct a GValueConstruct with valid value for the -- “enable-site-specific-quirks” property. This is rarely needed -- directly, but it is used by new. constructSettingsEnableSiteSpecificQuirks :: IsSettings o => Bool -> IO (GValueConstruct o) -- | Get the value of the “enable-site-specific-quirks” property. -- When overloading is enabled, this is equivalent to -- --
-- get settings #enableSiteSpecificQuirks --getSettingsEnableSiteSpecificQuirks :: (MonadIO m, IsSettings o) => o -> m Bool -- | Set the value of the “enable-site-specific-quirks” property. -- When overloading is enabled, this is equivalent to -- --
-- set settings [ #enableSiteSpecificQuirks := value ] --setSettingsEnableSiteSpecificQuirks :: (MonadIO m, IsSettings o) => o -> Bool -> m () -- | Construct a GValueConstruct with valid value for the -- “enable-smooth-scrolling” property. This is rarely needed -- directly, but it is used by new. constructSettingsEnableSmoothScrolling :: IsSettings o => Bool -> IO (GValueConstruct o) -- | Get the value of the “enable-smooth-scrolling” property. When -- overloading is enabled, this is equivalent to -- --
-- get settings #enableSmoothScrolling --getSettingsEnableSmoothScrolling :: (MonadIO m, IsSettings o) => o -> m Bool -- | Set the value of the “enable-smooth-scrolling” property. When -- overloading is enabled, this is equivalent to -- --
-- set settings [ #enableSmoothScrolling := value ] --setSettingsEnableSmoothScrolling :: (MonadIO m, IsSettings o) => o -> Bool -> m () -- | Construct a GValueConstruct with valid value for the -- “enable-spatial-navigation” property. This is rarely needed -- directly, but it is used by new. constructSettingsEnableSpatialNavigation :: IsSettings o => Bool -> IO (GValueConstruct o) -- | Get the value of the “enable-spatial-navigation” property. -- When overloading is enabled, this is equivalent to -- --
-- get settings #enableSpatialNavigation --getSettingsEnableSpatialNavigation :: (MonadIO m, IsSettings o) => o -> m Bool -- | Set the value of the “enable-spatial-navigation” property. -- When overloading is enabled, this is equivalent to -- --
-- set settings [ #enableSpatialNavigation := value ] --setSettingsEnableSpatialNavigation :: (MonadIO m, IsSettings o) => o -> Bool -> m () -- | Construct a GValueConstruct with valid value for the -- “enable-tabs-to-links” property. This is rarely needed -- directly, but it is used by new. constructSettingsEnableTabsToLinks :: IsSettings o => Bool -> IO (GValueConstruct o) -- | Get the value of the “enable-tabs-to-links” property. When -- overloading is enabled, this is equivalent to -- --
-- get settings #enableTabsToLinks --getSettingsEnableTabsToLinks :: (MonadIO m, IsSettings o) => o -> m Bool -- | Set the value of the “enable-tabs-to-links” property. When -- overloading is enabled, this is equivalent to -- --
-- set settings [ #enableTabsToLinks := value ] --setSettingsEnableTabsToLinks :: (MonadIO m, IsSettings o) => o -> Bool -> m () -- | Construct a GValueConstruct with valid value for the -- “enable-webaudio” property. This is rarely needed directly, -- but it is used by new. constructSettingsEnableWebaudio :: IsSettings o => Bool -> IO (GValueConstruct o) -- | Get the value of the “enable-webaudio” property. When -- overloading is enabled, this is equivalent to -- --
-- get settings #enableWebaudio --getSettingsEnableWebaudio :: (MonadIO m, IsSettings o) => o -> m Bool -- | Set the value of the “enable-webaudio” property. When -- overloading is enabled, this is equivalent to -- --
-- set settings [ #enableWebaudio := value ] --setSettingsEnableWebaudio :: (MonadIO m, IsSettings o) => o -> Bool -> m () -- | Construct a GValueConstruct with valid value for the -- “enable-webgl” property. This is rarely needed directly, but -- it is used by new. constructSettingsEnableWebgl :: IsSettings o => Bool -> IO (GValueConstruct o) -- | Get the value of the “enable-webgl” property. When -- overloading is enabled, this is equivalent to -- --
-- get settings #enableWebgl --getSettingsEnableWebgl :: (MonadIO m, IsSettings o) => o -> m Bool -- | Set the value of the “enable-webgl” property. When -- overloading is enabled, this is equivalent to -- --
-- set settings [ #enableWebgl := value ] --setSettingsEnableWebgl :: (MonadIO m, IsSettings o) => o -> Bool -> m () -- | Construct a GValueConstruct with valid value for the -- “enable-write-console-messages-to-stdout” property. This is -- rarely needed directly, but it is used by new. constructSettingsEnableWriteConsoleMessagesToStdout :: IsSettings o => Bool -> IO (GValueConstruct o) -- | Get the value of the -- “enable-write-console-messages-to-stdout” property. When -- overloading is enabled, this is equivalent to -- --
-- get settings #enableWriteConsoleMessagesToStdout --getSettingsEnableWriteConsoleMessagesToStdout :: (MonadIO m, IsSettings o) => o -> m Bool -- | Set the value of the -- “enable-write-console-messages-to-stdout” property. When -- overloading is enabled, this is equivalent to -- --
-- set settings [ #enableWriteConsoleMessagesToStdout := value ] --setSettingsEnableWriteConsoleMessagesToStdout :: (MonadIO m, IsSettings o) => o -> Bool -> m () -- | Construct a GValueConstruct with valid value for the -- “enable-xss-auditor” property. This is rarely needed -- directly, but it is used by new. constructSettingsEnableXssAuditor :: IsSettings o => Bool -> IO (GValueConstruct o) -- | Get the value of the “enable-xss-auditor” property. When -- overloading is enabled, this is equivalent to -- --
-- get settings #enableXssAuditor --getSettingsEnableXssAuditor :: (MonadIO m, IsSettings o) => o -> m Bool -- | Set the value of the “enable-xss-auditor” property. When -- overloading is enabled, this is equivalent to -- --
-- set settings [ #enableXssAuditor := value ] --setSettingsEnableXssAuditor :: (MonadIO m, IsSettings o) => o -> Bool -> m () -- | Construct a GValueConstruct with valid value for the -- “fantasy-font-family” property. This is rarely needed -- directly, but it is used by new. constructSettingsFantasyFontFamily :: IsSettings o => Text -> IO (GValueConstruct o) -- | Get the value of the “fantasy-font-family” property. When -- overloading is enabled, this is equivalent to -- --
-- get settings #fantasyFontFamily --getSettingsFantasyFontFamily :: (MonadIO m, IsSettings o) => o -> m Text -- | Set the value of the “fantasy-font-family” property. When -- overloading is enabled, this is equivalent to -- --
-- set settings [ #fantasyFontFamily := value ] --setSettingsFantasyFontFamily :: (MonadIO m, IsSettings o) => o -> Text -> m () -- | Construct a GValueConstruct with valid value for the -- “hardware-acceleration-policy” property. This is rarely -- needed directly, but it is used by new. constructSettingsHardwareAccelerationPolicy :: IsSettings o => HardwareAccelerationPolicy -> IO (GValueConstruct o) -- | Get the value of the “hardware-acceleration-policy” property. -- When overloading is enabled, this is equivalent to -- --
-- get settings #hardwareAccelerationPolicy --getSettingsHardwareAccelerationPolicy :: (MonadIO m, IsSettings o) => o -> m HardwareAccelerationPolicy -- | Set the value of the “hardware-acceleration-policy” property. -- When overloading is enabled, this is equivalent to -- --
-- set settings [ #hardwareAccelerationPolicy := value ] --setSettingsHardwareAccelerationPolicy :: (MonadIO m, IsSettings o) => o -> HardwareAccelerationPolicy -> m () -- | Construct a GValueConstruct with valid value for the -- “javascript-can-access-clipboard” property. This is rarely -- needed directly, but it is used by new. constructSettingsJavascriptCanAccessClipboard :: IsSettings o => Bool -> IO (GValueConstruct o) -- | Get the value of the “javascript-can-access-clipboard” -- property. When overloading is enabled, this is equivalent to -- --
-- get settings #javascriptCanAccessClipboard --getSettingsJavascriptCanAccessClipboard :: (MonadIO m, IsSettings o) => o -> m Bool -- | Set the value of the “javascript-can-access-clipboard” -- property. When overloading is enabled, this is equivalent to -- --
-- set settings [ #javascriptCanAccessClipboard := value ] --setSettingsJavascriptCanAccessClipboard :: (MonadIO m, IsSettings o) => o -> Bool -> m () -- | Construct a GValueConstruct with valid value for the -- “javascript-can-open-windows-automatically” property. This is -- rarely needed directly, but it is used by new. constructSettingsJavascriptCanOpenWindowsAutomatically :: IsSettings o => Bool -> IO (GValueConstruct o) -- | Get the value of the -- “javascript-can-open-windows-automatically” property. When -- overloading is enabled, this is equivalent to -- --
-- get settings #javascriptCanOpenWindowsAutomatically --getSettingsJavascriptCanOpenWindowsAutomatically :: (MonadIO m, IsSettings o) => o -> m Bool -- | Set the value of the -- “javascript-can-open-windows-automatically” property. When -- overloading is enabled, this is equivalent to -- --
-- set settings [ #javascriptCanOpenWindowsAutomatically := value ] --setSettingsJavascriptCanOpenWindowsAutomatically :: (MonadIO m, IsSettings o) => o -> Bool -> m () -- | Construct a GValueConstruct with valid value for the -- “load-icons-ignoring-image-load-setting” property. This is -- rarely needed directly, but it is used by new. constructSettingsLoadIconsIgnoringImageLoadSetting :: IsSettings o => Bool -> IO (GValueConstruct o) -- | Get the value of the “load-icons-ignoring-image-load-setting” -- property. When overloading is enabled, this is equivalent to -- --
-- get settings #loadIconsIgnoringImageLoadSetting --getSettingsLoadIconsIgnoringImageLoadSetting :: (MonadIO m, IsSettings o) => o -> m Bool -- | Set the value of the “load-icons-ignoring-image-load-setting” -- property. When overloading is enabled, this is equivalent to -- --
-- set settings [ #loadIconsIgnoringImageLoadSetting := value ] --setSettingsLoadIconsIgnoringImageLoadSetting :: (MonadIO m, IsSettings o) => o -> Bool -> m () -- | Construct a GValueConstruct with valid value for the -- “media-playback-allows-inline” property. This is rarely -- needed directly, but it is used by new. constructSettingsMediaPlaybackAllowsInline :: IsSettings o => Bool -> IO (GValueConstruct o) -- | Get the value of the “media-playback-allows-inline” property. -- When overloading is enabled, this is equivalent to -- --
-- get settings #mediaPlaybackAllowsInline --getSettingsMediaPlaybackAllowsInline :: (MonadIO m, IsSettings o) => o -> m Bool -- | Set the value of the “media-playback-allows-inline” property. -- When overloading is enabled, this is equivalent to -- --
-- set settings [ #mediaPlaybackAllowsInline := value ] --setSettingsMediaPlaybackAllowsInline :: (MonadIO m, IsSettings o) => o -> Bool -> m () -- | Construct a GValueConstruct with valid value for the -- “media-playback-requires-user-gesture” property. This is -- rarely needed directly, but it is used by new. constructSettingsMediaPlaybackRequiresUserGesture :: IsSettings o => Bool -> IO (GValueConstruct o) -- | Get the value of the “media-playback-requires-user-gesture” -- property. When overloading is enabled, this is equivalent to -- --
-- get settings #mediaPlaybackRequiresUserGesture --getSettingsMediaPlaybackRequiresUserGesture :: (MonadIO m, IsSettings o) => o -> m Bool -- | Set the value of the “media-playback-requires-user-gesture” -- property. When overloading is enabled, this is equivalent to -- --
-- set settings [ #mediaPlaybackRequiresUserGesture := value ] --setSettingsMediaPlaybackRequiresUserGesture :: (MonadIO m, IsSettings o) => o -> Bool -> m () -- | Construct a GValueConstruct with valid value for the -- “minimum-font-size” property. This is rarely needed directly, -- but it is used by new. constructSettingsMinimumFontSize :: IsSettings o => Word32 -> IO (GValueConstruct o) -- | Get the value of the “minimum-font-size” property. When -- overloading is enabled, this is equivalent to -- --
-- get settings #minimumFontSize --getSettingsMinimumFontSize :: (MonadIO m, IsSettings o) => o -> m Word32 -- | Set the value of the “minimum-font-size” property. When -- overloading is enabled, this is equivalent to -- --
-- set settings [ #minimumFontSize := value ] --setSettingsMinimumFontSize :: (MonadIO m, IsSettings o) => o -> Word32 -> m () -- | Construct a GValueConstruct with valid value for the -- “monospace-font-family” property. This is rarely needed -- directly, but it is used by new. constructSettingsMonospaceFontFamily :: IsSettings o => Text -> IO (GValueConstruct o) -- | Get the value of the “monospace-font-family” property. When -- overloading is enabled, this is equivalent to -- --
-- get settings #monospaceFontFamily --getSettingsMonospaceFontFamily :: (MonadIO m, IsSettings o) => o -> m Text -- | Set the value of the “monospace-font-family” property. When -- overloading is enabled, this is equivalent to -- --
-- set settings [ #monospaceFontFamily := value ] --setSettingsMonospaceFontFamily :: (MonadIO m, IsSettings o) => o -> Text -> m () -- | Construct a GValueConstruct with valid value for the -- “pictograph-font-family” property. This is rarely needed -- directly, but it is used by new. constructSettingsPictographFontFamily :: IsSettings o => Text -> IO (GValueConstruct o) -- | Get the value of the “pictograph-font-family” property. When -- overloading is enabled, this is equivalent to -- --
-- get settings #pictographFontFamily --getSettingsPictographFontFamily :: (MonadIO m, IsSettings o) => o -> m Text -- | Set the value of the “pictograph-font-family” property. When -- overloading is enabled, this is equivalent to -- --
-- set settings [ #pictographFontFamily := value ] --setSettingsPictographFontFamily :: (MonadIO m, IsSettings o) => o -> Text -> m () -- | Construct a GValueConstruct with valid value for the -- “print-backgrounds” property. This is rarely needed directly, -- but it is used by new. constructSettingsPrintBackgrounds :: IsSettings o => Bool -> IO (GValueConstruct o) -- | Get the value of the “print-backgrounds” property. When -- overloading is enabled, this is equivalent to -- --
-- get settings #printBackgrounds --getSettingsPrintBackgrounds :: (MonadIO m, IsSettings o) => o -> m Bool -- | Set the value of the “print-backgrounds” property. When -- overloading is enabled, this is equivalent to -- --
-- set settings [ #printBackgrounds := value ] --setSettingsPrintBackgrounds :: (MonadIO m, IsSettings o) => o -> Bool -> m () -- | Construct a GValueConstruct with valid value for the -- “sans-serif-font-family” property. This is rarely needed -- directly, but it is used by new. constructSettingsSansSerifFontFamily :: IsSettings o => Text -> IO (GValueConstruct o) -- | Get the value of the “sans-serif-font-family” property. When -- overloading is enabled, this is equivalent to -- --
-- get settings #sansSerifFontFamily --getSettingsSansSerifFontFamily :: (MonadIO m, IsSettings o) => o -> m Text -- | Set the value of the “sans-serif-font-family” property. When -- overloading is enabled, this is equivalent to -- --
-- set settings [ #sansSerifFontFamily := value ] --setSettingsSansSerifFontFamily :: (MonadIO m, IsSettings o) => o -> Text -> m () -- | Construct a GValueConstruct with valid value for the -- “serif-font-family” property. This is rarely needed directly, -- but it is used by new. constructSettingsSerifFontFamily :: IsSettings o => Text -> IO (GValueConstruct o) -- | Get the value of the “serif-font-family” property. When -- overloading is enabled, this is equivalent to -- --
-- get settings #serifFontFamily --getSettingsSerifFontFamily :: (MonadIO m, IsSettings o) => o -> m Text -- | Set the value of the “serif-font-family” property. When -- overloading is enabled, this is equivalent to -- --
-- set settings [ #serifFontFamily := value ] --setSettingsSerifFontFamily :: (MonadIO m, IsSettings o) => o -> Text -> m () -- | Set the value of the “user-agent” property to Nothing. -- When overloading is enabled, this is equivalent to -- --
-- clear #userAgent --clearSettingsUserAgent :: (MonadIO m, IsSettings o) => o -> m () -- | Construct a GValueConstruct with valid value for the -- “user-agent” property. This is rarely needed directly, but it -- is used by new. constructSettingsUserAgent :: IsSettings o => Text -> IO (GValueConstruct o) -- | Get the value of the “user-agent” property. When -- overloading is enabled, this is equivalent to -- --
-- get settings #userAgent --getSettingsUserAgent :: (MonadIO m, IsSettings o) => o -> m Text -- | Set the value of the “user-agent” property. When -- overloading is enabled, this is equivalent to -- --
-- set settings [ #userAgent := value ] --setSettingsUserAgent :: (MonadIO m, IsSettings o) => o -> Text -> m () -- | Construct a GValueConstruct with valid value for the -- “zoom-text-only” property. This is rarely needed directly, -- but it is used by new. constructSettingsZoomTextOnly :: IsSettings o => Bool -> IO (GValueConstruct o) -- | Get the value of the “zoom-text-only” property. When -- overloading is enabled, this is equivalent to -- --
-- get settings #zoomTextOnly --getSettingsZoomTextOnly :: (MonadIO m, IsSettings o) => o -> m Bool -- | Set the value of the “zoom-text-only” property. When -- overloading is enabled, this is equivalent to -- --
-- set settings [ #zoomTextOnly := value ] --setSettingsZoomTextOnly :: (MonadIO m, IsSettings o) => o -> Bool -> m () instance (Data.GI.Base.BasicTypes.GObject o, Data.GI.Base.Overloading.IsDescendantOf GI.WebKit2.Objects.Settings.Settings o) => GI.WebKit2.Objects.Settings.IsSettings o instance Data.GI.Base.BasicTypes.GObject GI.WebKit2.Objects.Settings.Settings instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit2.Objects.Settings.Settings -- | No description available in the introspection data. module GI.WebKit2.Objects.URIRequest -- | Memory-managed wrapper type. newtype URIRequest URIRequest :: ManagedPtr URIRequest -> URIRequest -- | Type class for types which can be safely cast to URIRequest, -- for instance with toURIRequest. class (GObject o, IsDescendantOf URIRequest o) => IsURIRequest o -- | Cast to URIRequest, for types for which this is known to be -- safe. For general casts, use castTo. toURIRequest :: (MonadIO m, IsURIRequest o) => o -> m URIRequest -- | A convenience alias for Nothing :: Maybe -- URIRequest. noURIRequest :: Maybe URIRequest -- | Get the HTTP headers of a URIRequest as a -- MessageHeaders. uRIRequestGetHttpHeaders :: (HasCallStack, MonadIO m, IsURIRequest a) => a -> m (Maybe MessageHeaders) -- | Get the HTTP method of the URIRequest. -- -- Since: 2.12 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 () -- | Construct a GValueConstruct with valid value for the -- “uri” property. This is rarely needed directly, but it is -- used by new. constructURIRequestUri :: IsURIRequest o => Text -> IO (GValueConstruct o) -- | Get the value of the “uri” property. When overloading -- is enabled, this is equivalent to -- --
-- get uRIRequest #uri --getURIRequestUri :: (MonadIO m, IsURIRequest o) => o -> m Text -- | Set the value of the “uri” property. When overloading -- is enabled, this is equivalent to -- --
-- set uRIRequest [ #uri := value ] --setURIRequestUri :: (MonadIO m, IsURIRequest o) => o -> Text -> m () instance (Data.GI.Base.BasicTypes.GObject o, Data.GI.Base.Overloading.IsDescendantOf GI.WebKit2.Objects.URIRequest.URIRequest o) => GI.WebKit2.Objects.URIRequest.IsURIRequest o instance Data.GI.Base.BasicTypes.GObject GI.WebKit2.Objects.URIRequest.URIRequest instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit2.Objects.URIRequest.URIRequest -- | No description available in the introspection data. module GI.WebKit2.Objects.ResponsePolicyDecision -- | Memory-managed wrapper type. newtype ResponsePolicyDecision ResponsePolicyDecision :: ManagedPtr ResponsePolicyDecision -> ResponsePolicyDecision -- | Type class for types which can be safely cast to -- ResponsePolicyDecision, for instance with -- toResponsePolicyDecision. class (GObject o, IsDescendantOf ResponsePolicyDecision o) => IsResponsePolicyDecision o -- | Cast to ResponsePolicyDecision, for types for which this is -- known to be safe. For general casts, use castTo. toResponsePolicyDecision :: (MonadIO m, IsResponsePolicyDecision o) => o -> m ResponsePolicyDecision -- | A convenience alias for Nothing :: Maybe -- ResponsePolicyDecision. noResponsePolicyDecision :: Maybe ResponsePolicyDecision -- | Return the URIRequest associated with the response decision. -- Modifications to the returned object are -- <emphasis>not</emphasis> taken into account when the -- request is sent over the network, and is intended only to aid in -- evaluating whether a response decision should be taken or not. To -- modify requests before they are sent over the network the -- WebKitPage::send-request signal can be used instead. 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. -- -- Since: 2.4 responsePolicyDecisionIsMimeTypeSupported :: (HasCallStack, MonadIO m, IsResponsePolicyDecision a) => a -> m Bool -- | Get the value of the “request” property. When -- overloading is enabled, this is equivalent to -- --
-- get responsePolicyDecision #request --getResponsePolicyDecisionRequest :: (MonadIO m, IsResponsePolicyDecision o) => o -> m URIRequest -- | Get the value of the “response” property. When -- overloading is enabled, this is equivalent to -- --
-- get responsePolicyDecision #response --getResponsePolicyDecisionResponse :: (MonadIO m, IsResponsePolicyDecision o) => o -> m URIResponse instance (Data.GI.Base.BasicTypes.GObject o, Data.GI.Base.Overloading.IsDescendantOf GI.WebKit2.Objects.ResponsePolicyDecision.ResponsePolicyDecision o) => GI.WebKit2.Objects.ResponsePolicyDecision.IsResponsePolicyDecision o instance Data.GI.Base.BasicTypes.GObject GI.WebKit2.Objects.ResponsePolicyDecision.ResponsePolicyDecision instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit2.Objects.ResponsePolicyDecision.ResponsePolicyDecision -- | No description available in the introspection data. module GI.WebKit2.Objects.URIResponse -- | Memory-managed wrapper type. newtype URIResponse URIResponse :: ManagedPtr URIResponse -> URIResponse -- | Type class for types which can be safely cast to URIResponse, -- for instance with toURIResponse. class (GObject o, IsDescendantOf URIResponse o) => IsURIResponse o -- | Cast to URIResponse, for types for which this is known to be -- safe. For general casts, use castTo. toURIResponse :: (MonadIO m, IsURIResponse o) => o -> m URIResponse -- | A convenience alias for Nothing :: Maybe -- 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. -- -- Since: 2.6 uRIResponseGetHttpHeaders :: (HasCallStack, MonadIO m, IsURIResponse a) => a -> m (Maybe 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 (Maybe Text) -- | No description available in the introspection data. uRIResponseGetUri :: (HasCallStack, MonadIO m, IsURIResponse a) => a -> m Text -- | Get the value of the “content-length” property. When -- overloading is enabled, this is equivalent to -- --
-- get uRIResponse #contentLength --getURIResponseContentLength :: (MonadIO m, IsURIResponse o) => o -> m Word64 -- | Get the value of the “http-headers” property. When -- overloading is enabled, this is equivalent to -- --
-- get uRIResponse #httpHeaders --getURIResponseHttpHeaders :: (MonadIO m, IsURIResponse o) => o -> m (Maybe MessageHeaders) -- | Get the value of the “mime-type” property. When -- overloading is enabled, this is equivalent to -- --
-- get uRIResponse #mimeType --getURIResponseMimeType :: (MonadIO m, IsURIResponse o) => o -> m Text -- | Get the value of the “status-code” property. When -- overloading is enabled, this is equivalent to -- --
-- get uRIResponse #statusCode --getURIResponseStatusCode :: (MonadIO m, IsURIResponse o) => o -> m Word32 -- | Get the value of the “suggested-filename” property. When -- overloading is enabled, this is equivalent to -- --
-- get uRIResponse #suggestedFilename --getURIResponseSuggestedFilename :: (MonadIO m, IsURIResponse o) => o -> m (Maybe Text) -- | Get the value of the “uri” property. When overloading -- is enabled, this is equivalent to -- --
-- get uRIResponse #uri --getURIResponseUri :: (MonadIO m, IsURIResponse o) => o -> m Text instance (Data.GI.Base.BasicTypes.GObject o, Data.GI.Base.Overloading.IsDescendantOf GI.WebKit2.Objects.URIResponse.URIResponse o) => GI.WebKit2.Objects.URIResponse.IsURIResponse o instance Data.GI.Base.BasicTypes.GObject GI.WebKit2.Objects.URIResponse.URIResponse instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit2.Objects.URIResponse.URIResponse module GI.WebKit2.Callbacks -- | Type for the callback on the (unwrapped) C side. type C_URISchemeRequestCallback = Ptr URISchemeRequest -> Ptr () -> IO () -- | Type definition for a function that will be called back when an URI -- request is made for a user registered URI scheme. type URISchemeRequestCallback = URISchemeRequest " /@request@/: the 'GI.WebKit2.Objects.URISchemeRequest.URISchemeRequest' " -> IO () -- | Type definition for a function that will be called back when an URI -- request is made for a user registered URI scheme. type URISchemeRequestCallback_WithClosures = URISchemeRequest " /@request@/: the 'GI.WebKit2.Objects.URISchemeRequest.URISchemeRequest' " -> Ptr () " /@userData@/: user data passed to the callback " -> IO () -- | A simple wrapper that ignores the closure arguments. drop_closures_URISchemeRequestCallback :: URISchemeRequestCallback -> URISchemeRequestCallback_WithClosures -- | Given a pointer to a foreign C function, wrap it into a function -- callable from Haskell. dynamic_URISchemeRequestCallback :: (HasCallStack, MonadIO m, IsURISchemeRequest a) => FunPtr C_URISchemeRequestCallback -> a -> Ptr () -> m () -- | Wrap the callback into a GClosure. genClosure_URISchemeRequestCallback :: MonadIO m => URISchemeRequestCallback -> m (GClosure C_URISchemeRequestCallback) -- | Generate a function pointer callable from C code, from a -- C_URISchemeRequestCallback. mk_URISchemeRequestCallback :: C_URISchemeRequestCallback -> IO (FunPtr C_URISchemeRequestCallback) -- | A convenience synonym for Nothing :: Maybe -- URISchemeRequestCallback. noURISchemeRequestCallback :: Maybe URISchemeRequestCallback -- | A convenience synonym for Nothing :: Maybe -- URISchemeRequestCallback_WithClosures. noURISchemeRequestCallback_WithClosures :: Maybe URISchemeRequestCallback_WithClosures -- | Wrap a URISchemeRequestCallback into a -- C_URISchemeRequestCallback. wrap_URISchemeRequestCallback :: Maybe (Ptr (FunPtr C_URISchemeRequestCallback)) -> URISchemeRequestCallback_WithClosures -> C_URISchemeRequestCallback 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 -- | Use this function to format a URI for display. The URIs used -- internally by WebKit may contain percent-encoded characters or -- Punycode, which are not generally suitable to display to users. This -- function provides protection against IDN homograph attacks, so in some -- cases the host part of the returned URI may be in Punycode if the -- safety check fails. -- -- Since: 2.24 uriForDisplay :: (HasCallStack, MonadIO m) => Text -> m (Maybe Text) -- | No description available in the introspection data. -- -- Since: 2.8 userMediaPermissionIsForAudioDevice :: (HasCallStack, MonadIO m, IsUserMediaPermissionRequest a) => a -> m Bool -- | No description available in the introspection data. -- -- Since: 2.8 userMediaPermissionIsForVideoDevice :: (HasCallStack, MonadIO m, IsUserMediaPermissionRequest a) => a -> m Bool -- | No description available in the introspection data. module GI.WebKit2.Objects.UserMediaPermissionRequest -- | Memory-managed wrapper type. newtype UserMediaPermissionRequest UserMediaPermissionRequest :: ManagedPtr UserMediaPermissionRequest -> UserMediaPermissionRequest -- | Type class for types which can be safely cast to -- UserMediaPermissionRequest, for instance with -- toUserMediaPermissionRequest. class (GObject o, IsDescendantOf UserMediaPermissionRequest o) => IsUserMediaPermissionRequest o -- | Cast to UserMediaPermissionRequest, for types for which this is -- known to be safe. For general casts, use castTo. toUserMediaPermissionRequest :: (MonadIO m, IsUserMediaPermissionRequest o) => o -> m UserMediaPermissionRequest -- | A convenience alias for Nothing :: Maybe -- UserMediaPermissionRequest. noUserMediaPermissionRequest :: Maybe UserMediaPermissionRequest -- | Get the value of the “is-for-audio-device” property. When -- overloading is enabled, this is equivalent to -- --
-- get userMediaPermissionRequest #isForAudioDevice --getUserMediaPermissionRequestIsForAudioDevice :: (MonadIO m, IsUserMediaPermissionRequest o) => o -> m Bool -- | Get the value of the “is-for-video-device” property. When -- overloading is enabled, this is equivalent to -- --
-- get userMediaPermissionRequest #isForVideoDevice --getUserMediaPermissionRequestIsForVideoDevice :: (MonadIO m, IsUserMediaPermissionRequest o) => o -> m Bool instance (Data.GI.Base.BasicTypes.GObject o, Data.GI.Base.Overloading.IsDescendantOf GI.WebKit2.Objects.UserMediaPermissionRequest.UserMediaPermissionRequest o) => GI.WebKit2.Objects.UserMediaPermissionRequest.IsUserMediaPermissionRequest o instance Data.GI.Base.BasicTypes.GObject GI.WebKit2.Objects.UserMediaPermissionRequest.UserMediaPermissionRequest instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit2.Objects.UserMediaPermissionRequest.UserMediaPermissionRequest -- | No description available in the introspection data. module GI.WebKit2.Objects.WebResource -- | Memory-managed wrapper type. newtype WebResource WebResource :: ManagedPtr WebResource -> WebResource -- | Type class for types which can be safely cast to WebResource, -- for instance with toWebResource. class (GObject o, IsDescendantOf WebResource o) => IsWebResource o -- | Cast to WebResource, for types for which this is known to be -- safe. For general casts, use castTo. toWebResource :: (MonadIO m, IsWebResource o) => o -> m WebResource -- | A convenience alias for Nothing :: Maybe -- 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 (Maybe 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 -- | Get the value of the “response” property. When -- overloading is enabled, this is equivalent to -- --
-- get webResource #response --getWebResourceResponse :: (MonadIO m, IsWebResource o) => o -> m (Maybe URIResponse) -- | Get the value of the “uri” property. When overloading -- is enabled, this is equivalent to -- --
-- get webResource #uri --getWebResourceUri :: (MonadIO m, IsWebResource o) => o -> m Text -- | Type for the callback on the (unwrapped) C side. type C_WebResourceFailedCallback = Ptr () -> Ptr GError -> Ptr () -> IO () -- | This signal is emitted when an error occurs during the resource load -- operation. type WebResourceFailedCallback = GError " /@error@/: the 'GError' that was triggered " -> IO () -- | Connect a signal handler for the “failed” signal, to be run -- after the default handler. When overloading is enabled, this is -- equivalent to -- --
-- after webResource #failed callback --afterWebResourceFailed :: (IsWebResource a, MonadIO m) => a -> WebResourceFailedCallback -> m SignalHandlerId -- | Wrap the callback into a GClosure. genClosure_WebResourceFailed :: MonadIO m => WebResourceFailedCallback -> m (GClosure C_WebResourceFailedCallback) -- | Generate a function pointer callable from C code, from a -- C_WebResourceFailedCallback. mk_WebResourceFailedCallback :: C_WebResourceFailedCallback -> IO (FunPtr C_WebResourceFailedCallback) -- | A convenience synonym for Nothing :: Maybe -- WebResourceFailedCallback. noWebResourceFailedCallback :: Maybe WebResourceFailedCallback -- | Connect a signal handler for the “failed” signal, to be run -- before the default handler. When overloading is enabled, this -- is equivalent to -- --
-- on webResource #failed callback --onWebResourceFailed :: (IsWebResource a, MonadIO m) => a -> WebResourceFailedCallback -> m SignalHandlerId -- | Wrap a WebResourceFailedCallback into a -- C_WebResourceFailedCallback. wrap_WebResourceFailedCallback :: WebResourceFailedCallback -> C_WebResourceFailedCallback -- | Type for the callback on the (unwrapped) C side. type C_WebResourceFailedWithTlsErrorsCallback = Ptr () -> Ptr TlsCertificate -> CUInt -> Ptr () -> IO () -- | This signal is emitted when a TLS error occurs during the resource -- load operation. -- -- Since: 2.8 type WebResourceFailedWithTlsErrorsCallback = TlsCertificate " /@certificate@/: a 'GI.Gio.Objects.TlsCertificate.TlsCertificate' " -> [TlsCertificateFlags] " /@errors@/: a 'GI.Gio.Flags.TlsCertificateFlags' with the verification status of /@certificate@/ " -> IO () -- | Connect a signal handler for the “failed-with-tls-errors” -- signal, to be run after the default handler. When overloading -- is enabled, this is equivalent to -- --
-- after webResource #failedWithTlsErrors callback --afterWebResourceFailedWithTlsErrors :: (IsWebResource a, MonadIO m) => a -> WebResourceFailedWithTlsErrorsCallback -> m SignalHandlerId -- | Wrap the callback into a GClosure. genClosure_WebResourceFailedWithTlsErrors :: MonadIO m => WebResourceFailedWithTlsErrorsCallback -> m (GClosure C_WebResourceFailedWithTlsErrorsCallback) -- | Generate a function pointer callable from C code, from a -- C_WebResourceFailedWithTlsErrorsCallback. mk_WebResourceFailedWithTlsErrorsCallback :: C_WebResourceFailedWithTlsErrorsCallback -> IO (FunPtr C_WebResourceFailedWithTlsErrorsCallback) -- | A convenience synonym for Nothing :: Maybe -- WebResourceFailedWithTlsErrorsCallback. noWebResourceFailedWithTlsErrorsCallback :: Maybe WebResourceFailedWithTlsErrorsCallback -- | Connect a signal handler for the “failed-with-tls-errors” -- signal, to be run before the default handler. When overloading -- is enabled, this is equivalent to -- --
-- on webResource #failedWithTlsErrors callback --onWebResourceFailedWithTlsErrors :: (IsWebResource a, MonadIO m) => a -> WebResourceFailedWithTlsErrorsCallback -> m SignalHandlerId -- | Wrap a WebResourceFailedWithTlsErrorsCallback into a -- C_WebResourceFailedWithTlsErrorsCallback. wrap_WebResourceFailedWithTlsErrorsCallback :: WebResourceFailedWithTlsErrorsCallback -> C_WebResourceFailedWithTlsErrorsCallback -- | Type for the callback on the (unwrapped) C side. type C_WebResourceFinishedCallback = Ptr () -> Ptr () -> IO () -- | This signal is emitted when the resource load finishes successfully or -- due to an error. In case of errors -- WebResource::failed signal is emitted before -- this one. type WebResourceFinishedCallback = IO () -- | Connect a signal handler for the “finished” signal, to be run -- after the default handler. When overloading is enabled, this is -- equivalent to -- --
-- after webResource #finished callback --afterWebResourceFinished :: (IsWebResource a, MonadIO m) => a -> WebResourceFinishedCallback -> m SignalHandlerId -- | Wrap the callback into a GClosure. genClosure_WebResourceFinished :: MonadIO m => WebResourceFinishedCallback -> m (GClosure C_WebResourceFinishedCallback) -- | Generate a function pointer callable from C code, from a -- C_WebResourceFinishedCallback. mk_WebResourceFinishedCallback :: C_WebResourceFinishedCallback -> IO (FunPtr C_WebResourceFinishedCallback) -- | A convenience synonym for Nothing :: Maybe -- WebResourceFinishedCallback. noWebResourceFinishedCallback :: Maybe WebResourceFinishedCallback -- | Connect a signal handler for the “finished” signal, to be run -- before the default handler. When overloading is enabled, this -- is equivalent to -- --
-- on webResource #finished callback --onWebResourceFinished :: (IsWebResource a, MonadIO m) => a -> WebResourceFinishedCallback -> m SignalHandlerId -- | Wrap a WebResourceFinishedCallback into a -- C_WebResourceFinishedCallback. wrap_WebResourceFinishedCallback :: WebResourceFinishedCallback -> C_WebResourceFinishedCallback -- | Type for the callback on the (unwrapped) C side. type C_WebResourceReceivedDataCallback = Ptr () -> Word64 -> Ptr () -> IO () -- | This signal is emitted after response is received, every time new data -- has been received. It's useful to know the progress of the resource -- load operation. type WebResourceReceivedDataCallback = Word64 " /@dataLength@/: the length of data received in bytes " -> IO () -- | Connect a signal handler for the “received-data” signal, to -- be run after the default handler. When overloading is enabled, -- this is equivalent to -- --
-- after webResource #receivedData callback --afterWebResourceReceivedData :: (IsWebResource a, MonadIO m) => a -> WebResourceReceivedDataCallback -> m SignalHandlerId -- | Wrap the callback into a GClosure. genClosure_WebResourceReceivedData :: MonadIO m => WebResourceReceivedDataCallback -> m (GClosure C_WebResourceReceivedDataCallback) -- | Generate a function pointer callable from C code, from a -- C_WebResourceReceivedDataCallback. mk_WebResourceReceivedDataCallback :: C_WebResourceReceivedDataCallback -> IO (FunPtr C_WebResourceReceivedDataCallback) -- | A convenience synonym for Nothing :: Maybe -- WebResourceReceivedDataCallback. noWebResourceReceivedDataCallback :: Maybe WebResourceReceivedDataCallback -- | Connect a signal handler for the “received-data” signal, to -- be run before the default handler. When overloading is enabled, -- this is equivalent to -- --
-- on webResource #receivedData callback --onWebResourceReceivedData :: (IsWebResource a, MonadIO m) => a -> WebResourceReceivedDataCallback -> m SignalHandlerId -- | Wrap a WebResourceReceivedDataCallback into a -- C_WebResourceReceivedDataCallback. wrap_WebResourceReceivedDataCallback :: WebResourceReceivedDataCallback -> C_WebResourceReceivedDataCallback -- | Type for the callback on the (unwrapped) C side. type C_WebResourceSentRequestCallback = Ptr () -> Ptr URIRequest -> Ptr URIResponse -> Ptr () -> IO () -- | This signal is emitted when request has been sent to -- the server. In case of a server redirection this signal is emitted -- again with the request argument containing the new -- request sent to the server due to the redirection and the -- redirectedResponse parameter containing the response -- received by the server for the initial request. type WebResourceSentRequestCallback = URIRequest " /@request@/: a 'GI.WebKit2.Objects.URIRequest.URIRequest' " -> URIResponse " /@redirectedResponse@/: a 'GI.WebKit2.Objects.URIResponse.URIResponse', or 'Nothing' " -> IO () -- | Connect a signal handler for the “sent-request” signal, to be -- run after the default handler. When overloading is enabled, -- this is equivalent to -- --
-- after webResource #sentRequest callback --afterWebResourceSentRequest :: (IsWebResource a, MonadIO m) => a -> WebResourceSentRequestCallback -> m SignalHandlerId -- | Wrap the callback into a GClosure. genClosure_WebResourceSentRequest :: MonadIO m => WebResourceSentRequestCallback -> m (GClosure C_WebResourceSentRequestCallback) -- | Generate a function pointer callable from C code, from a -- C_WebResourceSentRequestCallback. mk_WebResourceSentRequestCallback :: C_WebResourceSentRequestCallback -> IO (FunPtr C_WebResourceSentRequestCallback) -- | A convenience synonym for Nothing :: Maybe -- WebResourceSentRequestCallback. noWebResourceSentRequestCallback :: Maybe WebResourceSentRequestCallback -- | Connect a signal handler for the “sent-request” signal, to be -- run before the default handler. When overloading is enabled, -- this is equivalent to -- --
-- on webResource #sentRequest callback --onWebResourceSentRequest :: (IsWebResource a, MonadIO m) => a -> WebResourceSentRequestCallback -> m SignalHandlerId -- | Wrap a WebResourceSentRequestCallback into a -- C_WebResourceSentRequestCallback. wrap_WebResourceSentRequestCallback :: WebResourceSentRequestCallback -> C_WebResourceSentRequestCallback instance (Data.GI.Base.BasicTypes.GObject o, Data.GI.Base.Overloading.IsDescendantOf GI.WebKit2.Objects.WebResource.WebResource o) => GI.WebKit2.Objects.WebResource.IsWebResource o instance Data.GI.Base.BasicTypes.GObject GI.WebKit2.Objects.WebResource.WebResource instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit2.Objects.WebResource.WebResource -- | No description available in the introspection data. module GI.WebKit2.Objects.URISchemeRequest -- | Memory-managed wrapper type. newtype URISchemeRequest URISchemeRequest :: ManagedPtr URISchemeRequest -> URISchemeRequest -- | Type class for types which can be safely cast to -- URISchemeRequest, for instance with toURISchemeRequest. class (GObject o, IsDescendantOf URISchemeRequest o) => IsURISchemeRequest o -- | Cast to URISchemeRequest, for types for which this is known to -- be safe. For general casts, use castTo. toURISchemeRequest :: (MonadIO m, IsURISchemeRequest o) => o -> m URISchemeRequest -- | A convenience alias for Nothing :: Maybe -- 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. -- -- Since: 2.2 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 o, Data.GI.Base.Overloading.IsDescendantOf GI.WebKit2.Objects.URISchemeRequest.URISchemeRequest o) => GI.WebKit2.Objects.URISchemeRequest.IsURISchemeRequest o instance Data.GI.Base.BasicTypes.GObject GI.WebKit2.Objects.URISchemeRequest.URISchemeRequest instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit2.Objects.URISchemeRequest.URISchemeRequest -- | No description available in the introspection data. module GI.WebKit2.Objects.PrintOperation -- | Memory-managed wrapper type. newtype PrintOperation PrintOperation :: ManagedPtr PrintOperation -> PrintOperation -- | Type class for types which can be safely cast to -- PrintOperation, for instance with toPrintOperation. class (GObject o, IsDescendantOf PrintOperation o) => IsPrintOperation o -- | Cast to PrintOperation, for types for which this is known to be -- safe. For general casts, use castTo. toPrintOperation :: (MonadIO m, IsPrintOperation o) => o -> m PrintOperation -- | A convenience alias for Nothing :: Maybe -- 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 (Maybe 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 (Maybe 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 () -- | Construct a GValueConstruct with valid value for the -- “page-setup” property. This is rarely needed directly, but it -- is used by new. constructPrintOperationPageSetup :: (IsPrintOperation o, IsPageSetup a) => a -> IO (GValueConstruct o) -- | Get the value of the “page-setup” property. When -- overloading is enabled, this is equivalent to -- --
-- get printOperation #pageSetup --getPrintOperationPageSetup :: (MonadIO m, IsPrintOperation o) => o -> m (Maybe PageSetup) -- | Set the value of the “page-setup” property. When -- overloading is enabled, this is equivalent to -- --
-- set printOperation [ #pageSetup := value ] --setPrintOperationPageSetup :: (MonadIO m, IsPrintOperation o, IsPageSetup a) => o -> a -> m () -- | Construct a GValueConstruct with valid value for the -- “print-settings” property. This is rarely needed directly, -- but it is used by new. constructPrintOperationPrintSettings :: (IsPrintOperation o, IsPrintSettings a) => a -> IO (GValueConstruct o) -- | Get the value of the “print-settings” property. When -- overloading is enabled, this is equivalent to -- --
-- get printOperation #printSettings --getPrintOperationPrintSettings :: (MonadIO m, IsPrintOperation o) => o -> m (Maybe PrintSettings) -- | Set the value of the “print-settings” property. When -- overloading is enabled, this is equivalent to -- --
-- set printOperation [ #printSettings := value ] --setPrintOperationPrintSettings :: (MonadIO m, IsPrintOperation o, IsPrintSettings a) => o -> a -> m () -- | Construct a GValueConstruct with valid value for the -- “web-view” property. This is rarely needed directly, but it -- is used by new. constructPrintOperationWebView :: (IsPrintOperation o, IsWebView a) => a -> IO (GValueConstruct o) -- | Get the value of the “web-view” property. When -- overloading is enabled, this is equivalent to -- --
-- get printOperation #webView --getPrintOperationWebView :: (MonadIO m, IsPrintOperation o) => o -> m (Maybe WebView) -- | Type for the callback on the (unwrapped) C side. type C_PrintOperationCreateCustomWidgetCallback = Ptr () -> Ptr () -> IO (Ptr PrintCustomWidget) -- | Emitted when displaying the print dialog with -- printOperationRunDialog. The returned PrintCustomWidget -- will be added to the print dialog and it will be owned by the -- printOperation. However, the object is guaranteed to -- be alive until the PrintCustomWidget::apply is -- emitted. -- -- Since: 2.16 type PrintOperationCreateCustomWidgetCallback = IO PrintCustomWidget " __Returns:__ A 'GI.WebKit2.Objects.PrintCustomWidget.PrintCustomWidget' that will be embedded in the dialog. " -- | Connect a signal handler for the “create-custom-widget” -- signal, to be run after the default handler. When overloading -- is enabled, this is equivalent to -- --
-- after printOperation #createCustomWidget callback --afterPrintOperationCreateCustomWidget :: (IsPrintOperation a, MonadIO m) => a -> PrintOperationCreateCustomWidgetCallback -> m SignalHandlerId -- | Wrap the callback into a GClosure. genClosure_PrintOperationCreateCustomWidget :: MonadIO m => PrintOperationCreateCustomWidgetCallback -> m (GClosure C_PrintOperationCreateCustomWidgetCallback) -- | Generate a function pointer callable from C code, from a -- C_PrintOperationCreateCustomWidgetCallback. mk_PrintOperationCreateCustomWidgetCallback :: C_PrintOperationCreateCustomWidgetCallback -> IO (FunPtr C_PrintOperationCreateCustomWidgetCallback) -- | A convenience synonym for Nothing :: Maybe -- PrintOperationCreateCustomWidgetCallback. noPrintOperationCreateCustomWidgetCallback :: Maybe PrintOperationCreateCustomWidgetCallback -- | Connect a signal handler for the “create-custom-widget” -- signal, to be run before the default handler. When overloading -- is enabled, this is equivalent to -- --
-- on printOperation #createCustomWidget callback --onPrintOperationCreateCustomWidget :: (IsPrintOperation a, MonadIO m) => a -> PrintOperationCreateCustomWidgetCallback -> m SignalHandlerId -- | Wrap a PrintOperationCreateCustomWidgetCallback into a -- C_PrintOperationCreateCustomWidgetCallback. wrap_PrintOperationCreateCustomWidgetCallback :: PrintOperationCreateCustomWidgetCallback -> C_PrintOperationCreateCustomWidgetCallback -- | Type for the callback on the (unwrapped) C side. type C_PrintOperationFailedCallback = Ptr () -> Ptr GError -> Ptr () -> IO () -- | Emitted when an error occurs while printing. The given -- error, of the domain -- WEBKIT_PRINT_ERROR, contains further details of the -- failure. The PrintOperation::finished signal is -- emitted after this one. type PrintOperationFailedCallback = GError " /@error@/: the 'GError' that was triggered " -> IO () -- | Connect a signal handler for the “failed” signal, to be run -- after the default handler. When overloading is enabled, this is -- equivalent to -- --
-- after printOperation #failed callback --afterPrintOperationFailed :: (IsPrintOperation a, MonadIO m) => a -> PrintOperationFailedCallback -> m SignalHandlerId -- | Wrap the callback into a GClosure. genClosure_PrintOperationFailed :: MonadIO m => PrintOperationFailedCallback -> m (GClosure C_PrintOperationFailedCallback) -- | Generate a function pointer callable from C code, from a -- C_PrintOperationFailedCallback. mk_PrintOperationFailedCallback :: C_PrintOperationFailedCallback -> IO (FunPtr C_PrintOperationFailedCallback) -- | A convenience synonym for Nothing :: Maybe -- PrintOperationFailedCallback. noPrintOperationFailedCallback :: Maybe PrintOperationFailedCallback -- | Connect a signal handler for the “failed” signal, to be run -- before the default handler. When overloading is enabled, this -- is equivalent to -- --
-- on printOperation #failed callback --onPrintOperationFailed :: (IsPrintOperation a, MonadIO m) => a -> PrintOperationFailedCallback -> m SignalHandlerId -- | Wrap a PrintOperationFailedCallback into a -- C_PrintOperationFailedCallback. wrap_PrintOperationFailedCallback :: PrintOperationFailedCallback -> C_PrintOperationFailedCallback -- | Type for the callback on the (unwrapped) C side. type C_PrintOperationFinishedCallback = Ptr () -> Ptr () -> IO () -- | Emitted when the print operation has finished doing everything -- required for printing. type PrintOperationFinishedCallback = IO () -- | Connect a signal handler for the “finished” signal, to be run -- after the default handler. When overloading is enabled, this is -- equivalent to -- --
-- after printOperation #finished callback --afterPrintOperationFinished :: (IsPrintOperation a, MonadIO m) => a -> PrintOperationFinishedCallback -> m SignalHandlerId -- | Wrap the callback into a GClosure. genClosure_PrintOperationFinished :: MonadIO m => PrintOperationFinishedCallback -> m (GClosure C_PrintOperationFinishedCallback) -- | Generate a function pointer callable from C code, from a -- C_PrintOperationFinishedCallback. mk_PrintOperationFinishedCallback :: C_PrintOperationFinishedCallback -> IO (FunPtr C_PrintOperationFinishedCallback) -- | A convenience synonym for Nothing :: Maybe -- PrintOperationFinishedCallback. noPrintOperationFinishedCallback :: Maybe PrintOperationFinishedCallback -- | Connect a signal handler for the “finished” signal, to be run -- before the default handler. When overloading is enabled, this -- is equivalent to -- --
-- on printOperation #finished callback --onPrintOperationFinished :: (IsPrintOperation a, MonadIO m) => a -> PrintOperationFinishedCallback -> m SignalHandlerId -- | Wrap a PrintOperationFinishedCallback into a -- C_PrintOperationFinishedCallback. wrap_PrintOperationFinishedCallback :: PrintOperationFinishedCallback -> C_PrintOperationFinishedCallback instance (Data.GI.Base.BasicTypes.GObject o, Data.GI.Base.Overloading.IsDescendantOf GI.WebKit2.Objects.PrintOperation.PrintOperation o) => GI.WebKit2.Objects.PrintOperation.IsPrintOperation o instance Data.GI.Base.BasicTypes.GObject GI.WebKit2.Objects.PrintOperation.PrintOperation instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit2.Objects.PrintOperation.PrintOperation -- | No description available in the introspection data. module GI.WebKit2.Objects.FindController -- | Memory-managed wrapper type. newtype FindController FindController :: ManagedPtr FindController -> FindController -- | Type class for types which can be safely cast to -- FindController, for instance with toFindController. class (GObject o, IsDescendantOf FindController o) => IsFindController o -- | Cast to FindController, for types for which this is known to be -- safe. For general casts, use castTo. toFindController :: (MonadIO m, IsFindController o) => o -> m FindController -- | A convenience alias for Nothing :: Maybe -- 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 -- dereference 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 () -- | Get the value of the “max-match-count” property. When -- overloading is enabled, this is equivalent to -- --
-- get findController #maxMatchCount --getFindControllerMaxMatchCount :: (MonadIO m, IsFindController o) => o -> m Word32 -- | Get the value of the “options” property. When -- overloading is enabled, this is equivalent to -- --
-- get findController #options --getFindControllerOptions :: (MonadIO m, IsFindController o) => o -> m [FindOptions] -- | Get the value of the “text” property. When overloading -- is enabled, this is equivalent to -- --
-- get findController #text --getFindControllerText :: (MonadIO m, IsFindController o) => o -> m (Maybe Text) -- | Construct a GValueConstruct with valid value for the -- “web-view” property. This is rarely needed directly, but it -- is used by new. constructFindControllerWebView :: (IsFindController o, IsWebView a) => a -> IO (GValueConstruct o) -- | Get the value of the “web-view” property. When -- overloading is enabled, this is equivalent to -- --
-- get findController #webView --getFindControllerWebView :: (MonadIO m, IsFindController o) => o -> m WebView -- | Type for the callback on the (unwrapped) C side. type C_FindControllerCountedMatchesCallback = Ptr () -> Word32 -> Ptr () -> IO () -- | This signal is emitted when the FindController has counted the -- number of matches for a given text after a call to -- findControllerCountMatches. type FindControllerCountedMatchesCallback = Word32 " /@matchCount@/: the number of matches of the search text " -> IO () -- | Connect a signal handler for the “counted-matches” signal, to -- be run after the default handler. When overloading is enabled, -- this is equivalent to -- --
-- after findController #countedMatches callback --afterFindControllerCountedMatches :: (IsFindController a, MonadIO m) => a -> FindControllerCountedMatchesCallback -> m SignalHandlerId -- | Wrap the callback into a GClosure. genClosure_FindControllerCountedMatches :: MonadIO m => FindControllerCountedMatchesCallback -> m (GClosure C_FindControllerCountedMatchesCallback) -- | Generate a function pointer callable from C code, from a -- C_FindControllerCountedMatchesCallback. mk_FindControllerCountedMatchesCallback :: C_FindControllerCountedMatchesCallback -> IO (FunPtr C_FindControllerCountedMatchesCallback) -- | A convenience synonym for Nothing :: Maybe -- FindControllerCountedMatchesCallback. noFindControllerCountedMatchesCallback :: Maybe FindControllerCountedMatchesCallback -- | Connect a signal handler for the “counted-matches” signal, to -- be run before the default handler. When overloading is enabled, -- this is equivalent to -- --
-- on findController #countedMatches callback --onFindControllerCountedMatches :: (IsFindController a, MonadIO m) => a -> FindControllerCountedMatchesCallback -> m SignalHandlerId -- | Wrap a FindControllerCountedMatchesCallback into a -- C_FindControllerCountedMatchesCallback. wrap_FindControllerCountedMatchesCallback :: FindControllerCountedMatchesCallback -> C_FindControllerCountedMatchesCallback -- | Type for the callback on the (unwrapped) C side. type C_FindControllerFailedToFindTextCallback = Ptr () -> Ptr () -> IO () -- | This signal is emitted when a search operation does not find any -- result for the given text. It will be issued if the text is not found -- asynchronously after a call to findControllerSearch, -- findControllerSearchNext or -- findControllerSearchPrevious. type FindControllerFailedToFindTextCallback = IO () -- | Connect a signal handler for the “failed-to-find-text” -- signal, to be run after the default handler. When overloading -- is enabled, this is equivalent to -- --
-- after findController #failedToFindText callback --afterFindControllerFailedToFindText :: (IsFindController a, MonadIO m) => a -> FindControllerFailedToFindTextCallback -> m SignalHandlerId -- | Wrap the callback into a GClosure. genClosure_FindControllerFailedToFindText :: MonadIO m => FindControllerFailedToFindTextCallback -> m (GClosure C_FindControllerFailedToFindTextCallback) -- | Generate a function pointer callable from C code, from a -- C_FindControllerFailedToFindTextCallback. mk_FindControllerFailedToFindTextCallback :: C_FindControllerFailedToFindTextCallback -> IO (FunPtr C_FindControllerFailedToFindTextCallback) -- | A convenience synonym for Nothing :: Maybe -- FindControllerFailedToFindTextCallback. noFindControllerFailedToFindTextCallback :: Maybe FindControllerFailedToFindTextCallback -- | Connect a signal handler for the “failed-to-find-text” -- signal, to be run before the default handler. When overloading -- is enabled, this is equivalent to -- --
-- on findController #failedToFindText callback --onFindControllerFailedToFindText :: (IsFindController a, MonadIO m) => a -> FindControllerFailedToFindTextCallback -> m SignalHandlerId -- | Wrap a FindControllerFailedToFindTextCallback into a -- C_FindControllerFailedToFindTextCallback. wrap_FindControllerFailedToFindTextCallback :: FindControllerFailedToFindTextCallback -> C_FindControllerFailedToFindTextCallback -- | Type for the callback on the (unwrapped) C side. type C_FindControllerFoundTextCallback = Ptr () -> Word32 -> Ptr () -> IO () -- | This signal is emitted when a given text is found in the web page -- text. It will be issued if the text is found asynchronously after a -- call to findControllerSearch, findControllerSearchNext -- or findControllerSearchPrevious. type FindControllerFoundTextCallback = Word32 " /@matchCount@/: the number of matches found of the search text " -> IO () -- | Connect a signal handler for the “found-text” signal, to be -- run after the default handler. When overloading is enabled, -- this is equivalent to -- --
-- after findController #foundText callback --afterFindControllerFoundText :: (IsFindController a, MonadIO m) => a -> FindControllerFoundTextCallback -> m SignalHandlerId -- | Wrap the callback into a GClosure. genClosure_FindControllerFoundText :: MonadIO m => FindControllerFoundTextCallback -> m (GClosure C_FindControllerFoundTextCallback) -- | Generate a function pointer callable from C code, from a -- C_FindControllerFoundTextCallback. mk_FindControllerFoundTextCallback :: C_FindControllerFoundTextCallback -> IO (FunPtr C_FindControllerFoundTextCallback) -- | A convenience synonym for Nothing :: Maybe -- FindControllerFoundTextCallback. noFindControllerFoundTextCallback :: Maybe FindControllerFoundTextCallback -- | Connect a signal handler for the “found-text” signal, to be -- run before the default handler. When overloading is enabled, -- this is equivalent to -- --
-- on findController #foundText callback --onFindControllerFoundText :: (IsFindController a, MonadIO m) => a -> FindControllerFoundTextCallback -> m SignalHandlerId -- | Wrap a FindControllerFoundTextCallback into a -- C_FindControllerFoundTextCallback. wrap_FindControllerFoundTextCallback :: FindControllerFoundTextCallback -> C_FindControllerFoundTextCallback instance (Data.GI.Base.BasicTypes.GObject o, Data.GI.Base.Overloading.IsDescendantOf GI.WebKit2.Objects.FindController.FindController o) => GI.WebKit2.Objects.FindController.IsFindController o instance Data.GI.Base.BasicTypes.GObject GI.WebKit2.Objects.FindController.FindController instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit2.Objects.FindController.FindController -- | No description available in the introspection data. module GI.WebKit2.Objects.Download -- | Memory-managed wrapper type. newtype Download Download :: ManagedPtr Download -> Download -- | Type class for types which can be safely cast to Download, for -- instance with toDownload. class (GObject o, IsDescendantOf Download o) => IsDownload o -- | Cast to Download, for types for which this is known to be safe. -- For general casts, use castTo. toDownload :: (MonadIO m, IsDownload o) => o -> m Download -- | A convenience alias for Nothing :: Maybe -- 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. -- -- Since: 2.6 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 (Maybe 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 (Maybe URIResponse) -- | Get the WebView that initiated the download. downloadGetWebView :: (HasCallStack, MonadIO m, IsDownload a) => a -> m (Maybe 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. -- -- Since: 2.6 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 transfer -- 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 () -- | Construct a GValueConstruct with valid value for the -- “allow-overwrite” property. This is rarely needed directly, -- but it is used by new. constructDownloadAllowOverwrite :: IsDownload o => Bool -> IO (GValueConstruct o) -- | Get the value of the “allow-overwrite” property. When -- overloading is enabled, this is equivalent to -- --
-- get download #allowOverwrite --getDownloadAllowOverwrite :: (MonadIO m, IsDownload o) => o -> m Bool -- | Set the value of the “allow-overwrite” property. When -- overloading is enabled, this is equivalent to -- --
-- set download [ #allowOverwrite := value ] --setDownloadAllowOverwrite :: (MonadIO m, IsDownload o) => o -> Bool -> m () -- | Get the value of the “destination” property. When -- overloading is enabled, this is equivalent to -- --
-- get download #destination --getDownloadDestination :: (MonadIO m, IsDownload o) => o -> m (Maybe Text) -- | Get the value of the “estimated-progress” property. When -- overloading is enabled, this is equivalent to -- --
-- get download #estimatedProgress --getDownloadEstimatedProgress :: (MonadIO m, IsDownload o) => o -> m Double -- | Get the value of the “response” property. When -- overloading is enabled, this is equivalent to -- --
-- get download #response --getDownloadResponse :: (MonadIO m, IsDownload o) => o -> m (Maybe URIResponse) -- | Type for the callback on the (unwrapped) C side. type C_DownloadCreatedDestinationCallback = Ptr () -> CString -> Ptr () -> IO () -- | This signal is emitted after -- Download::decide-destination and before -- Download::received-data to notify that -- destination file has been created successfully at -- destination. type DownloadCreatedDestinationCallback = Text " /@destination@/: the destination URI " -> IO () -- | Connect a signal handler for the “created-destination” -- signal, to be run after the default handler. When overloading -- is enabled, this is equivalent to -- --
-- after download #createdDestination callback --afterDownloadCreatedDestination :: (IsDownload a, MonadIO m) => a -> DownloadCreatedDestinationCallback -> m SignalHandlerId -- | Wrap the callback into a GClosure. genClosure_DownloadCreatedDestination :: MonadIO m => DownloadCreatedDestinationCallback -> m (GClosure C_DownloadCreatedDestinationCallback) -- | Generate a function pointer callable from C code, from a -- C_DownloadCreatedDestinationCallback. mk_DownloadCreatedDestinationCallback :: C_DownloadCreatedDestinationCallback -> IO (FunPtr C_DownloadCreatedDestinationCallback) -- | A convenience synonym for Nothing :: Maybe -- DownloadCreatedDestinationCallback. noDownloadCreatedDestinationCallback :: Maybe DownloadCreatedDestinationCallback -- | Connect a signal handler for the “created-destination” -- signal, to be run before the default handler. When overloading -- is enabled, this is equivalent to -- --
-- on download #createdDestination callback --onDownloadCreatedDestination :: (IsDownload a, MonadIO m) => a -> DownloadCreatedDestinationCallback -> m SignalHandlerId -- | Wrap a DownloadCreatedDestinationCallback into a -- C_DownloadCreatedDestinationCallback. wrap_DownloadCreatedDestinationCallback :: DownloadCreatedDestinationCallback -> C_DownloadCreatedDestinationCallback -- | Type for the callback on the (unwrapped) C side. type C_DownloadDecideDestinationCallback = Ptr () -> CString -> Ptr () -> IO CInt -- | This signal is emitted after response is received to decide a -- destination URI for the download. If this signal is not handled the -- file will be downloaded to UserDirectoryDirectoryDownload -- directory using suggestedFilename. type DownloadDecideDestinationCallback = Text " /@suggestedFilename@/: the filename suggested for the download " -> IO Bool " __Returns:__ 'True' to stop other handlers from being invoked for the event. 'False' to propagate the event further. " -- | Connect a signal handler for the “decide-destination” signal, -- to be run after the default handler. When overloading is -- enabled, this is equivalent to -- --
-- after download #decideDestination callback --afterDownloadDecideDestination :: (IsDownload a, MonadIO m) => a -> DownloadDecideDestinationCallback -> m SignalHandlerId -- | Wrap the callback into a GClosure. genClosure_DownloadDecideDestination :: MonadIO m => DownloadDecideDestinationCallback -> m (GClosure C_DownloadDecideDestinationCallback) -- | Generate a function pointer callable from C code, from a -- C_DownloadDecideDestinationCallback. mk_DownloadDecideDestinationCallback :: C_DownloadDecideDestinationCallback -> IO (FunPtr C_DownloadDecideDestinationCallback) -- | A convenience synonym for Nothing :: Maybe -- DownloadDecideDestinationCallback. noDownloadDecideDestinationCallback :: Maybe DownloadDecideDestinationCallback -- | Connect a signal handler for the “decide-destination” signal, -- to be run before the default handler. When overloading is -- enabled, this is equivalent to -- --
-- on download #decideDestination callback --onDownloadDecideDestination :: (IsDownload a, MonadIO m) => a -> DownloadDecideDestinationCallback -> m SignalHandlerId -- | Wrap a DownloadDecideDestinationCallback into a -- C_DownloadDecideDestinationCallback. wrap_DownloadDecideDestinationCallback :: DownloadDecideDestinationCallback -> C_DownloadDecideDestinationCallback -- | Type for the callback on the (unwrapped) C side. type C_DownloadFailedCallback = Ptr () -> Ptr GError -> Ptr () -> IO () -- | This signal is emitted when an error occurs during the download -- operation. The given error, of the domain -- WEBKIT_DOWNLOAD_ERROR, contains further details of the -- failure. If the download is cancelled with downloadCancel, this -- signal is emitted with error DownloadErrorCancelledByUser. The -- download operation finishes after an error and -- Download::finished signal is emitted after this -- one. type DownloadFailedCallback = GError " /@error@/: the 'GError' that was triggered " -> IO () -- | Connect a signal handler for the “failed” signal, to be run -- after the default handler. When overloading is enabled, this is -- equivalent to -- --
-- after download #failed callback --afterDownloadFailed :: (IsDownload a, MonadIO m) => a -> DownloadFailedCallback -> m SignalHandlerId -- | Wrap the callback into a GClosure. genClosure_DownloadFailed :: MonadIO m => DownloadFailedCallback -> m (GClosure C_DownloadFailedCallback) -- | Generate a function pointer callable from C code, from a -- C_DownloadFailedCallback. mk_DownloadFailedCallback :: C_DownloadFailedCallback -> IO (FunPtr C_DownloadFailedCallback) -- | A convenience synonym for Nothing :: Maybe -- DownloadFailedCallback. noDownloadFailedCallback :: Maybe DownloadFailedCallback -- | Connect a signal handler for the “failed” signal, to be run -- before the default handler. When overloading is enabled, this -- is equivalent to -- --
-- on download #failed callback --onDownloadFailed :: (IsDownload a, MonadIO m) => a -> DownloadFailedCallback -> m SignalHandlerId -- | Wrap a DownloadFailedCallback into a -- C_DownloadFailedCallback. wrap_DownloadFailedCallback :: DownloadFailedCallback -> C_DownloadFailedCallback -- | Type for the callback on the (unwrapped) C side. type C_DownloadFinishedCallback = Ptr () -> Ptr () -> IO () -- | This signal is emitted when download finishes successfully or due to -- an error. In case of errors Download::failed -- signal is emitted before this one. type DownloadFinishedCallback = IO () -- | Connect a signal handler for the “finished” signal, to be run -- after the default handler. When overloading is enabled, this is -- equivalent to -- --
-- after download #finished callback --afterDownloadFinished :: (IsDownload a, MonadIO m) => a -> DownloadFinishedCallback -> m SignalHandlerId -- | Wrap the callback into a GClosure. genClosure_DownloadFinished :: MonadIO m => DownloadFinishedCallback -> m (GClosure C_DownloadFinishedCallback) -- | Generate a function pointer callable from C code, from a -- C_DownloadFinishedCallback. mk_DownloadFinishedCallback :: C_DownloadFinishedCallback -> IO (FunPtr C_DownloadFinishedCallback) -- | A convenience synonym for Nothing :: Maybe -- DownloadFinishedCallback. noDownloadFinishedCallback :: Maybe DownloadFinishedCallback -- | Connect a signal handler for the “finished” signal, to be run -- before the default handler. When overloading is enabled, this -- is equivalent to -- --
-- on download #finished callback --onDownloadFinished :: (IsDownload a, MonadIO m) => a -> DownloadFinishedCallback -> m SignalHandlerId -- | Wrap a DownloadFinishedCallback into a -- C_DownloadFinishedCallback. wrap_DownloadFinishedCallback :: DownloadFinishedCallback -> C_DownloadFinishedCallback -- | Type for the callback on the (unwrapped) C side. type C_DownloadReceivedDataCallback = Ptr () -> Word64 -> Ptr () -> IO () -- | This signal is emitted after response is received, every time new data -- has been written to the destination. It's useful to know the progress -- of the download operation. type DownloadReceivedDataCallback = Word64 " /@dataLength@/: the length of data received in bytes " -> IO () -- | Connect a signal handler for the “received-data” signal, to -- be run after the default handler. When overloading is enabled, -- this is equivalent to -- --
-- after download #receivedData callback --afterDownloadReceivedData :: (IsDownload a, MonadIO m) => a -> DownloadReceivedDataCallback -> m SignalHandlerId -- | Wrap the callback into a GClosure. genClosure_DownloadReceivedData :: MonadIO m => DownloadReceivedDataCallback -> m (GClosure C_DownloadReceivedDataCallback) -- | Generate a function pointer callable from C code, from a -- C_DownloadReceivedDataCallback. mk_DownloadReceivedDataCallback :: C_DownloadReceivedDataCallback -> IO (FunPtr C_DownloadReceivedDataCallback) -- | A convenience synonym for Nothing :: Maybe -- DownloadReceivedDataCallback. noDownloadReceivedDataCallback :: Maybe DownloadReceivedDataCallback -- | Connect a signal handler for the “received-data” signal, to -- be run before the default handler. When overloading is enabled, -- this is equivalent to -- --
-- on download #receivedData callback --onDownloadReceivedData :: (IsDownload a, MonadIO m) => a -> DownloadReceivedDataCallback -> m SignalHandlerId -- | Wrap a DownloadReceivedDataCallback into a -- C_DownloadReceivedDataCallback. wrap_DownloadReceivedDataCallback :: DownloadReceivedDataCallback -> C_DownloadReceivedDataCallback instance (Data.GI.Base.BasicTypes.GObject o, Data.GI.Base.Overloading.IsDescendantOf GI.WebKit2.Objects.Download.Download o) => GI.WebKit2.Objects.Download.IsDownload o instance Data.GI.Base.BasicTypes.GObject GI.WebKit2.Objects.Download.Download instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit2.Objects.Download.Download -- | No description available in the introspection data. module GI.WebKit2.Objects.WebInspector -- | Memory-managed wrapper type. newtype WebInspector WebInspector :: ManagedPtr WebInspector -> WebInspector -- | Type class for types which can be safely cast to WebInspector, -- for instance with toWebInspector. class (GObject o, IsDescendantOf WebInspector o) => IsWebInspector o -- | Cast to WebInspector, for types for which this is known to be -- safe. For general casts, use castTo. toWebInspector :: (MonadIO m, IsWebInspector o) => o -> m WebInspector -- | A convenience alias for Nothing :: Maybe -- 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. -- -- Since: 2.8 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 (Maybe 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 (Maybe 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 () -- | Get the value of the “attached-height” property. When -- overloading is enabled, this is equivalent to -- --
-- get webInspector #attachedHeight --getWebInspectorAttachedHeight :: (MonadIO m, IsWebInspector o) => o -> m Word32 -- | Get the value of the “can-attach” property. When -- overloading is enabled, this is equivalent to -- --
-- get webInspector #canAttach --getWebInspectorCanAttach :: (MonadIO m, IsWebInspector o) => o -> m Bool -- | Get the value of the “inspected-uri” property. When -- overloading is enabled, this is equivalent to -- --
-- get webInspector #inspectedUri --getWebInspectorInspectedUri :: (MonadIO m, IsWebInspector o) => o -> m (Maybe Text) -- | Type for the callback on the (unwrapped) C side. type C_WebInspectorAttachCallback = Ptr () -> Ptr () -> IO CInt -- | Emitted when the inspector is requested to be attached to the window -- where the inspected web view is. If this signal is not handled the -- inspector view will be automatically attached to the inspected view, -- so you only need to handle this signal if you want to attach the -- inspector view yourself (for example, to add the inspector view to a -- browser tab). -- -- To prevent the inspector view from being attached you can connect to -- this signal and simply return True. type WebInspectorAttachCallback = IO Bool " __Returns:__ 'True' to stop other handlers from being invoked for the event. 'False' to propagate the event further. " -- | Connect a signal handler for the “attach” signal, to be run -- after the default handler. When overloading is enabled, this is -- equivalent to -- --
-- after webInspector #attach callback --afterWebInspectorAttach :: (IsWebInspector a, MonadIO m) => a -> WebInspectorAttachCallback -> m SignalHandlerId -- | Wrap the callback into a GClosure. genClosure_WebInspectorAttach :: MonadIO m => WebInspectorAttachCallback -> m (GClosure C_WebInspectorAttachCallback) -- | Generate a function pointer callable from C code, from a -- C_WebInspectorAttachCallback. mk_WebInspectorAttachCallback :: C_WebInspectorAttachCallback -> IO (FunPtr C_WebInspectorAttachCallback) -- | A convenience synonym for Nothing :: Maybe -- WebInspectorAttachCallback. noWebInspectorAttachCallback :: Maybe WebInspectorAttachCallback -- | Connect a signal handler for the “attach” signal, to be run -- before the default handler. When overloading is enabled, this -- is equivalent to -- --
-- on webInspector #attach callback --onWebInspectorAttach :: (IsWebInspector a, MonadIO m) => a -> WebInspectorAttachCallback -> m SignalHandlerId -- | Wrap a WebInspectorAttachCallback into a -- C_WebInspectorAttachCallback. wrap_WebInspectorAttachCallback :: WebInspectorAttachCallback -> C_WebInspectorAttachCallback -- | Type for the callback on the (unwrapped) C side. type C_WebInspectorBringToFrontCallback = Ptr () -> Ptr () -> IO CInt -- | Emitted when the inspector should be shown. -- -- If the inspector is not attached the inspector window should be shown -- on top of any other windows. If the inspector is attached the -- inspector view should be made visible. For example, if the inspector -- view is attached using a tab in a browser window, the browser window -- should be raised and the tab containing the inspector view should be -- the active one. In both cases, if this signal is not handled, the -- default implementation calls windowPresent on the current -- toplevel Window of the inspector view. type WebInspectorBringToFrontCallback = IO Bool " __Returns:__ 'True' to stop other handlers from being invoked for the event. 'False' to propagate the event further. " -- | Connect a signal handler for the “bring-to-front” signal, to -- be run after the default handler. When overloading is enabled, -- this is equivalent to -- --
-- after webInspector #bringToFront callback --afterWebInspectorBringToFront :: (IsWebInspector a, MonadIO m) => a -> WebInspectorBringToFrontCallback -> m SignalHandlerId -- | Wrap the callback into a GClosure. genClosure_WebInspectorBringToFront :: MonadIO m => WebInspectorBringToFrontCallback -> m (GClosure C_WebInspectorBringToFrontCallback) -- | Generate a function pointer callable from C code, from a -- C_WebInspectorBringToFrontCallback. mk_WebInspectorBringToFrontCallback :: C_WebInspectorBringToFrontCallback -> IO (FunPtr C_WebInspectorBringToFrontCallback) -- | A convenience synonym for Nothing :: Maybe -- WebInspectorBringToFrontCallback. noWebInspectorBringToFrontCallback :: Maybe WebInspectorBringToFrontCallback -- | Connect a signal handler for the “bring-to-front” signal, to -- be run before the default handler. When overloading is enabled, -- this is equivalent to -- --
-- on webInspector #bringToFront callback --onWebInspectorBringToFront :: (IsWebInspector a, MonadIO m) => a -> WebInspectorBringToFrontCallback -> m SignalHandlerId -- | Wrap a WebInspectorBringToFrontCallback into a -- C_WebInspectorBringToFrontCallback. wrap_WebInspectorBringToFrontCallback :: WebInspectorBringToFrontCallback -> C_WebInspectorBringToFrontCallback -- | Type for the callback on the (unwrapped) C side. type C_WebInspectorClosedCallback = Ptr () -> Ptr () -> IO () -- | Emitted when the inspector page is closed. If you are using your own -- inspector window, you should connect to this signal and destroy your -- window. type WebInspectorClosedCallback = IO () -- | Connect a signal handler for the “closed” signal, to be run -- after the default handler. When overloading is enabled, this is -- equivalent to -- --
-- after webInspector #closed callback --afterWebInspectorClosed :: (IsWebInspector a, MonadIO m) => a -> WebInspectorClosedCallback -> m SignalHandlerId -- | Wrap the callback into a GClosure. genClosure_WebInspectorClosed :: MonadIO m => WebInspectorClosedCallback -> m (GClosure C_WebInspectorClosedCallback) -- | Generate a function pointer callable from C code, from a -- C_WebInspectorClosedCallback. mk_WebInspectorClosedCallback :: C_WebInspectorClosedCallback -> IO (FunPtr C_WebInspectorClosedCallback) -- | A convenience synonym for Nothing :: Maybe -- WebInspectorClosedCallback. noWebInspectorClosedCallback :: Maybe WebInspectorClosedCallback -- | Connect a signal handler for the “closed” signal, to be run -- before the default handler. When overloading is enabled, this -- is equivalent to -- --
-- on webInspector #closed callback --onWebInspectorClosed :: (IsWebInspector a, MonadIO m) => a -> WebInspectorClosedCallback -> m SignalHandlerId -- | Wrap a WebInspectorClosedCallback into a -- C_WebInspectorClosedCallback. wrap_WebInspectorClosedCallback :: WebInspectorClosedCallback -> C_WebInspectorClosedCallback -- | Type for the callback on the (unwrapped) C side. type C_WebInspectorDetachCallback = Ptr () -> Ptr () -> IO CInt -- | Emitted when the inspector is requested to be detached from the window -- it is currently attached to. The inspector is detached when the -- inspector page is about to be closed, and this signal is emitted right -- before WebInspector::closed, or when the user -- clicks on the detach button in the inspector view to show the -- inspector in a separate window. In this case the signal -- WebInspector::open-window is emitted after this -- one. -- -- To prevent the inspector view from being detached you can connect to -- this signal and simply return True. type WebInspectorDetachCallback = IO Bool " __Returns:__ 'True' to stop other handlers from being invoked for the event. 'False' to propagate the event further. " -- | Connect a signal handler for the “detach” signal, to be run -- after the default handler. When overloading is enabled, this is -- equivalent to -- --
-- after webInspector #detach callback --afterWebInspectorDetach :: (IsWebInspector a, MonadIO m) => a -> WebInspectorDetachCallback -> m SignalHandlerId -- | Wrap the callback into a GClosure. genClosure_WebInspectorDetach :: MonadIO m => WebInspectorDetachCallback -> m (GClosure C_WebInspectorDetachCallback) -- | Generate a function pointer callable from C code, from a -- C_WebInspectorDetachCallback. mk_WebInspectorDetachCallback :: C_WebInspectorDetachCallback -> IO (FunPtr C_WebInspectorDetachCallback) -- | A convenience synonym for Nothing :: Maybe -- WebInspectorDetachCallback. noWebInspectorDetachCallback :: Maybe WebInspectorDetachCallback -- | Connect a signal handler for the “detach” signal, to be run -- before the default handler. When overloading is enabled, this -- is equivalent to -- --
-- on webInspector #detach callback --onWebInspectorDetach :: (IsWebInspector a, MonadIO m) => a -> WebInspectorDetachCallback -> m SignalHandlerId -- | Wrap a WebInspectorDetachCallback into a -- C_WebInspectorDetachCallback. wrap_WebInspectorDetachCallback :: WebInspectorDetachCallback -> C_WebInspectorDetachCallback -- | Type for the callback on the (unwrapped) C side. type C_WebInspectorOpenWindowCallback = Ptr () -> Ptr () -> IO CInt -- | Emitted when the inspector is requested to open in a separate window. -- If this signal is not handled, a Window with the inspector will -- be created and shown, so you only need to handle this signal if you -- want to use your own window. This signal is emitted after -- WebInspector::detach to show the inspector in a -- separate window after being detached. -- -- To prevent the inspector from being shown you can connect to this -- signal and simply return True type WebInspectorOpenWindowCallback = IO Bool " __Returns:__ 'True' to stop other handlers from being invoked for the event. 'False' to propagate the event further. " -- | Connect a signal handler for the “open-window” signal, to be -- run after the default handler. When overloading is enabled, -- this is equivalent to -- --
-- after webInspector #openWindow callback --afterWebInspectorOpenWindow :: (IsWebInspector a, MonadIO m) => a -> WebInspectorOpenWindowCallback -> m SignalHandlerId -- | Wrap the callback into a GClosure. genClosure_WebInspectorOpenWindow :: MonadIO m => WebInspectorOpenWindowCallback -> m (GClosure C_WebInspectorOpenWindowCallback) -- | Generate a function pointer callable from C code, from a -- C_WebInspectorOpenWindowCallback. mk_WebInspectorOpenWindowCallback :: C_WebInspectorOpenWindowCallback -> IO (FunPtr C_WebInspectorOpenWindowCallback) -- | A convenience synonym for Nothing :: Maybe -- WebInspectorOpenWindowCallback. noWebInspectorOpenWindowCallback :: Maybe WebInspectorOpenWindowCallback -- | Connect a signal handler for the “open-window” signal, to be -- run before the default handler. When overloading is enabled, -- this is equivalent to -- --
-- on webInspector #openWindow callback --onWebInspectorOpenWindow :: (IsWebInspector a, MonadIO m) => a -> WebInspectorOpenWindowCallback -> m SignalHandlerId -- | Wrap a WebInspectorOpenWindowCallback into a -- C_WebInspectorOpenWindowCallback. wrap_WebInspectorOpenWindowCallback :: WebInspectorOpenWindowCallback -> C_WebInspectorOpenWindowCallback instance (Data.GI.Base.BasicTypes.GObject o, Data.GI.Base.Overloading.IsDescendantOf GI.WebKit2.Objects.WebInspector.WebInspector o) => GI.WebKit2.Objects.WebInspector.IsWebInspector o instance Data.GI.Base.BasicTypes.GObject GI.WebKit2.Objects.WebInspector.WebInspector instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit2.Objects.WebInspector.WebInspector -- | No description available in the introspection data. module GI.WebKit2.Objects.WebViewBase -- | Memory-managed wrapper type. newtype WebViewBase WebViewBase :: ManagedPtr WebViewBase -> WebViewBase -- | Type class for types which can be safely cast to WebViewBase, -- for instance with toWebViewBase. class (GObject o, IsDescendantOf WebViewBase o) => IsWebViewBase o -- | Cast to WebViewBase, for types for which this is known to be -- safe. For general casts, use castTo. toWebViewBase :: (MonadIO m, IsWebViewBase o) => o -> m WebViewBase -- | A convenience alias for Nothing :: Maybe -- WebViewBase. noWebViewBase :: Maybe WebViewBase instance (Data.GI.Base.BasicTypes.GObject o, Data.GI.Base.Overloading.IsDescendantOf GI.WebKit2.Objects.WebViewBase.WebViewBase o) => GI.WebKit2.Objects.WebViewBase.IsWebViewBase o instance Data.GI.Base.BasicTypes.GObject GI.WebKit2.Objects.WebViewBase.WebViewBase instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit2.Objects.WebViewBase.WebViewBase -- | No description available in the introspection data. module GI.WebKit2.Objects.WindowProperties -- | Memory-managed wrapper type. newtype WindowProperties WindowProperties :: ManagedPtr WindowProperties -> WindowProperties -- | Type class for types which can be safely cast to -- WindowProperties, for instance with toWindowProperties. class (GObject o, IsDescendantOf WindowProperties o) => IsWindowProperties o -- | Cast to WindowProperties, for types for which this is known to -- be safe. For general casts, use castTo. toWindowProperties :: (MonadIO m, IsWindowProperties o) => o -> m WindowProperties -- | A convenience alias for Nothing :: Maybe -- 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 -- | Construct a GValueConstruct with valid value for the -- “fullscreen” property. This is rarely needed directly, but it -- is used by new. constructWindowPropertiesFullscreen :: IsWindowProperties o => Bool -> IO (GValueConstruct o) -- | Get the value of the “fullscreen” property. When -- overloading is enabled, this is equivalent to -- --
-- get windowProperties #fullscreen --getWindowPropertiesFullscreen :: (MonadIO m, IsWindowProperties o) => o -> m Bool -- | Construct a GValueConstruct with valid value for the -- “geometry” property. This is rarely needed directly, but it -- is used by new. constructWindowPropertiesGeometry :: IsWindowProperties o => Rectangle -> IO (GValueConstruct o) -- | Get the value of the “geometry” property. When -- overloading is enabled, this is equivalent to -- --
-- get windowProperties #geometry --getWindowPropertiesGeometry :: (MonadIO m, IsWindowProperties o) => o -> m (Maybe Rectangle) -- | Construct a GValueConstruct with valid value for the -- “locationbar-visible” property. This is rarely needed -- directly, but it is used by new. constructWindowPropertiesLocationbarVisible :: IsWindowProperties o => Bool -> IO (GValueConstruct o) -- | Get the value of the “locationbar-visible” property. When -- overloading is enabled, this is equivalent to -- --
-- get windowProperties #locationbarVisible --getWindowPropertiesLocationbarVisible :: (MonadIO m, IsWindowProperties o) => o -> m Bool -- | Construct a GValueConstruct with valid value for the -- “menubar-visible” property. This is rarely needed directly, -- but it is used by new. constructWindowPropertiesMenubarVisible :: IsWindowProperties o => Bool -> IO (GValueConstruct o) -- | Get the value of the “menubar-visible” property. When -- overloading is enabled, this is equivalent to -- --
-- get windowProperties #menubarVisible --getWindowPropertiesMenubarVisible :: (MonadIO m, IsWindowProperties o) => o -> m Bool -- | Construct a GValueConstruct with valid value for the -- “resizable” property. This is rarely needed directly, but it -- is used by new. constructWindowPropertiesResizable :: IsWindowProperties o => Bool -> IO (GValueConstruct o) -- | Get the value of the “resizable” property. When -- overloading is enabled, this is equivalent to -- --
-- get windowProperties #resizable --getWindowPropertiesResizable :: (MonadIO m, IsWindowProperties o) => o -> m Bool -- | Construct a GValueConstruct with valid value for the -- “scrollbars-visible” property. This is rarely needed -- directly, but it is used by new. constructWindowPropertiesScrollbarsVisible :: IsWindowProperties o => Bool -> IO (GValueConstruct o) -- | Get the value of the “scrollbars-visible” property. When -- overloading is enabled, this is equivalent to -- --
-- get windowProperties #scrollbarsVisible --getWindowPropertiesScrollbarsVisible :: (MonadIO m, IsWindowProperties o) => o -> m Bool -- | Construct a GValueConstruct with valid value for the -- “statusbar-visible” property. This is rarely needed directly, -- but it is used by new. constructWindowPropertiesStatusbarVisible :: IsWindowProperties o => Bool -> IO (GValueConstruct o) -- | Get the value of the “statusbar-visible” property. When -- overloading is enabled, this is equivalent to -- --
-- get windowProperties #statusbarVisible --getWindowPropertiesStatusbarVisible :: (MonadIO m, IsWindowProperties o) => o -> m Bool -- | Construct a GValueConstruct with valid value for the -- “toolbar-visible” property. This is rarely needed directly, -- but it is used by new. constructWindowPropertiesToolbarVisible :: IsWindowProperties o => Bool -> IO (GValueConstruct o) -- | Get the value of the “toolbar-visible” property. When -- overloading is enabled, this is equivalent to -- --
-- get windowProperties #toolbarVisible --getWindowPropertiesToolbarVisible :: (MonadIO m, IsWindowProperties o) => o -> m Bool instance (Data.GI.Base.BasicTypes.GObject o, Data.GI.Base.Overloading.IsDescendantOf GI.WebKit2.Objects.WindowProperties.WindowProperties o) => GI.WebKit2.Objects.WindowProperties.IsWindowProperties o instance Data.GI.Base.BasicTypes.GObject GI.WebKit2.Objects.WindowProperties.WindowProperties instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit2.Objects.WindowProperties.WindowProperties -- | No description available in the introspection data. module GI.WebKit2.Objects.AutomationSession -- | Memory-managed wrapper type. newtype AutomationSession AutomationSession :: ManagedPtr AutomationSession -> AutomationSession -- | Type class for types which can be safely cast to -- AutomationSession, for instance with -- toAutomationSession. class (GObject o, IsDescendantOf AutomationSession o) => IsAutomationSession o -- | Cast to AutomationSession, for types for which this is known to -- be safe. For general casts, use castTo. toAutomationSession :: (MonadIO m, IsAutomationSession o) => o -> m AutomationSession -- | A convenience alias for Nothing :: Maybe -- AutomationSession. noAutomationSession :: Maybe AutomationSession -- | Get the AutomationSession previously set with -- automationSessionSetApplicationInfo. -- -- Since: 2.18 automationSessionGetApplicationInfo :: (HasCallStack, MonadIO m, IsAutomationSession a) => a -> m (Maybe ApplicationInfo) -- | Get the unique identifier of a AutomationSession -- -- Since: 2.18 automationSessionGetId :: (HasCallStack, MonadIO m, IsAutomationSession a) => a -> m Text -- | Set the application information to session. This -- information will be used by the driver service to match the requested -- capabilities with the actual application information. If this -- information is not provided to the session when a new automation -- session is requested, the creation might fail if the client requested -- a specific browser name or version. This will not have any effect when -- called after the automation session has been fully created, so this -- must be called in the callback of -- WebContext::automation-started signal. -- -- Since: 2.18 automationSessionSetApplicationInfo :: (HasCallStack, MonadIO m, IsAutomationSession a) => a -> ApplicationInfo -> m () -- | Construct a GValueConstruct with valid value for the -- “id” property. This is rarely needed directly, but it is used -- by new. constructAutomationSessionId :: IsAutomationSession o => Text -> IO (GValueConstruct o) -- | Get the value of the “id” property. When overloading -- is enabled, this is equivalent to -- --
-- get automationSession #id --getAutomationSessionId :: (MonadIO m, IsAutomationSession o) => o -> m Text -- | This signal is emitted when the automation client requests a new -- browsing context to interact with it. The callback handler should -- return a WebView created with -- WebView:is-controlled-by-automation construct -- property enabled. The returned WebView could be an existing web -- view or a new one created and added to a new tab or window. -- -- Since: 2.18 type AutomationSessionCreateWebViewCallback = IO WebView " __Returns:__ a 'GI.WebKit2.Objects.WebView.WebView' widget. " -- | Type for the callback on the (unwrapped) C side. type C_AutomationSessionCreateWebViewCallback = Ptr () -> Ptr () -> IO (Ptr WebView) -- | Connect a signal handler for the “create-web-view” signal, to -- be run after the default handler. When overloading is enabled, -- this is equivalent to -- --
-- after automationSession #createWebView callback --afterAutomationSessionCreateWebView :: (IsAutomationSession a, MonadIO m) => a -> AutomationSessionCreateWebViewCallback -> m SignalHandlerId -- | Wrap the callback into a GClosure. genClosure_AutomationSessionCreateWebView :: MonadIO m => AutomationSessionCreateWebViewCallback -> m (GClosure C_AutomationSessionCreateWebViewCallback) -- | Generate a function pointer callable from C code, from a -- C_AutomationSessionCreateWebViewCallback. mk_AutomationSessionCreateWebViewCallback :: C_AutomationSessionCreateWebViewCallback -> IO (FunPtr C_AutomationSessionCreateWebViewCallback) -- | A convenience synonym for Nothing :: Maybe -- AutomationSessionCreateWebViewCallback. noAutomationSessionCreateWebViewCallback :: Maybe AutomationSessionCreateWebViewCallback -- | Connect a signal handler for the “create-web-view” signal, to -- be run before the default handler. When overloading is enabled, -- this is equivalent to -- --
-- on automationSession #createWebView callback --onAutomationSessionCreateWebView :: (IsAutomationSession a, MonadIO m) => a -> AutomationSessionCreateWebViewCallback -> m SignalHandlerId -- | Wrap a AutomationSessionCreateWebViewCallback into a -- C_AutomationSessionCreateWebViewCallback. wrap_AutomationSessionCreateWebViewCallback :: AutomationSessionCreateWebViewCallback -> C_AutomationSessionCreateWebViewCallback instance (Data.GI.Base.BasicTypes.GObject o, Data.GI.Base.Overloading.IsDescendantOf GI.WebKit2.Objects.AutomationSession.AutomationSession o) => GI.WebKit2.Objects.AutomationSession.IsAutomationSession o instance Data.GI.Base.BasicTypes.GObject GI.WebKit2.Objects.AutomationSession.AutomationSession instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit2.Objects.AutomationSession.AutomationSession -- | No description available in the introspection data. module GI.WebKit2.Structs.ApplicationInfo -- | Memory-managed wrapper type. newtype ApplicationInfo ApplicationInfo :: ManagedPtr ApplicationInfo -> ApplicationInfo -- | A convenience alias for Nothing :: Maybe -- ApplicationInfo. noApplicationInfo :: Maybe ApplicationInfo -- | Get the name of the application. If applicationInfoSetName -- hasn't been called with a valid name, this returns getPrgname. -- -- Since: 2.18 applicationInfoGetName :: (HasCallStack, MonadIO m) => ApplicationInfo -> m Text -- | Get the application version previously set with -- applicationInfoSetVersion. -- -- Since: 2.18 applicationInfoGetVersion :: (HasCallStack, MonadIO m) => ApplicationInfo -> m (Word64, Word64, Word64) -- | Creates a new ApplicationInfo -- -- Since: 2.18 applicationInfoNew :: (HasCallStack, MonadIO m) => m ApplicationInfo -- | Atomically increments the reference count of info by -- one. This function is MT-safe and may be called from any thread. -- -- Since: 2.18 applicationInfoRef :: (HasCallStack, MonadIO m) => ApplicationInfo -> m ApplicationInfo -- | Set the name of the application. If not provided, or Nothing is -- passed, getPrgname will be used. -- -- Since: 2.18 applicationInfoSetName :: (HasCallStack, MonadIO m) => ApplicationInfo -> Text -> m () -- | Set the application version. If the application doesn't use the format -- major.minor.micro you can pass 0 as the micro to use major.minor, or -- pass 0 as both micro and minor to use only major number. Any other -- format must be converted to major.minor.micro so that it can be used -- in version comparisons. -- -- Since: 2.18 applicationInfoSetVersion :: (HasCallStack, MonadIO m) => ApplicationInfo -> Word64 -> Word64 -> Word64 -> m () -- | Atomically decrements the reference count of info by -- one. If the reference count drops to 0, all memory allocated by the -- ApplicationInfo is released. This function is MT-safe and may -- be called from any thread. -- -- Since: 2.18 applicationInfoUnref :: (HasCallStack, MonadIO m) => ApplicationInfo -> m () instance Data.GI.Base.BasicTypes.BoxedObject GI.WebKit2.Structs.ApplicationInfo.ApplicationInfo -- | No description available in the introspection data. module GI.WebKit2.Objects.AuthenticationRequest -- | Memory-managed wrapper type. newtype AuthenticationRequest AuthenticationRequest :: ManagedPtr AuthenticationRequest -> AuthenticationRequest -- | Type class for types which can be safely cast to -- AuthenticationRequest, for instance with -- toAuthenticationRequest. class (GObject o, IsDescendantOf AuthenticationRequest o) => IsAuthenticationRequest o -- | Cast to AuthenticationRequest, for types for which this is -- known to be safe. For general casts, use castTo. toAuthenticationRequest :: (MonadIO m, IsAuthenticationRequest o) => o -> m AuthenticationRequest -- | A convenience alias for Nothing :: Maybe -- AuthenticationRequest. noAuthenticationRequest :: Maybe AuthenticationRequest -- | Authenticate the AuthenticationRequest using the -- Credential supplied. To continue without credentials, pass -- Nothing as credential. -- -- Since: 2.2 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. -- -- Since: 2.2 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. -- -- Since: 2.2 authenticationRequestCancel :: (HasCallStack, MonadIO m, IsAuthenticationRequest a) => a -> m () -- | Get the host that this authentication challenge is applicable to. -- -- Since: 2.2 authenticationRequestGetHost :: (HasCallStack, MonadIO m, IsAuthenticationRequest a) => a -> m Text -- | Get the port that this authentication challenge is applicable to. -- -- Since: 2.2 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. -- -- Since: 2.2 authenticationRequestGetProposedCredential :: (HasCallStack, MonadIO m, IsAuthenticationRequest a) => a -> m Credential -- | Get the realm that this authentication challenge is applicable to. -- -- Since: 2.2 authenticationRequestGetRealm :: (HasCallStack, MonadIO m, IsAuthenticationRequest a) => a -> m Text -- | Get the authentication scheme of the authentication challenge. -- -- Since: 2.2 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. -- -- Since: 2.2 authenticationRequestIsForProxy :: (HasCallStack, MonadIO m, IsAuthenticationRequest a) => a -> m Bool -- | Determine whether this this is a first attempt or a retry for this -- authentication challenge. -- -- Since: 2.2 authenticationRequestIsRetry :: (HasCallStack, MonadIO m, IsAuthenticationRequest a) => a -> m Bool -- | This signal is emitted when the user authentication request is -- cancelled. It allows the application to dismiss its authentication -- dialog in case of page load failure for example. -- -- Since: 2.2 type AuthenticationRequestCancelledCallback = IO () -- | Type for the callback on the (unwrapped) C side. type C_AuthenticationRequestCancelledCallback = Ptr () -> Ptr () -> IO () -- | Connect a signal handler for the “cancelled” signal, to be -- run after the default handler. When overloading is enabled, -- this is equivalent to -- --
-- after authenticationRequest #cancelled callback --afterAuthenticationRequestCancelled :: (IsAuthenticationRequest a, MonadIO m) => a -> AuthenticationRequestCancelledCallback -> m SignalHandlerId -- | Wrap the callback into a GClosure. genClosure_AuthenticationRequestCancelled :: MonadIO m => AuthenticationRequestCancelledCallback -> m (GClosure C_AuthenticationRequestCancelledCallback) -- | Generate a function pointer callable from C code, from a -- C_AuthenticationRequestCancelledCallback. mk_AuthenticationRequestCancelledCallback :: C_AuthenticationRequestCancelledCallback -> IO (FunPtr C_AuthenticationRequestCancelledCallback) -- | A convenience synonym for Nothing :: Maybe -- AuthenticationRequestCancelledCallback. noAuthenticationRequestCancelledCallback :: Maybe AuthenticationRequestCancelledCallback -- | Connect a signal handler for the “cancelled” signal, to be -- run before the default handler. When overloading is enabled, -- this is equivalent to -- --
-- on authenticationRequest #cancelled callback --onAuthenticationRequestCancelled :: (IsAuthenticationRequest a, MonadIO m) => a -> AuthenticationRequestCancelledCallback -> m SignalHandlerId -- | Wrap a AuthenticationRequestCancelledCallback into a -- C_AuthenticationRequestCancelledCallback. wrap_AuthenticationRequestCancelledCallback :: AuthenticationRequestCancelledCallback -> C_AuthenticationRequestCancelledCallback instance (Data.GI.Base.BasicTypes.GObject o, Data.GI.Base.Overloading.IsDescendantOf GI.WebKit2.Objects.AuthenticationRequest.AuthenticationRequest o) => GI.WebKit2.Objects.AuthenticationRequest.IsAuthenticationRequest o instance Data.GI.Base.BasicTypes.GObject GI.WebKit2.Objects.AuthenticationRequest.AuthenticationRequest instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit2.Objects.AuthenticationRequest.AuthenticationRequest -- | No description available in the introspection data. module GI.WebKit2.Structs.Credential -- | Memory-managed wrapper type. newtype Credential Credential :: ManagedPtr Credential -> Credential -- | A convenience alias for Nothing :: Maybe -- Credential. noCredential :: Maybe Credential -- | Make a copy of the Credential. -- -- Since: 2.2 credentialCopy :: (HasCallStack, MonadIO m) => Credential -> m Credential -- | Free the Credential. -- -- Since: 2.2 credentialFree :: (HasCallStack, MonadIO m) => Credential -> m () -- | Get the password currently held by this Credential. -- -- Since: 2.2 credentialGetPassword :: (HasCallStack, MonadIO m) => Credential -> m Text -- | Get the persistence mode currently held by this Credential. -- -- Since: 2.2 credentialGetPersistence :: (HasCallStack, MonadIO m) => Credential -> m CredentialPersistence -- | Get the username currently held by this Credential. -- -- Since: 2.2 credentialGetUsername :: (HasCallStack, MonadIO m) => Credential -> m Text -- | Determine whether this credential has a password stored. -- -- Since: 2.2 credentialHasPassword :: (HasCallStack, MonadIO m) => Credential -> m Bool -- | Create a new credential from the provided username, password and -- persistence mode. -- -- Since: 2.2 credentialNew :: (HasCallStack, MonadIO m) => Text -> Text -> CredentialPersistence -> m Credential instance Data.GI.Base.BasicTypes.BoxedObject GI.WebKit2.Structs.Credential.Credential -- | No description available in the introspection data. module GI.WebKit2.Structs.JavascriptResult -- | Memory-managed wrapper type. newtype JavascriptResult JavascriptResult :: ManagedPtr JavascriptResult -> JavascriptResult -- | A convenience alias for Nothing :: Maybe -- JavascriptResult. noJavascriptResult :: Maybe JavascriptResult -- | Get the Value of jsResult. -- -- Since: 2.22 javascriptResultGetJsValue :: (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 -- | No description available in the introspection data. module GI.WebKit2.Objects.Plugin -- | Memory-managed wrapper type. newtype Plugin Plugin :: ManagedPtr Plugin -> Plugin -- | Type class for types which can be safely cast to Plugin, for -- instance with toPlugin. class (GObject o, IsDescendantOf Plugin o) => IsPlugin o -- | Cast to Plugin, for types for which this is known to be safe. -- For general casts, use castTo. toPlugin :: (MonadIO m, IsPlugin o) => o -> m Plugin -- | A convenience alias for Nothing :: Maybe 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 o, Data.GI.Base.Overloading.IsDescendantOf GI.WebKit2.Objects.Plugin.Plugin o) => GI.WebKit2.Objects.Plugin.IsPlugin o instance Data.GI.Base.BasicTypes.GObject GI.WebKit2.Objects.Plugin.Plugin instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit2.Objects.Plugin.Plugin -- | No description available in the introspection data. module GI.WebKit2.Structs.MimeInfo -- | Memory-managed wrapper type. newtype MimeInfo MimeInfo :: ManagedPtr MimeInfo -> MimeInfo -- | A convenience alias for Nothing :: Maybe -- 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 -- | No description available in the introspection data. module GI.WebKit2.Objects.NavigationPolicyDecision -- | Memory-managed wrapper type. newtype NavigationPolicyDecision NavigationPolicyDecision :: ManagedPtr NavigationPolicyDecision -> NavigationPolicyDecision -- | Type class for types which can be safely cast to -- NavigationPolicyDecision, for instance with -- toNavigationPolicyDecision. class (GObject o, IsDescendantOf NavigationPolicyDecision o) => IsNavigationPolicyDecision o -- | Cast to NavigationPolicyDecision, for types for which this is -- known to be safe. For general casts, use castTo. toNavigationPolicyDecision :: (MonadIO m, IsNavigationPolicyDecision o) => o -> m NavigationPolicyDecision -- | A convenience alias for Nothing :: Maybe -- NavigationPolicyDecision. noNavigationPolicyDecision :: Maybe NavigationPolicyDecision -- | Gets the value of the -- NavigationPolicyDecision:frame-name property. navigationPolicyDecisionGetFrameName :: (HasCallStack, MonadIO m, IsNavigationPolicyDecision a) => a -> m (Maybe 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. -- -- Since: 2.6 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 -- | Get the value of the “frame-name” property. When -- overloading is enabled, this is equivalent to -- --
-- get navigationPolicyDecision #frameName --getNavigationPolicyDecisionFrameName :: (MonadIO m, IsNavigationPolicyDecision o) => o -> m (Maybe Text) -- | Get the value of the “modifiers” property. When -- overloading is enabled, this is equivalent to -- --
-- get navigationPolicyDecision #modifiers --getNavigationPolicyDecisionModifiers :: (MonadIO m, IsNavigationPolicyDecision o) => o -> m Word32 -- | Get the value of the “mouse-button” property. When -- overloading is enabled, this is equivalent to -- --
-- get navigationPolicyDecision #mouseButton --getNavigationPolicyDecisionMouseButton :: (MonadIO m, IsNavigationPolicyDecision o) => o -> m Word32 -- | Get the value of the “navigation-action” property. When -- overloading is enabled, this is equivalent to -- --
-- get navigationPolicyDecision #navigationAction --getNavigationPolicyDecisionNavigationAction :: (MonadIO m, IsNavigationPolicyDecision o) => o -> m NavigationAction -- | Get the value of the “navigation-type” property. When -- overloading is enabled, this is equivalent to -- --
-- get navigationPolicyDecision #navigationType --getNavigationPolicyDecisionNavigationType :: (MonadIO m, IsNavigationPolicyDecision o) => o -> m NavigationType -- | Get the value of the “request” property. When -- overloading is enabled, this is equivalent to -- --
-- get navigationPolicyDecision #request --getNavigationPolicyDecisionRequest :: (MonadIO m, IsNavigationPolicyDecision o) => o -> m URIRequest instance (Data.GI.Base.BasicTypes.GObject o, Data.GI.Base.Overloading.IsDescendantOf GI.WebKit2.Objects.NavigationPolicyDecision.NavigationPolicyDecision o) => GI.WebKit2.Objects.NavigationPolicyDecision.IsNavigationPolicyDecision o instance Data.GI.Base.BasicTypes.GObject GI.WebKit2.Objects.NavigationPolicyDecision.NavigationPolicyDecision instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit2.Objects.NavigationPolicyDecision.NavigationPolicyDecision -- | No description available in the introspection data. module GI.WebKit2.Structs.NavigationAction -- | Memory-managed wrapper type. newtype NavigationAction NavigationAction :: ManagedPtr NavigationAction -> NavigationAction -- | A convenience alias for Nothing :: Maybe -- NavigationAction. noNavigationAction :: Maybe NavigationAction -- | Make a copy of navigation. -- -- Since: 2.6 navigationActionCopy :: (HasCallStack, MonadIO m) => NavigationAction -> m NavigationAction -- | Free the NavigationAction -- -- Since: 2.6 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 -- -- Since: 2.6 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. -- -- Since: 2.6 navigationActionGetMouseButton :: (HasCallStack, MonadIO m) => NavigationAction -> m Word32 -- | Return the type of action that triggered the navigation. -- -- Since: 2.6 navigationActionGetNavigationType :: (HasCallStack, MonadIO m) => NavigationAction -> m NavigationType -- | Return the URIRequest associated with the navigation action. -- Modifications to the returned object are -- <emphasis>not</emphasis> taken into account when the -- request is sent over the network, and is intended only to aid in -- evaluating whether a navigation action should be taken or not. To -- modify requests before they are sent over the network the -- WebKitPage::send-request signal can be used instead. -- -- Since: 2.6 navigationActionGetRequest :: (HasCallStack, MonadIO m) => NavigationAction -> m URIRequest -- | Returns whether the navigation was redirected. -- -- Since: 2.20 navigationActionIsRedirect :: (HasCallStack, MonadIO m) => NavigationAction -> m Bool -- | Return whether the navigation was triggered by a user gesture like a -- mouse click. -- -- Since: 2.6 navigationActionIsUserGesture :: (HasCallStack, MonadIO m) => NavigationAction -> m Bool instance Data.GI.Base.BasicTypes.BoxedObject GI.WebKit2.Structs.NavigationAction.NavigationAction -- | No description available in the introspection data. module GI.WebKit2.Structs.NetworkProxySettings -- | Memory-managed wrapper type. newtype NetworkProxySettings NetworkProxySettings :: ManagedPtr NetworkProxySettings -> NetworkProxySettings -- | A convenience alias for Nothing :: Maybe -- 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. -- -- Since: 2.16 networkProxySettingsAddProxyForScheme :: (HasCallStack, MonadIO m) => NetworkProxySettings -> Text -> Text -> m () -- | Make a copy of the NetworkProxySettings. -- -- Since: 2.16 networkProxySettingsCopy :: (HasCallStack, MonadIO m) => NetworkProxySettings -> m NetworkProxySettings -- | Free the NetworkProxySettings. -- -- Since: 2.16 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. -- -- Since: 2.16 networkProxySettingsNew :: (HasCallStack, MonadIO m) => Maybe Text -> Maybe [Text] -> m NetworkProxySettings instance Data.GI.Base.BasicTypes.BoxedObject GI.WebKit2.Structs.NetworkProxySettings.NetworkProxySettings -- | No description available in the introspection data. module GI.WebKit2.Objects.OptionMenu -- | Memory-managed wrapper type. newtype OptionMenu OptionMenu :: ManagedPtr OptionMenu -> OptionMenu -- | Type class for types which can be safely cast to OptionMenu, -- for instance with toOptionMenu. class (GObject o, IsDescendantOf OptionMenu o) => IsOptionMenu o -- | Cast to OptionMenu, for types for which this is known to be -- safe. For general casts, use castTo. toOptionMenu :: (MonadIO m, IsOptionMenu o) => o -> m OptionMenu -- | A convenience alias for Nothing :: Maybe -- OptionMenu. noOptionMenu :: Maybe OptionMenu -- | Activates the OptionMenuItem at index in -- menu. Activating an item changes the value of the -- element making the item the active one. You are expected to close the -- menu with optionMenuClose after activating an item, calling -- this function again will have no effect. -- -- Since: 2.18 optionMenuActivateItem :: (HasCallStack, MonadIO m, IsOptionMenu a) => a -> Word32 -> m () -- | Request to close a OptionMenu. This emits -- WebKitOptionMenu::close signal. This function should always be called -- to notify WebKit that the associated menu has been closed. If the menu -- is closed and neither optionMenuSelectItem nor -- optionMenuActivateItem have been called, the element value -- remains unchanged. -- -- Since: 2.18 optionMenuClose :: (HasCallStack, MonadIO m, IsOptionMenu a) => a -> m () -- | Returns the OptionMenuItem at index in -- menu. -- -- Since: 2.18 optionMenuGetItem :: (HasCallStack, MonadIO m, IsOptionMenu a) => a -> Word32 -> m (Maybe OptionMenuItem) -- | Gets the length of the menu. -- -- Since: 2.18 optionMenuGetNItems :: (HasCallStack, MonadIO m, IsOptionMenu a) => a -> m Word32 -- | Selects the OptionMenuItem at index in -- menu. Selecting an item changes the text shown by the -- combo button, but it doesn't change the value of the element. You need -- to explicitly activate the item with optionMenuSelectItem or -- close the menu with optionMenuClose in which case the currently -- selected item will be activated. -- -- Since: 2.18 optionMenuSelectItem :: (HasCallStack, MonadIO m, IsOptionMenu a) => a -> Word32 -> m () -- | Type for the callback on the (unwrapped) C side. type C_OptionMenuCloseCallback = Ptr () -> Ptr () -> IO () -- | Emitted when closing a OptionMenu is requested. This can happen -- when the user explicitly calls optionMenuClose or when the -- element is detached from the current page. -- -- Since: 2.18 type OptionMenuCloseCallback = IO () -- | Connect a signal handler for the “close” signal, to be run -- after the default handler. When overloading is enabled, this is -- equivalent to -- --
-- after optionMenu #close callback --afterOptionMenuClose :: (IsOptionMenu a, MonadIO m) => a -> OptionMenuCloseCallback -> m SignalHandlerId -- | Wrap the callback into a GClosure. genClosure_OptionMenuClose :: MonadIO m => OptionMenuCloseCallback -> m (GClosure C_OptionMenuCloseCallback) -- | Generate a function pointer callable from C code, from a -- C_OptionMenuCloseCallback. mk_OptionMenuCloseCallback :: C_OptionMenuCloseCallback -> IO (FunPtr C_OptionMenuCloseCallback) -- | A convenience synonym for Nothing :: Maybe -- OptionMenuCloseCallback. noOptionMenuCloseCallback :: Maybe OptionMenuCloseCallback -- | Connect a signal handler for the “close” signal, to be run -- before the default handler. When overloading is enabled, this -- is equivalent to -- --
-- on optionMenu #close callback --onOptionMenuClose :: (IsOptionMenu a, MonadIO m) => a -> OptionMenuCloseCallback -> m SignalHandlerId -- | Wrap a OptionMenuCloseCallback into a -- C_OptionMenuCloseCallback. wrap_OptionMenuCloseCallback :: OptionMenuCloseCallback -> C_OptionMenuCloseCallback instance (Data.GI.Base.BasicTypes.GObject o, Data.GI.Base.Overloading.IsDescendantOf GI.WebKit2.Objects.OptionMenu.OptionMenu o) => GI.WebKit2.Objects.OptionMenu.IsOptionMenu o instance Data.GI.Base.BasicTypes.GObject GI.WebKit2.Objects.OptionMenu.OptionMenu instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit2.Objects.OptionMenu.OptionMenu -- | No description available in the introspection data. module GI.WebKit2.Structs.OptionMenuItem -- | Memory-managed wrapper type. newtype OptionMenuItem OptionMenuItem :: ManagedPtr OptionMenuItem -> OptionMenuItem -- | A convenience alias for Nothing :: Maybe -- OptionMenuItem. noOptionMenuItem :: Maybe OptionMenuItem -- | Make a copy of the OptionMenuItem. -- -- Since: 2.18 optionMenuItemCopy :: (HasCallStack, MonadIO m) => OptionMenuItem -> m OptionMenuItem -- | Free the OptionMenuItem. -- -- Since: 2.18 optionMenuItemFree :: (HasCallStack, MonadIO m) => OptionMenuItem -> m () -- | Get the label of a OptionMenuItem. -- -- Since: 2.18 optionMenuItemGetLabel :: (HasCallStack, MonadIO m) => OptionMenuItem -> m Text -- | Get the tooltip of a OptionMenuItem. -- -- Since: 2.18 optionMenuItemGetTooltip :: (HasCallStack, MonadIO m) => OptionMenuItem -> m (Maybe Text) -- | Whether a OptionMenuItem is enabled. -- -- Since: 2.18 optionMenuItemIsEnabled :: (HasCallStack, MonadIO m) => OptionMenuItem -> m Bool -- | Whether a OptionMenuItem is a group child. -- -- Since: 2.18 optionMenuItemIsGroupChild :: (HasCallStack, MonadIO m) => OptionMenuItem -> m Bool -- | Whether a OptionMenuItem is a group label. -- -- Since: 2.18 optionMenuItemIsGroupLabel :: (HasCallStack, MonadIO m) => OptionMenuItem -> m Bool -- | Whether a OptionMenuItem is the currently selected one. -- -- Since: 2.18 optionMenuItemIsSelected :: (HasCallStack, MonadIO m) => OptionMenuItem -> m Bool instance Data.GI.Base.BasicTypes.BoxedObject GI.WebKit2.Structs.OptionMenuItem.OptionMenuItem -- | No description available in the introspection data. module GI.WebKit2.Structs.ScriptDialog -- | Memory-managed wrapper type. newtype ScriptDialog ScriptDialog :: ManagedPtr ScriptDialog -> ScriptDialog -- | A convenience alias for Nothing :: Maybe -- ScriptDialog. noScriptDialog :: Maybe ScriptDialog -- | Close dialog. When handling a ScriptDialog -- asynchronously (scriptDialogRef was called in -- WebView::script-dialog callback), this function -- needs to be called to notify that we are done with the script dialog. -- The dialog will be closed on destruction if this function hasn't been -- called before. -- -- Since: 2.24 scriptDialogClose :: (HasCallStack, MonadIO m) => ScriptDialog -> m () -- | 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 () -- | Atomically increments the reference count of dialog by -- one. This function is MT-safe and may be called from any thread. -- -- Since: 2.24 scriptDialogRef :: (HasCallStack, MonadIO m) => ScriptDialog -> m ScriptDialog -- | Atomically decrements the reference count of dialog by -- one. If the reference count drops to 0, all memory allocated by the -- WebKitScriptdialog is released. This function is -- MT-safe and may be called from any thread. -- -- Since: 2.24 scriptDialogUnref :: (HasCallStack, MonadIO m) => ScriptDialog -> m () instance Data.GI.Base.BasicTypes.BoxedObject GI.WebKit2.Structs.ScriptDialog.ScriptDialog -- | No description available in the introspection data. module GI.WebKit2.Objects.WebContext -- | Memory-managed wrapper type. newtype WebContext WebContext :: ManagedPtr WebContext -> WebContext -- | Type class for types which can be safely cast to WebContext, -- for instance with toWebContext. class (GObject o, IsDescendantOf WebContext o) => IsWebContext o -- | Cast to WebContext, for types for which this is known to be -- safe. For general casts, use castTo. toWebContext :: (MonadIO m, IsWebContext o) => o -> m WebContext -- | A convenience alias for Nothing :: Maybe -- WebContext. noWebContext :: Maybe WebContext -- | Ignore further TLS errors on the host for the -- certificate present in info. -- -- Since: 2.6 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 (Maybe 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. -- -- Since: 2.4 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 (Maybe [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. -- -- Since: 2.10 webContextGetWebProcessCountLimit :: (HasCallStack, MonadIO m, IsWebContext a) => a -> m Word32 -- | Get the WebsiteDataManager of context. -- -- Since: 2.10 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. -- -- Since: 2.16 webContextInitializeNotificationPermissions :: (HasCallStack, MonadIO m, IsWebContext a) => a -> [SecurityOrigin] -> [SecurityOrigin] -> m () -- | Get whether automation is allowed in context. See also -- webContextSetAutomationAllowed. -- -- Since: 2.18 webContextIsAutomationAllowed :: (HasCallStack, MonadIO m, IsWebContext a) => a -> m Bool -- | Get whether a WebContext is ephemeral. -- -- Since: 2.16 webContextIsEphemeral :: (HasCallStack, MonadIO m, IsWebContext a) => a -> m Bool -- | Create a new WebContext -- -- Since: 2.8 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. -- -- Since: 2.16 webContextNewEphemeral :: (HasCallStack, MonadIO m) => m WebContext -- | Create a new WebContext with a WebsiteDataManager. -- -- Since: 2.10 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 () -- | Set whether automation is allowed in context. When -- automation is enabled the browser could be controlled by another -- process by requesting an automation session. When a new automation -- session is requested the signal -- WebContext::automation-started is emitted. -- Automation is disabled by default, so you need to explicitly call this -- method passing True to enable it. -- -- Note that only one WebContext can have automation enabled, so -- this will do nothing if there's another WebContext with -- automation already enabled. -- -- Since: 2.18 webContextSetAutomationAllowed :: (HasCallStack, MonadIO m, IsWebContext a) => a -> Bool -> 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 getUserCacheDir). -- -- 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. -- -- Since: 2.16 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. -- -- Since: 2.4 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. -- -- Since: 2.4 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. -- -- Since: 2.10 webContextSetWebProcessCountLimit :: (HasCallStack, MonadIO m, IsWebContext a) => a -> Word32 -> m () -- | Construct a GValueConstruct with valid value for the -- “local-storage-directory” property. This is rarely needed -- directly, but it is used by new. constructWebContextLocalStorageDirectory :: IsWebContext o => Text -> IO (GValueConstruct o) -- | Get the value of the “local-storage-directory” property. When -- overloading is enabled, this is equivalent to -- --
-- get webContext #localStorageDirectory --getWebContextLocalStorageDirectory :: (MonadIO m, IsWebContext o) => o -> m (Maybe Text) -- | Construct a GValueConstruct with valid value for the -- “website-data-manager” property. This is rarely needed -- directly, but it is used by new. constructWebContextWebsiteDataManager :: (IsWebContext o, IsWebsiteDataManager a) => a -> IO (GValueConstruct o) -- | Get the value of the “website-data-manager” property. When -- overloading is enabled, this is equivalent to -- --
-- get webContext #websiteDataManager --getWebContextWebsiteDataManager :: (MonadIO m, IsWebContext o) => o -> m WebsiteDataManager -- | Type for the callback on the (unwrapped) C side. type C_WebContextAutomationStartedCallback = Ptr () -> Ptr AutomationSession -> Ptr () -> IO () -- | This signal is emitted when a new automation request is made. Note -- that it will never be emitted if automation is not enabled in -- context, see webContextSetAutomationAllowed for -- more details. -- -- Since: 2.18 type WebContextAutomationStartedCallback = AutomationSession " /@session@/: the 'GI.WebKit2.Objects.AutomationSession.AutomationSession' associated with this event " -> IO () -- | Connect a signal handler for the “automation-started” signal, -- to be run after the default handler. When overloading is -- enabled, this is equivalent to -- --
-- after webContext #automationStarted callback --afterWebContextAutomationStarted :: (IsWebContext a, MonadIO m) => a -> WebContextAutomationStartedCallback -> m SignalHandlerId -- | Wrap the callback into a GClosure. genClosure_WebContextAutomationStarted :: MonadIO m => WebContextAutomationStartedCallback -> m (GClosure C_WebContextAutomationStartedCallback) -- | Generate a function pointer callable from C code, from a -- C_WebContextAutomationStartedCallback. mk_WebContextAutomationStartedCallback :: C_WebContextAutomationStartedCallback -> IO (FunPtr C_WebContextAutomationStartedCallback) -- | A convenience synonym for Nothing :: Maybe -- WebContextAutomationStartedCallback. noWebContextAutomationStartedCallback :: Maybe WebContextAutomationStartedCallback -- | Connect a signal handler for the “automation-started” signal, -- to be run before the default handler. When overloading is -- enabled, this is equivalent to -- --
-- on webContext #automationStarted callback --onWebContextAutomationStarted :: (IsWebContext a, MonadIO m) => a -> WebContextAutomationStartedCallback -> m SignalHandlerId -- | Wrap a WebContextAutomationStartedCallback into a -- C_WebContextAutomationStartedCallback. wrap_WebContextAutomationStartedCallback :: WebContextAutomationStartedCallback -> C_WebContextAutomationStartedCallback -- | Type for the callback on the (unwrapped) C side. type C_WebContextDownloadStartedCallback = Ptr () -> Ptr Download -> Ptr () -> IO () -- | This signal is emitted when a new download request is made. type WebContextDownloadStartedCallback = Download " /@download@/: the 'GI.WebKit2.Objects.Download.Download' associated with this event " -> IO () -- | Connect a signal handler for the “download-started” signal, -- to be run after the default handler. When overloading is -- enabled, this is equivalent to -- --
-- after webContext #downloadStarted callback --afterWebContextDownloadStarted :: (IsWebContext a, MonadIO m) => a -> WebContextDownloadStartedCallback -> m SignalHandlerId -- | Wrap the callback into a GClosure. genClosure_WebContextDownloadStarted :: MonadIO m => WebContextDownloadStartedCallback -> m (GClosure C_WebContextDownloadStartedCallback) -- | Generate a function pointer callable from C code, from a -- C_WebContextDownloadStartedCallback. mk_WebContextDownloadStartedCallback :: C_WebContextDownloadStartedCallback -> IO (FunPtr C_WebContextDownloadStartedCallback) -- | A convenience synonym for Nothing :: Maybe -- WebContextDownloadStartedCallback. noWebContextDownloadStartedCallback :: Maybe WebContextDownloadStartedCallback -- | Connect a signal handler for the “download-started” signal, -- to be run before the default handler. When overloading is -- enabled, this is equivalent to -- --
-- on webContext #downloadStarted callback --onWebContextDownloadStarted :: (IsWebContext a, MonadIO m) => a -> WebContextDownloadStartedCallback -> m SignalHandlerId -- | Wrap a WebContextDownloadStartedCallback into a -- C_WebContextDownloadStartedCallback. wrap_WebContextDownloadStartedCallback :: WebContextDownloadStartedCallback -> C_WebContextDownloadStartedCallback -- | Type for the callback on the (unwrapped) C side. type C_WebContextInitializeNotificationPermissionsCallback = Ptr () -> Ptr () -> IO () -- | This signal is emitted when a WebContext needs to set initial -- notification permissions for a web process. It is emitted when a new -- web process is about to be launched, and signals the most appropriate -- moment to use webContextInitializeNotificationPermissions. If -- no notification permissions have changed since the last time this -- signal was emitted, then there is no need to call -- webContextInitializeNotificationPermissions again. -- -- Since: 2.16 type WebContextInitializeNotificationPermissionsCallback = IO () -- | Connect a signal handler for the -- “initialize-notification-permissions” signal, to be run after -- the default handler. When overloading is enabled, this is -- equivalent to -- --
-- after webContext #initializeNotificationPermissions callback --afterWebContextInitializeNotificationPermissions :: (IsWebContext a, MonadIO m) => a -> WebContextInitializeNotificationPermissionsCallback -> m SignalHandlerId -- | Wrap the callback into a GClosure. genClosure_WebContextInitializeNotificationPermissions :: MonadIO m => WebContextInitializeNotificationPermissionsCallback -> m (GClosure C_WebContextInitializeNotificationPermissionsCallback) -- | Generate a function pointer callable from C code, from a -- C_WebContextInitializeNotificationPermissionsCallback. mk_WebContextInitializeNotificationPermissionsCallback :: C_WebContextInitializeNotificationPermissionsCallback -> IO (FunPtr C_WebContextInitializeNotificationPermissionsCallback) -- | A convenience synonym for Nothing :: Maybe -- WebContextInitializeNotificationPermissionsCallback. noWebContextInitializeNotificationPermissionsCallback :: Maybe WebContextInitializeNotificationPermissionsCallback -- | Connect a signal handler for the -- “initialize-notification-permissions” signal, to be run -- before the default handler. When overloading is enabled, this -- is equivalent to -- --
-- on webContext #initializeNotificationPermissions callback --onWebContextInitializeNotificationPermissions :: (IsWebContext a, MonadIO m) => a -> WebContextInitializeNotificationPermissionsCallback -> m SignalHandlerId -- | Wrap a WebContextInitializeNotificationPermissionsCallback into -- a C_WebContextInitializeNotificationPermissionsCallback. wrap_WebContextInitializeNotificationPermissionsCallback :: WebContextInitializeNotificationPermissionsCallback -> C_WebContextInitializeNotificationPermissionsCallback -- | Type for the callback on the (unwrapped) C side. type C_WebContextInitializeWebExtensionsCallback = Ptr () -> Ptr () -> IO () -- | This signal is emitted when a new web process is about to be launched. -- It signals the most appropriate moment to use -- webContextSetWebExtensionsInitializationUserData and -- webContextSetWebExtensionsDirectory. -- -- Since: 2.4 type WebContextInitializeWebExtensionsCallback = IO () -- | Connect a signal handler for the “initialize-web-extensions” -- signal, to be run after the default handler. When overloading -- is enabled, this is equivalent to -- --
-- after webContext #initializeWebExtensions callback --afterWebContextInitializeWebExtensions :: (IsWebContext a, MonadIO m) => a -> WebContextInitializeWebExtensionsCallback -> m SignalHandlerId -- | Wrap the callback into a GClosure. genClosure_WebContextInitializeWebExtensions :: MonadIO m => WebContextInitializeWebExtensionsCallback -> m (GClosure C_WebContextInitializeWebExtensionsCallback) -- | Generate a function pointer callable from C code, from a -- C_WebContextInitializeWebExtensionsCallback. mk_WebContextInitializeWebExtensionsCallback :: C_WebContextInitializeWebExtensionsCallback -> IO (FunPtr C_WebContextInitializeWebExtensionsCallback) -- | A convenience synonym for Nothing :: Maybe -- WebContextInitializeWebExtensionsCallback. noWebContextInitializeWebExtensionsCallback :: Maybe WebContextInitializeWebExtensionsCallback -- | Connect a signal handler for the “initialize-web-extensions” -- signal, to be run before the default handler. When overloading -- is enabled, this is equivalent to -- --
-- on webContext #initializeWebExtensions callback --onWebContextInitializeWebExtensions :: (IsWebContext a, MonadIO m) => a -> WebContextInitializeWebExtensionsCallback -> m SignalHandlerId -- | Wrap a WebContextInitializeWebExtensionsCallback into a -- C_WebContextInitializeWebExtensionsCallback. wrap_WebContextInitializeWebExtensionsCallback :: WebContextInitializeWebExtensionsCallback -> C_WebContextInitializeWebExtensionsCallback instance (Data.GI.Base.BasicTypes.GObject o, Data.GI.Base.Overloading.IsDescendantOf GI.WebKit2.Objects.WebContext.WebContext o) => GI.WebKit2.Objects.WebContext.IsWebContext o instance Data.GI.Base.BasicTypes.GObject GI.WebKit2.Objects.WebContext.WebContext instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit2.Objects.WebContext.WebContext -- | No description available in the introspection data. module GI.WebKit2.Structs.SecurityOrigin -- | Memory-managed wrapper type. newtype SecurityOrigin SecurityOrigin :: ManagedPtr SecurityOrigin -> SecurityOrigin -- | A convenience alias for Nothing :: Maybe -- 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. -- -- Since: 2.16 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. -- -- Since: 2.16 securityOriginGetPort :: (HasCallStack, MonadIO m) => SecurityOrigin -> m Word16 -- | Gets the protocol of origin, or Nothing if -- origin is opaque. -- -- Since: 2.16 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. -- -- Since: 2.16 securityOriginIsOpaque :: (HasCallStack, MonadIO m) => SecurityOrigin -> m Bool -- | Create a new security origin from the provided protocol, host and -- port. -- -- Since: 2.16 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. -- -- Since: 2.16 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. -- -- Since: 2.16 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. -- -- Since: 2.16 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. -- -- Since: 2.16 securityOriginUnref :: (HasCallStack, MonadIO m) => SecurityOrigin -> m () instance Data.GI.Base.BasicTypes.BoxedObject GI.WebKit2.Structs.SecurityOrigin.SecurityOrigin -- | No description available in the introspection data. module GI.WebKit2.Objects.UserContentFilterStore -- | Memory-managed wrapper type. newtype UserContentFilterStore UserContentFilterStore :: ManagedPtr UserContentFilterStore -> UserContentFilterStore -- | Type class for types which can be safely cast to -- UserContentFilterStore, for instance with -- toUserContentFilterStore. class (GObject o, IsDescendantOf UserContentFilterStore o) => IsUserContentFilterStore o -- | Cast to UserContentFilterStore, for types for which this is -- known to be safe. For general casts, use castTo. toUserContentFilterStore :: (MonadIO m, IsUserContentFilterStore o) => o -> m UserContentFilterStore -- | A convenience alias for Nothing :: Maybe -- UserContentFilterStore. noUserContentFilterStore :: Maybe UserContentFilterStore -- | Asynchronously retrieve a list of the identifiers for all the stored -- filters. -- -- When the operation is finished, callback will be -- invoked, which then can use -- userContentFilterStoreFetchIdentifiersFinish to obtain the list -- of filter identifiers. -- -- Since: 2.24 userContentFilterStoreFetchIdentifiers :: (HasCallStack, MonadIO m, IsUserContentFilterStore a, IsCancellable b) => a -> Maybe b -> Maybe AsyncReadyCallback -> m () -- | Finishes an asynchronous fetch of the list of identifiers for the -- stored filters previously started with -- userContentFilterStoreFetchIdentifiers. -- -- Since: 2.24 userContentFilterStoreFetchIdentifiersFinish :: (HasCallStack, MonadIO m, IsUserContentFilterStore a, IsAsyncResult b) => a -> b -> m [Text] -- | No description available in the introspection data. -- -- Since: 2.24 userContentFilterStoreGetPath :: (HasCallStack, MonadIO m, IsUserContentFilterStore a) => a -> m Text -- | Asynchronously load a content filter given its -- identifier. The filter must have been previously -- stored using userContentFilterStoreSave. -- -- When the operation is finished, callback will be -- invoked, which then can use userContentFilterStoreLoadFinish to -- obtain the resulting filter. -- -- Since: 2.24 userContentFilterStoreLoad :: (HasCallStack, MonadIO m, IsUserContentFilterStore a, IsCancellable b) => a -> Text -> Maybe b -> Maybe AsyncReadyCallback -> m () -- | Finishes an asynchronous filter load previously started with -- userContentFilterStoreLoad. -- -- Since: 2.24 userContentFilterStoreLoadFinish :: (HasCallStack, MonadIO m, IsUserContentFilterStore a, IsAsyncResult b) => a -> b -> m UserContentFilter -- | Create a new UserContentFilterStore to manipulate filters -- stored at storagePath. The path must point to a local -- filesystem, and will be created if needed. -- -- Since: 2.24 userContentFilterStoreNew :: (HasCallStack, MonadIO m) => Text -> m UserContentFilterStore -- | Asynchronously remove a content filter given its -- identifier. -- -- When the operation is finished, callback will be -- invoked, which then can use userContentFilterStoreRemoveFinish -- to check whether the removal was successful. -- -- Since: 2.24 userContentFilterStoreRemove :: (HasCallStack, MonadIO m, IsUserContentFilterStore a, IsCancellable b) => a -> Text -> Maybe b -> Maybe AsyncReadyCallback -> m () -- | Finishes an asynchronous filter removal previously started with -- userContentFilterStoreRemove. -- -- Since: 2.24 userContentFilterStoreRemoveFinish :: (HasCallStack, MonadIO m, IsUserContentFilterStore a, IsAsyncResult b) => a -> b -> m () -- | Asynchronously save a content filter from a source rule set in the -- WebKit content extesions JSON format. -- -- The identifier can be used afterwards to refer to the -- filter when using userContentFilterStoreRemove and -- userContentFilterStoreLoad. When the identifier -- has been used in the past, the new filter source will replace the one -- saved beforehand for the same identifier. -- -- When the operation is finished, callback will be -- invoked, which then can use userContentFilterStoreSaveFinish to -- obtain the resulting filter. -- -- Since: 2.24 userContentFilterStoreSave :: (HasCallStack, MonadIO m, IsUserContentFilterStore a, IsCancellable b) => a -> Text -> Bytes -> Maybe b -> Maybe AsyncReadyCallback -> m () -- | Finishes an asynchronous filter save previously started with -- userContentFilterStoreSave. -- -- Since: 2.24 userContentFilterStoreSaveFinish :: (HasCallStack, MonadIO m, IsUserContentFilterStore a, IsAsyncResult b) => a -> b -> m UserContentFilter -- | Asynchronously save a content filter from the contents of a file, -- which must be native to the platform, as checked by -- fileIsNative. See userContentFilterStoreSave for more -- details. -- -- When the operation is finished, callback will be -- invoked, which then can use userContentFilterStoreSaveFinish to -- obtain the resulting filter. -- -- Since: 2.24 userContentFilterStoreSaveFromFile :: (HasCallStack, MonadIO m, IsUserContentFilterStore a, IsFile b, IsCancellable c) => a -> Text -> b -> Maybe c -> Maybe AsyncReadyCallback -> m () -- | Finishes and asynchronous filter save previously started with -- userContentFilterStoreSaveFromFile. -- -- Since: 2.24 userContentFilterStoreSaveFromFileFinish :: (HasCallStack, MonadIO m, IsUserContentFilterStore a, IsAsyncResult b) => a -> b -> m UserContentFilter -- | Construct a GValueConstruct with valid value for the -- “path” property. This is rarely needed directly, but it is -- used by new. constructUserContentFilterStorePath :: IsUserContentFilterStore o => Text -> IO (GValueConstruct o) -- | Get the value of the “path” property. When overloading -- is enabled, this is equivalent to -- --
-- get userContentFilterStore #path --getUserContentFilterStorePath :: (MonadIO m, IsUserContentFilterStore o) => o -> m Text instance (Data.GI.Base.BasicTypes.GObject o, Data.GI.Base.Overloading.IsDescendantOf GI.WebKit2.Objects.UserContentFilterStore.UserContentFilterStore o) => GI.WebKit2.Objects.UserContentFilterStore.IsUserContentFilterStore o instance Data.GI.Base.BasicTypes.GObject GI.WebKit2.Objects.UserContentFilterStore.UserContentFilterStore instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit2.Objects.UserContentFilterStore.UserContentFilterStore -- | No description available in the introspection data. module GI.WebKit2.Structs.UserContentFilter -- | Memory-managed wrapper type. newtype UserContentFilter UserContentFilter :: ManagedPtr UserContentFilter -> UserContentFilter -- | A convenience alias for Nothing :: Maybe -- UserContentFilter. noUserContentFilter :: Maybe UserContentFilter -- | Obtain the identifier previously used to save the -- userContentFilter in the -- UserContentFilterStore. -- -- Since: 2.24 userContentFilterGetIdentifier :: (HasCallStack, MonadIO m) => UserContentFilter -> m Text -- | Atomically increments the reference count of -- userContentFilter by one. This function is MT-safe and -- may be called from any thread. -- -- Since: 2.24 userContentFilterRef :: (HasCallStack, MonadIO m) => UserContentFilter -> m UserContentFilter -- | Atomically decrements the reference count of -- userContentFilter by one. If the reference count drops -- to 0, all the memory allocated by the UserContentFilter is -- released. This function is MT-safe and may be called from any thread. -- -- Since: 2.24 userContentFilterUnref :: (HasCallStack, MonadIO m) => UserContentFilter -> m () instance Data.GI.Base.BasicTypes.BoxedObject GI.WebKit2.Structs.UserContentFilter.UserContentFilter -- | No description available in the introspection data. module GI.WebKit2.Structs.UserScript -- | Memory-managed wrapper type. newtype UserScript UserScript :: ManagedPtr UserScript -> UserScript -- | A convenience alias for Nothing :: Maybe -- 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. -- -- Since: 2.6 userScriptNew :: (HasCallStack, MonadIO m) => Text -> UserContentInjectedFrames -> UserScriptInjectionTime -> Maybe [Text] -> Maybe [Text] -> m UserScript -- | Creates a new user script for script world with name -- worldName. See userScriptNew for a full -- description. -- -- Since: 2.22 userScriptNewForWorld :: (HasCallStack, MonadIO m) => Text -> UserContentInjectedFrames -> UserScriptInjectionTime -> Text -> 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. -- -- Since: 2.6 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. -- -- Since: 2.6 userScriptUnref :: (HasCallStack, MonadIO m) => UserScript -> m () instance Data.GI.Base.BasicTypes.BoxedObject GI.WebKit2.Structs.UserScript.UserScript -- | No description available in the introspection data. module GI.WebKit2.Objects.UserContentManager -- | Memory-managed wrapper type. newtype UserContentManager UserContentManager :: ManagedPtr UserContentManager -> UserContentManager -- | Type class for types which can be safely cast to -- UserContentManager, for instance with -- toUserContentManager. class (GObject o, IsDescendantOf UserContentManager o) => IsUserContentManager o -- | Cast to UserContentManager, for types for which this is known -- to be safe. For general casts, use castTo. toUserContentManager :: (MonadIO m, IsUserContentManager o) => o -> m UserContentManager -- | A convenience alias for Nothing :: Maybe -- UserContentManager. noUserContentManager :: Maybe UserContentManager -- | Adds a UserContentFilter to the given -- UserContentManager. The same UserContentFilter can be -- reused with multiple UserContentManager instances. -- -- Filters need to be saved and loaded from -- UserContentFilterStore. -- -- Since: 2.24 userContentManagerAddFilter :: (HasCallStack, MonadIO m, IsUserContentManager a) => a -> UserContentFilter -> m () -- | Adds a UserScript to the given UserContentManager. The -- same UserScript can be reused with multiple -- UserContentManager instances. -- -- Since: 2.6 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. -- -- Since: 2.6 userContentManagerAddStyleSheet :: (HasCallStack, MonadIO m, IsUserContentManager a) => a -> UserStyleSheet -> m () -- | Creates a new user content manager. -- -- Since: 2.6 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. -- -- Since: 2.8 userContentManagerRegisterScriptMessageHandler :: (HasCallStack, MonadIO m, IsUserContentManager a) => a -> Text -> m Bool -- | Registers a new user script message handler in script world with name -- worldName. See -- userContentManagerRegisterScriptMessageHandler for full -- description. -- -- Registering a script message handler will fail if the requested name -- has been already registered before. -- -- Since: 2.22 userContentManagerRegisterScriptMessageHandlerInWorld :: (HasCallStack, MonadIO m, IsUserContentManager a) => a -> Text -> Text -> m Bool -- | Removes all content filters from the given UserContentManager. -- -- Since: 2.24 userContentManagerRemoveAllFilters :: (HasCallStack, MonadIO m, IsUserContentManager a) => a -> m () -- | Removes all user scripts from the given UserContentManager -- -- Since: 2.6 userContentManagerRemoveAllScripts :: (HasCallStack, MonadIO m, IsUserContentManager a) => a -> m () -- | Removes all user style sheets from the given -- UserContentManager. -- -- Since: 2.6 userContentManagerRemoveAllStyleSheets :: (HasCallStack, MonadIO m, IsUserContentManager a) => a -> m () -- | Removes a filter from the given UserContentManager. -- -- Since 2.24 userContentManagerRemoveFilter :: (HasCallStack, MonadIO m, IsUserContentManager a) => a -> UserContentFilter -> 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. -- -- Since: 2.8 userContentManagerUnregisterScriptMessageHandler :: (HasCallStack, MonadIO m, IsUserContentManager a) => a -> Text -> m () -- | Unregisters a previously registered message handler in script world -- with name worldName. -- -- 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 userContentManagerRegisterScriptMessageHandlerInWorld. -- -- Since: 2.22 userContentManagerUnregisterScriptMessageHandlerInWorld :: (HasCallStack, MonadIO m, IsUserContentManager a) => a -> Text -> Text -> m () -- | Type for the callback on the (unwrapped) C side. type C_UserContentManagerScriptMessageReceivedCallback = Ptr () -> Ptr JavascriptResult -> Ptr () -> IO () -- | This signal is emitted when JavaScript in a web view calls -- <code>window.webkit.messageHandlers.<name>.postMessage()</code>, -- after registering <code><name></code> using -- userContentManagerRegisterScriptMessageHandler -- -- Since: 2.8 type UserContentManagerScriptMessageReceivedCallback = JavascriptResult " /@jsResult@/: the 'GI.WebKit2.Structs.JavascriptResult.JavascriptResult' holding the value received from the JavaScript world. " -> IO () -- | Connect a signal handler for the “script-message-received” -- signal, to be run after the default handler. When overloading -- is enabled, this is equivalent to -- --
-- after userContentManager #scriptMessageReceived callback --afterUserContentManagerScriptMessageReceived :: (IsUserContentManager a, MonadIO m) => a -> UserContentManagerScriptMessageReceivedCallback -> m SignalHandlerId -- | Wrap the callback into a GClosure. genClosure_UserContentManagerScriptMessageReceived :: MonadIO m => UserContentManagerScriptMessageReceivedCallback -> m (GClosure C_UserContentManagerScriptMessageReceivedCallback) -- | Generate a function pointer callable from C code, from a -- C_UserContentManagerScriptMessageReceivedCallback. mk_UserContentManagerScriptMessageReceivedCallback :: C_UserContentManagerScriptMessageReceivedCallback -> IO (FunPtr C_UserContentManagerScriptMessageReceivedCallback) -- | A convenience synonym for Nothing :: Maybe -- UserContentManagerScriptMessageReceivedCallback. noUserContentManagerScriptMessageReceivedCallback :: Maybe UserContentManagerScriptMessageReceivedCallback -- | Connect a signal handler for the “script-message-received” -- signal, to be run before the default handler. When overloading -- is enabled, this is equivalent to -- --
-- on userContentManager #scriptMessageReceived callback --onUserContentManagerScriptMessageReceived :: (IsUserContentManager a, MonadIO m) => a -> UserContentManagerScriptMessageReceivedCallback -> m SignalHandlerId -- | Wrap a UserContentManagerScriptMessageReceivedCallback into a -- C_UserContentManagerScriptMessageReceivedCallback. wrap_UserContentManagerScriptMessageReceivedCallback :: UserContentManagerScriptMessageReceivedCallback -> C_UserContentManagerScriptMessageReceivedCallback instance (Data.GI.Base.BasicTypes.GObject o, Data.GI.Base.Overloading.IsDescendantOf GI.WebKit2.Objects.UserContentManager.UserContentManager o) => GI.WebKit2.Objects.UserContentManager.IsUserContentManager o instance Data.GI.Base.BasicTypes.GObject GI.WebKit2.Objects.UserContentManager.UserContentManager instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit2.Objects.UserContentManager.UserContentManager -- | No description available in the introspection data. module GI.WebKit2.Structs.UserStyleSheet -- | Memory-managed wrapper type. newtype UserStyleSheet UserStyleSheet :: ManagedPtr UserStyleSheet -> UserStyleSheet -- | A convenience alias for Nothing :: Maybe -- 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. -- -- Since: 2.6 userStyleSheetNew :: (HasCallStack, MonadIO m) => Text -> UserContentInjectedFrames -> UserStyleLevel -> Maybe [Text] -> Maybe [Text] -> m UserStyleSheet -- | Creates a new user style sheet for script world with name -- worldName. See userStyleSheetNew for a full -- description. -- -- Since: 2.22 userStyleSheetNewForWorld :: (HasCallStack, MonadIO m) => Text -> UserContentInjectedFrames -> UserStyleLevel -> Text -> 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. -- -- Since: 2.6 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. -- -- Since: 2.6 userStyleSheetUnref :: (HasCallStack, MonadIO m) => UserStyleSheet -> m () instance Data.GI.Base.BasicTypes.BoxedObject GI.WebKit2.Structs.UserStyleSheet.UserStyleSheet -- | No description available in the introspection data. module GI.WebKit2.Objects.WebView -- | Memory-managed wrapper type. newtype WebView WebView :: ManagedPtr WebView -> WebView -- | Type class for types which can be safely cast to WebView, for -- instance with toWebView. class (GObject o, IsDescendantOf WebView o) => IsWebView o -- | Cast to WebView, for types for which this is known to be safe. -- For general casts, use castTo. toWebView :: (MonadIO m, IsWebView o) => o -> m WebView -- | A convenience alias for Nothing :: Maybe 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. -- -- Since: 2.10 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 -- -- Since: 2.8 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 (Maybe Text) -- | Gets the web editor state of webView. -- -- Since: 2.10 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 (Maybe 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 -- | Return the main resource of webView. webViewGetMainResource :: (HasCallStack, MonadIO m, IsWebView a) => a -> m (Maybe 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 -- -- Since: 2.12 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 (Maybe 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. -- -- Since: 2.6 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. -- -- Since: 2.16 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 () -- | Get whether a WebView was created with -- WebView:is-controlled-by-automation property -- enabled. Only WebView<!-- -->s controlled by automation -- can be used in an automation session. -- -- Since: 2.18 webViewIsControlledByAutomation :: (HasCallStack, MonadIO m, IsWebView a) => a -> m Bool -- | 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 property 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. -- -- Since: 2.16 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 -- loading 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. -- -- Since: 2.8 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, then 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. -- -- Since: 2.6 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. -- -- Since: 2.4 webViewNewWithRelatedView :: (HasCallStack, MonadIO m, IsWebView a) => a -> m WebView -- | Creates a new WebView with the given Settings. See also -- webViewNewWithContext, and -- webViewNewWithUserContentManager. -- -- Since: 2.6 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. -- -- Since: 2.6 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 -- -- Since: 2.12 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; JSCValue -- *value; 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; } -- -- value = webkit_javascript_result_get_js_value (js_result); if -- (jsc_value_is_string (value)) { JSCException *exception; gchar -- *str_value; -- -- str_value = jsc_value_to_string (value); exception = -- jsc_context_get_exception (jsc_value_get_context (value)); if -- (exception) g_warning ("Error running javascript: s", -- jsc_exception_get_message (exception)); else 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 run script in the script world with -- name worldName of the current page context 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 webViewRunJavascriptInWorldFinish to -- get the result of the operation. -- -- Since: 2.22 webViewRunJavascriptInWorld :: (HasCallStack, MonadIO m, IsWebView a, IsCancellable b) => a -> Text -> Text -> Maybe b -> Maybe AsyncReadyCallback -> m () -- | Finish an asynchronous operation started with -- webViewRunJavascriptInWorld. -- -- Since: 2.22 webViewRunJavascriptInWorldFinish :: (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> -- -- Since: 2.8 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. -- -- Since: 2.8 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. -- -- Since: 2.12 webViewTryClose :: (HasCallStack, MonadIO m, IsWebView a) => a -> m () -- | Construct a GValueConstruct with valid value for the -- “editable” property. This is rarely needed directly, but it -- is used by new. constructWebViewEditable :: IsWebView o => Bool -> IO (GValueConstruct o) -- | Get the value of the “editable” property. When -- overloading is enabled, this is equivalent to -- --
-- get webView #editable --getWebViewEditable :: (MonadIO m, IsWebView o) => o -> m Bool -- | Set the value of the “editable” property. When -- overloading is enabled, this is equivalent to -- --
-- set webView [ #editable := value ] --setWebViewEditable :: (MonadIO m, IsWebView o) => o -> Bool -> m () -- | Get the value of the “estimated-load-progress” property. When -- overloading is enabled, this is equivalent to -- --
-- get webView #estimatedLoadProgress --getWebViewEstimatedLoadProgress :: (MonadIO m, IsWebView o) => o -> m Double -- | Get the value of the “favicon” property. When -- overloading is enabled, this is equivalent to -- --
-- get webView #favicon --getWebViewFavicon :: (MonadIO m, IsWebView o) => o -> m (Ptr ()) -- | Construct a GValueConstruct with valid value for the -- “is-controlled-by-automation” property. This is rarely needed -- directly, but it is used by new. constructWebViewIsControlledByAutomation :: IsWebView o => Bool -> IO (GValueConstruct o) -- | Get the value of the “is-controlled-by-automation” property. -- When overloading is enabled, this is equivalent to -- --
-- get webView #isControlledByAutomation --getWebViewIsControlledByAutomation :: (MonadIO m, IsWebView o) => o -> m Bool -- | Construct a GValueConstruct with valid value for the -- “is-ephemeral” property. This is rarely needed directly, but -- it is used by new. constructWebViewIsEphemeral :: IsWebView o => Bool -> IO (GValueConstruct o) -- | Get the value of the “is-ephemeral” property. When -- overloading is enabled, this is equivalent to -- --
-- get webView #isEphemeral --getWebViewIsEphemeral :: (MonadIO m, IsWebView o) => o -> m Bool -- | Get the value of the “is-loading” property. When -- overloading is enabled, this is equivalent to -- --
-- get webView #isLoading --getWebViewIsLoading :: (MonadIO m, IsWebView o) => o -> m Bool -- | Get the value of the “is-playing-audio” property. When -- overloading is enabled, this is equivalent to -- --
-- get webView #isPlayingAudio --getWebViewIsPlayingAudio :: (MonadIO m, IsWebView o) => o -> m Bool -- | Construct a GValueConstruct with valid value for the -- “related-view” property. This is rarely needed directly, but -- it is used by new. constructWebViewRelatedView :: (IsWebView o, IsWebView a) => a -> IO (GValueConstruct o) -- | Construct a GValueConstruct with valid value for the -- “settings” property. This is rarely needed directly, but it -- is used by new. constructWebViewSettings :: (IsWebView o, IsSettings a) => a -> IO (GValueConstruct o) -- | Set the value of the “settings” property. When -- overloading is enabled, this is equivalent to -- --
-- set webView [ #settings := value ] --setWebViewSettings :: (MonadIO m, IsWebView o, IsSettings a) => o -> a -> m () -- | Get the value of the “title” property. When -- overloading is enabled, this is equivalent to -- --
-- get webView #title --getWebViewTitle :: (MonadIO m, IsWebView o) => o -> m (Maybe Text) -- | Get the value of the “uri” property. When overloading -- is enabled, this is equivalent to -- --
-- get webView #uri --getWebViewUri :: (MonadIO m, IsWebView o) => o -> m (Maybe Text) -- | Construct a GValueConstruct with valid value for the -- “user-content-manager” property. This is rarely needed -- directly, but it is used by new. constructWebViewUserContentManager :: (IsWebView o, IsUserContentManager a) => a -> IO (GValueConstruct o) -- | Get the value of the “user-content-manager” property. When -- overloading is enabled, this is equivalent to -- --
-- get webView #userContentManager --getWebViewUserContentManager :: (MonadIO m, IsWebView o) => o -> m UserContentManager -- | Construct a GValueConstruct with valid value for the -- “web-context” property. This is rarely needed directly, but -- it is used by new. constructWebViewWebContext :: (IsWebView o, IsWebContext a) => a -> IO (GValueConstruct o) -- | Get the value of the “web-context” property. When -- overloading is enabled, this is equivalent to -- --
-- get webView #webContext --getWebViewWebContext :: (MonadIO m, IsWebView o) => o -> m (Maybe WebContext) -- | Construct a GValueConstruct with valid value for the -- “zoom-level” property. This is rarely needed directly, but it -- is used by new. constructWebViewZoomLevel :: IsWebView o => Double -> IO (GValueConstruct o) -- | Get the value of the “zoom-level” property. When -- overloading is enabled, this is equivalent to -- --
-- get webView #zoomLevel --getWebViewZoomLevel :: (MonadIO m, IsWebView o) => o -> m Double -- | Set the value of the “zoom-level” property. When -- overloading is enabled, this is equivalent to -- --
-- set webView [ #zoomLevel := value ] --setWebViewZoomLevel :: (MonadIO m, IsWebView o) => o -> Double -> m () -- | Type for the callback on the (unwrapped) C side. type C_WebViewAuthenticateCallback = Ptr () -> Ptr AuthenticationRequest -> Ptr () -> IO CInt -- | This signal is emitted when the user is challenged with HTTP -- authentication. To let the application access or supply the -- credentials as well as to allow the client application to either -- cancel the request or perform the authentication, the signal will pass -- an instance of the AuthenticationRequest in the -- request argument. To handle this signal asynchronously -- you should keep a ref of the request and return True. To -- disable HTTP authentication entirely, connect to this signal and -- simply return True. -- -- The default signal handler will run a default authentication dialog -- asynchronously for the user to interact with. -- -- Since: 2.2 type WebViewAuthenticateCallback = AuthenticationRequest " /@request@/: a 'GI.WebKit2.Objects.AuthenticationRequest.AuthenticationRequest' " -> IO Bool " __Returns:__ 'True' to stop other handlers from being invoked for the event. 'False' to propagate the event further. " -- | Connect a signal handler for the “authenticate” signal, to be -- run after the default handler. When overloading is enabled, -- this is equivalent to -- --
-- after webView #authenticate callback --afterWebViewAuthenticate :: (IsWebView a, MonadIO m) => a -> WebViewAuthenticateCallback -> m SignalHandlerId -- | Wrap the callback into a GClosure. genClosure_WebViewAuthenticate :: MonadIO m => WebViewAuthenticateCallback -> m (GClosure C_WebViewAuthenticateCallback) -- | Generate a function pointer callable from C code, from a -- C_WebViewAuthenticateCallback. mk_WebViewAuthenticateCallback :: C_WebViewAuthenticateCallback -> IO (FunPtr C_WebViewAuthenticateCallback) -- | A convenience synonym for Nothing :: Maybe -- WebViewAuthenticateCallback. noWebViewAuthenticateCallback :: Maybe WebViewAuthenticateCallback -- | Connect a signal handler for the “authenticate” signal, to be -- run before the default handler. When overloading is enabled, -- this is equivalent to -- --
-- on webView #authenticate callback --onWebViewAuthenticate :: (IsWebView a, MonadIO m) => a -> WebViewAuthenticateCallback -> m SignalHandlerId -- | Wrap a WebViewAuthenticateCallback into a -- C_WebViewAuthenticateCallback. wrap_WebViewAuthenticateCallback :: WebViewAuthenticateCallback -> C_WebViewAuthenticateCallback -- | Type for the callback on the (unwrapped) C side. type C_WebViewCloseCallback = Ptr () -> Ptr () -> IO () -- | Emitted when closing a WebView is requested. This occurs when a -- call is made from JavaScript's -- <function>window.close</function> function or after trying -- to close the webView with webViewTryClose. It -- is the owner's responsibility to handle this signal to hide or destroy -- the WebView, if necessary. type WebViewCloseCallback = IO () -- | Connect a signal handler for the “close” signal, to be run -- after the default handler. When overloading is enabled, this is -- equivalent to -- --
-- after webView #close callback --afterWebViewClose :: (IsWebView a, MonadIO m) => a -> WebViewCloseCallback -> m SignalHandlerId -- | Wrap the callback into a GClosure. genClosure_WebViewClose :: MonadIO m => WebViewCloseCallback -> m (GClosure C_WebViewCloseCallback) -- | Generate a function pointer callable from C code, from a -- C_WebViewCloseCallback. mk_WebViewCloseCallback :: C_WebViewCloseCallback -> IO (FunPtr C_WebViewCloseCallback) -- | A convenience synonym for Nothing :: Maybe -- WebViewCloseCallback. noWebViewCloseCallback :: Maybe WebViewCloseCallback -- | Connect a signal handler for the “close” signal, to be run -- before the default handler. When overloading is enabled, this -- is equivalent to -- --
-- on webView #close callback --onWebViewClose :: (IsWebView a, MonadIO m) => a -> WebViewCloseCallback -> m SignalHandlerId -- | Wrap a WebViewCloseCallback into a -- C_WebViewCloseCallback. wrap_WebViewCloseCallback :: WebViewCloseCallback -> C_WebViewCloseCallback -- | Type for the callback on the (unwrapped) C side. type C_WebViewContextMenuCallback = Ptr () -> Ptr ContextMenu -> Ptr Event -> Ptr HitTestResult -> Ptr () -> IO CInt -- | Emitted when a context menu is about to be displayed to give the -- application a chance to customize the proposed menu, prevent the menu -- from being displayed, or build its own context menu. -- <itemizedlist> <listitem><para> To customize the -- proposed menu you can use contextMenuPrepend, -- contextMenuAppend or contextMenuInsert to add new -- ContextMenuItem<!-- -->s to contextMenu, -- contextMenuMoveItem to reorder existing items, or -- contextMenuRemove to remove an existing item. The signal -- handler should return False, and the menu represented by -- contextMenu will be shown. -- </para></listitem> <listitem><para> To prevent -- the menu from being displayed you can just connect to this signal and -- return True so that the proposed menu will not be shown. -- </para></listitem> <listitem><para> To build -- your own menu, you can remove all items from the proposed menu with -- contextMenuRemoveAll, add your own items and return -- False so that the menu will be shown. You can also ignore the -- proposed ContextMenu, build your own Menu and return -- True to prevent the proposed menu from being shown. -- </para></listitem> <listitem><para> If you -- just want the default menu to be shown always, simply don't connect to -- this signal because showing the proposed context menu is the default -- behaviour. </para></listitem> </itemizedlist> -- -- The event is expected to be one of the following -- types: <itemizedlist> <listitem><para> a -- EventButton of type EventTypeButtonPress when the -- context menu was triggered with mouse. </para></listitem> -- <listitem><para> a EventKey of type -- EventTypeKeyPress if the keyboard was used to show the menu. -- </para></listitem> <listitem><para> a generic -- Event of type EventTypeNothing when the -- Widget::popup-menu signal was used to show the -- context menu. </para></listitem> </itemizedlist> -- -- If the signal handler returns False the context menu -- represented by contextMenu will be shown, if it return -- True the context menu will not be shown. -- -- The proposed ContextMenu passed in contextMenu -- argument is only valid during the signal emission. type WebViewContextMenuCallback = ContextMenu " /@contextMenu@/: the proposed 'GI.WebKit2.Objects.ContextMenu.ContextMenu' " -> Event " /@event@/: the 'GI.Gdk.Unions.Event.Event' that triggered the context menu " -> HitTestResult " /@hitTestResult@/: a 'GI.WebKit2.Objects.HitTestResult.HitTestResult' " -> IO Bool " __Returns:__ 'True' to stop other handlers from being invoked for the event. 'False' to propagate the event further. " -- | Connect a signal handler for the “context-menu” signal, to be -- run after the default handler. When overloading is enabled, -- this is equivalent to -- --
-- after webView #contextMenu callback --afterWebViewContextMenu :: (IsWebView a, MonadIO m) => a -> WebViewContextMenuCallback -> m SignalHandlerId -- | Wrap the callback into a GClosure. genClosure_WebViewContextMenu :: MonadIO m => WebViewContextMenuCallback -> m (GClosure C_WebViewContextMenuCallback) -- | Generate a function pointer callable from C code, from a -- C_WebViewContextMenuCallback. mk_WebViewContextMenuCallback :: C_WebViewContextMenuCallback -> IO (FunPtr C_WebViewContextMenuCallback) -- | A convenience synonym for Nothing :: Maybe -- WebViewContextMenuCallback. noWebViewContextMenuCallback :: Maybe WebViewContextMenuCallback -- | Connect a signal handler for the “context-menu” signal, to be -- run before the default handler. When overloading is enabled, -- this is equivalent to -- --
-- on webView #contextMenu callback --onWebViewContextMenu :: (IsWebView a, MonadIO m) => a -> WebViewContextMenuCallback -> m SignalHandlerId -- | Wrap a WebViewContextMenuCallback into a -- C_WebViewContextMenuCallback. wrap_WebViewContextMenuCallback :: WebViewContextMenuCallback -> C_WebViewContextMenuCallback -- | Type for the callback on the (unwrapped) C side. type C_WebViewContextMenuDismissedCallback = Ptr () -> Ptr () -> IO () -- | Emitted after WebView::context-menu signal, if -- the context menu is shown, to notify that the context menu is -- dismissed. type WebViewContextMenuDismissedCallback = IO () -- | Connect a signal handler for the “context-menu-dismissed” -- signal, to be run after the default handler. When overloading -- is enabled, this is equivalent to -- --
-- after webView #contextMenuDismissed callback --afterWebViewContextMenuDismissed :: (IsWebView a, MonadIO m) => a -> WebViewContextMenuDismissedCallback -> m SignalHandlerId -- | Wrap the callback into a GClosure. genClosure_WebViewContextMenuDismissed :: MonadIO m => WebViewContextMenuDismissedCallback -> m (GClosure C_WebViewContextMenuDismissedCallback) -- | Generate a function pointer callable from C code, from a -- C_WebViewContextMenuDismissedCallback. mk_WebViewContextMenuDismissedCallback :: C_WebViewContextMenuDismissedCallback -> IO (FunPtr C_WebViewContextMenuDismissedCallback) -- | A convenience synonym for Nothing :: Maybe -- WebViewContextMenuDismissedCallback. noWebViewContextMenuDismissedCallback :: Maybe WebViewContextMenuDismissedCallback -- | Connect a signal handler for the “context-menu-dismissed” -- signal, to be run before the default handler. When overloading -- is enabled, this is equivalent to -- --
-- on webView #contextMenuDismissed callback --onWebViewContextMenuDismissed :: (IsWebView a, MonadIO m) => a -> WebViewContextMenuDismissedCallback -> m SignalHandlerId -- | Wrap a WebViewContextMenuDismissedCallback into a -- C_WebViewContextMenuDismissedCallback. wrap_WebViewContextMenuDismissedCallback :: WebViewContextMenuDismissedCallback -> C_WebViewContextMenuDismissedCallback -- | Type for the callback on the (unwrapped) C side. type C_WebViewCreateCallback = Ptr () -> Ptr NavigationAction -> Ptr () -> IO (Ptr Widget) -- | Emitted when the creation of a new WebView is requested. If -- this signal is handled the signal handler should return the newly -- created WebView. -- -- The NavigationAction parameter contains information about the -- navigation action that triggered this signal. -- -- When using ProcessModelMultipleSecondaryProcesses process -- model, the new WebView should be related to -- webView to share the same web process, see -- webViewNewWithRelatedView for more details. -- -- The new WebView should not be displayed to the user until the -- WebView::ready-to-show signal is emitted. type WebViewCreateCallback = NavigationAction " /@navigationAction@/: a 'GI.WebKit2.Structs.NavigationAction.NavigationAction' " -> IO Widget " __Returns:__ a newly allocated 'GI.WebKit2.Objects.WebView.WebView' widget or 'Nothing' to propagate the event further. " -- | Connect a signal handler for the “create” signal, to be run -- after the default handler. When overloading is enabled, this is -- equivalent to -- --
-- after webView #create callback --afterWebViewCreate :: (IsWebView a, MonadIO m) => a -> WebViewCreateCallback -> m SignalHandlerId -- | Wrap the callback into a GClosure. genClosure_WebViewCreate :: MonadIO m => WebViewCreateCallback -> m (GClosure C_WebViewCreateCallback) -- | Generate a function pointer callable from C code, from a -- C_WebViewCreateCallback. mk_WebViewCreateCallback :: C_WebViewCreateCallback -> IO (FunPtr C_WebViewCreateCallback) -- | A convenience synonym for Nothing :: Maybe -- WebViewCreateCallback. noWebViewCreateCallback :: Maybe WebViewCreateCallback -- | Connect a signal handler for the “create” signal, to be run -- before the default handler. When overloading is enabled, this -- is equivalent to -- --
-- on webView #create callback --onWebViewCreate :: (IsWebView a, MonadIO m) => a -> WebViewCreateCallback -> m SignalHandlerId -- | Wrap a WebViewCreateCallback into a -- C_WebViewCreateCallback. wrap_WebViewCreateCallback :: WebViewCreateCallback -> C_WebViewCreateCallback -- | Type for the callback on the (unwrapped) C side. type C_WebViewDecidePolicyCallback = Ptr () -> Ptr PolicyDecision -> CUInt -> Ptr () -> IO CInt -- | This signal is emitted when WebKit is requesting the client to decide -- a policy decision, such as whether to navigate to a page, open a new -- window or whether or not to download a resource. The -- NavigationPolicyDecision passed in the decision -- argument is a generic type, but should be casted to a more specific -- type when making the decision. For example: -- -- <informalexample><programlisting> static gboolean -- decide_policy_cb (WebKitWebView *web_view, WebKitPolicyDecision -- *decision, WebKitPolicyDecisionType type) { switch (type) { case -- WEBKIT_POLICY_DECISION_TYPE_NAVIGATION_ACTION: { -- WebKitNavigationPolicyDecision *navigation_decision = -- WEBKIT_NAVIGATION_POLICY_DECISION (decision); /<!-- -->* Make a -- policy decision here. *<!-- -->/ break; } case -- WEBKIT_POLICY_DECISION_TYPE_NEW_WINDOW_ACTION: { -- WebKitNavigationPolicyDecision *navigation_decision = -- WEBKIT_NAVIGATION_POLICY_DECISION (decision); /<!-- -->* Make a -- policy decision here. *<!-- -->/ break; } case -- WEBKIT_POLICY_DECISION_TYPE_RESPONSE: WebKitResponsePolicyDecision -- *response = WEBKIT_RESPONSE_POLICY_DECISION (decision); /<!-- -- -->* Make a policy decision here. *<!-- -->/ break; default: -- /<!-- -->* Making no decision results in -- policyDecisionUse. *<!-- -->/ return FALSE; } return -- TRUE; } </programlisting></informalexample> -- -- It is possible to make policy decision asynchronously, by simply -- calling objectRef on the decision argument and -- returning True to block the default signal handler. If the last -- reference is removed on a PolicyDecision and no decision has -- been made explicitly, policyDecisionUse will be the default -- policy decision. The default signal handler will simply call -- policyDecisionUse. Only the first policy decision chosen for a -- given PolicyDecision will have any affect. type WebViewDecidePolicyCallback = PolicyDecision " /@decision@/: the 'GI.WebKit2.Objects.PolicyDecision.PolicyDecision' " -> PolicyDecisionType " /@decisionType@/: a 'GI.WebKit2.Enums.PolicyDecisionType' denoting the type of /@decision@/ " -> IO Bool " __Returns:__ 'True' to stop other handlers from being invoked for the event. 'False' to propagate the event further. " -- | Connect a signal handler for the “decide-policy” signal, to -- be run after the default handler. When overloading is enabled, -- this is equivalent to -- --
-- after webView #decidePolicy callback --afterWebViewDecidePolicy :: (IsWebView a, MonadIO m) => a -> WebViewDecidePolicyCallback -> m SignalHandlerId -- | Wrap the callback into a GClosure. genClosure_WebViewDecidePolicy :: MonadIO m => WebViewDecidePolicyCallback -> m (GClosure C_WebViewDecidePolicyCallback) -- | Generate a function pointer callable from C code, from a -- C_WebViewDecidePolicyCallback. mk_WebViewDecidePolicyCallback :: C_WebViewDecidePolicyCallback -> IO (FunPtr C_WebViewDecidePolicyCallback) -- | A convenience synonym for Nothing :: Maybe -- WebViewDecidePolicyCallback. noWebViewDecidePolicyCallback :: Maybe WebViewDecidePolicyCallback -- | Connect a signal handler for the “decide-policy” signal, to -- be run before the default handler. When overloading is enabled, -- this is equivalent to -- --
-- on webView #decidePolicy callback --onWebViewDecidePolicy :: (IsWebView a, MonadIO m) => a -> WebViewDecidePolicyCallback -> m SignalHandlerId -- | Wrap a WebViewDecidePolicyCallback into a -- C_WebViewDecidePolicyCallback. wrap_WebViewDecidePolicyCallback :: WebViewDecidePolicyCallback -> C_WebViewDecidePolicyCallback -- | Type for the callback on the (unwrapped) C side. type C_WebViewEnterFullscreenCallback = Ptr () -> Ptr () -> IO CInt -- | Emitted when JavaScript code calls -- <function>element.webkitRequestFullScreen</function>. If -- the signal is not handled the WebView will proceed to full -- screen its top level window. This signal can be used by client code to -- request permission to the user prior doing the full screen transition -- and eventually prepare the top-level window (e.g. hide some widgets -- that would otherwise be part of the full screen window). type WebViewEnterFullscreenCallback = IO Bool " __Returns:__ 'True' to stop other handlers from being invoked for the event. 'False' to continue emission of the event. " -- | Connect a signal handler for the “enter-fullscreen” signal, -- to be run after the default handler. When overloading is -- enabled, this is equivalent to -- --
-- after webView #enterFullscreen callback --afterWebViewEnterFullscreen :: (IsWebView a, MonadIO m) => a -> WebViewEnterFullscreenCallback -> m SignalHandlerId -- | Wrap the callback into a GClosure. genClosure_WebViewEnterFullscreen :: MonadIO m => WebViewEnterFullscreenCallback -> m (GClosure C_WebViewEnterFullscreenCallback) -- | Generate a function pointer callable from C code, from a -- C_WebViewEnterFullscreenCallback. mk_WebViewEnterFullscreenCallback :: C_WebViewEnterFullscreenCallback -> IO (FunPtr C_WebViewEnterFullscreenCallback) -- | A convenience synonym for Nothing :: Maybe -- WebViewEnterFullscreenCallback. noWebViewEnterFullscreenCallback :: Maybe WebViewEnterFullscreenCallback -- | Connect a signal handler for the “enter-fullscreen” signal, -- to be run before the default handler. When overloading is -- enabled, this is equivalent to -- --
-- on webView #enterFullscreen callback --onWebViewEnterFullscreen :: (IsWebView a, MonadIO m) => a -> WebViewEnterFullscreenCallback -> m SignalHandlerId -- | Wrap a WebViewEnterFullscreenCallback into a -- C_WebViewEnterFullscreenCallback. wrap_WebViewEnterFullscreenCallback :: WebViewEnterFullscreenCallback -> C_WebViewEnterFullscreenCallback -- | Type for the callback on the (unwrapped) C side. type C_WebViewInsecureContentDetectedCallback = Ptr () -> CUInt -> Ptr () -> IO () -- | This signal is emitted when insecure content has been detected in a -- page loaded through a secure connection. This typically means that a -- external resource from an unstrusted source has been run or displayed, -- resulting in a mix of HTTPS and non-HTTPS content. -- -- You can check the event parameter to know exactly -- which kind of event has been detected (see -- InsecureContentEvent). type WebViewInsecureContentDetectedCallback = InsecureContentEvent " /@event@/: the 'GI.WebKit2.Enums.InsecureContentEvent' " -> IO () -- | Connect a signal handler for the “insecure-content-detected” -- signal, to be run after the default handler. When overloading -- is enabled, this is equivalent to -- --
-- after webView #insecureContentDetected callback --afterWebViewInsecureContentDetected :: (IsWebView a, MonadIO m) => a -> WebViewInsecureContentDetectedCallback -> m SignalHandlerId -- | Wrap the callback into a GClosure. genClosure_WebViewInsecureContentDetected :: MonadIO m => WebViewInsecureContentDetectedCallback -> m (GClosure C_WebViewInsecureContentDetectedCallback) -- | Generate a function pointer callable from C code, from a -- C_WebViewInsecureContentDetectedCallback. mk_WebViewInsecureContentDetectedCallback :: C_WebViewInsecureContentDetectedCallback -> IO (FunPtr C_WebViewInsecureContentDetectedCallback) -- | A convenience synonym for Nothing :: Maybe -- WebViewInsecureContentDetectedCallback. noWebViewInsecureContentDetectedCallback :: Maybe WebViewInsecureContentDetectedCallback -- | Connect a signal handler for the “insecure-content-detected” -- signal, to be run before the default handler. When overloading -- is enabled, this is equivalent to -- --
-- on webView #insecureContentDetected callback --onWebViewInsecureContentDetected :: (IsWebView a, MonadIO m) => a -> WebViewInsecureContentDetectedCallback -> m SignalHandlerId -- | Wrap a WebViewInsecureContentDetectedCallback into a -- C_WebViewInsecureContentDetectedCallback. wrap_WebViewInsecureContentDetectedCallback :: WebViewInsecureContentDetectedCallback -> C_WebViewInsecureContentDetectedCallback -- | Type for the callback on the (unwrapped) C side. type C_WebViewLeaveFullscreenCallback = Ptr () -> Ptr () -> IO CInt -- | Emitted when the WebView is about to restore its top level -- window out of its full screen state. This signal can be used by client -- code to restore widgets hidden during the -- WebView::enter-fullscreen stage for instance. type WebViewLeaveFullscreenCallback = IO Bool " __Returns:__ 'True' to stop other handlers from being invoked for the event. 'False' to continue emission of the event. " -- | Connect a signal handler for the “leave-fullscreen” signal, -- to be run after the default handler. When overloading is -- enabled, this is equivalent to -- --
-- after webView #leaveFullscreen callback --afterWebViewLeaveFullscreen :: (IsWebView a, MonadIO m) => a -> WebViewLeaveFullscreenCallback -> m SignalHandlerId -- | Wrap the callback into a GClosure. genClosure_WebViewLeaveFullscreen :: MonadIO m => WebViewLeaveFullscreenCallback -> m (GClosure C_WebViewLeaveFullscreenCallback) -- | Generate a function pointer callable from C code, from a -- C_WebViewLeaveFullscreenCallback. mk_WebViewLeaveFullscreenCallback :: C_WebViewLeaveFullscreenCallback -> IO (FunPtr C_WebViewLeaveFullscreenCallback) -- | A convenience synonym for Nothing :: Maybe -- WebViewLeaveFullscreenCallback. noWebViewLeaveFullscreenCallback :: Maybe WebViewLeaveFullscreenCallback -- | Connect a signal handler for the “leave-fullscreen” signal, -- to be run before the default handler. When overloading is -- enabled, this is equivalent to -- --
-- on webView #leaveFullscreen callback --onWebViewLeaveFullscreen :: (IsWebView a, MonadIO m) => a -> WebViewLeaveFullscreenCallback -> m SignalHandlerId -- | Wrap a WebViewLeaveFullscreenCallback into a -- C_WebViewLeaveFullscreenCallback. wrap_WebViewLeaveFullscreenCallback :: WebViewLeaveFullscreenCallback -> C_WebViewLeaveFullscreenCallback -- | Type for the callback on the (unwrapped) C side. type C_WebViewLoadChangedCallback = Ptr () -> CUInt -> Ptr () -> IO () -- | Emitted when a load operation in webView changes. The -- signal is always emitted with LoadEventStarted when a new load -- request is made and LoadEventFinished when the load finishes -- successfully or due to an error. When the ongoing load operation fails -- WebView::load-failed signal is emitted before -- WebView::load-changed is emitted with -- LoadEventFinished. If a redirection is received from the -- server, this signal is emitted with LoadEventRedirected after -- the initial emission with LoadEventStarted and before -- LoadEventCommitted. When the page content starts arriving the -- signal is emitted with LoadEventCommitted event. -- -- You can handle this signal and use a switch to track any ongoing load -- operation. -- -- <informalexample><programlisting> static void -- web_view_load_changed (WebKitWebView *web_view, WebKitLoadEvent -- load_event, gpointer user_data) { switch (load_event) { case -- WEBKIT_LOAD_STARTED: /<!-- -->* New load, we have now a -- provisional URI *<!-- -->/ provisional_uri = -- webkit_web_view_get_uri (web_view); /<!-- -->* Here we could -- start a spinner or update the <!-- -->* location bar with the -- provisional URI *<!-- -->/ break; case WEBKIT_LOAD_REDIRECTED: -- redirected_uri = webkit_web_view_get_uri (web_view); break; case -- WEBKIT_LOAD_COMMITTED: /<!-- -->* The load is being performed. -- Current URI is <!-- -->* the final one and it won't change -- unless a new <!-- -->* load is requested or a navigation within -- the <!-- -->* same page is performed *<!-- -->/ uri = -- webkit_web_view_get_uri (web_view); break; case WEBKIT_LOAD_FINISHED: -- /<!-- -->* Load finished, we can now stop the spinner *<!-- -- -->/ break; } } </programlisting></informalexample> type WebViewLoadChangedCallback = LoadEvent " /@loadEvent@/: the 'GI.WebKit2.Enums.LoadEvent' " -> IO () -- | Connect a signal handler for the “load-changed” signal, to be -- run after the default handler. When overloading is enabled, -- this is equivalent to -- --
-- after webView #loadChanged callback --afterWebViewLoadChanged :: (IsWebView a, MonadIO m) => a -> WebViewLoadChangedCallback -> m SignalHandlerId -- | Wrap the callback into a GClosure. genClosure_WebViewLoadChanged :: MonadIO m => WebViewLoadChangedCallback -> m (GClosure C_WebViewLoadChangedCallback) -- | Generate a function pointer callable from C code, from a -- C_WebViewLoadChangedCallback. mk_WebViewLoadChangedCallback :: C_WebViewLoadChangedCallback -> IO (FunPtr C_WebViewLoadChangedCallback) -- | A convenience synonym for Nothing :: Maybe -- WebViewLoadChangedCallback. noWebViewLoadChangedCallback :: Maybe WebViewLoadChangedCallback -- | Connect a signal handler for the “load-changed” signal, to be -- run before the default handler. When overloading is enabled, -- this is equivalent to -- --
-- on webView #loadChanged callback --onWebViewLoadChanged :: (IsWebView a, MonadIO m) => a -> WebViewLoadChangedCallback -> m SignalHandlerId -- | Wrap a WebViewLoadChangedCallback into a -- C_WebViewLoadChangedCallback. wrap_WebViewLoadChangedCallback :: WebViewLoadChangedCallback -> C_WebViewLoadChangedCallback -- | Type for the callback on the (unwrapped) C side. type C_WebViewLoadFailedCallback = Ptr () -> CUInt -> CString -> Ptr GError -> Ptr () -> IO CInt -- | Emitted when an error occurs during a load operation. If the error -- happened when starting to load data for a page -- loadEvent will be LoadEventStarted. If it -- happened while loading a committed data source -- loadEvent will be LoadEventCommitted. Since a -- load error causes the load operation to finish, the signal -- WebKitWebView::load-changed will always be emitted with -- LoadEventFinished event right after this one. -- -- By default, if the signal is not handled, a stock error page will be -- displayed. You need to handle the signal if you want to provide your -- own error page. type WebViewLoadFailedCallback = LoadEvent " /@loadEvent@/: the 'GI.WebKit2.Enums.LoadEvent' of the load operation " -> Text " /@failingUri@/: the URI that failed to load " -> GError " /@error@/: the 'GError' that was triggered " -> IO Bool " __Returns:__ 'True' to stop other handlers from being invoked for the event. 'False' to propagate the event further. " -- | Connect a signal handler for the “load-failed” signal, to be -- run after the default handler. When overloading is enabled, -- this is equivalent to -- --
-- after webView #loadFailed callback --afterWebViewLoadFailed :: (IsWebView a, MonadIO m) => a -> WebViewLoadFailedCallback -> m SignalHandlerId -- | Wrap the callback into a GClosure. genClosure_WebViewLoadFailed :: MonadIO m => WebViewLoadFailedCallback -> m (GClosure C_WebViewLoadFailedCallback) -- | Generate a function pointer callable from C code, from a -- C_WebViewLoadFailedCallback. mk_WebViewLoadFailedCallback :: C_WebViewLoadFailedCallback -> IO (FunPtr C_WebViewLoadFailedCallback) -- | A convenience synonym for Nothing :: Maybe -- WebViewLoadFailedCallback. noWebViewLoadFailedCallback :: Maybe WebViewLoadFailedCallback -- | Connect a signal handler for the “load-failed” signal, to be -- run before the default handler. When overloading is enabled, -- this is equivalent to -- --
-- on webView #loadFailed callback --onWebViewLoadFailed :: (IsWebView a, MonadIO m) => a -> WebViewLoadFailedCallback -> m SignalHandlerId -- | Wrap a WebViewLoadFailedCallback into a -- C_WebViewLoadFailedCallback. wrap_WebViewLoadFailedCallback :: WebViewLoadFailedCallback -> C_WebViewLoadFailedCallback -- | Type for the callback on the (unwrapped) C side. type C_WebViewLoadFailedWithTlsErrorsCallback = Ptr () -> CString -> Ptr TlsCertificate -> CUInt -> Ptr () -> IO CInt -- | Emitted when a TLS error occurs during a load operation. To allow an -- exception for this certificate and the host of -- failingUri use -- webContextAllowTlsCertificateForHost. -- -- To handle this signal asynchronously you should call objectRef -- on certificate and return True. -- -- If False is returned, -- WebView::load-failed will be emitted. The load -- will finish regardless of the returned value. -- -- Since: 2.6 type WebViewLoadFailedWithTlsErrorsCallback = Text " /@failingUri@/: the URI that failed to load " -> TlsCertificate " /@certificate@/: a 'GI.Gio.Objects.TlsCertificate.TlsCertificate' " -> [TlsCertificateFlags] " /@errors@/: a 'GI.Gio.Flags.TlsCertificateFlags' with the verification status of /@certificate@/ " -> IO Bool " __Returns:__ 'True' to stop other handlers from being invoked for the event. 'False' to propagate the event further. " -- | Connect a signal handler for the -- “load-failed-with-tls-errors” signal, to be run after the -- default handler. When overloading is enabled, this is -- equivalent to -- --
-- after webView #loadFailedWithTlsErrors callback --afterWebViewLoadFailedWithTlsErrors :: (IsWebView a, MonadIO m) => a -> WebViewLoadFailedWithTlsErrorsCallback -> m SignalHandlerId -- | Wrap the callback into a GClosure. genClosure_WebViewLoadFailedWithTlsErrors :: MonadIO m => WebViewLoadFailedWithTlsErrorsCallback -> m (GClosure C_WebViewLoadFailedWithTlsErrorsCallback) -- | Generate a function pointer callable from C code, from a -- C_WebViewLoadFailedWithTlsErrorsCallback. mk_WebViewLoadFailedWithTlsErrorsCallback :: C_WebViewLoadFailedWithTlsErrorsCallback -> IO (FunPtr C_WebViewLoadFailedWithTlsErrorsCallback) -- | A convenience synonym for Nothing :: Maybe -- WebViewLoadFailedWithTlsErrorsCallback. noWebViewLoadFailedWithTlsErrorsCallback :: Maybe WebViewLoadFailedWithTlsErrorsCallback -- | Connect a signal handler for the -- “load-failed-with-tls-errors” signal, to be run before the -- default handler. When overloading is enabled, this is -- equivalent to -- --
-- on webView #loadFailedWithTlsErrors callback --onWebViewLoadFailedWithTlsErrors :: (IsWebView a, MonadIO m) => a -> WebViewLoadFailedWithTlsErrorsCallback -> m SignalHandlerId -- | Wrap a WebViewLoadFailedWithTlsErrorsCallback into a -- C_WebViewLoadFailedWithTlsErrorsCallback. wrap_WebViewLoadFailedWithTlsErrorsCallback :: WebViewLoadFailedWithTlsErrorsCallback -> C_WebViewLoadFailedWithTlsErrorsCallback -- | Type for the callback on the (unwrapped) C side. type C_WebViewMouseTargetChangedCallback = Ptr () -> Ptr HitTestResult -> Word32 -> Ptr () -> IO () -- | This signal is emitted when the mouse cursor moves over an element -- such as a link, image or a media element. To determine what type of -- element the mouse cursor is over, a Hit Test is performed on the -- current mouse coordinates and the result is passed in the -- hitTestResult argument. The modifiers -- argument is a bitmask of ModifierType flags indicating the -- state of modifier keys. The signal is emitted again when the mouse is -- moved out of the current element with a new -- hitTestResult. type WebViewMouseTargetChangedCallback = HitTestResult " /@hitTestResult@/: a 'GI.WebKit2.Objects.HitTestResult.HitTestResult' " -> Word32 " /@modifiers@/: a bitmask of 'GI.Gdk.Flags.ModifierType' " -> IO () -- | Connect a signal handler for the “mouse-target-changed” -- signal, to be run after the default handler. When overloading -- is enabled, this is equivalent to -- --
-- after webView #mouseTargetChanged callback --afterWebViewMouseTargetChanged :: (IsWebView a, MonadIO m) => a -> WebViewMouseTargetChangedCallback -> m SignalHandlerId -- | Wrap the callback into a GClosure. genClosure_WebViewMouseTargetChanged :: MonadIO m => WebViewMouseTargetChangedCallback -> m (GClosure C_WebViewMouseTargetChangedCallback) -- | Generate a function pointer callable from C code, from a -- C_WebViewMouseTargetChangedCallback. mk_WebViewMouseTargetChangedCallback :: C_WebViewMouseTargetChangedCallback -> IO (FunPtr C_WebViewMouseTargetChangedCallback) -- | A convenience synonym for Nothing :: Maybe -- WebViewMouseTargetChangedCallback. noWebViewMouseTargetChangedCallback :: Maybe WebViewMouseTargetChangedCallback -- | Connect a signal handler for the “mouse-target-changed” -- signal, to be run before the default handler. When overloading -- is enabled, this is equivalent to -- --
-- on webView #mouseTargetChanged callback --onWebViewMouseTargetChanged :: (IsWebView a, MonadIO m) => a -> WebViewMouseTargetChangedCallback -> m SignalHandlerId -- | Wrap a WebViewMouseTargetChangedCallback into a -- C_WebViewMouseTargetChangedCallback. wrap_WebViewMouseTargetChangedCallback :: WebViewMouseTargetChangedCallback -> C_WebViewMouseTargetChangedCallback -- | Type for the callback on the (unwrapped) C side. type C_WebViewPermissionRequestCallback = Ptr () -> Ptr PermissionRequest -> Ptr () -> IO CInt -- | This signal is emitted when WebKit is requesting the client to decide -- about a permission request, such as allowing the browser to switch to -- fullscreen mode, sharing its location or similar operations. -- -- A possible way to use this signal could be through a dialog allowing -- the user decide what to do with the request: -- -- <informalexample><programlisting> static gboolean -- permission_request_cb (WebKitWebView *web_view, -- WebKitPermissionRequest *request, GtkWindow *parent_window) { -- GtkWidget *dialog = gtk_message_dialog_new (parent_window, -- GTK_DIALOG_MODAL, GTK_MESSAGE_QUESTION, GTK_BUTTONS_YES_NO, "Allow -- Permission Request?"); gtk_widget_show (dialog); gint result = -- gtk_dialog_run (GTK_DIALOG (dialog)); -- -- switch (result) { case GTK_RESPONSE_YES: -- webkit_permission_request_allow (request); break; default: -- webkit_permission_request_deny (request); break; } gtk_widget_destroy -- (dialog); -- -- return TRUE; } </programlisting></informalexample> -- -- It is possible to handle permission requests asynchronously, by simply -- calling objectRef on the request argument and -- returning True to block the default signal handler. If the last -- reference is removed on a PermissionRequest and the request has -- not been handled, permissionRequestDeny will be the default -- action. -- -- If the signal is not handled, the request will be -- completed automatically by the specific PermissionRequest that -- could allow or deny it. Check the documentation of classes -- implementing PermissionRequest interface to know their default -- action. type WebViewPermissionRequestCallback = PermissionRequest " /@request@/: the 'GI.WebKit2.Interfaces.PermissionRequest.PermissionRequest' " -> IO Bool " __Returns:__ 'True' to stop other handlers from being invoked for the event. 'False' to propagate the event further. " -- | Connect a signal handler for the “permission-request” signal, -- to be run after the default handler. When overloading is -- enabled, this is equivalent to -- --
-- after webView #permissionRequest callback --afterWebViewPermissionRequest :: (IsWebView a, MonadIO m) => a -> WebViewPermissionRequestCallback -> m SignalHandlerId -- | Wrap the callback into a GClosure. genClosure_WebViewPermissionRequest :: MonadIO m => WebViewPermissionRequestCallback -> m (GClosure C_WebViewPermissionRequestCallback) -- | Generate a function pointer callable from C code, from a -- C_WebViewPermissionRequestCallback. mk_WebViewPermissionRequestCallback :: C_WebViewPermissionRequestCallback -> IO (FunPtr C_WebViewPermissionRequestCallback) -- | A convenience synonym for Nothing :: Maybe -- WebViewPermissionRequestCallback. noWebViewPermissionRequestCallback :: Maybe WebViewPermissionRequestCallback -- | Connect a signal handler for the “permission-request” signal, -- to be run before the default handler. When overloading is -- enabled, this is equivalent to -- --
-- on webView #permissionRequest callback --onWebViewPermissionRequest :: (IsWebView a, MonadIO m) => a -> WebViewPermissionRequestCallback -> m SignalHandlerId -- | Wrap a WebViewPermissionRequestCallback into a -- C_WebViewPermissionRequestCallback. wrap_WebViewPermissionRequestCallback :: WebViewPermissionRequestCallback -> C_WebViewPermissionRequestCallback -- | Type for the callback on the (unwrapped) C side. type C_WebViewPrintCallback = Ptr () -> Ptr PrintOperation -> Ptr () -> IO CInt -- | Emitted when printing is requested on webView, usually -- by a JavaScript call, before the print dialog is shown. This signal -- can be used to set the initial print settings and page setup of -- printOperation to be used as default values in the -- print dialog. You can call printOperationSetPrintSettings and -- printOperationSetPageSetup and then return False to -- propagate the event so that the print dialog is shown. -- -- You can connect to this signal and return True to cancel the -- print operation or implement your own print dialog. type WebViewPrintCallback = PrintOperation " /@printOperation@/: the 'GI.WebKit2.Objects.PrintOperation.PrintOperation' that will handle the print request " -> IO Bool " __Returns:__ 'True' to stop other handlers from being invoked for the event. 'False' to propagate the event further. " -- | Connect a signal handler for the “print” signal, to be run -- after the default handler. When overloading is enabled, this is -- equivalent to -- --
-- after webView #print callback --afterWebViewPrint :: (IsWebView a, MonadIO m) => a -> WebViewPrintCallback -> m SignalHandlerId -- | Wrap the callback into a GClosure. genClosure_WebViewPrint :: MonadIO m => WebViewPrintCallback -> m (GClosure C_WebViewPrintCallback) -- | Generate a function pointer callable from C code, from a -- C_WebViewPrintCallback. mk_WebViewPrintCallback :: C_WebViewPrintCallback -> IO (FunPtr C_WebViewPrintCallback) -- | A convenience synonym for Nothing :: Maybe -- WebViewPrintCallback. noWebViewPrintCallback :: Maybe WebViewPrintCallback -- | Connect a signal handler for the “print” signal, to be run -- before the default handler. When overloading is enabled, this -- is equivalent to -- --
-- on webView #print callback --onWebViewPrint :: (IsWebView a, MonadIO m) => a -> WebViewPrintCallback -> m SignalHandlerId -- | Wrap a WebViewPrintCallback into a -- C_WebViewPrintCallback. wrap_WebViewPrintCallback :: WebViewPrintCallback -> C_WebViewPrintCallback -- | Type for the callback on the (unwrapped) C side. type C_WebViewReadyToShowCallback = Ptr () -> Ptr () -> IO () -- | Emitted after WebView::create on the newly -- created WebView when it should be displayed to the user. When -- this signal is emitted all the information about how the window should -- look, including size, position, whether the location, status and -- scrollbars should be displayed, is already set on the -- WindowProperties of webView. See also -- webViewGetWindowProperties. type WebViewReadyToShowCallback = IO () -- | Connect a signal handler for the “ready-to-show” signal, to -- be run after the default handler. When overloading is enabled, -- this is equivalent to -- --
-- after webView #readyToShow callback --afterWebViewReadyToShow :: (IsWebView a, MonadIO m) => a -> WebViewReadyToShowCallback -> m SignalHandlerId -- | Wrap the callback into a GClosure. genClosure_WebViewReadyToShow :: MonadIO m => WebViewReadyToShowCallback -> m (GClosure C_WebViewReadyToShowCallback) -- | Generate a function pointer callable from C code, from a -- C_WebViewReadyToShowCallback. mk_WebViewReadyToShowCallback :: C_WebViewReadyToShowCallback -> IO (FunPtr C_WebViewReadyToShowCallback) -- | A convenience synonym for Nothing :: Maybe -- WebViewReadyToShowCallback. noWebViewReadyToShowCallback :: Maybe WebViewReadyToShowCallback -- | Connect a signal handler for the “ready-to-show” signal, to -- be run before the default handler. When overloading is enabled, -- this is equivalent to -- --
-- on webView #readyToShow callback --onWebViewReadyToShow :: (IsWebView a, MonadIO m) => a -> WebViewReadyToShowCallback -> m SignalHandlerId -- | Wrap a WebViewReadyToShowCallback into a -- C_WebViewReadyToShowCallback. wrap_WebViewReadyToShowCallback :: WebViewReadyToShowCallback -> C_WebViewReadyToShowCallback -- | Type for the callback on the (unwrapped) C side. type C_WebViewResourceLoadStartedCallback = Ptr () -> Ptr WebResource -> Ptr URIRequest -> Ptr () -> IO () -- | Emitted when a new resource is going to be loaded. The -- request parameter contains the URIRequest that -- will be sent to the server. You can monitor the load operation by -- connecting to the different signals of resource. type WebViewResourceLoadStartedCallback = WebResource " /@resource@/: a 'GI.WebKit2.Objects.WebResource.WebResource' " -> URIRequest " /@request@/: a 'GI.WebKit2.Objects.URIRequest.URIRequest' " -> IO () -- | Connect a signal handler for the “resource-load-started” -- signal, to be run after the default handler. When overloading -- is enabled, this is equivalent to -- --
-- after webView #resourceLoadStarted callback --afterWebViewResourceLoadStarted :: (IsWebView a, MonadIO m) => a -> WebViewResourceLoadStartedCallback -> m SignalHandlerId -- | Wrap the callback into a GClosure. genClosure_WebViewResourceLoadStarted :: MonadIO m => WebViewResourceLoadStartedCallback -> m (GClosure C_WebViewResourceLoadStartedCallback) -- | Generate a function pointer callable from C code, from a -- C_WebViewResourceLoadStartedCallback. mk_WebViewResourceLoadStartedCallback :: C_WebViewResourceLoadStartedCallback -> IO (FunPtr C_WebViewResourceLoadStartedCallback) -- | A convenience synonym for Nothing :: Maybe -- WebViewResourceLoadStartedCallback. noWebViewResourceLoadStartedCallback :: Maybe WebViewResourceLoadStartedCallback -- | Connect a signal handler for the “resource-load-started” -- signal, to be run before the default handler. When overloading -- is enabled, this is equivalent to -- --
-- on webView #resourceLoadStarted callback --onWebViewResourceLoadStarted :: (IsWebView a, MonadIO m) => a -> WebViewResourceLoadStartedCallback -> m SignalHandlerId -- | Wrap a WebViewResourceLoadStartedCallback into a -- C_WebViewResourceLoadStartedCallback. wrap_WebViewResourceLoadStartedCallback :: WebViewResourceLoadStartedCallback -> C_WebViewResourceLoadStartedCallback -- | Type for the callback on the (unwrapped) C side. type C_WebViewRunAsModalCallback = Ptr () -> Ptr () -> IO () -- | Emitted after WebView::ready-to-show on the -- newly created WebView when JavaScript code calls -- <function>window.showModalDialog</function>. The purpose -- of this signal is to allow the client application to prepare the new -- view to behave as modal. Once the signal is emitted a new main loop -- will be run to block user interaction in the parent WebView -- until the new dialog is closed. type WebViewRunAsModalCallback = IO () -- | Connect a signal handler for the “run-as-modal” signal, to be -- run after the default handler. When overloading is enabled, -- this is equivalent to -- --
-- after webView #runAsModal callback --afterWebViewRunAsModal :: (IsWebView a, MonadIO m) => a -> WebViewRunAsModalCallback -> m SignalHandlerId -- | Wrap the callback into a GClosure. genClosure_WebViewRunAsModal :: MonadIO m => WebViewRunAsModalCallback -> m (GClosure C_WebViewRunAsModalCallback) -- | Generate a function pointer callable from C code, from a -- C_WebViewRunAsModalCallback. mk_WebViewRunAsModalCallback :: C_WebViewRunAsModalCallback -> IO (FunPtr C_WebViewRunAsModalCallback) -- | A convenience synonym for Nothing :: Maybe -- WebViewRunAsModalCallback. noWebViewRunAsModalCallback :: Maybe WebViewRunAsModalCallback -- | Connect a signal handler for the “run-as-modal” signal, to be -- run before the default handler. When overloading is enabled, -- this is equivalent to -- --
-- on webView #runAsModal callback --onWebViewRunAsModal :: (IsWebView a, MonadIO m) => a -> WebViewRunAsModalCallback -> m SignalHandlerId -- | Wrap a WebViewRunAsModalCallback into a -- C_WebViewRunAsModalCallback. wrap_WebViewRunAsModalCallback :: WebViewRunAsModalCallback -> C_WebViewRunAsModalCallback -- | Type for the callback on the (unwrapped) C side. type C_WebViewRunColorChooserCallback = Ptr () -> Ptr ColorChooserRequest -> Ptr () -> IO CInt -- | This signal is emitted when the user interacts with a <input -- type='color' /> HTML element, requesting from WebKit to show a -- dialog to select a color. To let the application know the details of -- the color chooser, as well as to allow the client application to -- either cancel the request or perform an actual color selection, the -- signal will pass an instance of the ColorChooserRequest in the -- request argument. -- -- It is possible to handle this request asynchronously by increasing the -- reference count of the request. -- -- The default signal handler will asynchronously run a regular -- ColorChooser for the user to interact with. -- -- Since: 2.8 type WebViewRunColorChooserCallback = ColorChooserRequest " /@request@/: a 'GI.WebKit2.Objects.ColorChooserRequest.ColorChooserRequest' " -> IO Bool " __Returns:__ 'True' to stop other handlers from being invoked for the event. 'False' to propagate the event further. " -- | Connect a signal handler for the “run-color-chooser” signal, -- to be run after the default handler. When overloading is -- enabled, this is equivalent to -- --
-- after webView #runColorChooser callback --afterWebViewRunColorChooser :: (IsWebView a, MonadIO m) => a -> WebViewRunColorChooserCallback -> m SignalHandlerId -- | Wrap the callback into a GClosure. genClosure_WebViewRunColorChooser :: MonadIO m => WebViewRunColorChooserCallback -> m (GClosure C_WebViewRunColorChooserCallback) -- | Generate a function pointer callable from C code, from a -- C_WebViewRunColorChooserCallback. mk_WebViewRunColorChooserCallback :: C_WebViewRunColorChooserCallback -> IO (FunPtr C_WebViewRunColorChooserCallback) -- | A convenience synonym for Nothing :: Maybe -- WebViewRunColorChooserCallback. noWebViewRunColorChooserCallback :: Maybe WebViewRunColorChooserCallback -- | Connect a signal handler for the “run-color-chooser” signal, -- to be run before the default handler. When overloading is -- enabled, this is equivalent to -- --
-- on webView #runColorChooser callback --onWebViewRunColorChooser :: (IsWebView a, MonadIO m) => a -> WebViewRunColorChooserCallback -> m SignalHandlerId -- | Wrap a WebViewRunColorChooserCallback into a -- C_WebViewRunColorChooserCallback. wrap_WebViewRunColorChooserCallback :: WebViewRunColorChooserCallback -> C_WebViewRunColorChooserCallback -- | Type for the callback on the (unwrapped) C side. type C_WebViewRunFileChooserCallback = Ptr () -> Ptr FileChooserRequest -> Ptr () -> IO CInt -- | This signal is emitted when the user interacts with a <input -- type='file' /> HTML element, requesting from WebKit to show a -- dialog to select one or more files to be uploaded. To let the -- application know the details of the file chooser, as well as to allow -- the client application to either cancel the request or perform an -- actual selection of files, the signal will pass an instance of the -- FileChooserRequest in the request argument. -- -- The default signal handler will asynchronously run a regular -- FileChooserDialog for the user to interact with. type WebViewRunFileChooserCallback = FileChooserRequest " /@request@/: a 'GI.WebKit2.Objects.FileChooserRequest.FileChooserRequest' " -> IO Bool " __Returns:__ 'True' to stop other handlers from being invoked for the event. 'False' to propagate the event further. " -- | Connect a signal handler for the “run-file-chooser” signal, -- to be run after the default handler. When overloading is -- enabled, this is equivalent to -- --
-- after webView #runFileChooser callback --afterWebViewRunFileChooser :: (IsWebView a, MonadIO m) => a -> WebViewRunFileChooserCallback -> m SignalHandlerId -- | Wrap the callback into a GClosure. genClosure_WebViewRunFileChooser :: MonadIO m => WebViewRunFileChooserCallback -> m (GClosure C_WebViewRunFileChooserCallback) -- | Generate a function pointer callable from C code, from a -- C_WebViewRunFileChooserCallback. mk_WebViewRunFileChooserCallback :: C_WebViewRunFileChooserCallback -> IO (FunPtr C_WebViewRunFileChooserCallback) -- | A convenience synonym for Nothing :: Maybe -- WebViewRunFileChooserCallback. noWebViewRunFileChooserCallback :: Maybe WebViewRunFileChooserCallback -- | Connect a signal handler for the “run-file-chooser” signal, -- to be run before the default handler. When overloading is -- enabled, this is equivalent to -- --
-- on webView #runFileChooser callback --onWebViewRunFileChooser :: (IsWebView a, MonadIO m) => a -> WebViewRunFileChooserCallback -> m SignalHandlerId -- | Wrap a WebViewRunFileChooserCallback into a -- C_WebViewRunFileChooserCallback. wrap_WebViewRunFileChooserCallback :: WebViewRunFileChooserCallback -> C_WebViewRunFileChooserCallback -- | Type for the callback on the (unwrapped) C side. type C_WebViewScriptDialogCallback = Ptr () -> Ptr ScriptDialog -> Ptr () -> IO CInt -- | Emitted when JavaScript code calls -- <function>window.alert</function>, -- <function>window.confirm</function> or -- <function>window.prompt</function>, or when -- <function>onbeforeunload</function> event is fired. The -- dialog parameter should be used to build the dialog. -- If the signal is not handled a different dialog will be built and -- shown depending on the dialog type: <itemizedlist> -- <listitem><para> ScriptDialogTypeAlert: message -- dialog with a single Close button. </para></listitem> -- <listitem><para> ScriptDialogTypeConfirm: message -- dialog with OK and Cancel buttons. </para></listitem> -- <listitem><para> ScriptDialogTypePrompt: message -- dialog with OK and Cancel buttons and a text entry with the default -- text. </para></listitem> <listitem><para> -- ScriptDialogTypeBeforeUnloadConfirm: message dialog with Stay -- and Leave buttons. </para></listitem> -- </itemizedlist> -- -- It is possible to handle the script dialog request asynchronously, by -- simply caling scriptDialogRef on the dialog -- argument and calling scriptDialogClose when done. If the last -- reference is removed on a ScriptDialog and the dialog has not -- been closed, scriptDialogClose will be called. type WebViewScriptDialogCallback = ScriptDialog " /@dialog@/: the 'GI.WebKit2.Structs.ScriptDialog.ScriptDialog' to show " -> IO Bool " __Returns:__ 'True' to stop other handlers from being invoked for the event. 'False' to propagate the event further. " -- | Connect a signal handler for the “script-dialog” signal, to -- be run after the default handler. When overloading is enabled, -- this is equivalent to -- --
-- after webView #scriptDialog callback --afterWebViewScriptDialog :: (IsWebView a, MonadIO m) => a -> WebViewScriptDialogCallback -> m SignalHandlerId -- | Wrap the callback into a GClosure. genClosure_WebViewScriptDialog :: MonadIO m => WebViewScriptDialogCallback -> m (GClosure C_WebViewScriptDialogCallback) -- | Generate a function pointer callable from C code, from a -- C_WebViewScriptDialogCallback. mk_WebViewScriptDialogCallback :: C_WebViewScriptDialogCallback -> IO (FunPtr C_WebViewScriptDialogCallback) -- | A convenience synonym for Nothing :: Maybe -- WebViewScriptDialogCallback. noWebViewScriptDialogCallback :: Maybe WebViewScriptDialogCallback -- | Connect a signal handler for the “script-dialog” signal, to -- be run before the default handler. When overloading is enabled, -- this is equivalent to -- --
-- on webView #scriptDialog callback --onWebViewScriptDialog :: (IsWebView a, MonadIO m) => a -> WebViewScriptDialogCallback -> m SignalHandlerId -- | Wrap a WebViewScriptDialogCallback into a -- C_WebViewScriptDialogCallback. wrap_WebViewScriptDialogCallback :: WebViewScriptDialogCallback -> C_WebViewScriptDialogCallback -- | Type for the callback on the (unwrapped) C side. type C_WebViewShowNotificationCallback = Ptr () -> Ptr Notification -> Ptr () -> IO CInt -- | This signal is emitted when a notification should be presented to the -- user. The notification is kept alive until either: 1) -- the web page cancels it or 2) a navigation happens. -- -- The default handler will emit a notification using libnotify, if built -- with support for it. -- -- Since: 2.8 type WebViewShowNotificationCallback = Notification " /@notification@/: a 'GI.WebKit2.Objects.Notification.Notification' " -> IO Bool " __Returns:__ 'True' to stop other handlers from being invoked. 'False' otherwise. " -- | Connect a signal handler for the “show-notification” signal, -- to be run after the default handler. When overloading is -- enabled, this is equivalent to -- --
-- after webView #showNotification callback --afterWebViewShowNotification :: (IsWebView a, MonadIO m) => a -> WebViewShowNotificationCallback -> m SignalHandlerId -- | Wrap the callback into a GClosure. genClosure_WebViewShowNotification :: MonadIO m => WebViewShowNotificationCallback -> m (GClosure C_WebViewShowNotificationCallback) -- | Generate a function pointer callable from C code, from a -- C_WebViewShowNotificationCallback. mk_WebViewShowNotificationCallback :: C_WebViewShowNotificationCallback -> IO (FunPtr C_WebViewShowNotificationCallback) -- | A convenience synonym for Nothing :: Maybe -- WebViewShowNotificationCallback. noWebViewShowNotificationCallback :: Maybe WebViewShowNotificationCallback -- | Connect a signal handler for the “show-notification” signal, -- to be run before the default handler. When overloading is -- enabled, this is equivalent to -- --
-- on webView #showNotification callback --onWebViewShowNotification :: (IsWebView a, MonadIO m) => a -> WebViewShowNotificationCallback -> m SignalHandlerId -- | Wrap a WebViewShowNotificationCallback into a -- C_WebViewShowNotificationCallback. wrap_WebViewShowNotificationCallback :: WebViewShowNotificationCallback -> C_WebViewShowNotificationCallback -- | Type for the callback on the (unwrapped) C side. type C_WebViewShowOptionMenuCallback = Ptr () -> Ptr OptionMenu -> Ptr Event -> Ptr Rectangle -> Ptr () -> IO CInt -- | This signal is emitted when a select element in -- webView needs to display a dropdown menu. This signal -- can be used to show a custom menu, using menu to get -- the details of all items that should be displayed. The area of the -- element in the WebView is given as rectangle -- parameter, it can be used to position the menu. If this was triggered -- by a user interaction, like a mouse click, event -- parameter provides the Event. To handle this signal -- asynchronously you should keep a ref of the menu. -- -- The default signal handler will pop up a Menu. -- -- Since: 2.18 type WebViewShowOptionMenuCallback = OptionMenu " /@menu@/: the 'GI.WebKit2.Objects.OptionMenu.OptionMenu' " -> Event " /@event@/: the 'GI.Gdk.Unions.Event.Event' that triggered the menu, or 'Nothing' " -> Rectangle " /@rectangle@/: the option element area " -> IO Bool " __Returns:__ 'True' to stop other handlers from being invoked for the event. 'False' to propagate the event further. " -- | Connect a signal handler for the “show-option-menu” signal, -- to be run after the default handler. When overloading is -- enabled, this is equivalent to -- --
-- after webView #showOptionMenu callback --afterWebViewShowOptionMenu :: (IsWebView a, MonadIO m) => a -> WebViewShowOptionMenuCallback -> m SignalHandlerId -- | Wrap the callback into a GClosure. genClosure_WebViewShowOptionMenu :: MonadIO m => WebViewShowOptionMenuCallback -> m (GClosure C_WebViewShowOptionMenuCallback) -- | Generate a function pointer callable from C code, from a -- C_WebViewShowOptionMenuCallback. mk_WebViewShowOptionMenuCallback :: C_WebViewShowOptionMenuCallback -> IO (FunPtr C_WebViewShowOptionMenuCallback) -- | A convenience synonym for Nothing :: Maybe -- WebViewShowOptionMenuCallback. noWebViewShowOptionMenuCallback :: Maybe WebViewShowOptionMenuCallback -- | Connect a signal handler for the “show-option-menu” signal, -- to be run before the default handler. When overloading is -- enabled, this is equivalent to -- --
-- on webView #showOptionMenu callback --onWebViewShowOptionMenu :: (IsWebView a, MonadIO m) => a -> WebViewShowOptionMenuCallback -> m SignalHandlerId -- | Wrap a WebViewShowOptionMenuCallback into a -- C_WebViewShowOptionMenuCallback. wrap_WebViewShowOptionMenuCallback :: WebViewShowOptionMenuCallback -> C_WebViewShowOptionMenuCallback -- | Type for the callback on the (unwrapped) C side. type C_WebViewSubmitFormCallback = Ptr () -> Ptr FormSubmissionRequest -> Ptr () -> IO () -- | This signal is emitted when a form is about to be submitted. The -- request argument passed contains information about the -- text fields of the form. This is typically used to store login -- information that can be used later to pre-fill the form. The form will -- not be submitted until formSubmissionRequestSubmit is called. -- -- It is possible to handle the form submission request asynchronously, -- by simply calling objectRef on the request -- argument and calling formSubmissionRequestSubmit when done to -- continue with the form submission. If the last reference is removed on -- a FormSubmissionRequest and the form has not been submitted, -- formSubmissionRequestSubmit will be called. type WebViewSubmitFormCallback = FormSubmissionRequest " /@request@/: a 'GI.WebKit2.Objects.FormSubmissionRequest.FormSubmissionRequest' " -> IO () -- | Connect a signal handler for the “submit-form” signal, to be -- run after the default handler. When overloading is enabled, -- this is equivalent to -- --
-- after webView #submitForm callback --afterWebViewSubmitForm :: (IsWebView a, MonadIO m) => a -> WebViewSubmitFormCallback -> m SignalHandlerId -- | Wrap the callback into a GClosure. genClosure_WebViewSubmitForm :: MonadIO m => WebViewSubmitFormCallback -> m (GClosure C_WebViewSubmitFormCallback) -- | Generate a function pointer callable from C code, from a -- C_WebViewSubmitFormCallback. mk_WebViewSubmitFormCallback :: C_WebViewSubmitFormCallback -> IO (FunPtr C_WebViewSubmitFormCallback) -- | A convenience synonym for Nothing :: Maybe -- WebViewSubmitFormCallback. noWebViewSubmitFormCallback :: Maybe WebViewSubmitFormCallback -- | Connect a signal handler for the “submit-form” signal, to be -- run before the default handler. When overloading is enabled, -- this is equivalent to -- --
-- on webView #submitForm callback --onWebViewSubmitForm :: (IsWebView a, MonadIO m) => a -> WebViewSubmitFormCallback -> m SignalHandlerId -- | Wrap a WebViewSubmitFormCallback into a -- C_WebViewSubmitFormCallback. wrap_WebViewSubmitFormCallback :: WebViewSubmitFormCallback -> C_WebViewSubmitFormCallback -- | Type for the callback on the (unwrapped) C side. type C_WebViewWebProcessCrashedCallback = Ptr () -> Ptr () -> IO CInt -- | This signal is emitted when the web process crashes. -- | Deprecated: (Since version 2.20)Use -- WebKitWebView::web-process-terminated instead. type WebViewWebProcessCrashedCallback = IO Bool " __Returns:__ 'True' to stop other handlers from being invoked for the event. 'False' to propagate the event further. " -- | Connect a signal handler for the “web-process-crashed” -- signal, to be run after the default handler. When overloading -- is enabled, this is equivalent to -- --
-- after webView #webProcessCrashed callback --afterWebViewWebProcessCrashed :: (IsWebView a, MonadIO m) => a -> WebViewWebProcessCrashedCallback -> m SignalHandlerId -- | Wrap the callback into a GClosure. genClosure_WebViewWebProcessCrashed :: MonadIO m => WebViewWebProcessCrashedCallback -> m (GClosure C_WebViewWebProcessCrashedCallback) -- | Generate a function pointer callable from C code, from a -- C_WebViewWebProcessCrashedCallback. mk_WebViewWebProcessCrashedCallback :: C_WebViewWebProcessCrashedCallback -> IO (FunPtr C_WebViewWebProcessCrashedCallback) -- | A convenience synonym for Nothing :: Maybe -- WebViewWebProcessCrashedCallback. noWebViewWebProcessCrashedCallback :: Maybe WebViewWebProcessCrashedCallback -- | Connect a signal handler for the “web-process-crashed” -- signal, to be run before the default handler. When overloading -- is enabled, this is equivalent to -- --
-- on webView #webProcessCrashed callback --onWebViewWebProcessCrashed :: (IsWebView a, MonadIO m) => a -> WebViewWebProcessCrashedCallback -> m SignalHandlerId -- | Wrap a WebViewWebProcessCrashedCallback into a -- C_WebViewWebProcessCrashedCallback. wrap_WebViewWebProcessCrashedCallback :: WebViewWebProcessCrashedCallback -> C_WebViewWebProcessCrashedCallback -- | Type for the callback on the (unwrapped) C side. type C_WebViewWebProcessTerminatedCallback = Ptr () -> CUInt -> Ptr () -> IO () -- | This signal is emitted when the web process terminates abnormally due -- to reason. -- -- Since: 2.20 type WebViewWebProcessTerminatedCallback = WebProcessTerminationReason " /@reason@/: the a 'GI.WebKit2.Enums.WebProcessTerminationReason' " -> IO () -- | Connect a signal handler for the “web-process-terminated” -- signal, to be run after the default handler. When overloading -- is enabled, this is equivalent to -- --
-- after webView #webProcessTerminated callback --afterWebViewWebProcessTerminated :: (IsWebView a, MonadIO m) => a -> WebViewWebProcessTerminatedCallback -> m SignalHandlerId -- | Wrap the callback into a GClosure. genClosure_WebViewWebProcessTerminated :: MonadIO m => WebViewWebProcessTerminatedCallback -> m (GClosure C_WebViewWebProcessTerminatedCallback) -- | Generate a function pointer callable from C code, from a -- C_WebViewWebProcessTerminatedCallback. mk_WebViewWebProcessTerminatedCallback :: C_WebViewWebProcessTerminatedCallback -> IO (FunPtr C_WebViewWebProcessTerminatedCallback) -- | A convenience synonym for Nothing :: Maybe -- WebViewWebProcessTerminatedCallback. noWebViewWebProcessTerminatedCallback :: Maybe WebViewWebProcessTerminatedCallback -- | Connect a signal handler for the “web-process-terminated” -- signal, to be run before the default handler. When overloading -- is enabled, this is equivalent to -- --
-- on webView #webProcessTerminated callback --onWebViewWebProcessTerminated :: (IsWebView a, MonadIO m) => a -> WebViewWebProcessTerminatedCallback -> m SignalHandlerId -- | Wrap a WebViewWebProcessTerminatedCallback into a -- C_WebViewWebProcessTerminatedCallback. wrap_WebViewWebProcessTerminatedCallback :: WebViewWebProcessTerminatedCallback -> C_WebViewWebProcessTerminatedCallback instance (Data.GI.Base.BasicTypes.GObject o, Data.GI.Base.Overloading.IsDescendantOf GI.WebKit2.Objects.WebView.WebView o) => GI.WebKit2.Objects.WebView.IsWebView o instance Data.GI.Base.BasicTypes.GObject GI.WebKit2.Objects.WebView.WebView instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit2.Objects.WebView.WebView -- | No description available in the introspection data. module GI.WebKit2.Structs.WebViewSessionState -- | Memory-managed wrapper type. newtype WebViewSessionState WebViewSessionState :: ManagedPtr WebViewSessionState -> WebViewSessionState -- | A convenience alias for Nothing :: Maybe -- WebViewSessionState. noWebViewSessionState :: Maybe WebViewSessionState -- | Creates a new WebViewSessionState from serialized data. -- -- Since: 2.12 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. -- -- Since: 2.12 webViewSessionStateRef :: (HasCallStack, MonadIO m) => WebViewSessionState -> m WebViewSessionState -- | Serializes a WebViewSessionState. -- -- Since: 2.12 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. -- -- Since: 2.12 webViewSessionStateUnref :: (HasCallStack, MonadIO m) => WebViewSessionState -> m () instance Data.GI.Base.BasicTypes.BoxedObject GI.WebKit2.Structs.WebViewSessionState.WebViewSessionState -- | No description available in the introspection data. module GI.WebKit2.Objects.WebsiteDataManager -- | Memory-managed wrapper type. newtype WebsiteDataManager WebsiteDataManager :: ManagedPtr WebsiteDataManager -> WebsiteDataManager -- | Type class for types which can be safely cast to -- WebsiteDataManager, for instance with -- toWebsiteDataManager. class (GObject o, IsDescendantOf WebsiteDataManager o) => IsWebsiteDataManager o -- | Cast to WebsiteDataManager, for types for which this is known -- to be safe. For general casts, use castTo. toWebsiteDataManager :: (MonadIO m, IsWebsiteDataManager o) => o -> m WebsiteDataManager -- | A convenience alias for Nothing :: Maybe -- 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. -- -- Since: 2.16 websiteDataManagerClear :: (HasCallStack, MonadIO m, IsWebsiteDataManager a, IsCancellable b) => a -> [WebsiteDataTypes] -> Int64 -> Maybe b -> Maybe AsyncReadyCallback -> m () -- | Finish an asynchronous operation started with -- websiteDataManagerClear -- -- Since: 2.16 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. -- -- Since: 2.16 websiteDataManagerFetch :: (HasCallStack, MonadIO m, IsWebsiteDataManager a, IsCancellable b) => a -> [WebsiteDataTypes] -> Maybe b -> Maybe AsyncReadyCallback -> m () -- | Finish an asynchronous operation started with -- websiteDataManagerFetch. -- -- Since: 2.16 websiteDataManagerFetchFinish :: (HasCallStack, MonadIO m, IsWebsiteDataManager a, IsAsyncResult b) => a -> b -> m [WebsiteData] -- | Get the WebsiteDataManager:base-cache-directory -- property. -- -- Since: 2.10 websiteDataManagerGetBaseCacheDirectory :: (HasCallStack, MonadIO m, IsWebsiteDataManager a) => a -> m (Maybe Text) -- | Get the WebsiteDataManager:base-data-directory -- property. -- -- Since: 2.10 websiteDataManagerGetBaseDataDirectory :: (HasCallStack, MonadIO m, IsWebsiteDataManager a) => a -> m (Maybe Text) -- | Get the CookieManager of manager. -- -- Since: 2.16 websiteDataManagerGetCookieManager :: (HasCallStack, MonadIO m, IsWebsiteDataManager a) => a -> m CookieManager -- | Get the WebsiteDataManager:disk-cache-directory -- property. -- -- Since: 2.10 websiteDataManagerGetDiskCacheDirectory :: (HasCallStack, MonadIO m, IsWebsiteDataManager a) => a -> m (Maybe Text) -- | Get the WebsiteDataManager:indexeddb-directory -- property. -- -- Since: 2.10 websiteDataManagerGetIndexeddbDirectory :: (HasCallStack, MonadIO m, IsWebsiteDataManager a) => a -> m (Maybe Text) -- | Get the -- WebsiteDataManager:local-storage-directory -- property. -- -- Since: 2.10 websiteDataManagerGetLocalStorageDirectory :: (HasCallStack, MonadIO m, IsWebsiteDataManager a) => a -> m (Maybe Text) -- | Get the -- WebsiteDataManager:offline-application-cache-directory -- property. -- -- Since: 2.10 websiteDataManagerGetOfflineApplicationCacheDirectory :: (HasCallStack, MonadIO m, IsWebsiteDataManager a) => a -> m (Maybe Text) -- | Get the WebsiteDataManager:websql-directory -- property. -- -- Since: 2.10 websiteDataManagerGetWebsqlDirectory :: (HasCallStack, MonadIO m, IsWebsiteDataManager a) => a -> m (Maybe Text) -- | Get whether a WebsiteDataManager is ephemeral. See -- WebsiteDataManager:is-ephemeral for more -- details. -- -- Since: 2.16 websiteDataManagerIsEphemeral :: (HasCallStack, MonadIO m, IsWebsiteDataManager a) => a -> m Bool -- | Creates an ephemeral WebsiteDataManager. See -- WebsiteDataManager:is-ephemeral for more -- details. -- -- Since: 2.16 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. -- -- Since: 2.16 websiteDataManagerRemove :: (HasCallStack, MonadIO m, IsWebsiteDataManager a, IsCancellable b) => a -> [WebsiteDataTypes] -> [WebsiteData] -> Maybe b -> Maybe AsyncReadyCallback -> m () -- | Finish an asynchronous operation started with -- websiteDataManagerRemove. -- -- Since: 2.16 websiteDataManagerRemoveFinish :: (HasCallStack, MonadIO m, IsWebsiteDataManager a, IsAsyncResult b) => a -> b -> m () -- | Construct a GValueConstruct with valid value for the -- “base-cache-directory” property. This is rarely needed -- directly, but it is used by new. constructWebsiteDataManagerBaseCacheDirectory :: IsWebsiteDataManager o => Text -> IO (GValueConstruct o) -- | Get the value of the “base-cache-directory” property. When -- overloading is enabled, this is equivalent to -- --
-- get websiteDataManager #baseCacheDirectory --getWebsiteDataManagerBaseCacheDirectory :: (MonadIO m, IsWebsiteDataManager o) => o -> m (Maybe Text) -- | Construct a GValueConstruct with valid value for the -- “base-data-directory” property. This is rarely needed -- directly, but it is used by new. constructWebsiteDataManagerBaseDataDirectory :: IsWebsiteDataManager o => Text -> IO (GValueConstruct o) -- | Get the value of the “base-data-directory” property. When -- overloading is enabled, this is equivalent to -- --
-- get websiteDataManager #baseDataDirectory --getWebsiteDataManagerBaseDataDirectory :: (MonadIO m, IsWebsiteDataManager o) => o -> m (Maybe Text) -- | Construct a GValueConstruct with valid value for the -- “disk-cache-directory” property. This is rarely needed -- directly, but it is used by new. constructWebsiteDataManagerDiskCacheDirectory :: IsWebsiteDataManager o => Text -> IO (GValueConstruct o) -- | Get the value of the “disk-cache-directory” property. When -- overloading is enabled, this is equivalent to -- --
-- get websiteDataManager #diskCacheDirectory --getWebsiteDataManagerDiskCacheDirectory :: (MonadIO m, IsWebsiteDataManager o) => o -> m (Maybe Text) -- | Construct a GValueConstruct with valid value for the -- “indexeddb-directory” property. This is rarely needed -- directly, but it is used by new. constructWebsiteDataManagerIndexeddbDirectory :: IsWebsiteDataManager o => Text -> IO (GValueConstruct o) -- | Get the value of the “indexeddb-directory” property. When -- overloading is enabled, this is equivalent to -- --
-- get websiteDataManager #indexeddbDirectory --getWebsiteDataManagerIndexeddbDirectory :: (MonadIO m, IsWebsiteDataManager o) => o -> m (Maybe Text) -- | Construct a GValueConstruct with valid value for the -- “is-ephemeral” property. This is rarely needed directly, but -- it is used by new. constructWebsiteDataManagerIsEphemeral :: IsWebsiteDataManager o => Bool -> IO (GValueConstruct o) -- | Get the value of the “is-ephemeral” property. When -- overloading is enabled, this is equivalent to -- --
-- get websiteDataManager #isEphemeral --getWebsiteDataManagerIsEphemeral :: (MonadIO m, IsWebsiteDataManager o) => o -> m Bool -- | Construct a GValueConstruct with valid value for the -- “local-storage-directory” property. This is rarely needed -- directly, but it is used by new. constructWebsiteDataManagerLocalStorageDirectory :: IsWebsiteDataManager o => Text -> IO (GValueConstruct o) -- | Get the value of the “local-storage-directory” property. When -- overloading is enabled, this is equivalent to -- --
-- get websiteDataManager #localStorageDirectory --getWebsiteDataManagerLocalStorageDirectory :: (MonadIO m, IsWebsiteDataManager o) => o -> m (Maybe Text) -- | Construct a GValueConstruct with valid value for the -- “offline-application-cache-directory” property. This is -- rarely needed directly, but it is used by new. constructWebsiteDataManagerOfflineApplicationCacheDirectory :: IsWebsiteDataManager o => Text -> IO (GValueConstruct o) -- | Get the value of the “offline-application-cache-directory” -- property. When overloading is enabled, this is equivalent to -- --
-- get websiteDataManager #offlineApplicationCacheDirectory --getWebsiteDataManagerOfflineApplicationCacheDirectory :: (MonadIO m, IsWebsiteDataManager o) => o -> m (Maybe Text) -- | Construct a GValueConstruct with valid value for the -- “websql-directory” property. This is rarely needed directly, -- but it is used by new. constructWebsiteDataManagerWebsqlDirectory :: IsWebsiteDataManager o => Text -> IO (GValueConstruct o) -- | Get the value of the “websql-directory” property. When -- overloading is enabled, this is equivalent to -- --
-- get websiteDataManager #websqlDirectory --getWebsiteDataManagerWebsqlDirectory :: (MonadIO m, IsWebsiteDataManager o) => o -> m (Maybe Text) instance (Data.GI.Base.BasicTypes.GObject o, Data.GI.Base.Overloading.IsDescendantOf GI.WebKit2.Objects.WebsiteDataManager.WebsiteDataManager o) => GI.WebKit2.Objects.WebsiteDataManager.IsWebsiteDataManager o instance Data.GI.Base.BasicTypes.GObject GI.WebKit2.Objects.WebsiteDataManager.WebsiteDataManager instance Data.GI.Base.Overloading.HasParentTypes GI.WebKit2.Objects.WebsiteDataManager.WebsiteDataManager module GI.WebKit2.Objects -- | No description available in the introspection data. module GI.WebKit2.Structs.WebsiteData -- | Memory-managed wrapper type. newtype WebsiteData WebsiteData :: ManagedPtr WebsiteData -> WebsiteData -- | A convenience alias for Nothing :: Maybe -- 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". -- -- Since: 2.16 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. -- -- Since: 2.16 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. -- -- Since: 2.16 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. -- -- Since: 2.16 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. -- -- Since: 2.16 websiteDataUnref :: (HasCallStack, MonadIO m) => WebsiteData -> m () instance Data.GI.Base.BasicTypes.BoxedObject GI.WebKit2.Structs.WebsiteData.WebsiteData module GI.WebKit2.Structs module GI.WebKit2