openshot-audio  0.1.2
Static Public Member Functions | List of all members
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< int > unscaledScreenPosToScaled (float scale, Rectangle< int > pos) noexcept
 
static Rectangle< int > scaledScreenPosToUnscaled (float scale, Rectangle< int > 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< int > addPosition (Point< int > p, const Component &c) noexcept
 
static Rectangle< int > addPosition (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< int > subtractPosition (Point< int > p, const Component &c) noexcept
 
static Rectangle< int > subtractPosition (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
 

Member Function Documentation

◆ addPosition() [1/4]

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

◆ addPosition() [2/4]

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

◆ addPosition() [3/4]

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

◆ addPosition() [4/4]

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

◆ scaledScreenPosToUnscaled() [1/4]

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

◆ scaledScreenPosToUnscaled() [2/4]

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

◆ scaledScreenPosToUnscaled() [3/4]

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

◆ scaledScreenPosToUnscaled() [4/4]

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

◆ subtractPosition() [1/4]

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

◆ subtractPosition() [2/4]

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

◆ subtractPosition() [3/4]

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

◆ subtractPosition() [4/4]

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

◆ unscaledScreenPosToScaled() [1/4]

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

◆ unscaledScreenPosToScaled() [2/4]

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

◆ unscaledScreenPosToScaled() [3/4]

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

◆ unscaledScreenPosToScaled() [4/4]

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

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