ET++: Stepping through the redraw of a changed ImageItem

VObject::InvalidateRect() checks that the invalid rectangle actually overlaps the content of this VObject, and if so, it passes the invalidation information (the rectangle) up to its container. The container converts the rectangle to its own coordinate system, and the process continues until it reaches the containing window which has overridden VObject::InvalidateRect() with Window::InvalidateRect().


void VObject::InvalidateRect(Rectangle r)
{
	if (r.Clip(contentRect) && IsOpen() && GetContainer())
		GetContainer()->InvalidateViewRect(r);
}

void VObject::InvalidateViewRect(Rectangle r)
{
	r.origin= ContainerPoint(r.origin);
	InvalidateRect(r);
}

Back to the top of the invalidate/redraw description

Back to the top of the ET++ pages