1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-27 02:20:05 +00:00

Removed the PositionedRectangle class (this has been superseded by the RelativeRectangle class. If you still need PositionedRectangle in your code, just grab a copy of the class from the last revision and put it directly into your codebase). Changed the BorderSize class to be templated like Point, Line, Rectangle, etc - if you've used a BorderSize anywhere, just replace "BorderSize" with "BorderSize<int>" to get it compiling again. Updated Graphics::drawDashedLine to take a Line object.

This commit is contained in:
Julian Storer 2011-01-13 12:55:26 +00:00
parent 837f4c8d81
commit e7f4dac9f9
54 changed files with 914 additions and 1808 deletions

View file

@ -131,18 +131,18 @@ void ResizableWindow::setContentComponentSize (int width, int height)
{
jassert (width > 0 && height > 0); // not a great idea to give it a zero size..
const BorderSize border (getContentComponentBorder());
const BorderSize<int> border (getContentComponentBorder());
setSize (width + border.getLeftAndRight(),
height + border.getTopAndBottom());
}
const BorderSize ResizableWindow::getBorderThickness()
const BorderSize<int> ResizableWindow::getBorderThickness()
{
return BorderSize (isUsingNativeTitleBar() ? 0 : ((resizableBorder != 0 && ! isFullScreen()) ? 5 : 3));
return BorderSize<int> (isUsingNativeTitleBar() ? 0 : ((resizableBorder != 0 && ! isFullScreen()) ? 5 : 3));
}
const BorderSize ResizableWindow::getContentComponentBorder()
const BorderSize<int> ResizableWindow::getContentComponentBorder()
{
return getBorderThickness();
}
@ -208,7 +208,7 @@ void ResizableWindow::childBoundsChanged (Component* child)
jassert (child->getWidth() > 0);
jassert (child->getHeight() > 0);
const BorderSize borders (getContentComponentBorder());
const BorderSize<int> borders (getContentComponentBorder());
setSize (child->getWidth() + borders.getLeftAndRight(),
child->getHeight() + borders.getTopAndBottom());
@ -219,7 +219,7 @@ void ResizableWindow::childBoundsChanged (Component* child)
//==============================================================================
void ResizableWindow::activeWindowStatusChanged()
{
const BorderSize border (getContentComponentBorder());
const BorderSize<int> border (getContentComponentBorder());
Rectangle<int> area (getLocalBounds());
repaint (area.removeFromTop (border.getTop()));