1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

VBlankAttachment: Add new constructor with a callback that receives a timestamp

This commit is contained in:
attila 2024-10-03 18:34:16 +02:00
parent d9a3efd3cb
commit 425f1858b5
3 changed files with 54 additions and 7 deletions

View file

@ -2,6 +2,28 @@
# develop
## Change
The VBlankAttachment class' inheritance from the ComponentPeer::VBlankListener
and ComponentListener classes has been made private.
**Possible Issues**
External code that calls VBlankAttachment::onVBlank or
VBlankAttachment::componentParentHierarchyChanged will fail to compile.
**Workaround**
There is no workaround.
**Rationale**
Making the inheritance public originally was an oversight. The overriden
functions are meant to be called only by the ComponentPeer and Component objects
that the VBlankAttachment instance registers itself with. External code calling
these functions undermines the correct behaviour of the VBlankAttachment class.
## Change
The signature of VBlankListener::onVBlank() was changed to