Ardour  9.0-pre0-439-ga53b99b307
libs/gtkmm2ext/gtkmm2ext/gui_thread.h File Reference
#include <cstdlib>
#include <gtkmm2ext/gtk_ui.h>
#include <boost/bind/protect.hpp>
#include "gtkmm2ext/visibility.h"
Include dependency graph for libs/gtkmm2ext/gtkmm2ext/gui_thread.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define ENSURE_GUI_THREAD(obj, method, ...)   if (!Gtkmm2ext::UI::instance()->caller_is_self()) { abort (); }
 
#define gui_context()   Gtkmm2ext::UI::instance() /* a UICallback-derived object that specifies the event loop for GUI signal handling */
 
#define ui_bind(f, ...)   boost::protect (std::bind (f, __VA_ARGS__))
 
#define invalidator(x)   PBD::EventLoop::__invalidator ((x), __FILE__, __LINE__)
 

Macro Definition Documentation

◆ ENSURE_GUI_THREAD

#define ENSURE_GUI_THREAD (   obj,
  method,
  ... 
)    if (!Gtkmm2ext::UI::instance()->caller_is_self()) { abort (); }

Definition at line 27 of file libs/gtkmm2ext/gtkmm2ext/gui_thread.h.

◆ gui_context

#define gui_context ( )    Gtkmm2ext::UI::instance() /* a UICallback-derived object that specifies the event loop for GUI signal handling */

Definition at line 29 of file libs/gtkmm2ext/gtkmm2ext/gui_thread.h.

◆ invalidator

#define invalidator (   x)    PBD::EventLoop::__invalidator ((x), __FILE__, __LINE__)

Definition at line 32 of file libs/gtkmm2ext/gtkmm2ext/gui_thread.h.

◆ ui_bind

#define ui_bind (   f,
  ... 
)    boost::protect (std::bind (f, __VA_ARGS__))

Definition at line 30 of file libs/gtkmm2ext/gtkmm2ext/gui_thread.h.