mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-02-07 04:10:08 +00:00
The Point and Rectangle classes are now templated, so can be used for either float or int co-ordinates. This means that wherever you've used these classes, you'll need to replace them with Rectangle<int> or Point<float> in your code. A couple of methods in Path have changed to take advantage of the new ability.
This commit is contained in:
parent
31a102008d
commit
7bc24ae42a
153 changed files with 2258 additions and 2753 deletions
|
|
@ -289,7 +289,7 @@ public:
|
|||
int x = 0, y = 0;
|
||||
owner->relativePositionToOtherComponent (topComp, x, y);
|
||||
|
||||
owner->setControlBounds (Rectangle (x, y, owner->getWidth(), owner->getHeight()));
|
||||
owner->setControlBounds (Rectangle<int> (x, y, owner->getWidth(), owner->getHeight()));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -477,7 +477,7 @@ bool ActiveXControlComponent::createControl (const void* controlIID)
|
|||
if (info->control->DoVerb (OLEIVERB_SHOW, 0, info->clientSite, 0, hwnd, &rect) == S_OK)
|
||||
{
|
||||
control = info.release();
|
||||
setControlBounds (Rectangle (x, y, getWidth(), getHeight()));
|
||||
setControlBounds (Rectangle<int> (x, y, getWidth(), getHeight()));
|
||||
|
||||
((ActiveXControlData*) control)->controlHWND = getHWND (this);
|
||||
|
||||
|
|
@ -521,7 +521,7 @@ void* ActiveXControlComponent::queryInterface (const void* iid) const
|
|||
return 0;
|
||||
}
|
||||
|
||||
void ActiveXControlComponent::setControlBounds (const Rectangle& newBounds) const
|
||||
void ActiveXControlComponent::setControlBounds (const Rectangle<int>& newBounds) const
|
||||
{
|
||||
HWND hwnd = ((ActiveXControlData*) control)->controlHWND;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue