Re: GTK + SDL



"Ronald Bultje" <rbultje ronald bitfreak net> writes:

> Hi Scott,
> 
> >I use a drawing area inside of a frame for my SDL/GTK application.
> 
> I personally use an eventbox because the only goal of an eventbox is
> to have a X-window associated with it - which is all you'd need. The
> eventbox is the "most simple" widget for this - isn't a drawing box
> far too complicated for this goal?
> Might make a difference of 0,00000001% in performance ;-).

Not that it matters at all, but actually, GtkDrawingArea is
a simpler widget than GtkEventBox. GtkEventBox is a _container_
with a window, so has code for handling a child widget.

GtkDrawingArea, on the other hand, is just a widget with a 
window that the app can draw on.

Regards,
                                        Owen     




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