Boost.UI
User Interface Boost library
boost
ui
event_loop.hpp
Go to the documentation of this file.
1
// Copyright (c) 2017 Kolya Kosenko
2
3
// Distributed under the Boost Software License, Version 1.0.
4
// See http://www.boost.org/LICENSE_1_0.txt
5
7
8
#ifndef BOOST_UI_EVENT_LOOP_HPP
9
#define BOOST_UI_EVENT_LOOP_HPP
10
11
#include <
boost/ui/config.hpp
>
12
13
#ifdef BOOST_HAS_PRAGMA_ONCE
14
#pragma once
15
#endif
16
17
#include <boost/noncopyable.hpp>
18
19
namespace
boost
{
20
namespace
ui {
21
25
26
class
BOOST_UI_DECL
event_loop
:
private
boost::noncopyable
27
{
28
public
:
29
event_loop
() : m_loop(NULL) {}
30
32
bool
is_running()
const
;
33
35
void
run();
36
38
void
exit();
39
40
private
:
41
class
native_impl;
42
native_impl* m_loop;
43
};
44
45
}
// namespace ui
46
}
// namespace boost
47
48
#endif // BOOST_UI_EVENT_LOOP_HPP
config.hpp
Configuration options.
boost::ui::event_loop
Event loop class.
Definition:
event_loop.hpp:26
boost
Boost C++ libraries namespace.
Definition:
window.hpp:19
Generated by