2
0
Fork 0
OB-Xd/Modules/gin/components/componentutils.h

21 lines
595 B
C
Raw Normal View History

2020-05-21 07:14:57 +00:00
/*==============================================================================
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 );
}