LMMS
Loading...
Searching...
No Matches
juce::Component::ComponentHelpers Struct Reference

Static Public Member Functions

static Identifier getColourPropertyID (int colourID)
static bool hitTest (Component &comp, Point< float > 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, const PointOrRect pointInParentSpace)
template<typename PointOrRect>
static PointOrRect convertToParentSpace (const Component &comp, const PointOrRect pointInLocalSpace)
template<typename PointOrRect>
static PointOrRect convertFromDistantParentSpace (const Component *parent, const Component &target, 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< intgetParentOrMainMonitorBounds (const Component &comp)
static void releaseAllCachedImageResources (Component &c)
static bool modalWouldBlockComponent (const Component &maybeBlocked, Component *modal)
template<typename Function>
static void sendMouseEventToComponentsThatAreBlockedByModal (Component &modal, Function &&function)

Member Function Documentation

◆ clipObscuredRegions()

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

◆ convertCoordinate()

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

◆ convertFromDistantParentSpace()

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

◆ convertFromParentSpace()

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

◆ convertToParentSpace()

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

◆ getColourPropertyID()

Identifier juce::Component::ComponentHelpers::getColourPropertyID ( int colourID)
inlinestatic

◆ getParentOrMainMonitorBounds()

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

◆ hitTest()

bool juce::Component::ComponentHelpers::hitTest ( Component & comp,
Point< float > localPoint )
inlinestatic

◆ localPositionToRawPeerPos()

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

◆ modalWouldBlockComponent()

bool juce::Component::ComponentHelpers::modalWouldBlockComponent ( const Component & maybeBlocked,
Component * modal )
inlinestatic

◆ rawPeerPositionToLocal()

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

◆ releaseAllCachedImageResources()

void juce::Component::ComponentHelpers::releaseAllCachedImageResources ( Component & c)
inlinestatic

◆ sendMouseEventToComponentsThatAreBlockedByModal()

template<typename Function>
void juce::Component::ComponentHelpers::sendMouseEventToComponentsThatAreBlockedByModal ( Component & modal,
Function && function )
inlinestatic

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