how to invalidate rect?

View: New views
2 Messages — Rating Filter:   Alert me  

how to invalidate rect?

by Michal Svoboda :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I've been trying to force a redraw of a particular portion of a window
(after painting to its pixbuf). Programs written in C use something like
invalidate_rect for this purpose.

GtkAda documentation mentions this as Gdk.Window.Invalidate_Rect, but
I can't find such function. First off, Window is a part of Gtk, not Gdk,
and even there is no Invalidate thinggy.

Any hints on this?

Regards,
Michal Svoboda
_______________________________________________
gtkada mailing list
gtkada@...
http://lists.adacore.com/mailman/listinfo/gtkada

Re: how to invalidate rect?

by Arnaud Charlet :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> GtkAda documentation mentions this as Gdk.Window.Invalidate_Rect, but

Right, that's the correct function.

> I can't find such function. First off, Window is a part of Gtk, not Gdk,

There is a package called Gdk.Window, which contains a procedure
Invalidate_Rect.

Arno
_______________________________________________
gtkada mailing list
gtkada@...
http://lists.adacore.com/mailman/listinfo/gtkada
LightInTheBox - Buy quality products at wholesale price