Changeset 2858 for code/branches/questsystem5/src/orxonox/overlays/notifications/NotificationOverlay.h
- Timestamp:
- Mar 26, 2009, 9:45:23 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/questsystem5/src/orxonox/overlays/notifications/NotificationOverlay.h
r2781 r2858 27 27 */ 28 28 29 /** 30 @file NotificationOverlay.h 31 @brief Definition of the NotificationOverlay class. 32 */ 33 34 29 35 #ifndef _NotificationOverlay_H__ 30 36 #define _NotificationOverlay_H__ … … 44 50 /** 45 51 @brief 46 52 The NotificationOverlay is used to display single Notifications, then bundled in a NotificationQUeue. 47 53 @author 48 54 Damian 'Mozork' Frick … … 56 62 virtual ~NotificationOverlay(); 57 63 58 bool processNotification(Notification* notification); 64 bool processNotification(Notification* notification); //!< Processes the input Notification. 59 65 60 void setFontSize(float size) 66 /** 67 @brief Sets the font size of this overlay's text. 68 @param size The font size. 69 */ 70 inline void setFontSize(float size) 61 71 { this->setTextSize(size); } 62 72 63 73 protected: 64 const std::string clipMessage(const std::string & message); 74 const std::string clipMessage(const std::string & message); //!< Clips the input message if too long. 65 75 66 76 private: 67 NotificationQueue* queue_; 68 Notification* notification_; 77 NotificationQueue* queue_; //!< The NotificationQeue this overlay belongs to. 78 Notification* notification_; //!< The Notification this overlay displays. 69 79 70 void initialize(void); 71 void defineOverlay(void); 80 void initialize(void); //!< Initializes the object. 81 void defineOverlay(void); //!< Sets some overlay-specific values. 72 82 73 83 };
Note: See TracChangeset
for help on using the changeset viewer.