Loading...
Searching...
No Matches
ComponentPeer::VBlankListener Struct Referenceabstract

Used to receive callbacks on every vertical blank event of the display that the peer currently belongs to. More...

#include <juce_ComponentPeer.h>

Inheritance diagram for ComponentPeer::VBlankListener:

Public Member Functions

virtual ~VBlankListener ()=default
 Destructor.
 
virtual void onVBlank (double timestampSec)=0
 Called on every vertical blank of the display to which the peer is associated.
 

Detailed Description

Used to receive callbacks on every vertical blank event of the display that the peer currently belongs to.

On Linux this is currently limited to receiving callbacks from a timer approximately at display refresh rate.

This is a low-level facility used by the peer implementations. If you wish to synchronise Component events with the display refresh, you should probably use the VBlankAttachment, which automatically takes care of listening to the vblank events of the right peer.

See also
VBlankAttachment

Constructor & Destructor Documentation

◆ ~VBlankListener()

virtual ComponentPeer::VBlankListener::~VBlankListener ( )
virtualdefault

Destructor.

Member Function Documentation

◆ onVBlank()

virtual void ComponentPeer::VBlankListener::onVBlank ( double timestampSec)
pure virtual

Called on every vertical blank of the display to which the peer is associated.

The timestampSec parameter is a monotonically increasing value expressed in seconds that corresponds to the time at which the next frame will be displayed.


The documentation for this struct was generated from the following file:
linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram