Boost.UI
User Interface Boost library
Classes
Events

Classes

class  boost::ui::close_event
 Close event class. More...
 
class  boost::ui::event_loop
 Event loop class. More...
 
class  boost::ui::event
 Base class for all events. More...
 
class  boost::ui::index_event
 Event class that holds some index in container. More...
 
class  boost::ui::keyboard_state
 Keyboard state class. More...
 
class  boost::ui::key_event
 Keyboard event class that holds information about keyboard when event was generated. More...
 
class  boost::ui::mouse_event
 Mouse event class that holds information about mouse when event was generated. More...
 
class  boost::ui::wheel_event
 Mouse wheel event class. More...
 
template<class Rep , class Period , class F , class... Args>
void boost::ui::on_timeout (const std::chrono::duration< Rep, Period > &d, F &&f, Args &&...args)
 Calls function one time after the specified time duration. More...
 

Detailed Description

Usage example:

ui::dialog dlg("Example dialog");
ui::button(dlg, "&Quit")
.on_press(&ui::dialog::close, &dlg);
dlg.show_modal();
See also
Event (Wikipedia)
UI Events (W3C)

Function Documentation

template<class Rep , class Period , class F , class... Args>
void boost::ui::on_timeout ( const std::chrono::duration< Rep, Period > &  d,
F &&  f,
Args &&...  args 
)

Calls function one time after the specified time duration.

Usage example:

ui::on_timeout(std::chrono::milliseconds(1000),
[]{ BOOST_UI_LOG; }
);
See also
BOOST_UI_USE_CHRONO
BOOST_UI_USE_DATE_TIME
Timeout (Wikipedia)
Timer (Wikipedia)
Examples:
chrono.cpp, cpp11/snippet.cpp, interprocess.cpp, sort.cpp, and timer.cpp.