GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Sun Nov 23, 2014 12:21 pm

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: cairo surface help
PostPosted: Fri Mar 23, 2012 12:39 pm 
Offline
Familiar Face

Joined: Tue Dec 20, 2011 3:27 pm
Posts: 14
Hi all,

i have a simple problem, i draw several surfaces in a cairo context, with associated cairo_regions, that behave like buttons. Some of them remain below others so they are not visible.
Once i move the mouse over the images i check if i am "over" a button using cairo_region. But i get a "true" even for surfaces/regions that are not visible, in the bottom layers.
Is there a way to know, using cairo, if a surface is visible or if it is in the lower layers (not visible) ?

many thanks
Regards,
angelo


Top
 Profile  
 
 Post subject: Re: cairo surface help
PostPosted: Fri Mar 23, 2012 4:03 pm 
Offline

Joined: Wed Feb 29, 2012 5:56 pm
Posts: 2
Have you tried http://cairographics.org/manual/cairo-Regions.html ?

There are several functions that test regions


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group