Browse Source

Added Component::isPaintingUnclipped

tags/2021-05-28
Tom Poole 8 years ago
parent
commit
47ce713d0b
2 changed files with 10 additions and 0 deletions
  1. +5
    -0
      modules/juce_gui_basics/components/juce_Component.cpp
  2. +5
    -0
      modules/juce_gui_basics/components/juce_Component.h

+ 5
- 0
modules/juce_gui_basics/components/juce_Component.cpp 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)


+ 5
- 0
modules/juce_gui_basics/components/juce_Component.h 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.


Loading…
Cancel
Save