Re: [gtkmm] forcing a redraw
- From: Chris Vine <chris cvine freeserve co uk>
- To: gtkmm-list gnome org
- Subject: Re: [gtkmm] forcing a redraw
- Date: Sun, 26 Jan 2003 17:39:56 +0000
On Sunday 26 January 2003 5:15 pm, Paul Davis wrote:
> >I believe the function you want is simply
> >
> >queue_draw();
> >
> >> while (gtk_events_pending())
> >> gtk_main_iteration();
> >>
> >> ?
> >>
> >> I mean, how can I force the redraw of a window or widget?
>
> there are two different situations:
>
> (a) you want to handle events and redraw widgets but not
> return control the "main event loop"
>
> (b) you want to force a redraw of a particular widget as
> soon as possible, but are happy to return control
> to the main event loop.
>
> case (a) is handled by the while() loop. case (b) is handled by
> queue_draw().
>
> and no, i don't know of the direct gtkmm equivalent.
With gtk-- 1.2 the equivalent is:
while(Gtk::Main::events_pending()) Gtk::Main::iteration();
The same static members of Gtk::Main are also in gtkmm-2.0, so I assume they
probably do the same.
Chris.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]