1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-19 13:40:49 +03:00

0030619: Draw Harness, ViewerTest - add continuous rendering option to vrepaint command

Aspect_Window::InvalidateContent() - added new virtual method for invalidating window content using platform-specific API.

TKDraw, tkLoop() on Window platform has been changed so that to prevent
continuous input window events blocking terminal input
(e.g. in case if processing events is not fast enough or
if another continuously sends new events).

TKViewerTest, on X11 platform has been fixed a message processing
so that to avoid messages being not processed.
Added aggregation of Exposer and ConfigureNotify events.
Fixed aggregation MotionNotify events.
This commit is contained in:
kgv
2019-03-28 18:36:54 +03:00
committed by apn
parent a738b534ca
commit 8693dfd0e8
9 changed files with 573 additions and 245 deletions

View File

@@ -355,4 +355,16 @@ void WNT_Window::SetPos (const Standard_Integer theX, const Standard_Integer th
aYBottom = theY1;
}
// =======================================================================
// function : InvalidateContent
// purpose :
// =======================================================================
void WNT_Window::InvalidateContent (const Handle(Aspect_DisplayConnection)& )
{
if (myHWindow != NULL)
{
::InvalidateRect ((HWND )myHWindow, NULL, TRUE);
}
}
#endif // _WIN32