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

Method OnMButtonDown

Rendering/UI/vtkWin32RenderWindowInteractor.cxx:715–726  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

713
714//------------------------------------------------------------------------------
715int vtkWin32RenderWindowInteractor::OnMButtonDown(HWND wnd, UINT nFlags, int X, int Y, int repeat)
716{
717 if (!this->Enabled)
718 {
719 return 0;
720 }
721 SetFocus(wnd);
722 SetCapture(wnd);
723 this->SetEventInformationFlipY(X, Y, nFlags & MK_CONTROL, nFlags & MK_SHIFT, 0, repeat);
724 this->SetAltKey((GetKeyState(VK_MENU) & 0x8000) != 0);
725 return this->InvokeEvent(vtkCommand::MiddleButtonPressEvent, nullptr);
726}
727
728//------------------------------------------------------------------------------
729int vtkWin32RenderWindowInteractor::OnMButtonUp(HWND, UINT nFlags, int X, int Y)

Callers 1

vtkHandleMessage2Function · 0.45

Calls 1

InvokeEventMethod · 0.80

Tested by

no test coverage detected