2
0
Fork 0
OB-Xd/Modules/gin/components/componentutils.h
2020-05-21 09:14:57 +02:00

20 lines
595 B
C++
Executable file

/*==============================================================================
Copyright 2020 by Roland Rabien
For more information visit www.rabiensoftware.com
==============================================================================*/
#pragma once
inline void addAndMakeVisible (Component& parent, Array<Component*> children)
{
for (auto child : children)
parent.addAndMakeVisible (child);
}
inline void addAndMakeVisible (Component& parent, std::initializer_list<Component*> children)
{
for (auto child : children)
parent.addAndMakeVisible ( child );
}