gi-webkit2-4.0.19: WebKit2 bindings

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

GI.WebKit2.Structs.ScriptDialog

Contents

Description

No description available in the introspection data.

Synopsis

Exported types

newtype ScriptDialog Source #

Memory-managed wrapper type.

Instances
BoxedObject ScriptDialog Source # 
Instance details

Defined in GI.WebKit2.Structs.ScriptDialog

Methods

confirmSetConfirmed

scriptDialogConfirmSetConfirmed Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> ScriptDialog

dialog: a ScriptDialog

-> Bool

confirmed: whether user confirmed the dialog

-> 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

getDialogType

scriptDialogGetDialogType Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> ScriptDialog

dialog: a ScriptDialog

-> m ScriptDialogType

Returns: the ScriptDialogType of dialog

Get the dialog type of a ScriptDialog.

getMessage

scriptDialogGetMessage Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> ScriptDialog

dialog: a ScriptDialog

-> m Text

Returns: the message of dialog.

Get the message of a ScriptDialog.

promptGetDefaultText

scriptDialogPromptGetDefaultText Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> ScriptDialog

dialog: a ScriptDialog

-> m Text

Returns: the default text of dialog

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.

promptSetText

scriptDialogPromptSetText Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> ScriptDialog

dialog: a ScriptDialog

-> Text

text: the text to set

-> m () 

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.