LMMS
Loading...
Searching...
No Matches
juce::ScalingHelpers Struct Reference

Static Public Member Functions

template<typename PointOrRect>
static PointOrRect unscaledScreenPosToScaled (float scale, PointOrRect pos) noexcept
template<typename PointOrRect>
static PointOrRect scaledScreenPosToUnscaled (float scale, PointOrRect pos) noexcept
static Rectangle< intunscaledScreenPosToScaled (float scale, Rectangle< int > pos) noexcept
static Rectangle< intscaledScreenPosToUnscaled (float scale, Rectangle< int > pos) noexcept
static Rectangle< float > unscaledScreenPosToScaled (float scale, Rectangle< float > pos) noexcept
static Rectangle< float > scaledScreenPosToUnscaled (float scale, Rectangle< float > pos) noexcept
template<typename PointOrRect>
static PointOrRect unscaledScreenPosToScaled (PointOrRect pos) noexcept
template<typename PointOrRect>
static PointOrRect scaledScreenPosToUnscaled (PointOrRect pos) noexcept
template<typename PointOrRect>
static PointOrRect unscaledScreenPosToScaled (const Component &comp, PointOrRect pos) noexcept
template<typename PointOrRect>
static PointOrRect scaledScreenPosToUnscaled (const Component &comp, PointOrRect pos) noexcept
static Point< intaddPosition (Point< int > p, const Component &c) noexcept
static Rectangle< intaddPosition (Rectangle< int > p, const Component &c) noexcept
static Point< float > addPosition (Point< float > p, const Component &c) noexcept
static Rectangle< float > addPosition (Rectangle< float > p, const Component &c) noexcept
static Point< intsubtractPosition (Point< int > p, const Component &c) noexcept
static Rectangle< intsubtractPosition (Rectangle< int > p, const Component &c) noexcept
static Point< float > subtractPosition (Point< float > p, const Component &c) noexcept
static Rectangle< float > subtractPosition (Rectangle< float > p, const Component &c) noexcept
static Point< float > screenPosToLocalPos (Component &comp, Point< float > pos)

Member Function Documentation

◆ addPosition() [1/4]

Point< float > juce::ScalingHelpers::addPosition ( Point< float > p,
const Component & c )
inlinestaticnoexcept

◆ addPosition() [2/4]

Point< int > juce::ScalingHelpers::addPosition ( Point< int > p,
const Component & c )
inlinestaticnoexcept

◆ addPosition() [3/4]

Rectangle< float > juce::ScalingHelpers::addPosition ( Rectangle< float > p,
const Component & c )
inlinestaticnoexcept

◆ addPosition() [4/4]

Rectangle< int > juce::ScalingHelpers::addPosition ( Rectangle< int > p,
const Component & c )
inlinestaticnoexcept

◆ scaledScreenPosToUnscaled() [1/5]

template<typename PointOrRect>
PointOrRect juce::ScalingHelpers::scaledScreenPosToUnscaled ( const Component & comp,
PointOrRect pos )
inlinestaticnoexcept

◆ scaledScreenPosToUnscaled() [2/5]

template<typename PointOrRect>
PointOrRect juce::ScalingHelpers::scaledScreenPosToUnscaled ( float scale,
PointOrRect pos )
inlinestaticnoexcept

◆ scaledScreenPosToUnscaled() [3/5]

Rectangle< float > juce::ScalingHelpers::scaledScreenPosToUnscaled ( float scale,
Rectangle< float > pos )
inlinestaticnoexcept

◆ scaledScreenPosToUnscaled() [4/5]

Rectangle< int > juce::ScalingHelpers::scaledScreenPosToUnscaled ( float scale,
Rectangle< int > pos )
inlinestaticnoexcept

◆ scaledScreenPosToUnscaled() [5/5]

template<typename PointOrRect>
PointOrRect juce::ScalingHelpers::scaledScreenPosToUnscaled ( PointOrRect pos)
inlinestaticnoexcept

◆ screenPosToLocalPos()

Point< float > juce::ScalingHelpers::screenPosToLocalPos ( Component & comp,
Point< float > pos )
inlinestatic

◆ subtractPosition() [1/4]

Point< float > juce::ScalingHelpers::subtractPosition ( Point< float > p,
const Component & c )
inlinestaticnoexcept

◆ subtractPosition() [2/4]

Point< int > juce::ScalingHelpers::subtractPosition ( Point< int > p,
const Component & c )
inlinestaticnoexcept

◆ subtractPosition() [3/4]

Rectangle< float > juce::ScalingHelpers::subtractPosition ( Rectangle< float > p,
const Component & c )
inlinestaticnoexcept

◆ subtractPosition() [4/4]

Rectangle< int > juce::ScalingHelpers::subtractPosition ( Rectangle< int > p,
const Component & c )
inlinestaticnoexcept

◆ unscaledScreenPosToScaled() [1/5]

template<typename PointOrRect>
PointOrRect juce::ScalingHelpers::unscaledScreenPosToScaled ( const Component & comp,
PointOrRect pos )
inlinestaticnoexcept

◆ unscaledScreenPosToScaled() [2/5]

template<typename PointOrRect>
PointOrRect juce::ScalingHelpers::unscaledScreenPosToScaled ( float scale,
PointOrRect pos )
inlinestaticnoexcept

◆ unscaledScreenPosToScaled() [3/5]

Rectangle< float > juce::ScalingHelpers::unscaledScreenPosToScaled ( float scale,
Rectangle< float > pos )
inlinestaticnoexcept

◆ unscaledScreenPosToScaled() [4/5]

Rectangle< int > juce::ScalingHelpers::unscaledScreenPosToScaled ( float scale,
Rectangle< int > pos )
inlinestaticnoexcept

◆ unscaledScreenPosToScaled() [5/5]

template<typename PointOrRect>
PointOrRect juce::ScalingHelpers::unscaledScreenPosToScaled ( PointOrRect pos)
inlinestaticnoexcept

The documentation for this struct was generated from the following file: