JUCE-7.0.12-0-g4f43011b96 JUCE-7.0.12-0-g4f43011b96
JUCE — C++ application framework with suport for VST, VST3, LV2 audio plug-ins

« « « Anklang Documentation
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
juce::detail::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< floatunscaledScreenPosToScaled (float scale, Rectangle< float > pos) noexcept
 
static Rectangle< floatscaledScreenPosToUnscaled (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< floataddPosition (Point< float > p, const Component &c) noexcept
 
static Rectangle< floataddPosition (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< floatsubtractPosition (Point< float > p, const Component &c) noexcept
 
static Rectangle< floatsubtractPosition (Rectangle< float > p, const Component &c) noexcept
 
static Point< floatscreenPosToLocalPos (Component &comp, Point< float > pos)
 

Detailed Description

Definition at line 29 of file juce_ScalingHelpers.h.

Member Function Documentation

◆ addPosition() [1/4]

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

Definition at line 103 of file juce_ScalingHelpers.h.

◆ addPosition() [2/4]

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

Definition at line 101 of file juce_ScalingHelpers.h.

◆ addPosition() [3/4]

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

Definition at line 104 of file juce_ScalingHelpers.h.

◆ addPosition() [4/4]

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

Definition at line 102 of file juce_ScalingHelpers.h.

◆ scaledScreenPosToUnscaled() [1/5]

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

Definition at line 96 of file juce_ScalingHelpers.h.

◆ scaledScreenPosToUnscaled() [2/5]

template<typename PointOrRect >
static PointOrRect juce::detail::ScalingHelpers::scaledScreenPosToUnscaled ( float  scale,
PointOrRect  pos 
)
staticnoexcept

Definition at line 38 of file juce_ScalingHelpers.h.

◆ scaledScreenPosToUnscaled() [3/5]

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

Definition at line 69 of file juce_ScalingHelpers.h.

◆ scaledScreenPosToUnscaled() [4/5]

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

Definition at line 53 of file juce_ScalingHelpers.h.

◆ scaledScreenPosToUnscaled() [5/5]

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

Definition at line 84 of file juce_ScalingHelpers.h.

◆ screenPosToLocalPos()

static Point< float > juce::detail::ScalingHelpers::screenPosToLocalPos ( Component comp,
Point< float pos 
)
static

Definition at line 110 of file juce_ScalingHelpers.h.

◆ subtractPosition() [1/4]

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

Definition at line 107 of file juce_ScalingHelpers.h.

◆ subtractPosition() [2/4]

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

Definition at line 105 of file juce_ScalingHelpers.h.

◆ subtractPosition() [3/4]

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

Definition at line 108 of file juce_ScalingHelpers.h.

◆ subtractPosition() [4/4]

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

Definition at line 106 of file juce_ScalingHelpers.h.

◆ unscaledScreenPosToScaled() [1/5]

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

Definition at line 90 of file juce_ScalingHelpers.h.

◆ unscaledScreenPosToScaled() [2/5]

template<typename PointOrRect >
static PointOrRect juce::detail::ScalingHelpers::unscaledScreenPosToScaled ( float  scale,
PointOrRect  pos 
)
staticnoexcept

Definition at line 32 of file juce_ScalingHelpers.h.

◆ unscaledScreenPosToScaled() [3/5]

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

Definition at line 61 of file juce_ScalingHelpers.h.

◆ unscaledScreenPosToScaled() [4/5]

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

Definition at line 45 of file juce_ScalingHelpers.h.

◆ unscaledScreenPosToScaled() [5/5]

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

Definition at line 78 of file juce_ScalingHelpers.h.


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