<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>[A5] Should widgets&#39; coordinate properties be &#39;int&#39; or &#39;float&#39;?</title>
		<link>http://www.allegro.cc/forums/view/606527</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Fri, 25 Feb 2011 22:40:25 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Allegro 5 graphics routines take floats as parameters. In GUIs, coordinates are usually expressed as ints.</p><p>What is the better approach, in your opinion? should the widgets&#39; coordinate properties (position, size, thickness etc) be specified as floats or ints?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (axilmar)</author>
		<pubDate>Fri, 25 Feb 2011 22:08:54 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Mouse coordinates in A5 are still integers, so I say go with integers. Then you don&#39;t have to waste time with a bunch of casts in hit tests. The drawing routines take floats though, so you would still have to cast/adjust those.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Edgar Reynaldo)</author>
		<pubDate>Fri, 25 Feb 2011 22:26:05 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I think the bigger question is whether or not you want to support transformations. i.e., Should somebody be able to set up the screen to go from (0,0)-(1,1) and it still work with your GUI?</p><p>If the answer is no, then just use integers.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Matthew Leverton)</author>
		<pubDate>Fri, 25 Feb 2011 22:40:25 +0000</pubDate>
	</item>
</rss>
