openshot-audio  0.1.2
Public Member Functions | List of all members
juce::DrawableTypeHandler< DrawableClass > Class Template Reference
Inheritance diagram for juce::DrawableTypeHandler< DrawableClass >:
juce::ComponentBuilder::TypeHandler

Public Member Functions

 DrawableTypeHandler ()
 
ComponentaddNewComponentFromState (const ValueTree &state, Component *parent)
 
void updateComponentFromState (Component *component, const ValueTree &state)
 
- Public Member Functions inherited from juce::ComponentBuilder::TypeHandler
 TypeHandler (const Identifier &valueTreeType)
 
virtual ~TypeHandler ()
 
ComponentBuildergetBuilder () const noexcept
 

Additional Inherited Members

- Public Attributes inherited from juce::ComponentBuilder::TypeHandler
const Identifier type
 

Constructor & Destructor Documentation

template<class DrawableClass >
juce::DrawableTypeHandler< DrawableClass >::DrawableTypeHandler ( )
inline

Member Function Documentation

template<class DrawableClass >
Component* juce::DrawableTypeHandler< DrawableClass >::addNewComponentFromState ( const ValueTree state,
Component parent 
)
inlinevirtual

This method must create a new component from the given state, add it to the specified parent component (which may be null), and return it.

The ValueTree will have been pre-checked to make sure that its type matches the type that this handler supports.

There's no need to set the new Component's ID to match that of the state - the builder will take care of that itself.

Implements juce::ComponentBuilder::TypeHandler.

template<class DrawableClass >
void juce::DrawableTypeHandler< DrawableClass >::updateComponentFromState ( Component component,
const ValueTree state 
)
inlinevirtual

This method must update an existing component from a new ValueTree state.

A component that has been created with addNewComponentFromState() may need to be updated if the ValueTree changes, so this method is used to do that. Your implementation must do whatever's necessary to update the component from the new state provided.

The ValueTree will have been pre-checked to make sure that its type matches the type that this handler supports, and the component will have been created by this type's addNewComponentFromState() method.

Implements juce::ComponentBuilder::TypeHandler.


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