Scroom  0.14
gtk-test-helpers.hh
Go to the documentation of this file.
1 /*
2  * Scroom - Generic viewer for 2D data
3  * Copyright (C) 2009-2022 Kees-Jan Dijkzeul
4  *
5  * SPDX-License-Identifier: LGPL-2.1
6  */
7 
8 #pragma once
9 
10 #include <thread>
11 
13 {
15  {
16  private:
17  std::thread gtk_thread;
18 
19  public:
20  GtkMainLoop();
21  GtkMainLoop(const GtkMainLoop&) = delete;
22  GtkMainLoop& operator=(const GtkMainLoop&) = delete;
23  GtkMainLoop(GtkMainLoop&&) = delete;
24  GtkMainLoop& operator=(GtkMainLoop&&) = delete;
25  ~GtkMainLoop();
26 
27  private:
28  static void run_gtk();
29  };
30 
31 } // namespace Scroom::GtkTestHelpers
Scroom::GtkTestHelpers::GtkMainLoop::operator=
GtkMainLoop & operator=(const GtkMainLoop &)=delete
Scroom::GtkTestHelpers::GtkMainLoop::~GtkMainLoop
~GtkMainLoop()
Definition: gtk-test-helpers.cc:13
Scroom::GtkTestHelpers::GtkMainLoop::gtk_thread
std::thread gtk_thread
Definition: gtk-test-helpers.hh:17
Scroom::GtkTestHelpers::GtkMainLoop
Definition: gtk-test-helpers.hh:14
Scroom::GtkTestHelpers
Definition: gtk-test-helpers.hh:12
Scroom::GtkTestHelpers::GtkMainLoop::GtkMainLoop
GtkMainLoop()
Definition: gtk-test-helpers.cc:8
Scroom::GtkTestHelpers::GtkMainLoop::run_gtk
static void run_gtk()
Definition: gtk-test-helpers.cc:19