#include <juce_ScalingHelpers.h>
Static Public Member Functions | |
| static Point< float > | addPosition (Point< float > p, const Component &c) noexcept |
| static Point< int > | addPosition (Point< int > p, const Component &c) noexcept |
| static Rectangle< float > | addPosition (Rectangle< float > p, const Component &c) noexcept |
| static Rectangle< int > | addPosition (Rectangle< int > p, const Component &c) noexcept |
| template<typename PointOrRect > | |
| static PointOrRect | scaledScreenPosToUnscaled (const Component &comp, PointOrRect pos) noexcept |
| template<typename PointOrRect > | |
| static PointOrRect | scaledScreenPosToUnscaled (float scale, PointOrRect pos) noexcept |
| static Rectangle< float > | scaledScreenPosToUnscaled (float scale, Rectangle< float > pos) noexcept |
| static Rectangle< int > | scaledScreenPosToUnscaled (float scale, Rectangle< int > pos) noexcept |
| template<typename PointOrRect > | |
| static PointOrRect | scaledScreenPosToUnscaled (PointOrRect pos) noexcept |
| static Point< float > | screenPosToLocalPos (Component &comp, Point< float > pos) |
| static Point< float > | subtractPosition (Point< float > p, const Component &c) noexcept |
| static Point< int > | subtractPosition (Point< int > p, const Component &c) noexcept |
| static Rectangle< float > | subtractPosition (Rectangle< float > p, const Component &c) noexcept |
| static Rectangle< int > | subtractPosition (Rectangle< int > p, const Component &c) noexcept |
| template<typename PointOrRect > | |
| static PointOrRect | unscaledScreenPosToScaled (const Component &comp, PointOrRect pos) noexcept |
| template<typename PointOrRect > | |
| static PointOrRect | unscaledScreenPosToScaled (float scale, PointOrRect pos) noexcept |
| static Rectangle< float > | unscaledScreenPosToScaled (float scale, Rectangle< float > pos) noexcept |
| static Rectangle< int > | unscaledScreenPosToScaled (float scale, Rectangle< int > pos) noexcept |
| template<typename PointOrRect > | |
| static PointOrRect | unscaledScreenPosToScaled (PointOrRect pos) noexcept |
|
inlinestaticnoexcept |
|
inlinestaticnoexcept |
Referenced by juce::detail::ComponentHelpers::convertToParentSpace().
|
inlinestaticnoexcept |
|
inlinestaticnoexcept |
|
inlinestaticnoexcept |
References scaledScreenPosToUnscaled().
|
inlinestaticnoexcept |
References juce::approximatelyEqual().
Referenced by juce::detail::ComponentHelpers::convertFromParentSpace(), juce::detail::ComponentHelpers::convertToParentSpace(), juce::detail::MouseInputSourceImpl::handleUnboundedDrag(), juce::detail::ComponentHelpers::localPositionToRawPeerPos(), scaledScreenPosToUnscaled(), scaledScreenPosToUnscaled(), and juce::detail::MouseInputSourceImpl::setScreenPosition().
|
inlinestaticnoexcept |
References juce::approximatelyEqual().
|
inlinestaticnoexcept |
References juce::approximatelyEqual(), and juce::roundToInt().
|
inlinestaticnoexcept |
References juce::Desktop::getInstance(), and scaledScreenPosToUnscaled().
|
inlinestatic |
References juce::Component::getLocalPoint(), juce::Component::getPeer(), and unscaledScreenPosToScaled().
Referenced by juce::detail::MouseInputSourceImpl::sendMagnifyGesture(), juce::detail::MouseInputSourceImpl::sendMouseDown(), juce::detail::MouseInputSourceImpl::sendMouseDrag(), juce::detail::MouseInputSourceImpl::sendMouseEnter(), juce::detail::ComponentHelpers::sendMouseEventToComponentsThatAreBlockedByModal(), juce::detail::MouseInputSourceImpl::sendMouseExit(), juce::detail::MouseInputSourceImpl::sendMouseMove(), juce::detail::MouseInputSourceImpl::sendMouseUp(), and juce::detail::MouseInputSourceImpl::sendMouseWheel().
|
inlinestaticnoexcept |
|
inlinestaticnoexcept |
Referenced by juce::detail::ComponentHelpers::convertFromParentSpace().
|
inlinestaticnoexcept |
|
inlinestaticnoexcept |
|
inlinestaticnoexcept |
References unscaledScreenPosToScaled().
|
inlinestaticnoexcept |
References juce::approximatelyEqual().
Referenced by juce::detail::ComponentHelpers::convertFromParentSpace(), juce::detail::ComponentHelpers::convertToParentSpace(), juce::detail::MouseInputSourceImpl::enableUnboundedMouseMovement(), juce::detail::MouseInputSourceImpl::findComponentAt(), juce::detail::MouseInputSourceImpl::getLastMouseDownPosition(), juce::detail::MouseInputSourceImpl::getScreenPosition(), juce::detail::ComponentHelpers::rawPeerPositionToLocal(), screenPosToLocalPos(), unscaledScreenPosToScaled(), and unscaledScreenPosToScaled().
|
inlinestaticnoexcept |
References juce::approximatelyEqual().
|
inlinestaticnoexcept |
References juce::approximatelyEqual(), and juce::roundToInt().
|
inlinestaticnoexcept |
References juce::Desktop::getInstance(), and unscaledScreenPosToScaled().