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

Method windowAdd

src/eepp/ui/uiscenenode.cpp:235–248  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

233}
234
235void UISceneNode::windowAdd( UIWindow* win ) {
236 if ( !windowExists( win ) ) {
237 mWindowsList.insert( mWindowsList.begin(), win );
238 WindowEvent wevent( this, win, Event::OnWindowAdded );
239 sendEvent( &wevent );
240 } else {
241 //! Send to front
242 auto found = std::find( mWindowsList.begin(), mWindowsList.end(), win );
243 if ( found != mWindowsList.end() ) {
244 mWindowsList.erase( found );
245 mWindowsList.insert( mWindowsList.begin(), win );
246 }
247 }
248}
249
250void UISceneNode::windowRemove( UIWindow* win ) {
251 if ( windowExists( win ) ) {

Callers 1

UIWindowMethod · 0.80

Calls 5

findFunction · 0.85
insertMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected