JUCE v8.0.9
JUCE API
 
Loading...
Searching...
No Matches
juce::detail::ScalingHelpers Struct Reference

#include <juce_ScalingHelpers.h>

Static Public Member Functions

static Point< floataddPosition (Point< float > p, const Component &c) noexcept
 
static Point< int > addPosition (Point< int > p, const Component &c) noexcept
 
static Rectangle< floataddPosition (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< floatscaledScreenPosToUnscaled (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< floatscreenPosToLocalPos (Component &comp, Point< float > pos)
 
static Point< floatsubtractPosition (Point< float > p, const Component &c) noexcept
 
static Point< int > subtractPosition (Point< int > p, const Component &c) noexcept
 
static Rectangle< floatsubtractPosition (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< floatunscaledScreenPosToScaled (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
 

Member Function Documentation

◆ addPosition() [1/4]

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

◆ addPosition() [2/4]

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

◆ addPosition() [3/4]

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

◆ addPosition() [4/4]

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

◆ scaledScreenPosToUnscaled() [1/5]

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

◆ scaledScreenPosToUnscaled() [2/5]

◆ scaledScreenPosToUnscaled() [3/5]

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

◆ scaledScreenPosToUnscaled() [4/5]

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

◆ scaledScreenPosToUnscaled() [5/5]

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

◆ screenPosToLocalPos()

◆ subtractPosition() [1/4]

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

◆ subtractPosition() [2/4]

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

◆ subtractPosition() [3/4]

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

◆ subtractPosition() [4/4]

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

◆ unscaledScreenPosToScaled() [1/5]

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

◆ unscaledScreenPosToScaled() [2/5]

◆ unscaledScreenPosToScaled() [3/5]

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

◆ unscaledScreenPosToScaled() [4/5]

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

◆ unscaledScreenPosToScaled() [5/5]

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

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