mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-23 01:44:22 +00:00
Fix for mouse event click counts. Fix for webkit mouse-moves. Cleaned up some Component coordinate conversion methods, adding some new ones for rectangle conversion.
This commit is contained in:
parent
aa71477712
commit
79899f87e0
38 changed files with 1282 additions and 971 deletions
|
|
@ -810,12 +810,12 @@ public:
|
|||
const Rectangle<int> getBounds() const { return Rectangle<int> (wx, wy, ww, wh); }
|
||||
const Point<int> getScreenPosition() const { return Point<int> (wx, wy); }
|
||||
|
||||
const Point<int> relativePositionToGlobal (const Point<int>& relativePosition)
|
||||
const Point<int> localToGlobal (const Point<int>& relativePosition)
|
||||
{
|
||||
return relativePosition + getScreenPosition();
|
||||
}
|
||||
|
||||
const Point<int> globalPositionToRelative (const Point<int>& screenPosition)
|
||||
const Point<int> globalToLocal (const Point<int>& screenPosition)
|
||||
{
|
||||
return screenPosition - getScreenPosition();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue