From dca1ef3c3ada70cbbdefe596c79f212b1c039c88 Mon Sep 17 00:00:00 2001 From: Tom Poole Date: Thu, 21 Dec 2017 14:39:02 +0000 Subject: [PATCH] Added some documentation to addAndMakeVisible --- modules/juce_gui_basics/components/juce_Component.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/modules/juce_gui_basics/components/juce_Component.h b/modules/juce_gui_basics/components/juce_Component.h index 1e20ffcef3..131678e105 100644 --- a/modules/juce_gui_basics/components/juce_Component.h +++ b/modules/juce_gui_basics/components/juce_Component.h @@ -689,6 +689,11 @@ public: This is the same as calling setVisible (true) on the child and then addChildComponent(). See addChildComponent() for more details. + + @param child the new component to add. If the component passed-in is already + the child of another component, it'll first be removed from it current parent. + @param zOrder The index in the child-list at which this component should be inserted. + A value of -1 will insert it in front of the others, 0 is the back. */ void addAndMakeVisible (Component* child, int zOrder = -1); @@ -696,6 +701,11 @@ public: This is the same as calling setVisible (true) on the child and then addChildComponent(). See addChildComponent() for more details. + + @param child the new component to add. If the component passed-in is already + the child of another component, it'll first be removed from it current parent. + @param zOrder The index in the child-list at which this component should be inserted. + A value of -1 will insert it in front of the others, 0 is the back. */ void addAndMakeVisible (Component& child, int zOrder = -1);