mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-02-04 03:40:07 +00:00
Added the ability to apply affine transforms to components - Component::setTransform(). Added a slider to the widgets demo to show this in action. Changed Component::reallyContains() to take a rectangle instead of raw coordinates.
This commit is contained in:
parent
75ff0c5e7e
commit
2c2a11dee9
15 changed files with 533 additions and 242 deletions
|
|
@ -127,7 +127,7 @@ int MenuBarComponent::getItemAt (const int x, const int y)
|
|||
{
|
||||
for (int i = 0; i < xPositions.size(); ++i)
|
||||
if (x >= xPositions[i] && x < xPositions[i + 1])
|
||||
return reallyContains (x, y, true) ? i : -1;
|
||||
return reallyContains (Point<int> (x, y), true) ? i : -1;
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue