Re: No matching function for call to Gdk::Window::invalidate_rect(int, bool)



Hi Francois,
try passing in a rectangle instead of a number. If you were passing in 0 as in "NULL" that function doesn't take pointers, it takes a reference to a rectangle, that means you need to use an actual rectangle object and not a pointer to one or anything else.

doing

Rectangle myRect;

drawing_area->get_window()->invalidate_rect(myRect, false) ;


would work for example.

François Legendre wrote:
Hello,

I get the following error from g++:

No matching function for call to «Gdk::Window::invalidate_rect(int, bool)

The documentation says:

==========
void Gdk::Window::invalidate_rect(const Rectangle& rect, bool
invalidate_children)

A convenience wrapper around gdk_window_invalidate_region() which
invalidates a rectangular region.

See gdk_window_invalidate_region() for details.

Parameters:
 rect Rectangle to invalidate or 0 to invalidate the whole window.
 invalidate_children Whether to also invalidate child windows.
==========

So I try to code

drawing_area->get_window()->invalidate_rect(0, false) ;

and I get the previous error.

Any ideas ?

François
_______________________________________________
gtkmm-list mailing list
gtkmm-list gnome org
http://mail.gnome.org/mailman/listinfo/gtkmm-list




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