1
0
Fork 0
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:
Julian Storer 2010-11-21 16:53:03 +00:00
parent 75ff0c5e7e
commit 2c2a11dee9
15 changed files with 533 additions and 242 deletions

View file

@ -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;
}