<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>piotrzurek.net &#187; Gtk#</title>
	<atom:link href="http://www.piotrzurek.net/tag/gtk/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.piotrzurek.net</link>
	<description>...but what do I know?!</description>
	<lastBuildDate>Sat, 22 May 2010 00:23:38 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Playing with F#</title>
		<link>http://www.piotrzurek.net/2008/11/16/playing-with-f/</link>
		<comments>http://www.piotrzurek.net/2008/11/16/playing-with-f/#comments</comments>
		<pubDate>Sun, 16 Nov 2008 08:05:15 +0000</pubDate>
		<dc:creator>piotr</dc:creator>
				<category><![CDATA[Blog entries]]></category>
		<category><![CDATA[F#]]></category>
		<category><![CDATA[Functional programming]]></category>
		<category><![CDATA[Gtk#]]></category>
		<category><![CDATA[development]]></category>

		<guid isPermaLink="false">http://www.piotrzurek.net/?p=175</guid>
		<description><![CDATA[This little pretty window: is a result of this tiny bit of F# code: #light open System open Gtk Application.Init() let window = new Gtk.Window(&#8220;F# Gtk&#8221;) let vBox = new Gtk.VBox() let closeButton = new Gtk.Button() let label = new Gtk.Label(&#8220;Hello World!&#8221;) window.WindowPosition &#60; &#8211; Gtk.WindowPosition.Center window.SetDefaultSize(160, 40) window.Destroyed.Add(fun _ -&#62; Application.Quit() ) closeButton.Label &#60; [...]]]></description>
			<content:encoded><![CDATA[<p>This little pretty window:</p>
<p><img class="aligncenter size-full wp-image-176" title="F# GTK" src="http://www.piotrzurek.net/wp-content/uploads/2008/11/fsgtk.png" alt="" width="180" height="123" /></p>
<p>is a result of this tiny bit of F# code:<br />
<code><br />
#light</code></p>
<p>open System<br />
open Gtk</p>
<p>Application.Init()</p>
<p>let window = new Gtk.Window(&#8220;F# Gtk&#8221;)<br />
let vBox = new Gtk.VBox()<br />
let closeButton = new Gtk.Button()<br />
let label = new Gtk.Label(&#8220;Hello World!&#8221;)</p>
<p>window.WindowPosition &lt; &#8211; Gtk.WindowPosition.Center<br />
window.SetDefaultSize(160, 40)<br />
window.Destroyed.Add(fun _ -&gt; Application.Quit() )</p>
<p>closeButton.Label &lt; &#8211; &#8220;Close&#8221;<br />
closeButton.Clicked.Add(fun _ -&gt; Application.Quit() )</p>
<p>vBox.BorderWidth &lt; &#8211; (uint32) 6<br />
vBox.PackStart(label, false, false, (uint32) 6)<br />
vBox.PackStart(closeButton, false, false, (uint32) 6)</p>
<p>window.Add(vBox)<br />
window.ShowAll()</p>
<p><strong>//brown paperbag update: I&#8217;ve missed this line during Copy/Paste</strong><br />
Application.Run()</p>
<p>Next step is piece of code that actually does something semi-useful. I&#8217;m thinking about implementing a convex hull algorithm which F# seems pretty well suited for.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.piotrzurek.net/2008/11/16/playing-with-f/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
