Scroom  0.14
Scroom::GtkTestHelpers::GtkMainLoop Class Reference

#include <gtk-test-helpers.hh>

Collaboration diagram for Scroom::GtkTestHelpers::GtkMainLoop:
Collaboration graph

Public Member Functions

 GtkMainLoop ()
 
 GtkMainLoop (const GtkMainLoop &)=delete
 
GtkMainLoopoperator= (const GtkMainLoop &)=delete
 
 GtkMainLoop (GtkMainLoop &&)=delete
 
GtkMainLoopoperator= (GtkMainLoop &&)=delete
 
 ~GtkMainLoop ()
 

Static Private Member Functions

static void run_gtk ()
 

Private Attributes

std::thread gtk_thread
 

Constructor & Destructor Documentation

◆ GtkMainLoop() [1/3]

Scroom::GtkTestHelpers::GtkMainLoop::GtkMainLoop ( )
10  {
11  }

◆ GtkMainLoop() [2/3]

Scroom::GtkTestHelpers::GtkMainLoop::GtkMainLoop ( const GtkMainLoop )
delete

◆ GtkMainLoop() [3/3]

Scroom::GtkTestHelpers::GtkMainLoop::GtkMainLoop ( GtkMainLoop &&  )
delete

◆ ~GtkMainLoop()

Scroom::GtkTestHelpers::GtkMainLoop::~GtkMainLoop ( )
14  {
16  gtk_thread.join();
17  }
Here is the call graph for this function:

Member Function Documentation

◆ operator=() [1/2]

GtkMainLoop& Scroom::GtkTestHelpers::GtkMainLoop::operator= ( const GtkMainLoop )
delete

◆ operator=() [2/2]

GtkMainLoop& Scroom::GtkTestHelpers::GtkMainLoop::operator= ( GtkMainLoop &&  )
delete

◆ run_gtk()

void Scroom::GtkTestHelpers::GtkMainLoop::run_gtk ( )
staticprivate
20  {
21  gtk_init(nullptr, nullptr);
22  gtk_main();
23  }

Member Data Documentation

◆ gtk_thread

std::thread Scroom::GtkTestHelpers::GtkMainLoop::gtk_thread
private

Referenced by ~GtkMainLoop().


The documentation for this class was generated from the following files:
Scroom::GtkHelpers::async_on_ui_thread
void async_on_ui_thread(T f)
Definition: gtk-helpers.hh:42
Scroom::GtkTestHelpers::GtkMainLoop::gtk_thread
std::thread gtk_thread
Definition: gtk-test-helpers.hh:17
Scroom::GtkTestHelpers::GtkMainLoop::run_gtk
static void run_gtk()
Definition: gtk-test-helpers.cc:19