Re: Using the Look of GTK+ in FLTK

On Tue, Jun 12, 2012 at 10:49 PM, Torsten Giebl <wizard syntheticsw com> wrote:
> Hello !
>>> What would be the easiest way, to achieve that ?
>> use GTK, i would guess.
> I like FLTK and i would like helping it to look the same way
> as QT and GTK+ on nowadays desktop.
> Often people write two versions
> of their themes, one plugin for QT and one plugin for GTK+ or there are
> other plugins available like the GTK-QT-Engine, that is basically a GTK plugin
> using QT drawing commands.
> Populating a theme and writing three plugins for QT, GTK+ and FLTK
> is not an option for me, since most people already have their
> favourite theme in one of these toolkits most likely QT and GTK+.
> What i would like to do is, if in FLTK someboday calls
> Theme::Draw_Box (...) called the actual GTK+ theme function
> draw_box (...) into a Gdk Pixbuf and then blit that using FLTK
> funtions into the window.
> The second step works great.
> Now i have to get the first step working, calling the
> GTK+ theme function and getting the result into a Gdk PixBuf.
> Any examples on how to do that, would be great.
> Basically two questions:
> 1. How to call the theme functions from the actual theme ?

I don't know what a theme is. Perhaps you want the gtk_render_*
functions, and GtkStyleContext? Programs like LibreOffice/Mozilla fake
it using this.

> 2. How to get the image from a Gtk-Widget/Window to a Gdk Pixbuf ?

GdkPixbuf hasn't been used in GTK+ for some time now. We use cairo for drawing.

> Thanks.
> _______________________________________________
> gtk-list mailing list
> gtk-list gnome org


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