Browse Source

Added some documentation to addAndMakeVisible

tags/2021-05-28
Tom Poole 7 years ago
parent
commit
dca1ef3c3a
1 changed files with 10 additions and 0 deletions
  1. +10
    -0
      modules/juce_gui_basics/components/juce_Component.h

+ 10
- 0
modules/juce_gui_basics/components/juce_Component.h View File

@@ -689,6 +689,11 @@ public:
This is the same as calling setVisible (true) on the child and then addChildComponent(). This is the same as calling setVisible (true) on the child and then addChildComponent().
See addChildComponent() for more details. 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); 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(). This is the same as calling setVisible (true) on the child and then addChildComponent().
See addChildComponent() for more details. 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); void addAndMakeVisible (Component& child, int zOrder = -1);


Loading…
Cancel
Save