Scroom 0.14-49-gb7ae7a6d
Loading...
Searching...
No Matches
gtk-helpers.hh File Reference
#include <future>
#include <ostream>
#include <boost/function.hpp>
#include <gtk/gtk.h>
#include "assertions.hh"
Include dependency graph for gtk-helpers.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  Scroom
 
namespace  Scroom::GtkHelpers
 
namespace  Scroom::GtkHelpers::Detail
 

Functions

template<typename T >
static int Scroom::GtkHelpers::Detail::gtkWrapper (gpointer data)
 
template<typename T >
std::pair< GSourceFunc, gpointer > Scroom::GtkHelpers::wrap (T f)
 
bool Scroom::GtkHelpers::on_ui_thread ()
 
template<typename T >
void Scroom::GtkHelpers::async_on_ui_thread (T f)
 
template<typename T >
void Scroom::GtkHelpers::async_on_ui_thread_and_wait (T f)
 
template<typename T >
void Scroom::GtkHelpers::sync_on_ui_thread (T f)
 
cairo_rectangle_int_t Scroom::GtkHelpers::createCairoIntRectangle (int x, int y, int width, int height)
 
GtkWindow * Scroom::GtkHelpers::get_parent_window (GtkWidget *widget)
 
bool operator== (cairo_rectangle_int_t const &left, cairo_rectangle_int_t const &right)
 
bool operator== (const GdkPoint &left, const GdkPoint &right)
 
std::ostream & operator<< (std::ostream &os, cairo_rectangle_int_t const &r)
 
std::ostream & operator<< (std::ostream &os, const GdkPoint &p)
 

Function Documentation

◆ operator<<() [1/2]

std::ostream & operator<< ( std::ostream &  os,
cairo_rectangle_int_t const &  r 
)
30{
31 return os << "cairo_rectangle_int_t(" << r.x << ", " << r.y << ", " << r.width << ", " << r.height << ")";
32}
value_type height() const
Definition rectangle.hh:131
value_type y() const
Definition rectangle.hh:127
value_type x() const
Definition rectangle.hh:125
value_type width() const
Definition rectangle.hh:129
Scroom::Utils::Rectangle< double > const r
Definition transformpresentation_test.cc:65
Here is the call graph for this function:

◆ operator<<() [2/2]

std::ostream & operator<< ( std::ostream &  os,
const GdkPoint &  p 
)
34{ return os << "GdkPoint(" << p.x << ", " << p.y << ")"; }
PresentationInterfaceStub::Ptr const p
Definition determine-size-test.cc:172

◆ operator==() [1/2]

bool operator== ( cairo_rectangle_int_t const &  left,
cairo_rectangle_int_t const &  right 
)
inline
86{
87 return left.x == right.x && left.y == right.y && left.width == right.width && left.height == right.height;
88}
Segment< int > const right(3, 7)

◆ operator==() [2/2]

bool operator== ( const GdkPoint &  left,
const GdkPoint &  right 
)
inline
90{ return left.x == right.x && left.y == right.y; }