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

Method DestroyWindow

Rendering/OpenGL2/vtkXOpenGLRenderWindow.cxx:774–891  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

772}
773
774void vtkXOpenGLRenderWindow::DestroyWindow()
775{
776 // free the cursors
777 if (this->DisplayId)
778 {
779 if (this->WindowId)
780 {
781 // we will only have a cursor defined if a CurrentCursor has been
782 // set > 0 or if the cursor has been hidden... if we undefine without
783 // checking, bad things can happen (BadWindow)
784 if (this->GetCurrentCursor() || this->CursorHidden)
785 {
786 vtkXUndefineCursor(this->DisplayId, this->WindowId);
787 }
788 }
789 if (this->XCArrow)
790 {
791 vtkXFreeCursor(this->DisplayId, this->XCArrow);
792 }
793 if (this->XCCrosshair)
794 {
795 vtkXFreeCursor(this->DisplayId, this->XCCrosshair);
796 }
797 if (this->XCSizeAll)
798 {
799 vtkXFreeCursor(this->DisplayId, this->XCSizeAll);
800 }
801 if (this->XCSizeNS)
802 {
803 vtkXFreeCursor(this->DisplayId, this->XCSizeNS);
804 }
805 if (this->XCSizeWE)
806 {
807 vtkXFreeCursor(this->DisplayId, this->XCSizeWE);
808 }
809 if (this->XCSizeNE)
810 {
811 vtkXFreeCursor(this->DisplayId, this->XCSizeNE);
812 }
813 if (this->XCSizeNW)
814 {
815 vtkXFreeCursor(this->DisplayId, this->XCSizeNW);
816 }
817 if (this->XCSizeSE)
818 {
819 vtkXFreeCursor(this->DisplayId, this->XCSizeSE);
820 }
821 if (this->XCSizeSW)
822 {
823 vtkXFreeCursor(this->DisplayId, this->XCSizeSW);
824 }
825 if (this->XCHand)
826 {
827 vtkXFreeCursor(this->DisplayId, this->XCHand);
828 }
829 if (this->XCCustom)
830 {
831 vtkXFreeCursor(this->DisplayId, this->XCCustom);

Callers 1

FinalizeMethod · 0.95

Calls 4

MakeCurrentMethod · 0.95
EnsureGLXMethod · 0.95
CloseDisplayMethod · 0.95

Tested by

no test coverage detected