Skip to content

Commit

Permalink
Updates to version 0.0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
lettier committed Oct 9, 2018
1 parent cd78650 commit 488ca1a
Show file tree
Hide file tree
Showing 13 changed files with 637 additions and 425 deletions.
22 changes: 22 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,28 @@

---

## 0.0.1.0

### Added

-

### Changed

- Updated webview
- Commit
- 24af6cb9b33b3a10dce44188aec0c1646247d830
- Removes objective-c
- https://github.com/zserge/webview/pull/181
- Updated logo

### Removed

- Objective-c requirement for macOS
- Cocoa framework requirement for macOS

---

## 0.0.0.0

### Added
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
![webviewhs logo](https://i.imgur.com/MOmkahs.png)
![webviewhs logo](https://i.imgur.com/yohrYgX.png)

# What is webviewhs?

Expand Down
699 changes: 504 additions & 195 deletions deps/webview/webview.h

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/Graphics-UI-Webviewhs.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>Graphics.UI.Webviewhs</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><script src="haddock-util.js" type="text/javascript"></script><script src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type="text/javascript"></script><script type="text/javascript">//<![CDATA[
window.onload = function () {pageLoad();setSynopsis("mini_Graphics-UI-Webviewhs.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Graphics.UI.Webviewhs.html">Source</a></li><li><a href="iindex.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">webviewhs-0.0.0.0: Create native dialogs and windows that run web pages.</p></div><div id="content"><div id="module-header"><table class="info"><tr><th valign="top">Copyright</th><td>(C) 2018 David Lettier</td></tr><tr><th>License</th><td>BSD3</td></tr><tr><th>Maintainer</th><td>David Lettier</td></tr><tr><th>Safe Haskell</th><td>None</td></tr><tr><th>Language</th><td>Haskell2010</td></tr></table><p class="caption">Graphics.UI.Webviewhs</p></div><div id="description"><p class="caption">Description</p><div class="doc"><p><img src="https://i.imgur.com/VeULsQK.png" title="webviewhs logo" /></p><p>webviewhs is a Haskell binding to the <a href="https://github.com/zserge/webview">webview</a> library created by
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Graphics.UI.Webviewhs.html">Source</a></li><li><a href="iindex.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">webviewhs-0.0.1.0: Create native dialogs and windows that run web pages.</p></div><div id="content"><div id="module-header"><table class="info"><tr><th valign="top">Copyright</th><td>(C) 2018 David Lettier</td></tr><tr><th>License</th><td>BSD3</td></tr><tr><th>Maintainer</th><td>David Lettier</td></tr><tr><th>Safe Haskell</th><td>None</td></tr><tr><th>Language</th><td>Haskell2010</td></tr></table><p class="caption">Graphics.UI.Webviewhs</p></div><div id="description"><p class="caption">Description</p><div class="doc"><p><img src="https://i.imgur.com/2yAJALE.png" title="webviewhs logo" /></p><p>webviewhs is a Haskell binding to the <a href="https://github.com/zserge/webview">webview</a> library created by
<a href="https://github.com/zserge">Serge Zaitsev</a>.</p><p>According to webview:</p><pre>[webview is] a tiny cross-platform webview library for C/C++/Golang to build modern cross-platform GUIs.
It uses Cocoa/WebKit on macOS, gtk-webkit2 on Linux and MSHTML (IE10/11) on Windows.</pre><p>For more information, see the webview
<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> -&gt; <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> -&gt; (<a href="Graphics-UI-Webviewhs.html#t:Window">Window</a> a -&gt; <a href="../text-1.2.2.2/Data-Text.html#t:Text">Text</a> -&gt; <a href="../base-4.9.1.0/System-IO.html#t:IO">IO</a> ()) -&gt; <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 -&gt; <a href="../text-1.2.2.2/Data-Text.html#t:Text">Text</a> -&gt; <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 -&gt; <a href="../base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> -&gt; <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 -&gt; <a href="Graphics-UI-Webviewhs.html#t:WindowBackgroundColor">WindowBackgroundColor</a> -&gt; <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> -&gt; (<a href="Graphics-UI-Webviewhs.html#t:Window">Window</a> a -&gt; <a href="../text-1.2.2.2/Data-Text.html#t:Text">Text</a> -&gt; <a href="../base-4.9.1.0/System-IO.html#t:IO">IO</a> ()) -&gt; (<a href="Graphics-UI-Webviewhs.html#t:Window">Window</a> a -&gt; <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>) -&gt; <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 -&gt; <a href="../base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> -&gt; <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) =&gt; <a href="Graphics-UI-Webviewhs.html#t:Window">Window</a> a -&gt; js -&gt; <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 -&gt; <a href="../text-1.2.2.2/Data-Text.html#t:Text">Text</a> -&gt; <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 -&gt; <a href="../clay-0.12.2/Clay-Stylesheet.html#t:Css">Css</a> -&gt; <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 -&gt; <a href="../text-1.2.2.2/Data-Text.html#t:Text">Text</a> -&gt; <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 -&gt; <a href="Graphics-UI-Webviewhs.html#t:WindowAlertDialogType">WindowAlertDialogType</a> -&gt; <a href="../text-1.2.2.2/Data-Text.html#t:Text">Text</a> -&gt; <a href="../text-1.2.2.2/Data-Text.html#t:Text">Text</a> -&gt; <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 -&gt; <a href="../text-1.2.2.2/Data-Text.html#t:Text">Text</a> -&gt; <a href="../base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> -&gt; (<a href="../text-1.2.2.2/Data-Text.html#t:Text">Text</a> -&gt; <a href="../base-4.9.1.0/System-IO.html#t:IO">IO</a> ()) -&gt; <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 -&gt; <a href="../text-1.2.2.2/Data-Text.html#t:Text">Text</a> -&gt; (<a href="../text-1.2.2.2/Data-Text.html#t:Text">Text</a> -&gt; <a href="../base-4.9.1.0/System-IO.html#t:IO">IO</a> ()) -&gt; <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 -&gt; (<a href="Graphics-UI-Webviewhs.html#t:Window">Window</a> a -&gt; <a href="../base-4.9.1.0/System-IO.html#t:IO">IO</a> ()) -&gt; <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 =&gt; <a href="../text-format-heavy-0.1.5.1/Data-Text-Format-Heavy-Types.html#t:Format">Format</a> -&gt; vars -&gt; <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> -&gt; <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 -&gt; <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 -&gt; <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">&nbsp;</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">&nbsp;</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">&nbsp;</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">&nbsp;</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">&nbsp;</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
Expand Down
Loading

0 comments on commit 488ca1a

Please sign in to comment.