upgrade to JUCE 5.4.3. Remove (probably) unused JUCE modules. Remove VST2 target (it's been end-of-life'd by Steinberg and by JUCE)

This commit is contained in:
Alex Birch
2019-06-22 20:41:38 +01:00
parent d22c2cd4fa
commit 9ee566b251
1140 changed files with 67534 additions and 105952 deletions

View File

@ -72,7 +72,7 @@ public:
windowIgnoresKeyPresses = (1 << 10), /**< Tells the window not to catch any keypresses. This can
be used for things like plugin windows, to stop them interfering
with the host's shortcut keys */
windowIsSemiTransparent = (1 << 31) /**< Not intended for public use - makes a window transparent. */
windowIsSemiTransparent = (1 << 30) /**< Not intended for public use - makes a window transparent. */
};
@ -377,6 +377,36 @@ public:
*/
static ModifierKeys getCurrentModifiersRealtime() noexcept;
//==============================================================================
/** Used to receive callbacks when the OS scale factor of this ComponentPeer changes.
This is used internally by some native JUCE windows on Windows and Linux and you
shouldn't need to worry about it in your own code unless you are dealing directly
with native windows.
*/
struct JUCE_API ScaleFactorListener
{
/** Destructor. */
virtual ~ScaleFactorListener() = default;
/** Called when the scale factor changes. */
virtual void nativeScaleFactorChanged (double newScaleFactor) = 0;
};
/** Adds a scale factor listener. */
void addScaleFactorListener (ScaleFactorListener* listenerToAdd) { scaleFactorListeners.add (listenerToAdd); }
/** Removes a scale factor listener. */
void removeScaleFactorListener (ScaleFactorListener* listenerToRemove) { scaleFactorListeners.remove (listenerToRemove); }
//==============================================================================
/** On Windows and Linux this will return the OS scaling factor currently being applied
to the native window. This is used to convert between physical and logical pixels
at the OS API level and you shouldn't need to use it in your own code unless you
are dealing directly with the native window.
*/
virtual double getPlatformScaleFactor() const noexcept { return 1.0; }
protected:
//==============================================================================
Component& component;
@ -384,6 +414,7 @@ protected:
Rectangle<int> lastNonFullscreenBounds;
ComponentBoundsConstrainer* constrainer = nullptr;
static std::function<ModifierKeys()> getNativeRealtimeModifiers;
ListenerList<ScaleFactorListener> scaleFactorListeners;
private:
//==============================================================================