<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Yet about custom widgets with Cairo</title>
	<atom:link href="http://blogs.gnome.org/brunobol/2008/03/11/yet-about-custom-widgets-with-cairo/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.gnome.org/brunobol/2008/03/11/yet-about-custom-widgets-with-cairo/</link>
	<description></description>
	<lastBuildDate>Sun, 28 Aug 2011 07:52:59 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: brunobol</title>
		<link>http://blogs.gnome.org/brunobol/2008/03/11/yet-about-custom-widgets-with-cairo/comment-page-1/#comment-204</link>
		<dc:creator>brunobol</dc:creator>
		<pubDate>Tue, 11 Mar 2008 17:11:49 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.gnome.org/brunobol/2008/03/11/yet-about-custom-widgets-with-cairo/#comment-204</guid>
		<description>@Jonh:

Yeah. But... I&#039;m creating the widget first, I&#039;ll paint the right colors after  coding. Thanks!

@Davyd and Karl:

Thanks again... sometimes I forget to use math. :( It simplifies everything!!!</description>
		<content:encoded><![CDATA[<p>@Jonh:</p>
<p>Yeah. But&#8230; I&#8217;m creating the widget first, I&#8217;ll paint the right colors after  coding. Thanks!</p>
<p>@Davyd and Karl:</p>
<p>Thanks again&#8230; sometimes I forget to use math. <img src='http://blogs.gnome.org/brunobol/wp-content/mu-plugins/tango-smilies/tango/face-sad.png' alt=':(' class='wp-smiley' />  It simplifies everything!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karl Lattimer</title>
		<link>http://blogs.gnome.org/brunobol/2008/03/11/yet-about-custom-widgets-with-cairo/comment-page-1/#comment-203</link>
		<dc:creator>Karl Lattimer</dc:creator>
		<pubDate>Tue, 11 Mar 2008 17:11:13 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.gnome.org/brunobol/2008/03/11/yet-about-custom-widgets-with-cairo/#comment-203</guid>
		<description>Qball: I find them interesting too and again, less holiday snaps etc... The comment wasn&#039;t about censorship it was about speeding up Bruno&#039;s access to help. 

Maybe I was a little hasty in what I said.</description>
		<content:encoded><![CDATA[<p>Qball: I find them interesting too and again, less holiday snaps etc&#8230; The comment wasn&#8217;t about censorship it was about speeding up Bruno&#8217;s access to help. </p>
<p>Maybe I was a little hasty in what I said.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Qball</title>
		<link>http://blogs.gnome.org/brunobol/2008/03/11/yet-about-custom-widgets-with-cairo/comment-page-1/#comment-202</link>
		<dc:creator>Qball</dc:creator>
		<pubDate>Tue, 11 Mar 2008 12:46:50 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.gnome.org/brunobol/2008/03/11/yet-about-custom-widgets-with-cairo/#comment-202</guid>
		<description>Karl: I like blogs like this, and I always read the suggestions given. Not because I don&#039;t know how I could do it, but because I find it very interesting to see how other people would solve it. Personally I find this more interesting then somebodies last meal or holiday pictures.

but that is my  €0,0129</description>
		<content:encoded><![CDATA[<p>Karl: I like blogs like this, and I always read the suggestions given. Not because I don&#8217;t know how I could do it, but because I find it very interesting to see how other people would solve it. Personally I find this more interesting then somebodies last meal or holiday pictures.</p>
<p>but that is my  €0,0129</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonh Wendell</title>
		<link>http://blogs.gnome.org/brunobol/2008/03/11/yet-about-custom-widgets-with-cairo/comment-page-1/#comment-201</link>
		<dc:creator>Jonh Wendell</dc:creator>
		<pubDate>Tue, 11 Mar 2008 12:11:31 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.gnome.org/brunobol/2008/03/11/yet-about-custom-widgets-with-cairo/#comment-201</guid>
		<description>Hey, Bruno, are you writing a memory game? If it&#039;s what I&#039;m thinking, I guess each part of the circle must have a different color, right? ;)</description>
		<content:encoded><![CDATA[<p>Hey, Bruno, are you writing a memory game? If it&#8217;s what I&#8217;m thinking, I guess each part of the circle must have a different color, right? <img src='http://blogs.gnome.org/brunobol/wp-content/mu-plugins/tango-smilies/tango/face-wink.png' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karl Lattimer</title>
		<link>http://blogs.gnome.org/brunobol/2008/03/11/yet-about-custom-widgets-with-cairo/comment-page-1/#comment-200</link>
		<dc:creator>Karl Lattimer</dc:creator>
		<pubDate>Tue, 11 Mar 2008 10:47:54 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.gnome.org/brunobol/2008/03/11/yet-about-custom-widgets-with-cairo/#comment-200</guid>
		<description>Olav, I&#039;m not saying its a bad thing to post about learning something, I&#039;m saying two questions in two days both of which could be answered on IRC or a mailing list faster. There&#039;s nothing wrong with Bruno posting this to pgo, but in his own interests finding answers through other places would be faster.</description>
		<content:encoded><![CDATA[<p>Olav, I&#8217;m not saying its a bad thing to post about learning something, I&#8217;m saying two questions in two days both of which could be answered on IRC or a mailing list faster. There&#8217;s nothing wrong with Bruno posting this to pgo, but in his own interests finding answers through other places would be faster.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ovitters</title>
		<link>http://blogs.gnome.org/brunobol/2008/03/11/yet-about-custom-widgets-with-cairo/comment-page-1/#comment-199</link>
		<dc:creator>ovitters</dc:creator>
		<pubDate>Tue, 11 Mar 2008 10:34:32 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.gnome.org/brunobol/2008/03/11/yet-about-custom-widgets-with-cairo/#comment-199</guid>
		<description>Karl: People are free to post on their blog whatever they want. Yes, it gets syndicated by p.g.o. However, that is the intentention of p.g.o. (showing their whole feed). Brunobol is learning Cairo and sharing that with the world. IMO all good.. there is even the possibility that it will help others.</description>
		<content:encoded><![CDATA[<p>Karl: People are free to post on their blog whatever they want. Yes, it gets syndicated by p.g.o. However, that is the intentention of p.g.o. (showing their whole feed). Brunobol is learning Cairo and sharing that with the world. IMO all good.. there is even the possibility that it will help others.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karl Lattimer</title>
		<link>http://blogs.gnome.org/brunobol/2008/03/11/yet-about-custom-widgets-with-cairo/comment-page-1/#comment-198</link>
		<dc:creator>Karl Lattimer</dc:creator>
		<pubDate>Tue, 11 Mar 2008 10:20:49 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.gnome.org/brunobol/2008/03/11/yet-about-custom-widgets-with-cairo/#comment-198</guid>
		<description>brunobol, you don&#039;t have to be an expert in cairo or gtk, its basic math! 

planet.gnome.org isn&#039;t really the right place to be asking these kinds of questions, if you&#039;re having that much trouble figuring out how this kind of thing is done you should probably start by taking a few steps back and learning programming with mathematics, and comparisons (oh and get graph paper, graph paper rocks almost as much as cairo)

Ask in the IRC channels around or if you like email me directly, I&#039;d gladly help you with these kinds of simple problems, especially if you send me the code :)</description>
		<content:encoded><![CDATA[<p>brunobol, you don&#8217;t have to be an expert in cairo or gtk, its basic math! </p>
<p>planet.gnome.org isn&#8217;t really the right place to be asking these kinds of questions, if you&#8217;re having that much trouble figuring out how this kind of thing is done you should probably start by taking a few steps back and learning programming with mathematics, and comparisons (oh and get graph paper, graph paper rocks almost as much as cairo)</p>
<p>Ask in the IRC channels around or if you like email me directly, I&#8217;d gladly help you with these kinds of simple problems, especially if you send me the code <img src='http://blogs.gnome.org/brunobol/wp-content/mu-plugins/tango-smilies/tango/face-smile.png' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Davyd</title>
		<link>http://blogs.gnome.org/brunobol/2008/03/11/yet-about-custom-widgets-with-cairo/comment-page-1/#comment-197</link>
		<dc:creator>Davyd</dc:creator>
		<pubDate>Tue, 11 Mar 2008 10:19:38 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.gnome.org/brunobol/2008/03/11/yet-about-custom-widgets-with-cairo/#comment-197</guid>
		<description>Well, you&#039;ve got a couple of options.

You could set it up as 4 different paths and test these individually (hint, rather than recreating the path each time, it may be easier to save them and test against the saved versions).

Instead of testing whether or not you&#039;re inside a path using Cairo, you could do the calculation by hand using some practical geometry (aka. by steam).

Or finally, depending on how much further work you&#039;re going to need to do, you could use Goocanvas to create several canvas objects (it&#039;s pretty easy to create a Goocanvas object directly from a path). Canvas objects can have signals connected to them, like button-press-event, enter-notify-event, etc. If you&#039;re having to interact with, change properties of, or move lots of items within your custom widget, GooCanvas may be the way to go (it&#039;s possible to subclass a GooCanvas into an opaque widget if you wish).</description>
		<content:encoded><![CDATA[<p>Well, you&#8217;ve got a couple of options.</p>
<p>You could set it up as 4 different paths and test these individually (hint, rather than recreating the path each time, it may be easier to save them and test against the saved versions).</p>
<p>Instead of testing whether or not you&#8217;re inside a path using Cairo, you could do the calculation by hand using some practical geometry (aka. by steam).</p>
<p>Or finally, depending on how much further work you&#8217;re going to need to do, you could use Goocanvas to create several canvas objects (it&#8217;s pretty easy to create a Goocanvas object directly from a path). Canvas objects can have signals connected to them, like button-press-event, enter-notify-event, etc. If you&#8217;re having to interact with, change properties of, or move lots of items within your custom widget, GooCanvas may be the way to go (it&#8217;s possible to subclass a GooCanvas into an opaque widget if you wish).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: brunobol</title>
		<link>http://blogs.gnome.org/brunobol/2008/03/11/yet-about-custom-widgets-with-cairo/comment-page-1/#comment-196</link>
		<dc:creator>brunobol</dc:creator>
		<pubDate>Tue, 11 Mar 2008 09:56:07 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.gnome.org/brunobol/2008/03/11/yet-about-custom-widgets-with-cairo/#comment-196</guid>
		<description>@Davyd:

If I use cairo_in_fill I only can test the total filled area.  I&#039;d like to test if click happens in the top-left, top-right, bottom-left or bottom-right paths.

@Karl:

I&#039;m doing it because I&#039;m not a expert in gtk+ / cairo / programming.</description>
		<content:encoded><![CDATA[<p>@Davyd:</p>
<p>If I use cairo_in_fill I only can test the total filled area.  I&#8217;d like to test if click happens in the top-left, top-right, bottom-left or bottom-right paths.</p>
<p>@Karl:</p>
<p>I&#8217;m doing it because I&#8217;m not a expert in gtk+ / cairo / programming.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karl Lattimer</title>
		<link>http://blogs.gnome.org/brunobol/2008/03/11/yet-about-custom-widgets-with-cairo/comment-page-1/#comment-195</link>
		<dc:creator>Karl Lattimer</dc:creator>
		<pubDate>Tue, 11 Mar 2008 07:39:07 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.gnome.org/brunobol/2008/03/11/yet-about-custom-widgets-with-cairo/#comment-195</guid>
		<description>I don&#039;t understand why you&#039;re blogging this? This is basic math, hook up the motion notify event and start doing the comparisons. 

Like your last post, get a polar distance from the centre and calculate if that is larger than the radius, with this its a simple rectangular comparison.</description>
		<content:encoded><![CDATA[<p>I don&#8217;t understand why you&#8217;re blogging this? This is basic math, hook up the motion notify event and start doing the comparisons. </p>
<p>Like your last post, get a polar distance from the centre and calculate if that is larger than the radius, with this its a simple rectangular comparison.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
<!-- This Quick Cache file was built for (  blogs.gnome.org/brunobol/2008/03/11/yet-about-custom-widgets-with-cairo/feed/ ) in 1.19667 seconds, on Feb 11th, 2012 at 4:29 am UTC. -->
<!-- This Quick Cache file will automatically expire ( and be re-built automatically ) on Feb 11th, 2012 at 5:29 am UTC -->
