25 #ifndef __gtkmm2ext_utils_h__
26 #define __gtkmm2ext_utils_h__
32 #include <cairomm/cairomm.h>
33 #include <pangomm/fontdescription.h>
70 std::string
const& text,
76 const Pango::FontDescription& font,
84 guint button, guint32 time);
87 const std::vector<std::string>&);
90 std::vector<std::string>&);
99 delete static_cast<T *
> (ptr);
GtkImageIconNameData name
PBD::PropertyDescriptor< bool > selected
void set_size_request_to_display_given_text(Gtk::Widget &w, std::string const &text, gint hpadding, gint vpadding)
const char * event_type_string(int event_type)
void rounded_top_left_rectangle(Cairo::RefPtr< Cairo::Context > context, double x, double y, double w, double h, double r=10)
void set_popdown_strings(Gtk::ComboBoxText &, const std::vector< std::string > &)
bool contains_value(Gtk::ComboBoxText &, const std::string)
void add_volume_shortcuts(Gtk::FileChooser &c)
Glib::RefPtr< Gdk::Window > window_to_draw_on(Gtk::Widget &w, Gtk::Widget **parent)
void get_ink_pixel_size_with_descent(Glib::RefPtr< Pango::Layout >, int &width, int &height, int &descent)
int physical_screen_width(Glib::RefPtr< Gdk::Window >)
void set_treeview_header_as_default_label(Gtk::TreeViewColumn *c)
int physical_screen_height(Glib::RefPtr< Gdk::Window >)
void set_no_tooltip_whatsoever(Gtk::Widget &)
Glib::RefPtr< Gdk::Pixbuf > pixbuf_from_string(const std::string &name, const Pango::FontDescription &font, int clip_width, int clip_height, Gdk::Color fg)
void paned_set_position_as_fraction(Gtk::Paned &paned, float fraction, bool h)
void rounded_top_right_rectangle(Cairo::RefPtr< Cairo::Context > context, double x, double y, double w, double h, double r=10)
void rounded_bottom_half_rectangle(Cairo::RefPtr< Cairo::Context >, double x, double y, double w, double h, double r=10)
void pixel_size(const std::string &str, const Pango::FontDescription &font, int &width, int &height)
uint32_t possibly_translate_legal_accelerator_to_real_key(uint32_t keyval)
bool event_inside_widget_window(Gtk::Widget &widget, GdkEvent *ev)
void rounded_right_half_rectangle(Cairo::RefPtr< Cairo::Context >, double x, double y, double w, double h, double r=10)
void rounded_rectangle(Cairo::RefPtr< Cairo::Context > context, double x, double y, double w, double h, double r=10)
void detach_menu(Gtk::Menu &)
std::string show_gdk_event_state(int state)
bool possibly_translate_keyval_to_make_legal_accelerator(uint32_t &keyval)
void rounded_left_half_rectangle(Cairo::RefPtr< Cairo::Context >, double x, double y, double w, double h, double r=10)
Glib::RefPtr< Gdk::Drawable > get_bogus_drawable()
Gtk::Label * left_aligned_label(std::string const &)
size_t get_popdown_string_count(Gtk::ComboBoxText &)
void convert_bgra_to_rgba(guint8 const *, guint8 *dst, int, int)
void set_decoration(Gtk::Window *win, Gdk::WMDecoration decor)
std::string fit_to_pixels(const std::string &, int pixel_width, Pango::FontDescription &font, int &actual_width, bool with_ellipses=false)
void rectangle(Cairo::RefPtr< Cairo::Context > context, double x, double y, double w, double h, double r=10)
void deferred_delete(void *ptr)
void get_ink_pixel_size(Glib::RefPtr< Pango::Layout >, int &width, int &height)
void get_popdown_strings(Gtk::ComboBoxText &, std::vector< std::string > &)
Gtk::Label * right_aligned_label(std::string const &)
GdkWindow * get_paned_handle(Gtk::Paned &paned)
void add_reflection(cairo_t *cr, double w, double h)
void rounded_top_half_rectangle(Cairo::RefPtr< Cairo::Context >, double x, double y, double w, double h, double r=10)
void anchored_menu_popup(Gtk::Menu *const menu, Gtk::Widget *const anchor, const std::string &selected, guint button, guint32 time)
void rounded_top_rectangle(Cairo::RefPtr< Cairo::Context > context, double x, double y, double w, double h, double r=10)
std::string markup_escape_text(std::string const &s)
float paned_position_as_fraction(Gtk::Paned &paned, bool h)
int pixel_width(const std::string &str, const Pango::FontDescription &font)
void container_clear(Gtk::Container &, bool and_delete=false)
bool set_active_text_if_present(Gtk::ComboBoxText &, const std::string)