Scroom  0.14
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

 Scroom
 
 Scroom::GtkHelpers
 
 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 
)
inline
309 { return os << Rectangle<double>(r); }

Referenced by std::operator<<().

Here is the caller graph for this function:

◆ operator<<() [2/2]

std::ostream& operator<< ( std::ostream &  os,
const GdkPoint &  p 
)
34 { return os << "GdkPoint(" << p.x << ", " << p.y << ")"; }

◆ 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 }

◆ operator==() [2/2]

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