LMMS
Loading...
Searching...
No Matches
juce::Desktop::NativeDarkModeChangeDetectorImpl Class Reference
Inheritance diagram for juce::Desktop::NativeDarkModeChangeDetectorImpl:
juce::XWindowSystemUtilities::XSettings::Listener

Public Member Functions

 NativeDarkModeChangeDetectorImpl ()
 ~NativeDarkModeChangeDetectorImpl () override
bool isDarkModeEnabled () const noexcept
 NativeDarkModeChangeDetectorImpl ()
 ~NativeDarkModeChangeDetectorImpl ()
bool isDarkModeEnabled () const noexcept

Private Types

using ShouldAppsUseDarkModeFunc = bool (WINAPI*)()

Private Member Functions

void settingChanged (const XWindowSystemUtilities::XSetting &settingThatHasChanged) override
void colourSetChanged ()
Private Member Functions inherited from juce::XWindowSystemUtilities::XSettings::Listener
virtual ~Listener ()=default

Static Private Member Functions

static bool isHighContrast ()
static LRESULT CALLBACK callWndProc (int nCode, WPARAM wParam, LPARAM lParam)

Private Attributes

bool darkModeEnabled = false
ShouldAppsUseDarkModeFunc shouldAppsUseDarkMode = nullptr
HHOOK hook

Member Typedef Documentation

◆ ShouldAppsUseDarkModeFunc

using juce::Desktop::NativeDarkModeChangeDetectorImpl::ShouldAppsUseDarkModeFunc = bool (WINAPI*)()
private

Constructor & Destructor Documentation

◆ NativeDarkModeChangeDetectorImpl() [1/2]

juce::Desktop::NativeDarkModeChangeDetectorImpl::NativeDarkModeChangeDetectorImpl ( )
inline

◆ ~NativeDarkModeChangeDetectorImpl() [1/2]

juce::Desktop::NativeDarkModeChangeDetectorImpl::~NativeDarkModeChangeDetectorImpl ( )
inlineoverride

◆ NativeDarkModeChangeDetectorImpl() [2/2]

juce::Desktop::NativeDarkModeChangeDetectorImpl::NativeDarkModeChangeDetectorImpl ( )
inline

◆ ~NativeDarkModeChangeDetectorImpl() [2/2]

juce::Desktop::NativeDarkModeChangeDetectorImpl::~NativeDarkModeChangeDetectorImpl ( )
inline

Member Function Documentation

◆ callWndProc()

LRESULT CALLBACK juce::Desktop::NativeDarkModeChangeDetectorImpl::callWndProc ( int nCode,
WPARAM wParam,
LPARAM lParam )
inlinestaticprivate

◆ colourSetChanged()

void juce::Desktop::NativeDarkModeChangeDetectorImpl::colourSetChanged ( )
inlineprivate

◆ isDarkModeEnabled() [1/2]

bool juce::Desktop::NativeDarkModeChangeDetectorImpl::isDarkModeEnabled ( ) const
inlinenoexcept

◆ isDarkModeEnabled() [2/2]

bool juce::Desktop::NativeDarkModeChangeDetectorImpl::isDarkModeEnabled ( ) const
inlinenoexcept

◆ isHighContrast()

bool juce::Desktop::NativeDarkModeChangeDetectorImpl::isHighContrast ( )
inlinestaticprivate

◆ settingChanged()

void juce::Desktop::NativeDarkModeChangeDetectorImpl::settingChanged ( const XWindowSystemUtilities::XSetting & settingThatHasChanged)
inlineoverrideprivatevirtual

Member Data Documentation

◆ darkModeEnabled

bool juce::Desktop::NativeDarkModeChangeDetectorImpl::darkModeEnabled = false
private

◆ hook

HHOOK juce::Desktop::NativeDarkModeChangeDetectorImpl::hook
private
Initial value:
{ SetWindowsHookEx (WH_CALLWNDPROC,
(HINSTANCE) juce::Process::getCurrentModuleInstanceHandle(),
static LRESULT CALLBACK callWndProc(int nCode, WPARAM wParam, LPARAM lParam)
Definition juce_win32_Windowing.cpp:789
void * HINSTANCE
Definition swell-types.h:212
DWORD GetCurrentThreadId()
Definition swell.cpp:471

◆ shouldAppsUseDarkMode

ShouldAppsUseDarkModeFunc juce::Desktop::NativeDarkModeChangeDetectorImpl::shouldAppsUseDarkMode = nullptr
private

The documentation for this class was generated from the following files: