1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-25 02:04:23 +00:00

Added Component::isPaintingUnclipped

This commit is contained in:
Tom Poole 2017-11-27 13:41:45 +00:00
parent 64b2ea825e
commit 47ce713d0b
2 changed files with 10 additions and 0 deletions

View file

@ -2082,6 +2082,11 @@ void Component::setPaintingIsUnclipped (const bool shouldPaintWithoutClipping) n
flags.dontClipGraphicsFlag = shouldPaintWithoutClipping;
}
bool Component::isPaintingUnclipped() const noexcept
{
return flags.dontClipGraphicsFlag;
}
//==============================================================================
Image Component::createComponentSnapshot (Rectangle<int> areaToGrab,
bool clipImageToComponentBounds, float scaleFactor)

View file

@ -1036,6 +1036,11 @@ public:
*/
void setPaintingIsUnclipped (bool shouldPaintWithoutClipping) noexcept;
/** Returns true if this component doesn't require its graphics context to be clipped
when it is being painted.
*/
bool isPaintingUnclipped() const noexcept;
//==============================================================================
/** Adds an effect filter to alter the component's appearance.