- Timestamp:
- May 28, 2011, 4:21:14 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/tutoriallevel3/src/modules/notifications/NotificationQueueCEGUI.h
r8453 r8636 70 70 71 71 public: 72 NotificationQueueCEGUI( const std::string& name, const std::string& senders = NotificationListener::ALL, unsigned int size = NotificationQueue::DEFAULT_SIZE, unsigned int displayTime = NotificationQueue::DEFAULT_DISPLAY_TIME);72 NotificationQueueCEGUI(BaseObject* creator); 73 73 virtual ~NotificationQueueCEGUI(); 74 75 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); 74 76 75 77 void destroy(bool noGraphics = false); // Destroys the NotificationQueue. 76 78 77 /**78 @brief Set the size of the window that displays the NotificationQueue.79 @param size A vector whose first component is the relative width of the window (a value between 0 and 1) and whose second component is the absolute width in pixels (additional to the relative width, can be negative). The height is set such that exactly as many Notifications fit as is the maximum size of the NotificationQueue (in terms of the number of Notifications).80 */81 inline void setDisplaySize(const Vector2& size)82 { this->setDisplaySize(Vector4(size.x, size.y, 0.0, 0.0)); }83 79 void setDisplaySize(const Vector4& size); // Set the size of the window that displays the NotificationQueue. 80 84 81 /** 85 82 @brief Get the size of the window that displays the NotificationQueue. … … 130 127 131 128 protected: 129 virtual void create(void); // Creates the NotificationQueue in lua. 130 132 131 virtual void notificationPushed(Notification* notification); // Is called by the NotificationQueue when a notification was pushed 133 132 virtual void notificationPopped(void); // Is called by the NotificationQueue when a notification was popped. … … 146 145 Vector4 fontColor_; //!< The font color of the Notifications text as a vector, in RGBA form, with values from 0 to 1. 147 146 std::string fontColorStr_; //!< The font color of the Notifications text as a string with the ARGB hexadecimal values. 148 149 void create(void); // Creates the NotificationQueue in lua.147 148 void initialize(void); // Initializes The NotificationQueueCEGUI. 150 149 151 150 }; // tolua_export
Note: See TracChangeset
for help on using the changeset viewer.