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

Method OnLButtonUp

Rendering/UI/vtkWin32RenderWindowInteractor.cxx:696–712  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

694
695//------------------------------------------------------------------------------
696int vtkWin32RenderWindowInteractor::OnLButtonUp(HWND, UINT nFlags, int X, int Y)
697{
698 if (!this->Enabled)
699 {
700 return 0;
701 }
702 // touch events handled by WM_TOUCH
703 if ((GetMessageExtraInfo() & MOUSEEVENTF_FROMTOUCH) == MOUSEEVENTF_FROMTOUCH)
704 {
705 return 0;
706 }
707 this->SetEventInformationFlipY(X, Y, nFlags & MK_CONTROL, nFlags & MK_SHIFT);
708 this->SetAltKey((GetKeyState(VK_MENU) & 0x8000) != 0);
709 const int ret = this->InvokeEvent(vtkCommand::LeftButtonReleaseEvent, nullptr);
710 ReleaseCapture();
711 return ret;
712}
713
714//------------------------------------------------------------------------------
715int vtkWin32RenderWindowInteractor::OnMButtonDown(HWND wnd, UINT nFlags, int X, int Y, int repeat)

Callers 1

vtkHandleMessage2Function · 0.45

Calls 1

InvokeEventMethod · 0.80

Tested by

no test coverage detected