| 1 | // Aseprite UI Library |
|---|---|
| 2 | // Copyright (C) 2001-2013 David Capello |
| 3 | // |
| 4 | // This file is released under the terms of the MIT license. |
| 5 | // Read LICENSE.txt for more information. |
| 6 | |
| 7 | #ifdef HAVE_CONFIG_H |
| 8 | #include "config.h" |
| 9 | #endif |
| 10 | |
| 11 | #include "ui/register_message.h" |
| 12 | |
| 13 | namespace ui { |
| 14 | |
| 15 | static int registered_messages = (int)kFirstRegisteredMessage; |
| 16 | |
| 17 | RegisterMessage::RegisterMessage() |
| 18 | { |
| 19 | m_type = (MessageType)registered_messages++; |
| 20 | } |
| 21 | |
| 22 | } // namespace ui |
| 23 |