Cairo Functionalities

View: New views
3 Messages — Rating Filter:   Alert me  

Parent Message unknown Cairo Functionalities

by Akshat Gupta :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

Can we make cairo a hard dependency for php-gtk? There are several functions
which require cairo support.

The famous ones include the gtk_print_context_* ones. More importantly,
direct cairo drawing support can be added by returning a CairoContext object
 from gdkWindow - leading to the availability of custom widgets.

So, we plan to define an #ifdef if cairo is found, and if it is not, we
simply don't build the corresponding methods (much like how the 2.8/2.10
overrides are handled currently). Is this approach OK?

Any comments or suggestions are greatly appreciated.

Regards,
Akshat Gupta

Re: Cairo Functionalities

by Andrei Zmievski :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Don't have a lot of time to think about it right now, but seems fine. Elizabeth,
Anant, how about you?

-Andrei

Akshat Gupta wrote:

> Hi,
>
> Can we make cairo a hard dependency for php-gtk? There are several functions
> which require cairo support.
>
> The famous ones include the gtk_print_context_* ones. More importantly,
> direct cairo drawing support can be added by returning a CairoContext object
>  from gdkWindow - leading to the availability of custom widgets.
>
> So, we plan to define an #ifdef if cairo is found, and if it is not, we
> simply don't build the corresponding methods (much like how the 2.8/2.10
> overrides are handled currently). Is this approach OK?
>
> Any comments or suggestions are greatly appreciated.
>
> Regards,
> Akshat Gupta
>

--
PHP-GTK Development Mailing List (http://gtk.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: Cairo Functionalities

by Anant Narayanan :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Elizabeth and I discussed this on IRC earlier, and decided it would be  
best to go ahead with #ifdef's, just like we do for 2.10/2.12 widgets  
currently.

--
Anant

On 09-Jul-08, at 7:59 PM, Andrei Zmievski wrote:

> Don't have a lot of time to think about it right now, but seems  
> fine. Elizabeth, Anant, how about you?
>
> -Andrei
>
> Akshat Gupta wrote:
>> Hi,
>> Can we make cairo a hard dependency for php-gtk? There are several  
>> functions
>> which require cairo support.
>> The famous ones include the gtk_print_context_* ones. More  
>> importantly,
>> direct cairo drawing support can be added by returning a  
>> CairoContext object
>> from gdkWindow - leading to the availability of custom widgets.
>> So, we plan to define an #ifdef if cairo is found, and if it is  
>> not, we
>> simply don't build the corresponding methods (much like how the  
>> 2.8/2.10
>> overrides are handled currently). Is this approach OK?
>> Any comments or suggestions are greatly appreciated.
>> Regards,
>> Akshat Gupta
>
> --
> PHP-GTK Development Mailing List (http://gtk.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php


--
PHP-GTK Development Mailing List (http://gtk.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

LightInTheBox - Buy quality products at wholesale price