SpectrogramSettings &SpectrogramSettings::operator= (const SpectrogramSettings &other) { if (this != &other) { minFreq = other.minFreq; maxFreq = other.maxFreq; range = other.range; gain = other.gain; frequencyGain = other.frequencyGain; windowType = other.windowType; windowSize = other.windowSize; #ifdef EXPERIMENTAL_ZERO_PADDED_SPECTROGRAMS zeroPaddingFactor = other.zeroPaddingFactor; #endif isGrayscale = other.isGrayscale; scaleType = other.scaleType; #ifndef SPECTRAL_SELECTION_GLOBAL_SWITCH spectralSelection = other.spectralSelection; #endif algorithm = other.algorithm; #ifdef EXPERIMENTAL_FFT_Y_GRID fftYGrid = other.fftYGrid; #endif #ifdef EXPERIMENTAL_FIND_NOTES fftFindNotes = other.fftFindNotes; findNotesMinA = other.findNotesMinA; numberOfMaxima = other.numberOfMaxima; findNotesQuantize = other.findNotesQuantize; #endif // Invalidate the caches DestroyWindows(); } return *this; }
void CTTranslucent::RunTestCaseL(const TDesC& aTestName, TTestCase aTestCase, TInt aHorizontalWindows, TInt aVerticalWindows) { iTestCase = aTestCase; ConstructWindowsL(aHorizontalWindows, aVerticalWindows); iWsSession.Finish(); // Make sure all windows are drawn in their initial state/positions iProfiler->InitResults(); // Measure time taken to redraw all overlapping translucent windows // and repeat KIterationsToTest times for (int i = 0; i < KIterationsToTest; i++) { iProfiler->StartTimer(); iTopWindow->Window().SetVisible(EFalse); // hide ontop window to cause overlapping translucent windows to be redrawn iWsSession.Finish(); iProfiler->MarkResultSetL(); iTopWindow->Window().SetVisible(ETrue); // show ontop window iWsSession.Finish(); } iProfiler->ResultsAnalysis(aTestName, 0, 0, ScreenDevice()->BitmapDevice().DisplayMode(), KIterationsToTest); DestroyWindows(); }
CFFL_TextField::~CFFL_TextField() { for (const auto& it : m_Maps) it.second->InvalidateFocusHandler(this); // See comment in cffl_formfiller.h. // The font map should be stored somewhere more appropriate so it will live // until the PWL_Edit is done with it. pdfium:566 DestroyWindows(); }
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpszArgument, int nFunsterStil) { int result = EF5_ERROR_SUCCESS; if (!CreateWindows(hInstance)) { MessageBox(0, "Failed to create the needed windows.", "EF5", MB_ICONERROR); return EF5_ERROR_INVALIDCONF; } PrintStartupMessage(); _putenv("TZ=UTC"); _tzset(); g_config = new Config((lpszArgument[0]) ? lpszArgument : "control.txt"); if (g_config->ParseConfig() != CONFIG_SUCCESS) { result = EF5_ERROR_INVALIDCONF; } else { hThread = (HANDLE)_beginthread(threadProc, 0, NULL); } MsgLoop(); DestroyWindows(); (void)hPrevInstance; (void)lpszArgument; (void)nFunsterStil; return result; }
void System::Destroy(void) { if (m_pGraphics) { m_pGraphics->Destroy(); delete m_pGraphics; m_pGraphics = 0; } if (m_pInput) { delete m_pInput; m_pInput = 0; } if (m_pTimer) { delete m_pTimer; m_pTimer = NULL; } if (m_pFps) { delete m_pFps; m_pFps = NULL; } if (m_pCpu) { m_pCpu->Shutdown(); delete m_pCpu; m_pCpu = NULL; } DestroyWindows(); g_pSystem = NULL; }
SpectrogramSettings::~SpectrogramSettings() { DestroyWindows(); }
void SpectrogramSettings::InvalidateCaches() { DestroyWindows(); }
EditorBase::~EditorBase () { DestroyWindows(); }