2
0
Эх сурвалжийг харах

Merge pull request #124 from mcclure/screenchild

Add simple accessors for the children of a Screen...
Ivan Safrin 13 жил өмнө
parent
commit
ae8a59545b

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

@@ -131,6 +131,9 @@ namespace Polycode {
 		*/		
 		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.
 		*/