JUCE-7.0.12-0-g4f43011b96 JUCE-7.0.12-0-g4f43011b96
JUCE — C++ application framework with suport for VST, VST3, LV2 audio plug-ins

« « « Anklang Documentation
Loading...
Searching...
No Matches
Public Member Functions | List of all members
juce::VBlankAttachment Class Referencefinal

Helper class to synchronise Component updates to the vertical blank event of the display that the Component is presented on. More...

#include "juce_VBlankAttachment.h"

Inheritance diagram for juce::VBlankAttachment:
juce::ComponentPeer::VBlankListener juce::ComponentListener

Public Member Functions

 VBlankAttachment ()=default
 Default constructor for creating an empty object.
 
 VBlankAttachment (Component *c, std::function< void()> callbackIn)
 Constructor.
 
 VBlankAttachment (VBlankAttachment &&other)
 
VBlankAttachmentoperator= (VBlankAttachment &&other)
 
 ~VBlankAttachment () override
 Destructor.
 
bool isEmpty () const
 Returns true for a default constructed object.
 
void onVBlank () override
 Called on every vertical blank of the display to which the peer is associated.
 
void componentParentHierarchyChanged (Component &) override
 Called to indicate that the component's parents have changed.
 
- Public Member Functions inherited from juce::ComponentPeer::VBlankListener
virtual ~VBlankListener ()=default
 Destructor.
 
- Public Member Functions inherited from juce::ComponentListener
virtual ~ComponentListener ()=default
 Destructor.
 
virtual void componentMovedOrResized (Component &component, bool wasMoved, bool wasResized)
 Called when the component's position or size changes.
 
virtual void componentBroughtToFront (Component &component)
 Called when the component is brought to the top of the z-order.
 
virtual void componentVisibilityChanged (Component &component)
 Called when the component is made visible or invisible.
 
virtual void componentChildrenChanged (Component &component)
 Called when the component has children added or removed, or their z-order changes.
 
virtual void componentNameChanged (Component &component)
 Called when the component's name is changed.
 
virtual void componentBeingDeleted (Component &component)
 Called when the component is in the process of being deleted.
 
virtual void componentEnablementChanged (Component &component)
 

Detailed Description

Helper class to synchronise Component updates to the vertical blank event of the display that the Component is presented on.

This is useful when animating the Component's contents.

@tags{GUI}

Definition at line 35 of file juce_VBlankAttachment.h.

Constructor & Destructor Documentation

◆ VBlankAttachment() [1/2]

juce::VBlankAttachment::VBlankAttachment ( Component c,
std::function< void()>  callbackIn 
)

Constructor.

Creates an attachment that will call the passed in function at every vertical blank event of the display that the passed in Component is currently visible on.

The Component must be valid for the entire lifetime of the VBlankAttachment.

Definition at line 29 of file juce_VBlankAttachment.cpp.

◆ VBlankAttachment() [2/2]

juce::VBlankAttachment::VBlankAttachment ( VBlankAttachment &&  other)

Definition at line 39 of file juce_VBlankAttachment.cpp.

◆ ~VBlankAttachment()

juce::VBlankAttachment::~VBlankAttachment ( )
override

Destructor.

Definition at line 59 of file juce_VBlankAttachment.cpp.

Member Function Documentation

◆ componentParentHierarchyChanged()

void juce::VBlankAttachment::componentParentHierarchyChanged ( Component component)
overridevirtual

Called to indicate that the component's parents have changed.

When a component is added or removed from its parent, all of its children will produce this notification (recursively - so all children of its children will also be called as well).

Parameters
componentthe component that this listener is registered with
See also
Component::parentHierarchyChanged

Reimplemented from juce::ComponentListener.

Definition at line 69 of file juce_VBlankAttachment.cpp.

◆ isEmpty()

bool juce::VBlankAttachment::isEmpty ( ) const

Returns true for a default constructed object.

Definition at line 55 of file juce_VBlankAttachment.h.

◆ onVBlank()

void juce::VBlankAttachment::onVBlank ( )
overridevirtual

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

Implements juce::ComponentPeer::VBlankListener.

Definition at line 64 of file juce_VBlankAttachment.cpp.

◆ operator=()

VBlankAttachment & juce::VBlankAttachment::operator= ( VBlankAttachment &&  other)

Definition at line 45 of file juce_VBlankAttachment.cpp.


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