Ardour  9.0-pre0-582-g084a23a80d
GlibEventLoopCallback Class Reference

#include <glib_event_source.h>

Classes

struct  GSourceWithParent
 

Public Member Functions

 GlibEventLoopCallback (std::function< void()> callback)
 
 ~GlibEventLoopCallback ()
 
void attach (Glib::RefPtr< Glib::MainContext >)
 

Static Public Member Functions

static gboolean c_prepare (GSource *, gint *timeout)
 

Private Member Functions

bool cpp_prepare ()
 

Private Attributes

GSourceWithParentgsource
 
GSourceFuncs funcs
 
std::function< void()> _callback
 

Detailed Description

Definition at line 26 of file glib_event_source.h.

Constructor & Destructor Documentation

◆ GlibEventLoopCallback()

GlibEventLoopCallback::GlibEventLoopCallback ( std::function< void()>  callback)

◆ ~GlibEventLoopCallback()

GlibEventLoopCallback::~GlibEventLoopCallback ( )

Member Function Documentation

◆ attach()

void GlibEventLoopCallback::attach ( Glib::RefPtr< Glib::MainContext >  )

◆ c_prepare()

static gboolean GlibEventLoopCallback::c_prepare ( GSource *  ,
gint *  timeout 
)
static

◆ cpp_prepare()

bool GlibEventLoopCallback::cpp_prepare ( )
private

Member Data Documentation

◆ _callback

std::function<void()> GlibEventLoopCallback::_callback
private

Definition at line 45 of file glib_event_source.h.

◆ funcs

GSourceFuncs GlibEventLoopCallback::funcs
private

Definition at line 44 of file glib_event_source.h.

◆ gsource

GSourceWithParent* GlibEventLoopCallback::gsource
private

Definition at line 43 of file glib_event_source.h.


The documentation for this class was generated from the following file: