JUCE  v6.1.6 (6.0.8-1114)
JUCE API
Looking for a senior C++ dev?
I'm looking for work. Hire me!
juce::ComponentPeer::ScaleFactorListener Struct Referenceabstract

Used to receive callbacks when the OS scale factor of this ComponentPeer changes. More...

#include <juce_ComponentPeer.h>

Public Member Functions

virtual ~ScaleFactorListener ()=default
 Destructor. More...
 
virtual void nativeScaleFactorChanged (double newScaleFactor)=0
 Called when the scale factor changes. More...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ ~ScaleFactorListener()

virtual juce::ComponentPeer::ScaleFactorListener::~ScaleFactorListener ( )
virtualdefault

Destructor.

Member Function Documentation

◆ nativeScaleFactorChanged()

virtual void juce::ComponentPeer::ScaleFactorListener::nativeScaleFactorChanged ( double  newScaleFactor)
pure virtual

Called when the scale factor changes.


The documentation for this struct was generated from the following file: