<a href="https://github.com/zserge/webview/blob/d007fc53b107f6043c2a6a3372548dbf59dfe876/README.md">README</a>.</p><p>Be sure to explore the provided <a href="https://github.com/lettier/webviewhs/tree/master/examples#readme">examples</a>.</p></div></div><div id="synopsis"><p id="control.syn" class="caption expander" onclick="toggleSection('syn')">Synopsis</p><ul id="section.syn" class="hide" onclick="toggleSection('syn')"><li class="src short"><span class="keyword">data</span> <a href="#t:WindowParams">WindowParams</a> = <a href="#v:WindowParams">WindowParams</a> {<ul class="subs"><li><a href="#v:windowParamsTitle">windowParamsTitle</a> :: <a href="../text-1.2.2.2/Data-Text.html#t:Text">Text</a></li><li><a href="#v:windowParamsUri">windowParamsUri</a> :: <a href="../text-1.2.2.2/Data-Text.html#t:Text">Text</a></li><li><a href="#v:windowParamsWidth">windowParamsWidth</a> :: <a href="../base-4.9.1.0/Data-Int.html#t:Int">Int</a></li><li><a href="#v:windowParamsHeight">windowParamsHeight</a> :: <a href="../base-4.9.1.0/Data-Int.html#t:Int">Int</a></li><li><a href="#v:windowParamsResizable">windowParamsResizable</a> :: <a href="../base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a></li><li><a href="#v:windowParamsDebuggable">windowParamsDebuggable</a> :: <a href="../base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a></li></ul>}</li><li class="src short"><span class="keyword">data</span> <a href="#t:WindowBackgroundColor">WindowBackgroundColor</a> = <a href="#v:WindowBackgroundColor">WindowBackgroundColor</a> {<ul class="subs"><li><a href="#v:windowBackgroundColorRed">windowBackgroundColorRed</a> :: <a href="../base-4.9.1.0/Data-Word.html#t:Word8">Word8</a></li><li><a href="#v:windowBackgroundColorGreen">windowBackgroundColorGreen</a> :: <a href="../base-4.9.1.0/Data-Word.html#t:Word8">Word8</a></li><li><a href="#v:windowBackgroundColorBlue">windowBackgroundColorBlue</a> :: <a href="../base-4.9.1.0/Data-Word.html#t:Word8">Word8</a></li><li><a href="#v:windowBackgroundColorAlpha">windowBackgroundColorAlpha</a> :: <a href="../base-4.9.1.0/Data-Word.html#t:Word8">Word8</a></li></ul>}</li><li class="src short"><span class="keyword">data</span> <a href="#t:WindowAlertDialogType">WindowAlertDialogType</a><ul class="subs"><li>= <a href="#v:WindowAlertDialogTypeInfo">WindowAlertDialogTypeInfo</a></li><li>| <a href="#v:WindowAlertDialogTypeWarning">WindowAlertDialogTypeWarning</a></li><li>| <a href="#v:WindowAlertDialogTypeError">WindowAlertDialogTypeError</a></li></ul></li><li class="src short"><span class="keyword">type</span> <a href="#t:Window">Window</a> = <a href="../base-4.9.1.0/Foreign-Ptr.html#t:Ptr">Ptr</a></li><li class="src short"><a href="#v:createWindowAndBlock">createWindowAndBlock</a> :: <a href="Graphics-UI-Webviewhs.html#t:WindowParams">WindowParams</a> -> <a href="../base-4.9.1.0/System-IO.html#t:IO">IO</a> ()</li><li class="src short"><a href="#v:createWindow">createWindow</a> :: <a href="Graphics-UI-Webviewhs.html#t:WindowParams">WindowParams</a> -> (<a href="Graphics-UI-Webviewhs.html#t:Window">Window</a> a -> <a href="../text-1.2.2.2/Data-Text.html#t:Text">Text</a> -> <a href="../base-4.9.1.0/System-IO.html#t:IO">IO</a> ()) -> <a href="../base-4.9.1.0/System-IO.html#t:IO">IO</a> (<a href="../base-4.9.1.0/Data-Either.html#t:Either">Either</a> <a href="../text-1.2.2.2/Data-Text.html#t:Text">Text</a> (<a href="Graphics-UI-Webviewhs.html#t:Window">Window</a> a))</li><li class="src short"><a href="#v:setWindowTitle">setWindowTitle</a> :: <a href="Graphics-UI-Webviewhs.html#t:Window">Window</a> a -> <a href="../text-1.2.2.2/Data-Text.html#t:Text">Text</a> -> <a href="../base-4.9.1.0/System-IO.html#t:IO">IO</a> ()</li><li class="src short"><a href="#v:setWindowFullscreen">setWindowFullscreen</a> :: <a href="Graphics-UI-Webviewhs.html#t:Window">Window</a> a -> <a href="../base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> -> <a href="../base-4.9.1.0/System-IO.html#t:IO">IO</a> ()</li><li class="src short"><a href="#v:setWindowBackgroundColor">setWindowBackgroundColor</a> :: <a href="Graphics-UI-Webviewhs.html#t:Window">Window</a> a -> <a href="Graphics-UI-Webviewhs.html#t:WindowBackgroundColor">WindowBackgroundColor</a> -> <a href="../base-4.9.1.0/System-IO.html#t:IO">IO</a> ()</li><li class="src short"><a href="#v:withWindowLoop">withWindowLoop</a> :: <a href="Graphics-UI-Webviewhs.html#t:WindowParams">WindowParams</a> -> (<a href="Graphics-UI-Webviewhs.html#t:Window">Window</a> a -> <a href="../text-1.2.2.2/Data-Text.html#t:Text">Text</a> -> <a href="../base-4.9.1.0/System-IO.html#t:IO">IO</a> ()) -> (<a href="Graphics-UI-Webviewhs.html#t:Window">Window</a> a -> <a href="../base-4.9.1.0/System-IO.html#t:IO">IO</a> <a href="../base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a>) -> <a href="../base-4.9.1.0/System-IO.html#t:IO">IO</a> ()</li><li class="src short"><a href="#v:iterateWindowLoop">iterateWindowLoop</a> :: <a href="Graphics-UI-Webviewhs.html#t:Window">Window</a> a -> <a href="../base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> -> <a href="../base-4.9.1.0/System-IO.html#t:IO">IO</a> <a href="../base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a></li><li class="src short"><a href="#v:runJavaScript">runJavaScript</a> :: (<a href="../jmacro-0.6.14/Language-Javascript-JMacro.html#t:JsToDoc">JsToDoc</a> js, <a href="../jmacro-0.6.14/Language-Javascript-JMacro.html#t:JMacro">JMacro</a> js) => <a href="Graphics-UI-Webviewhs.html#t:Window">Window</a> a -> js -> <a href="../base-4.9.1.0/System-IO.html#t:IO">IO</a> <a href="../base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a></li><li class="src short"><a href="#v:runJavaScript-39-">runJavaScript'</a> :: <a href="Graphics-UI-Webviewhs.html#t:Window">Window</a> a -> <a href="../text-1.2.2.2/Data-Text.html#t:Text">Text</a> -> <a href="../base-4.9.1.0/System-IO.html#t:IO">IO</a> <a href="../base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a></li><li class="src short"><a href="#v:injectCss">injectCss</a> :: <a href="Graphics-UI-Webviewhs.html#t:Window">Window</a> a -> <a href="../clay-0.12.2/Clay-Stylesheet.html#t:Css">Css</a> -> <a href="../base-4.9.1.0/System-IO.html#t:IO">IO</a> <a href="../base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a></li><li class="src short"><a href="#v:injectCss-39-">injectCss'</a> :: <a href="Graphics-UI-Webviewhs.html#t:Window">Window</a> a -> <a href="../text-1.2.2.2/Data-Text.html#t:Text">Text</a> -> <a href="../base-4.9.1.0/System-IO.html#t:IO">IO</a> <a href="../base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a></li><li class="src short"><a href="#v:openWindowAlertDialog">openWindowAlertDialog</a> :: <a href="Graphics-UI-Webviewhs.html#t:Window">Window</a> a -> <a href="Graphics-UI-Webviewhs.html#t:WindowAlertDialogType">WindowAlertDialogType</a> -> <a href="../text-1.2.2.2/Data-Text.html#t:Text">Text</a> -> <a href="../text-1.2.2.2/Data-Text.html#t:Text">Text</a> -> <a href="../base-4.9.1.0/System-IO.html#t:IO">IO</a> ()</li><li class="src short"><a href="#v:withWindowOpenDialog">withWindowOpenDialog</a> :: <a href="Graphics-UI-Webviewhs.html#t:Window">Window</a> a -> <a href="../text-1.2.2.2/Data-Text.html#t:Text">Text</a> -> <a href="../base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> -> (<a href="../text-1.2.2.2/Data-Text.html#t:Text">Text</a> -> <a href="../base-4.9.1.0/System-IO.html#t:IO">IO</a> ()) -> <a href="../base-4.9.1.0/System-IO.html#t:IO">IO</a> ()</li><li class="src short"><a href="#v:withWindowSaveDialog">withWindowSaveDialog</a> :: <a href="Graphics-UI-Webviewhs.html#t:Window">Window</a> a -> <a href="../text-1.2.2.2/Data-Text.html#t:Text">Text</a> -> (<a href="../text-1.2.2.2/Data-Text.html#t:Text">Text</a> -> <a href="../base-4.9.1.0/System-IO.html#t:IO">IO</a> ()) -> <a href="../base-4.9.1.0/System-IO.html#t:IO">IO</a> ()</li><li class="src short"><a href="#v:dispatchToMain">dispatchToMain</a> :: <a href="Graphics-UI-Webviewhs.html#t:Window">Window</a> a -> (<a href="Graphics-UI-Webviewhs.html#t:Window">Window</a> a -> <a href="../base-4.9.1.0/System-IO.html#t:IO">IO</a> ()) -> <a href="../base-4.9.1.0/System-IO.html#t:IO">IO</a> ()</li><li class="src short"><a href="#v:log">log</a> :: <a href="../text-format-heavy-0.1.5.1/Data-Text-Format-Heavy-Types.html#t:VarContainer">VarContainer</a> vars => <a href="../text-format-heavy-0.1.5.1/Data-Text-Format-Heavy-Types.html#t:Format">Format</a> -> vars -> <a href="../base-4.9.1.0/System-IO.html#t:IO">IO</a> ()</li><li class="src short"><a href="#v:log-39-">log'</a> :: <a href="../text-1.2.2.2/Data-Text.html#t:Text">Text</a> -> <a href="../base-4.9.1.0/System-IO.html#t:IO">IO</a> ()</li><li class="src short"><a href="#v:terminateWindowLoop">terminateWindowLoop</a> :: <a href="Graphics-UI-Webviewhs.html#t:Window">Window</a> a -> <a href="../base-4.9.1.0/System-IO.html#t:IO">IO</a> ()</li><li class="src short"><a href="#v:destroyWindow">destroyWindow</a> :: <a href="Graphics-UI-Webviewhs.html#t:Window">Window</a> a -> <a href="../base-4.9.1.0/System-IO.html#t:IO">IO</a> ()</li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><span class="keyword">data</span> <a id="t:WindowParams" class="def">WindowParams</a> <a href="src/Graphics.UI.Webviewhs.html#WindowParams" class="link">Source</a> <a href="#t:WindowParams" class="selflink">#</a></p><div class="doc"><p>Specifies the window creation parameters.</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a id="v:WindowParams" class="def">WindowParams</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><ul><li><dfn class="src"><a id="v:windowParamsTitle" class="def">windowParamsTitle</a> :: <a href="../text-1.2.2.2/Data-Text.html#t:Text">Text</a></dfn><div class="doc empty"> </div></li><li><dfn class="src"><a id="v:windowParamsUri" class="def">windowParamsUri</a> :: <a href="../text-1.2.2.2/Data-Text.html#t:Text">Text</a></dfn><div class="doc"><p>This can be file://, http://, https://, data:text/html, etc.</p></div></li><li><dfn class="src"><a id="v:windowParamsWidth" class="def">windowParamsWidth</a> :: <a href="../base-4.9.1.0/Data-Int.html#t:Int">Int</a></dfn><div class="doc empty"> </div></li><li><dfn class="src"><a id="v:windowParamsHeight" class="def">windowParamsHeight</a> :: <a href="../base-4.9.1.0/Data-Int.html#t:Int">Int</a></dfn><div class="doc empty"> </div></li><li><dfn class="src"><a id="v:windowParamsResizable" class="def">windowParamsResizable</a> :: <a href="../base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a></dfn><div class="doc empty"> </div></li><li><dfn class="src"><a id="v:windowParamsDebuggable" class="def">windowParamsDebuggable</a> :: <a href="../base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a></dfn><div class="doc"><p>This enables the right click context menu with reload and
0 commit comments