Sfoglia il codice sorgente

Merge pull request #124 from mcclure/screenchild

Add simple accessors for the children of a Screen...
Ivan Safrin 13 anni fa
parent
commit
ae8a59545b
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  1. 3 0
      Core/Contents/Include/PolyScreen.h

+ 3 - 0
Core/Contents/Include/PolyScreen.h

@@ -131,6 +131,9 @@ namespace Polycode {
 		*/		
 		*/		
 		ScreenEntity *getRootEntity() { return rootEntity; }
 		ScreenEntity *getRootEntity() { return rootEntity; }
 		
 		
+		int getNumChildren() { return children.size(); }
+		ScreenEntity *getChild(int index) { return children[index]; }
+		
 		/**
 		/**
 		* If set to false, the screen will not be rendered or updated.
 		* If set to false, the screen will not be rendered or updated.
 		*/
 		*/