1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

DocumentWindow: Ensure button callbacks are called on Windows

This commit is contained in:
reuk 2024-09-30 12:39:47 +01:00
parent 1798b12d4b
commit c02ec2e3d5
4 changed files with 63 additions and 3 deletions

View file

@ -925,9 +925,32 @@ public:
window's caption area to the edge of the screen), double-clicking a horizontal border to
stretch a window vertically, and the window tiling flyout that appears when hovering the
mouse over the maximise button.
This is called by the peer. Component subclasses may override this but should not call it directly.
*/
virtual WindowControlKind findControlAtPoint (Point<float>) const { return WindowControlKind::client; }
/** For components that are added to the desktop, this may be called to indicate that the mouse
was clicked inside the area of the "close" control. This is currently only called on Windows.
This is called by the peer. Component subclasses may override this but should not call it directly.
*/
virtual void windowControlClickedClose() {}
/** For components that are added to the desktop, this may be called to indicate that the mouse
was clicked inside the area of the "minimise" control. This is currently only called on Windows.
This is called by the peer. Component subclasses may override this but should not call it directly.
*/
virtual void windowControlClickedMinimise() {}
/** For components that are added to the desktop, this may be called to indicate that the mouse
was clicked inside the area of the "maximise" control. This is currently only called on Windows.
This is called by the peer. Component subclasses may override this but should not call it directly.
*/
virtual void windowControlClickedMaximise() {}
/** Changes the default return value for the hitTest() method.
Setting this to false is an easy way to make a component pass all its mouse events