mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Resizing using window manager functionality (e.g. clicking and dragging in the non-client area) will send WM_SIZING to the window, which in turn will enable continuous repainting in the D2D renderer until the resize operation ends. Continuous repainting is required in order for the window to display correctly during the resize. Without continuous repainting, some frames may not be completely painted, and may display with black areas, producing a flickery effect. When a resize is controlled entirely by the client, e.g. using the corner resizer in the AudioPluginDemo standalone, WM_SIZING is never posted. Instead, we assume that if the window has captured the cursor during a setBounds call then it is probably resizing. We enable continuous repainting in this case, and stop repainting once the window releases the mouse. An alternative appropach would be to add some kind of start/stop resize API to ComponentPeer. I'm currently reluctant to do that because the ComponentPeer API is already so large. |
||
|---|---|---|
| .. | ||
| juce_CoreGraphicsContext_mac.h | ||
| juce_CoreGraphicsContext_mac.mm | ||
| juce_CoreGraphicsHelpers_mac.h | ||
| juce_Direct2DGraphicsContext_windows.cpp | ||
| juce_Direct2DGraphicsContext_windows.h | ||
| juce_Direct2DHelpers_windows.cpp | ||
| juce_Direct2DHwndContext_windows.cpp | ||
| juce_Direct2DHwndContext_windows.h | ||
| juce_Direct2DImage_windows.cpp | ||
| juce_Direct2DImage_windows.h | ||
| juce_Direct2DImageContext_windows.cpp | ||
| juce_Direct2DImageContext_windows.h | ||
| juce_Direct2DMetrics_windows.cpp | ||
| juce_Direct2DMetrics_windows.h | ||
| juce_Direct2DResources_windows.cpp | ||
| juce_DirectWriteTypeface_windows.cpp | ||
| juce_DirectX_windows.h | ||
| juce_EventTracing.h | ||
| juce_Fonts_android.cpp | ||
| juce_Fonts_freetype.cpp | ||
| juce_Fonts_linux.cpp | ||
| juce_Fonts_mac.mm | ||
| juce_GraphicsContext_android.cpp | ||
| juce_IconHelpers_android.cpp | ||
| juce_IconHelpers_linux.cpp | ||
| juce_IconHelpers_mac.cpp | ||
| juce_IconHelpers_windows.cpp | ||
| juce_RenderingHelpers.h | ||