33 jassert (owner !=
nullptr && callback);
45VBlankAttachment& VBlankAttachment::operator= (VBlankAttachment&&
other)
50 callback = std::move (
other.callback);
74void VBlankAttachment::updateOwner()
86void VBlankAttachment::updatePeer()
90 if (
auto* peer = owner->
getPeer())
92 peer->addVBlankListener (
this);
106void VBlankAttachment::cleanup()
void removeVBlankListener(VBlankListener *listenerToRemove)
Removes a VBlankListener.
static bool isValidPeer(const ComponentPeer *peer) noexcept
Checks if this peer object is valid.
The base class for all JUCE user-interface objects.
void addComponentListener(ComponentListener *newListener)
Adds a listener to be told about changes to the component hierarchy or position.
ComponentPeer * getPeer() const
Returns the heavyweight window that contains this component.
Helper class to synchronise Component updates to the vertical blank event of the display that the Com...
~VBlankAttachment() override
Destructor.
VBlankAttachment()=default
Default constructor for creating an empty object.
void componentParentHierarchyChanged(Component &) override
Called to indicate that the component's parents have changed.
void onVBlank() override
Called on every vertical blank of the display to which the peer is associated.
Type unalignedPointerCast(void *ptr) noexcept
Casts a pointer to another type via void*, which suppresses the cast-align warning which sometimes ar...