View previous topic :: View next topic |
Author |
Message |
Rinick
Joined: 08 Dec 2008 Posts: 1
|
Posted: Mon Dec 08, 2008 8:01 pm Post subject: How to use CairoRectangle? |
|
|
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 |
|
|
Mike Wey
Joined: 07 May 2007 Posts: 428
|
Posted: Tue Dec 09, 2008 1:55 pm Post subject: Re: How to use CairoRectangle? |
|
|
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 |
|
|
|
|
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
|