Re: Gtk+ 3.0 Theming API Hackfest Minutes



2009/3/2 Behdad Esfahbod <behdad behdad org>:
> Alberto Ruiz wrote:
>> * All drawing funcitions to use a cario context and hide GtkWidget and
>> GdkWindow (Strong request from 3rd party toolkits)
>
> When we discussed this before, I among others suggested that this is wrong as
> it hardcodes cairo as the only supported drawing system in the API.  For
> example, one wouldn't be able to use OpenGL for drawing anymore.

Well, you can always get the native device of the surface. This works
for Windows and Mac native drawing APIs. You can then create an OpenGL
context out that (someone correct me if I'm wrong here).

A bit tricky, we might add facilities for that, but most engines are
going to use cairo anyway.

> Instead I suggest an opaque object be passed to the draw function, then have
> constructors for various drawing APIs.  Say:
>
> cairo_t *
> gtk_themeable_window_create_cairo (GtkThemeableWindow *w);
>
> behdad
>



-- 
Un saludo,
Alberto Ruiz


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]