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:
parent
64b2ea825e
commit
47ce713d0b
2 changed files with 10 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue