mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Android: Refactor to use inline statics
This commit is contained in:
parent
242405323e
commit
11752d061f
1 changed files with 4 additions and 9 deletions
|
|
@ -2089,8 +2089,8 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
static Point<float> lastMousePos;
|
inline static Point<float> lastMousePos{};
|
||||||
static int64 touchesDown;
|
inline static int64 touchesDown = 0;
|
||||||
|
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
struct StartupActivityCallbackListener final : public ActivityLifecycleCallbacks
|
struct StartupActivityCallbackListener final : public ActivityLifecycleCallbacks
|
||||||
|
|
@ -2529,8 +2529,8 @@ private:
|
||||||
|
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
friend class Displays;
|
friend class Displays;
|
||||||
static AndroidComponentPeer* frontWindow;
|
inline static AndroidComponentPeer* frontWindow = nullptr;
|
||||||
static GlobalRef activityCallbackListener;
|
inline static GlobalRef activityCallbackListener;
|
||||||
|
|
||||||
static constexpr jint GRAVITY_LEFT = 0x3, GRAVITY_TOP = 0x30;
|
static constexpr jint GRAVITY_LEFT = 0x3, GRAVITY_TOP = 0x30;
|
||||||
static constexpr jint TYPE_APPLICATION = 0x2;
|
static constexpr jint TYPE_APPLICATION = 0x2;
|
||||||
|
|
@ -2550,11 +2550,6 @@ private:
|
||||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (AndroidComponentPeer)
|
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (AndroidComponentPeer)
|
||||||
};
|
};
|
||||||
|
|
||||||
Point<float> AndroidComponentPeer::lastMousePos;
|
|
||||||
int64 AndroidComponentPeer::touchesDown = 0;
|
|
||||||
AndroidComponentPeer* AndroidComponentPeer::frontWindow = nullptr;
|
|
||||||
GlobalRef AndroidComponentPeer::activityCallbackListener;
|
|
||||||
|
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
ComponentPeer* Component::createNewPeer (int styleFlags, void* nativeWindow)
|
ComponentPeer* Component::createNewPeer (int styleFlags, void* nativeWindow)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue