Ardour  9.0-pre0-582-g084a23a80d
gtk2_ardour/utils.h File Reference
#include <string>
#include <cmath>
#include <vector>
#include <map>
#include "ardour/types.h"
#include <gdkmm/types.h>
#include <gtkmm/menushell.h>
#include "canvas/types.h"
Include dependency graph for gtk2_ardour/utils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 PBD
 
 Gtk
 
 ArdourCanvas
 
 ARDOUR
 
 ARDOUR_UI_UTILS
 

Functions

gint ARDOUR_UI_UTILS::just_hide_it (GdkEventAny *, Gtk::Window *)
 
void ARDOUR_UI_UTILS::add_item_with_sensitivity (Gtk::Menu_Helpers::MenuList &, Gtk::Menu_Helpers::MenuElem, bool)
 
bool ARDOUR_UI_UTILS::engine_is_running ()
 
unsigned char * ARDOUR_UI_UTILS::xpm2rgb (const char **xpm, uint32_t &w, uint32_t &h)
 
unsigned char * ARDOUR_UI_UTILS::xpm2rgba (const char **xpm, uint32_t &w, uint32_t &h)
 
ArdourCanvas::PointsARDOUR_UI_UTILS::get_canvas_points (std::string who, uint32_t npoints)
 
Pango::FontDescription ARDOUR_UI_UTILS::sanitized_font (std::string const &)
 
Pango::FontDescription ARDOUR_UI_UTILS::ardour_font (std::string const &)
 
Pango::FontDescription ARDOUR_UI_UTILS::get_font_for_style (std::string widgetname)
 
void ARDOUR_UI_UTILS::decorate (Gtk::Window &w, Gdk::WMDecoration d)
 
bool ARDOUR_UI_UTILS::relay_key_press (GdkEventKey *ev, Gtk::Window *win)
 
bool ARDOUR_UI_UTILS::key_press_focus_accelerator_handler (Gtk::Window &window, GdkEventKey *ev)
 
bool ARDOUR_UI_UTILS::emulate_key_event (unsigned int)
 
Glib::RefPtr< Gdk::PixbufARDOUR_UI_UTILS::get_xpm (std::string)
 
std::vector< std::string > ARDOUR_UI_UTILS::get_icon_sets ()
 
void ARDOUR_UI_UTILS::get_color_themes (std::map< std::string, std::string > &)
 
std::string ARDOUR_UI_UTILS::get_icon_path (const char *, std::string icon_set=std::string(), bool is_image=true)
 
Glib::RefPtr< Gdk::PixbufARDOUR_UI_UTILS::get_icon (const char *, std::string icon_set=std::string())
 
const char *const * ARDOUR_UI_UTILS::get_xpm_data (std::string path)
 
std::string ARDOUR_UI_UTILS::longest (std::vector< std::string > &)
 
bool ARDOUR_UI_UTILS::key_is_legal_for_numeric_entry (guint keyval)
 
int ARDOUR_UI_UTILS::guess_default_ui_scale ()
 
void ARDOUR_UI_UTILS::resize_window_to_proportion_of_monitor (Gtk::Window *, int, int)
 
std::string ARDOUR_UI_UTILS::escape_underscores (std::string const &)
 
Gdk::Color ARDOUR_UI_UTILS::round_robin_palette_color ()
 
Gdk::Color ARDOUR_UI_UTILS::unique_random_color (std::list< Gdk::Color > &)
 
std::string ARDOUR_UI_UTILS::rate_as_string (float r)
 
std::string ARDOUR_UI_UTILS::samples_as_time_string (ARDOUR::samplecnt_t s, float r, bool show_samples=false)
 
std::string ARDOUR_UI_UTILS::midi_channels_as_string (std::bitset< 16 >)
 
bool ARDOUR_UI_UTILS::windows_overlap (Gtk::Window *a, Gtk::Window *b)
 
bool ARDOUR_UI_UTILS::overwrite_file_dialog (Gtk::Window &parent, std::string title, std::string text)
 
bool ARDOUR_UI_UTILS::running_from_source_tree ()
 
void ARDOUR_UI_UTILS::inhibit_screensaver (bool)
 
void ARDOUR_UI_UTILS::copy_patch_changes (std::shared_ptr< ARDOUR::Auditioner >, std::shared_ptr< ARDOUR::Trigger >)
 
bool ARDOUR_UI_UTILS::convert_drop_to_paths (std::vector< std::string > &, const Gtk::SelectionData &)
 
void ARDOUR_UI_UTILS::format_position (ARDOUR::Session *, Temporal::timepos_t const &pos, char *buf, size_t bufsize, bool onoff=true)
 

Variables

static std::map< std::string, Glib::RefPtr< Gdk::Pixbuf > > ARDOUR_UI_UTILS::xpm_map