JUCE v8.0.9
JUCE API
 
Loading...
Searching...
No Matches
juce::detail::ComponentHelpers Struct Reference

#include <juce_ComponentHelpers.h>

Classes

class  ModalComponentManagerChangeNotifier
 

Public Types

using SH = ScalingHelpers
 

Static Public Member Functions

static bool clipChildComponent (const Component &child, Graphics &g, const Rectangle< int > clipRect, Point< int > delta)
 
static bool clipObscuredRegions (const Component &comp, Graphics &g, const Rectangle< int > clipRect, Point< int > delta)
 
template<typename PointOrRect >
static PointOrRect convertCoordinate (const Component *target, const Component *source, PointOrRect p)
 
template<typename PointOrRect >
static PointOrRect convertFromDistantParentSpace (const Component *parent, const Component &target, PointOrRect coordInParent)
 
template<typename PointOrRect >
static PointOrRect convertFromParentSpace (const Component &comp, const PointOrRect pointInParentSpace)
 
template<typename PointOrRect >
static PointOrRect convertToParentSpace (const Component &comp, const PointOrRect pointInLocalSpace)
 
static Identifier getColourPropertyID (int colourID)
 
static Rectangle< int > getParentOrMainMonitorBounds (const Component &comp)
 
static bool hitTest (Component &comp, Point< float > localPoint)
 
template<typename PointOrRect >
static PointOrRect localPositionToRawPeerPos (const Component &comp, PointOrRect pos) noexcept
 
static bool modalWouldBlockComponent (const Component &maybeBlocked, Component *modal)
 
template<typename PointOrRect >
static PointOrRect rawPeerPositionToLocal (const Component &comp, PointOrRect pos) noexcept
 
static void releaseAllCachedImageResources (Component &c)
 
static void * runModalLoopCallback (void *userData)
 
template<typename Function >
static void sendMouseEventToComponentsThatAreBlockedByModal (Component &modal, Function &&function)
 

Member Typedef Documentation

◆ SH

Member Function Documentation

◆ clipChildComponent()

static bool juce::detail::ComponentHelpers::clipChildComponent ( const Component child,
Graphics g,
const Rectangle< int >  clipRect,
Point< int >  delta 
)
inlinestatic

◆ clipObscuredRegions()

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

References clipChildComponent().

Referenced by clipChildComponent().

◆ convertCoordinate()

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

◆ convertFromDistantParentSpace()

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

◆ convertFromParentSpace()

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

◆ convertToParentSpace()

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

◆ getColourPropertyID()

static Identifier juce::detail::ComponentHelpers::getColourPropertyID ( int  colourID)
inlinestatic

◆ getParentOrMainMonitorBounds()

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

◆ hitTest()

static bool juce::detail::ComponentHelpers::hitTest ( Component comp,
Point< float localPoint 
)
inlinestatic

◆ localPositionToRawPeerPos()

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

◆ modalWouldBlockComponent()

static bool juce::detail::ComponentHelpers::modalWouldBlockComponent ( const Component maybeBlocked,
Component modal 
)
inlinestatic

◆ rawPeerPositionToLocal()

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

◆ releaseAllCachedImageResources()

static void juce::detail::ComponentHelpers::releaseAllCachedImageResources ( Component c)
inlinestatic

◆ runModalLoopCallback()

static void * juce::detail::ComponentHelpers::runModalLoopCallback ( void *  userData)
inlinestatic

◆ sendMouseEventToComponentsThatAreBlockedByModal()

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

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