1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-15 00:24:19 +00:00

Added some documentation to addAndMakeVisible

This commit is contained in:
Tom Poole 2017-12-21 14:39:02 +00:00
parent ce0ab63f57
commit dca1ef3c3a

View file

@ -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);