Public Member Functions | List of all members
ScriptComponentEditBroadcaster Class Reference

This class handles the communication between ScriptComponentEditListeners. More...

Public Member Functions

void addToSelection (ScriptComponent *componentToAdd, NotificationType notifyListeners=sendNotification)
 Call this whenever you add a ScriptComponent to the selection. More...
 
void clearSelection (NotificationType notifyListeners=sendNotification)
 Call this when you need to clear the selection. More...
 
void removeFromSelection (ScriptComponent *componentToRemove, NotificationType nofifyListeners=sendNotification)
 Call this when you want to remove a component from the selection. More...
 
void setSelection (ScriptComponent *componentToSet, NotificationType notifyListeners=sendNotification)
 Sets the selection to the given ScriptComponent. More...
 

Detailed Description

This class handles the communication between ScriptComponentEditListeners.

It holds a list of selected components and updates it's registered listeners whenever the selection or a property changes.

Member Function Documentation

void addToSelection ( ScriptComponent *  componentToAdd,
NotificationType  notifyListeners = sendNotification 
)

Call this whenever you add a ScriptComponent to the selection.

It will send a message to all listeners so make sure you don't call this from the callback.

void clearSelection ( NotificationType  notifyListeners = sendNotification)

Call this when you need to clear the selection.

void removeFromSelection ( ScriptComponent *  componentToRemove,
NotificationType  nofifyListeners = sendNotification 
)

Call this when you want to remove a component from the selection.

void setSelection ( ScriptComponent *  componentToSet,
NotificationType  notifyListeners = sendNotification 
)

Sets the selection to the given ScriptComponent.

©2017 HISE. This documentation is autogenerated from the HISE source code using Doxygen.