/// <summary> /// Fires a queue draw, if there is one. If the invalidated /// region is empty, there are no updated and the queue is not /// called. /// </summary> public void FireQueueDraw(Widget widget) { Rectangle r = GetInvalidatedRegion(); if (!r.IsEmpty) { widget.QueueDrawArea(r.X, r.Y, r.Width, r.Height); } }
public static void VidgetBackendInvalidate(this Widget widget, Xwt.Rectangle rect) { widget.QueueDrawArea((int)rect.X, (int)rect.Y, (int)rect.Width, (int)rect.Height); }