How to move, resize and redraw a window at the same time?



Hi,
  I just found that gdk_window_move_resize() can move and resize a gdk window at the same time to avoid flick. However I found that it's still not possible to redraw the window immediately after move and resize. I tried following code:
  gdk_window_move_resize(window_->window, x, y, width, height);
  gdk_window_invalidate_rect(window_->window, NULL, TRUE);
  gdk_window_process_updates(window_->window, TRUE);

  Expose handler will be called immediately, but using gdk_drawable_get_size() to check the window size inside expose handler, found that it's not updated immediately. So the window content still can't be updated immediately and flick is still noticeable.
  So I'm wondering is there and method to move, resize and redraw a window at the same time to avoid flick? And I'm wondering why there is no gtk_window_move_resize() for gtk window.

Regards
James Su


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