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

Method OnLButtonDown

Rendering/UI/vtkWin32RenderWindowInteractor.cxx:675–693  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

673
674//------------------------------------------------------------------------------
675int vtkWin32RenderWindowInteractor::OnLButtonDown(HWND wnd, UINT nFlags, int X, int Y, int repeat)
676{
677 if (!this->Enabled)
678 {
679 return 0;
680 }
681
682 // touch events handled by WM_TOUCH
683 if ((GetMessageExtraInfo() & MOUSEEVENTF_FROMTOUCH) == MOUSEEVENTF_FROMTOUCH)
684 {
685 return 0;
686 }
687
688 SetFocus(wnd);
689 SetCapture(wnd);
690 this->SetEventInformationFlipY(X, Y, nFlags & MK_CONTROL, nFlags & MK_SHIFT, 0, repeat);
691 this->SetAltKey((GetKeyState(VK_MENU) & 0x8000) != 0);
692 return this->InvokeEvent(vtkCommand::LeftButtonPressEvent, nullptr);
693}
694
695//------------------------------------------------------------------------------
696int vtkWin32RenderWindowInteractor::OnLButtonUp(HWND, UINT nFlags, int X, int Y)

Callers 1

vtkHandleMessage2Function · 0.45

Calls 1

InvokeEventMethod · 0.80

Tested by

no test coverage detected