MCPcopy Create free account
hub / github.com/Kitware/VTK / SetCursorPosition

Method SetCursorPosition

Rendering/OpenGL2/vtkWin32OpenGLRenderWindow.cxx:1400–1412  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

1398
1399//------------------------------------------------------------------------------
1400void vtkWin32OpenGLRenderWindow::SetCursorPosition(int x, int y)
1401{
1402 const int* size = this->GetSize();
1403
1404 POINT point;
1405 point.x = x;
1406 point.y = size[1] - y - 1;
1407
1408 if (ClientToScreen(this->WindowId, &point))
1409 {
1410 SetCursorPos(point.x, point.y);
1411 }
1412}
1413
1414//------------------------------------------------------------------------------
1415void vtkWin32OpenGLRenderWindow::SetCurrentCursor(int shape)

Callers 4

cursor3D.pyFile · 0.80
SetCursorMethod · 0.80
SetUpMethod · 0.80

Calls 1

GetSizeMethod · 0.95

Tested by

no test coverage detected