openshot-audio  0.1.2
Static Public Member Functions | List of all members
Component::ComponentHelpers Struct Reference

Static Public Member Functions

static Identifier getColourPropertyId (int colourId)
 
static bool hitTest (Component &comp, Point< int > localPoint)
 
template<typename PointOrRect >
static PointOrRect rawPeerPositionToLocal (const Component &comp, PointOrRect pos) noexcept
 
template<typename PointOrRect >
static PointOrRect localPositionToRawPeerPos (const Component &comp, PointOrRect pos) noexcept
 
template<typename PointOrRect >
static PointOrRect convertFromParentSpace (const Component &comp, PointOrRect pointInParentSpace)
 
template<typename PointOrRect >
static PointOrRect convertToParentSpace (const Component &comp, PointOrRect pointInLocalSpace)
 
template<typename PointOrRect >
static PointOrRect convertFromDistantParentSpace (const Component *parent, const Component &target, const PointOrRect &coordInParent)
 
template<typename PointOrRect >
static PointOrRect convertCoordinate (const Component *target, const Component *source, PointOrRect p)
 
static bool clipObscuredRegions (const Component &comp, Graphics &g, const Rectangle< int > clipRect, Point< int > delta)
 
static Rectangle< int > getParentOrMainMonitorBounds (const Component &comp)
 

Member Function Documentation

◆ clipObscuredRegions()

static bool Component::ComponentHelpers::clipObscuredRegions ( const Component comp,
Graphics g,
const Rectangle< int >  clipRect,
Point< int >  delta 
)
inlinestatic

◆ convertCoordinate()

template<typename PointOrRect >
static PointOrRect Component::ComponentHelpers::convertCoordinate ( const Component target,
const Component source,
PointOrRect  p 
)
inlinestatic

◆ convertFromDistantParentSpace()

template<typename PointOrRect >
static PointOrRect Component::ComponentHelpers::convertFromDistantParentSpace ( const Component parent,
const Component target,
const PointOrRect &  coordInParent 
)
inlinestatic

◆ convertFromParentSpace()

template<typename PointOrRect >
static PointOrRect Component::ComponentHelpers::convertFromParentSpace ( const Component comp,
PointOrRect  pointInParentSpace 
)
inlinestatic

◆ convertToParentSpace()

template<typename PointOrRect >
static PointOrRect Component::ComponentHelpers::convertToParentSpace ( const Component comp,
PointOrRect  pointInLocalSpace 
)
inlinestatic

◆ getColourPropertyId()

static Identifier Component::ComponentHelpers::getColourPropertyId ( int  colourId)
inlinestatic

◆ getParentOrMainMonitorBounds()

static Rectangle<int> Component::ComponentHelpers::getParentOrMainMonitorBounds ( const Component comp)
inlinestatic

◆ hitTest()

static bool Component::ComponentHelpers::hitTest ( Component comp,
Point< int >  localPoint 
)
inlinestatic

◆ localPositionToRawPeerPos()

template<typename PointOrRect >
static PointOrRect Component::ComponentHelpers::localPositionToRawPeerPos ( const Component comp,
PointOrRect  pos 
)
inlinestaticnoexcept

◆ rawPeerPositionToLocal()

template<typename PointOrRect >
static PointOrRect Component::ComponentHelpers::rawPeerPositionToLocal ( const Component comp,
PointOrRect  pos 
)
inlinestaticnoexcept

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