Re: [gtk-list] gtk_widget_queue_draw() / gtk_widget_size_request()




On Fri, 6 Aug 1999, Peter Lerner wrote:
> 
> - gtk_widget_queue_draw()
> 
>   can someone explain queue-drawing and how the merging of
>   areas really works? when do i need to call this function?
>   what does it do?
>

You never need to call it; it just schedules a redraw of the widget when
Gtk runs out of events. So a series of events will cause only a single
redraw. Gtk calls it for you when necessary.
 
> - gtk_widget_size_request()/gtk_widget_real_size_request()
>   
>   when does a size_request signal get emitted and what is 
>   it exactly good for? when do i have to use 
>   gtk_widget_size_request() myself?
> 

You never need to use this either; it's used by container widgets to ask 
their children how much space they'd like to have. real_size_request() is
the default signal handler, size_request() is the function which emits the
signal.

Havoc




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