MCPcopy Create free account
hub / github.com/SpartanJ/eepp / setParent

Method setParent

src/eepp/scene/node.cpp:264–288  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

262}
263
264Node* Node::setParent( Node* parent ) {
265 eeASSERT( NULL != parent );
266
267 if ( parent == mParentNode )
268 return this;
269
270 if ( NULL != mParentNode )
271 mParentNode->childRemove( this );
272
273 mParentNode = parent;
274
275 updateDrawInvalidator();
276
277 if ( NULL != mParentNode )
278 mParentNode->childAdd( this );
279
280 setDirty();
281
282 if ( mSceneNode != findSceneNode() )
283 onSceneChange();
284
285 onParentChange();
286
287 return this;
288}
289
290bool Node::isParentOf( const Node* node ) const {
291 eeASSERT( NULL != node );

Callers 15

showEditorMethod · 0.80
initMethod · 0.80
createContainerMethod · 0.80
UIBuildSettingsMethod · 0.80
runSetupMethod · 0.80
initLocateBarMethod · 0.80
updateMenuMethod · 0.80
maximizeTabWidgetMethod · 0.80
showSidePanelMethod · 0.80
updateDocInfoLocationMethod · 0.80

Calls 2

childRemoveMethod · 0.80
childAddMethod · 0.80

Tested by 8

UTESTFunction · 0.64
UTESTFunction · 0.64
UTESTFunction · 0.64
createBaseUIMethod · 0.64
createNewUIMethod · 0.64
createDecoratedWindowMethod · 0.64
testTextRenderingFunction · 0.64
mainFunction · 0.64