1// Aseprite UI Library
2// Copyright (C) 2021 Igara Studio S.A.
3// Copyright (C) 2001-2013 David Capello
4//
5// This file is released under the terms of the MIT license.
6// Read LICENSE.txt for more information.
7
8#ifdef HAVE_CONFIG_H
9#include "config.h"
10#endif
11
12#include "ui/message_loop.h"
13
14#include "ui/manager.h"
15
16namespace ui {
17
18MessageLoop::MessageLoop(Manager* manager)
19 : m_manager(manager)
20{
21}
22
23void MessageLoop::pumpMessages()
24{
25 if (m_manager->generateMessages())
26 m_manager->dispatchMessages();
27}
28
29} // namespace ui
30