|
|
|
@@ -2230,6 +2230,17 @@ public: |
|
|
|
*/
|
|
|
|
CachedComponentImage* getCachedComponentImage() const noexcept { return cachedImage; }
|
|
|
|
|
|
|
|
/** Sets a flag to indicate whether mouse drag events on this Component should be ignored when it is inside a
|
|
|
|
Viewport with drag-to-scroll functionality enabled. This is useful for Components such as sliders that
|
|
|
|
should not move their parent Viewport when dragged.
|
|
|
|
*/
|
|
|
|
void setViewportIgnoreDragFlag (bool ignoreDrag) { flags.viewportIgnoreDragFlag = ignoreDrag; };
|
|
|
|
|
|
|
|
/** Retrieves the current state of the Viewport drag-to-scroll functionality flag.
|
|
|
|
@see setViewportIgnoreDragFlag
|
|
|
|
*/
|
|
|
|
bool getViewportIgnoreDragFlag() { return flags.viewportIgnoreDragFlag; }
|
|
|
|
|
|
|
|
//==============================================================================
|
|
|
|
// These methods are deprecated - use localPointToGlobal, getLocalPoint, getLocalPoint, etc instead.
|
|
|
|
JUCE_DEPRECATED (Point<int> relativePositionToGlobal (Point<int>) const);
|
|
|
|
@@ -2288,6 +2299,7 @@ private: |
|
|
|
bool mouseDownWasBlocked : 1;
|
|
|
|
bool isMoveCallbackPending : 1;
|
|
|
|
bool isResizeCallbackPending : 1;
|
|
|
|
bool viewportIgnoreDragFlag : 1;
|
|
|
|
#if JUCE_DEBUG
|
|
|
|
bool isInsidePaintCall : 1;
|
|
|
|
#endif
|
|
|
|
|