Changeset 3153 for code/branches/pch/src/orxonox/gui
- Timestamp:
- Jun 13, 2009, 4:12:45 PM (16 years ago)
- Location:
- code/branches/pch/src/orxonox/gui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/pch/src/orxonox/gui/GUIManager.cc
r3143 r3153 271 271 Returns false if the Overlay was already present. 272 272 */ 273 bool GUIManager::registerOverlay( std::stringname, GUIOverlay* overlay)273 bool GUIManager::registerOverlay(const std::string& name, GUIOverlay* overlay) 274 274 { 275 275 return (this->guiOverlays_.insert(std::pair<std::string, GUIOverlay*>(name, overlay))).second; … … 284 284 Returns a pointer to the GUIOverlay. 285 285 */ 286 GUIOverlay* GUIManager::getOverlay( std::stringname)286 GUIOverlay* GUIManager::getOverlay(const std::string& name) 287 287 { 288 288 return (this->guiOverlays_.find(name))->second; -
code/branches/pch/src/orxonox/gui/GUIManager.h
r3143 r3153 91 91 void executeCode(const std::string& str); 92 92 93 bool registerOverlay( std::stringname, GUIOverlay* overlay); //!< Register a GUIOverlay with the GUIManager.94 GUIOverlay* getOverlay( std::stringname); // Get the GUIOverlay of the GUI with the given name.93 bool registerOverlay(const std::string& name, GUIOverlay* overlay); //!< Register a GUIOverlay with the GUIManager. 94 GUIOverlay* getOverlay(const std::string& name); // Get the GUIOverlay of the GUI with the given name. 95 95 96 96 void setCamera(Ogre::Camera* camera);
Note: See TracChangeset
for help on using the changeset viewer.