Tom Poole
6bf9bb9a2e
Add final specifiers in implementation files
1 year ago
Tom Poole
4153d59e39
Formatting
1 year ago
Anthony Nicholls
cff722a4af
GUI Basics: Refactor juce_gui_basics file structure
- Created a new detail namespace
- Moved shared module implementation details into the detail namespace
- Split dependencies so source files only rely on details in the detail namespace
- Removed all code from the juce_gui_basics.cpp file
2 years ago
reuk
b7beb42153
DragAndDropContainer: Avoid out-parameters
2 years ago
Tom Poole
0cd2b5c2d8
Docs: Add a link to TooltipWindow from SettableTooltipClient
2 years ago
attila
a115c99da4
MouseInputSource: Avoid wrong ComponentPeer association
When the mouse moves from one window to another, the mouseExit event
for the old window can occur after the mouseMove event for the new.
Until this commit this would cause the MouseInputSource to be
associated with the old window, and getComponentUnderMouse() would
incorrectly return a nullptr.
2 years ago
reuk
8b8ae10059
Build: Replace JUCE_NODISCARD with [[nodiscard]]
2 years ago
attila
acc6addb86
DragAndDropContainer: Manage keyboard focus for the drag image when the target needs it hidden
The previous implementation would trigger assertions in
grabKeyboardFocus() when the DragImageComponent was hidden due to the
target returning false from shouldDrawDragImageWhenOver().
Hiding the image would also mean that its keyboard focus was lost. Now
focus is restored when the image becomes visible again.
2 years ago
attila
032cc528c8
DragAndDropContainer: Fix the escape key dismissing the drag operation
3 years ago
attila
74af7b11ec
DragAndDropContainer: Fix the escape key dismissing the drag operation
3 years ago
Tom Poole
2ec861d99e
Update licensing banners to JUCE 7
3 years ago
Tom Poole
dea3fe60e4
Update copyright banners
3 years ago
reuk
eb6e579f0a
ComponentPeer: Correctly scale drag and drop coordinates to account for global scale
3 years ago
reuk
1d1d743b9f
Build: Add -Wdeprecated to recommended flags and fix new warnings
3 years ago
Attila Szarvas
101a886821
MouseInputSource: Eliminate superfluous drag events caused by pressure change
The bug was triggered on Monterey where a pressure of 1 is reported
while a mouse button is being held down. This caused an extra drag
event being triggered between mouse down and up events, even if no
movement occurred.
3 years ago
reuk
82df66100c
MouseCursor: Allow arbitrarily-sized cursors on Windows
3 years ago
reuk
03428561ed
ScaledImage: Use in a few more places
3 years ago
reuk
34fdea0708
DragAndDropContainer: Allow custom scaling
3 years ago
reuk
eca02270ee
Component: Add Point<float> overloads for some common functions
3 years ago
reuk
fe4515adb6
MouseCursor: Refactor platform-specific MouseCursor internals
This new factoring is a bit more typesafe, as it avoids casting
internals to void*.
It also allows cursors to scale appropriately on high resolution
displays on Windows.
3 years ago
reuk
5c50ee4f94
MouseCursor: Simplify implementation using shared_ptr instead of manual refcounting
3 years ago
ed
b9542ccc4c
Update code to use C++14 [[deprecated]] attribute
This commit removes the various compiler-specific JUCE_DEPRECATED macros and replaces them with C++14's deprecated attribute. It also removes the JUCE_CATCH_DEPRECATED_CODE_MISUSE flag as we can rely on the override specifier catching usage of these old virtual methods, and tidies up the DOXYGEN preprocessor checks as they were inconsistent across the codebase.
3 years ago
Attila Szarvas
823bfb0c32
DragAndDropContainer: fix positioning when source Component is transformed
3 years ago
ed
550127945d
Added floating-point implementations for some Component hit-testing methods to improve reliability when dealing with scaled Components
4 years ago
reuk
394c4fd475
Clang: Fix warnings when building with clang 10
4 years ago
ed
009d685179
Updated all license headers
4 years ago
Tom Poole
894e7d2bd2
Updated all license headers
5 years ago
Tom Poole
2d16374b14
Updated all license headers
5 years ago
reuk
327f817b9b
Copyrights: Update commercial/gpl headers to be gpl-only
5 years ago
ed
a313357d39
Update DragAndDropTarget::SourceDetails::localPosition before calling DragAndDropContainer::dragOperationStarted()
5 years ago
ed
a54da0b832
Fixed some more typos
5 years ago
Tom Poole
16dd26649a
Fixed some GCC compiler warnings and removed deprecated functions
6 years ago
Tom Poole
a9a0f6b92f
Enforced more comprehensive const-correctness in the JUCE container classes
6 years ago
ed
46a97e1f2c
Linux: Recreate mouse cursors when showing them on a different display to the one that they were originally created on
6 years ago
ed
b1c4d981da
Fixed an iOS multitouch bug and added MouseInputSource::offscreenMousePos to replace some magic numbers
6 years ago
ed
56302416df
Remove check for touch input in MouseInputSourceInternal::getRawScreenPosition() and instead use the cached mouse position from the native peer impls
6 years ago
ed
a234721110
Added various clang-tidy modernize-* fixes
6 years ago
jules
cadac817c6
Enabled some more warning flags in Xcode, and fixed the problems they caused
6 years ago
jules
df5be847c3
Removed a redundant method and did some minor tidying
6 years ago
Tom Poole
a3219c7fc6
Linux: Fixed a DragAndDrop issue between different containers
6 years ago
Tom Poole
e763ac3de2
Fixed a bug when performing a DragAndDrop across windows
6 years ago
Tom Poole
9dde83e662
Fixed a z-order bug when DragAndDrop-ing between plug-in windows
6 years ago
ed
4280b51d09
Made the DragAndDropContainer::performExternalDragDropOfFiles() and ::performExternalDragDropOfText() methods asynchronous on Windows so that behaviour is consistent across all platforms and updated the documentation to reflect this
6 years ago
Tom Poole
6cff481c6a
Fixed some gcc 8 compiler warnings
6 years ago
jules
7ab4d1708b
Some misc cleanups, mainly around WeakReference usage and rectangles
6 years ago
jules
974b4a8351
Removed some legacy friend class declarations that are no longer needed with modern compilers
7 years ago
jules
ea43a1f57d
Provided a public field MouseEvent::mouseDownPosition, to provide a floating point version of the mouse-down pos
7 years ago
jules
dee78f29f6
Misc cleanups and modernisation
7 years ago
ed
481221a256
Cleaned up the ModifierKeys class and removed the peer-specific implementations of ModifierKeys::getCurrentModifiersRealtime() and ModifierKeys::updateCurrentModifiers()
7 years ago
ed
5fdfe3ceda
Clarified the documentation of MouseEvent::mouseWasDraggedSinceMouseDown()
7 years ago