ardour
Namespaces | Functions
utils.h File Reference
#include <vector>
#include <string>
#include <stdint.h>
#include <cairomm/cairomm.h>
#include <pangomm/fontdescription.h>
#include <gtkmm/container.h>
#include <gtkmm/treeview.h>
#include <gdkmm/window.h>
#include <gdkmm/pixbuf.h>
#include "gtkmm2ext/visibility.h"

Go to the source code of this file.

Namespaces

 Cairo
 
 Gtk
 
 Gtkmm2ext
 

Functions

LIBGTKMM2EXT_API void Gtkmm2ext::init (const char *)
 
LIBGTKMM2EXT_API bool Gtkmm2ext::event_inside_widget_window (Gtk::Widget &widget, GdkEvent *ev)
 
LIBGTKMM2EXT_API std::string Gtkmm2ext::fit_to_pixels (const std::string &, int pixel_width, Pango::FontDescription &font, int &actual_width, bool with_ellipses=false)
 
LIBGTKMM2EXT_API std::pair
< std::string, double > 
Gtkmm2ext::fit_to_pixels (cairo_t *, std::string, double)
 
LIBGTKMM2EXT_API int Gtkmm2ext::pixel_width (const std::string &str, Pango::FontDescription &font)
 
LIBGTKMM2EXT_API void Gtkmm2ext::get_ink_pixel_size (Glib::RefPtr< Pango::Layout >, int &width, int &height)
 
LIBGTKMM2EXT_API void Gtkmm2ext::get_pixel_size (Glib::RefPtr< Pango::Layout >, int &width, int &height)
 
LIBGTKMM2EXT_API void Gtkmm2ext::set_size_request_to_display_given_text (Gtk::Widget &w, const gchar *text, gint hpadding, gint vpadding)
 
LIBGTKMM2EXT_API void Gtkmm2ext::set_size_request_to_display_given_text_width (Gtk::Widget &w, const gchar *htext, gint hpadding, gint vpadding)
 
LIBGTKMM2EXT_API void Gtkmm2ext::set_height_request_to_display_any_text (Gtk::Widget &w, gint vpadding)
 
LIBGTKMM2EXT_API void Gtkmm2ext::set_size_request_to_display_given_text (Gtk::Widget &w, std::string const &text, gint hpadding, gint vpadding)
 
LIBGTKMM2EXT_API void Gtkmm2ext::set_size_request_to_display_given_text (Gtk::Widget &w, const std::vector< std::string > &, gint hpadding, gint vpadding)
 
LIBGTKMM2EXT_API void Gtkmm2ext::set_size_request_to_display_given_text (Gtk::Widget &w, const std::vector< std::string > &, const std::string &hpadding, gint vpadding)
 
LIBGTKMM2EXT_API Glib::RefPtr
< Gdk::Pixbuf > 
Gtkmm2ext::pixbuf_from_string (const std::string &name, const Pango::FontDescription &font, int clip_width, int clip_height, Gdk::Color fg)
 
LIBGTKMM2EXT_API void Gtkmm2ext::set_popdown_strings (Gtk::ComboBoxText &, const std::vector< std::string > &)
 
LIBGTKMM2EXT_API void Gtkmm2ext::get_popdown_strings (Gtk::ComboBoxText &, std::vector< std::string > &)
 
LIBGTKMM2EXT_API bool Gtkmm2ext::contains_value (Gtk::ComboBoxText &, const std::string)
 
LIBGTKMM2EXT_API bool Gtkmm2ext::set_active_text_if_present (Gtk::ComboBoxText &, const std::string)
 
template<class T >
void Gtkmm2ext::deferred_delete (void *ptr)
 
LIBGTKMM2EXT_API GdkWindow * Gtkmm2ext::get_paned_handle (Gtk::Paned &paned)
 
LIBGTKMM2EXT_API void Gtkmm2ext::set_decoration (Gtk::Window *win, Gdk::WMDecoration decor)
 
LIBGTKMM2EXT_API void Gtkmm2ext::set_treeview_header_as_default_label (Gtk::TreeViewColumn *c)
 
LIBGTKMM2EXT_API Glib::RefPtr
< Gdk::Drawable > 
Gtkmm2ext::get_bogus_drawable ()
 
LIBGTKMM2EXT_API void Gtkmm2ext::detach_menu (Gtk::Menu &)
 
LIBGTKMM2EXT_API Glib::RefPtr
< Gdk::Window > 
Gtkmm2ext::window_to_draw_on (Gtk::Widget &w, Gtk::Widget **parent)
 
LIBGTKMM2EXT_API bool Gtkmm2ext::possibly_translate_keyval_to_make_legal_accelerator (uint32_t &keyval)
 
LIBGTKMM2EXT_API bool Gtkmm2ext::possibly_translate_mod_to_make_legal_accelerator (GdkModifierType &mod)
 
LIBGTKMM2EXT_API uint32_t Gtkmm2ext::possibly_translate_legal_accelerator_to_real_key (uint32_t keyval)
 
LIBGTKMM2EXT_API int Gtkmm2ext::physical_screen_height (Glib::RefPtr< Gdk::Window >)
 
LIBGTKMM2EXT_API int Gtkmm2ext::physical_screen_width (Glib::RefPtr< Gdk::Window >)
 
LIBGTKMM2EXT_API void Gtkmm2ext::container_clear (Gtk::Container &)
 
LIBGTKMM2EXT_API void Gtkmm2ext::rounded_rectangle (Cairo::RefPtr< Cairo::Context > context, double x, double y, double w, double h, double r=10)
 
LIBGTKMM2EXT_API void Gtkmm2ext::rounded_top_rectangle (Cairo::RefPtr< Cairo::Context > context, double x, double y, double w, double h, double r=10)
 
LIBGTKMM2EXT_API void Gtkmm2ext::rounded_top_left_rectangle (Cairo::RefPtr< Cairo::Context > context, double x, double y, double w, double h, double r=10)
 
LIBGTKMM2EXT_API void Gtkmm2ext::rounded_top_right_rectangle (Cairo::RefPtr< Cairo::Context > context, double x, double y, double w, double h, double r=10)
 
LIBGTKMM2EXT_API void Gtkmm2ext::rounded_top_half_rectangle (Cairo::RefPtr< Cairo::Context >, double x, double y, double w, double h, double r=10)
 
LIBGTKMM2EXT_API void Gtkmm2ext::rounded_bottom_half_rectangle (Cairo::RefPtr< Cairo::Context >, double x, double y, double w, double h, double r=10)
 
LIBGTKMM2EXT_API void Gtkmm2ext::rounded_right_half_rectangle (Cairo::RefPtr< Cairo::Context >, double x, double y, double w, double h, double r=10)
 
LIBGTKMM2EXT_API void Gtkmm2ext::rounded_left_half_rectangle (Cairo::RefPtr< Cairo::Context >, double x, double y, double w, double h, double r=10)
 
LIBGTKMM2EXT_API void Gtkmm2ext::rounded_rectangle (cairo_t *, double x, double y, double w, double h, double r=10)
 
LIBGTKMM2EXT_API void Gtkmm2ext::rounded_top_rectangle (cairo_t *, double x, double y, double w, double h, double r=10)
 
LIBGTKMM2EXT_API void Gtkmm2ext::rounded_top_left_rectangle (cairo_t *, double x, double y, double w, double h, double r=10)
 
LIBGTKMM2EXT_API void Gtkmm2ext::rounded_top_right_rectangle (cairo_t *, double x, double y, double w, double h, double r=10)
 
LIBGTKMM2EXT_API void Gtkmm2ext::rounded_top_half_rectangle (cairo_t *, double x, double y, double w, double h, double r=10)
 
LIBGTKMM2EXT_API void Gtkmm2ext::rounded_bottom_half_rectangle (cairo_t *, double x, double y, double w, double h, double r=10)
 
LIBGTKMM2EXT_API void Gtkmm2ext::rounded_right_half_rectangle (cairo_t *, double x, double y, double w, double h, double r=10)
 
LIBGTKMM2EXT_API void Gtkmm2ext::rounded_left_half_rectangle (cairo_t *cr, double x, double y, double w, double h, double r=10)
 
LIBGTKMM2EXT_API Gtk::Label * Gtkmm2ext::left_aligned_label (std::string const &)
 
LIBGTKMM2EXT_API void Gtkmm2ext::set_no_tooltip_whatsoever (Gtk::Widget &)
 
LIBGTKMM2EXT_API void Gtkmm2ext::enable_tooltips ()
 
LIBGTKMM2EXT_API void Gtkmm2ext::disable_tooltips ()
 
LIBGTKMM2EXT_API void Gtkmm2ext::convert_bgra_to_rgba (guint8 const *, guint8 *dst, int, int)
 
LIBGTKMM2EXT_API const char * Gtkmm2ext::event_type_string (int event_type)