mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-02-06 04:00:08 +00:00
Minor fixes for mac strings, WAV format, DrawableButton hit tests, win32 clipboard. New class: CharPointer_ASCII. Changes to the callback methods for ValueTree::Listener, to provide more detailed information about the event.
This commit is contained in:
parent
b442388218
commit
c10c810aee
39 changed files with 1541 additions and 205 deletions
|
|
@ -198,6 +198,12 @@ const Rectangle<float> DrawableShape::getDrawableBounds() const
|
|||
|
||||
bool DrawableShape::hitTest (int x, int y)
|
||||
{
|
||||
bool allowsClicksOnThisComponent, allowsClicksOnChildComponents;
|
||||
getInterceptsMouseClicks (allowsClicksOnThisComponent, allowsClicksOnChildComponents);
|
||||
|
||||
if (! allowsClicksOnThisComponent)
|
||||
return false;
|
||||
|
||||
const float globalX = (float) (x - originRelativeToComponent.getX());
|
||||
const float globalY = (float) (y - originRelativeToComponent.getY());
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue