FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to use CairoRectangle?

 
Post new topic   Reply to topic     Forum Index -> gtkD
View previous topic :: View next topic  
Author Message
Rinick



Joined: 08 Dec 2008
Posts: 1

PostPosted: Mon Dec 08, 2008 8:01 pm    Post subject: How to use CairoRectangle? Reply with quote

Cairo use double value coordinates.
This is important because there are transform, scale and rotate
But gtkD remove CairoRectangle and use GdkRectangle instead, which use integer value.
I don't understand why you did that.
Why not just use opCast to convert from GdkRectangle to CairoRectangle?

Besides, Cairo also support windows and mac surface, it's weird that Cairo import GDK classes everywhere.
Back to top
View user's profile Send private message
Mike Wey



Joined: 07 May 2007
Posts: 428

PostPosted: Tue Dec 09, 2008 1:55 pm    Post subject: Re: How to use CairoRectangle? Reply with quote

Rinick wrote:
Cairo use double value coordinates.
This is important because there are transform, scale and rotate
But gtkD remove CairoRectangle and use GdkRectangle instead, which use integer value.
I don't understand why you did that.
Why not just use opCast to convert from GdkRectangle to CairoRectangle?


The function that excepts the CairoRectangle should still there, there are only a few gdk_cairo functions aded to cairo.Context.

Quote:
Besides, Cairo also support windows and mac surface, it's weird that Cairo import GDK classes everywhere.


as far as i know only cairo.Context imports gdk classes for the gdk_cairo_ functions that are added to that class.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> gtkD All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group