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

Method OnFocus

Rendering/UI/vtkWin32RenderWindowInteractor.cxx:846–862  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

844
845//------------------------------------------------------------------------------
846int vtkWin32RenderWindowInteractor::OnFocus(HWND, UINT)
847{
848 if (!this->Enabled)
849 {
850 return 0;
851 }
852
853#ifdef VTK_USE_TDX
854 if (this->Device->GetInitialized() && !this->Device->GetIsListening())
855 {
856 this->Device->StartListening();
857 return 1;
858 }
859#endif
860
861 return 0;
862}
863
864//------------------------------------------------------------------------------
865int vtkWin32RenderWindowInteractor::OnKillFocus(HWND, UINT)

Callers 1

vtkHandleMessage2Function · 0.80

Calls 2

StartListeningMethod · 0.80
GetInitializedMethod · 0.45

Tested by

no test coverage detected