|
LMMS
|
Public Attributes | |
| AudioProcessorEditor & | editor |
| AudioProcessorParameter & | param |
Additional Inherited Members | |
| Public Types inherited from juce::TreeViewItem | |
| enum class | Openness { opennessDefault , opennessClosed , opennessOpen } |
|
inline |
|
inlineoverridevirtual |
Creates a component that will be used to represent this item.
You don't have to implement this method - if it returns nullptr then no component will be used for the item, and you can just draw it using the paintItem() callback. But if you do return a component, it will be positioned in the TreeView so that it can be used to represent this item.
The component returned will be managed by the TreeView and will be deleted later when it goes off the screen or is no longer needed. Its position and size will be completely managed by the tree, so don't attempt to move it around.
Something you may want to do with your component is to give it a pointer to the TreeView that created it. This is perfectly safe, and there's no danger of it becoming a dangling pointer because the TreeView will always delete the component before it is itself deleted.
As long as you stick to these rules you can return whatever kind of component you like. It's most useful if you're doing things like drag-and-drop of items, or want to use a Label component to edit item names, etc.
Reimplemented from juce::TreeViewItem.
|
inlineoverridevirtual |
Must return the height required by this item.
This is the height in pixels that the item will take up. Items in the tree can be different heights, but if they change height, you should call treeHasChanged() to update the tree.
Reimplemented from juce::TreeViewItem.
|
inlineoverridevirtual |
Tells the tree whether this item can potentially be opened.
If your item could contain sub-items, this should return true; if it returns false then the tree will not try to open the item. This determines whether or not the item will be drawn with a 'plus' button next to it.
Implements juce::TreeViewItem.
| AudioProcessorEditor& juce::ParamControlItem::editor |
| AudioProcessorParameter& juce::ParamControlItem::param |