openshot-audio  0.1.6
Static Public Member Functions | List of all members
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
 
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
 

Member Function Documentation

static Point<int> ScalingHelpers::addPosition ( Point< int p,
const Component c 
)
inlinestaticnoexcept
static Rectangle<int> ScalingHelpers::addPosition ( Rectangle< int p,
const Component c 
)
inlinestaticnoexcept
static Point<float> ScalingHelpers::addPosition ( Point< float >  p,
const Component c 
)
inlinestaticnoexcept
static Rectangle<float> ScalingHelpers::addPosition ( Rectangle< float >  p,
const Component c 
)
inlinestaticnoexcept
template<typename PointOrRect >
static PointOrRect ScalingHelpers::scaledScreenPosToUnscaled ( float  scale,
PointOrRect  pos 
)
inlinestaticnoexcept
static Rectangle<int> ScalingHelpers::scaledScreenPosToUnscaled ( float  scale,
Rectangle< int pos 
)
inlinestaticnoexcept
template<typename PointOrRect >
static PointOrRect ScalingHelpers::scaledScreenPosToUnscaled ( PointOrRect  pos)
inlinestaticnoexcept
template<typename PointOrRect >
static PointOrRect ScalingHelpers::scaledScreenPosToUnscaled ( const Component comp,
PointOrRect  pos 
)
inlinestaticnoexcept
static Point<int> ScalingHelpers::subtractPosition ( Point< int p,
const Component c 
)
inlinestaticnoexcept
static Rectangle<int> ScalingHelpers::subtractPosition ( Rectangle< int p,
const Component c 
)
inlinestaticnoexcept
static Point<float> ScalingHelpers::subtractPosition ( Point< float >  p,
const Component c 
)
inlinestaticnoexcept
static Rectangle<float> ScalingHelpers::subtractPosition ( Rectangle< float >  p,
const Component c 
)
inlinestaticnoexcept
template<typename PointOrRect >
static PointOrRect ScalingHelpers::unscaledScreenPosToScaled ( float  scale,
PointOrRect  pos 
)
inlinestaticnoexcept
static Rectangle<int> ScalingHelpers::unscaledScreenPosToScaled ( float  scale,
Rectangle< int pos 
)
inlinestaticnoexcept
template<typename PointOrRect >
static PointOrRect ScalingHelpers::unscaledScreenPosToScaled ( PointOrRect  pos)
inlinestaticnoexcept
template<typename PointOrRect >
static PointOrRect ScalingHelpers::unscaledScreenPosToScaled ( const Component comp,
PointOrRect  pos 
)
inlinestaticnoexcept

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