Ardour  9.0-pre0-582-g084a23a80d
ARDOUR_UI_UTILS Namespace Reference

Functions

Gtk::Menushared_popup_menu ()
 
bool relay_key_press (GdkEventKey *ev, Gtk::Window *win)
 
bool forward_key_press (GdkEventKey *ev)
 
gint just_hide_it (GdkEventAny *, Gtk::Window *)
 
void add_item_with_sensitivity (Gtk::Menu_Helpers::MenuList &, Gtk::Menu_Helpers::MenuElem, bool)
 
bool engine_is_running ()
 
unsigned char * xpm2rgb (const char **xpm, uint32_t &w, uint32_t &h)
 
unsigned char * xpm2rgba (const char **xpm, uint32_t &w, uint32_t &h)
 
ArdourCanvas::Pointsget_canvas_points (std::string who, uint32_t npoints)
 
Pango::FontDescription sanitized_font (std::string const &)
 
Pango::FontDescription ardour_font (std::string const &)
 
Pango::FontDescription get_font_for_style (std::string widgetname)
 
void decorate (Gtk::Window &w, Gdk::WMDecoration d)
 
bool key_press_focus_accelerator_handler (Gtk::Window &window, GdkEventKey *ev)
 
bool emulate_key_event (unsigned int)
 
Glib::RefPtr< Gdk::Pixbufget_xpm (std::string)
 
std::vector< std::string > get_icon_sets ()
 
void get_color_themes (std::map< std::string, std::string > &)
 
std::string get_icon_path (const char *, std::string icon_set=std::string(), bool is_image=true)
 
Glib::RefPtr< Gdk::Pixbufget_icon (const char *, std::string icon_set=std::string())
 
const char *const * get_xpm_data (std::string path)
 
std::string longest (std::vector< std::string > &)
 
bool key_is_legal_for_numeric_entry (guint keyval)
 
int guess_default_ui_scale ()
 
void resize_window_to_proportion_of_monitor (Gtk::Window *, int, int)
 
std::string escape_underscores (std::string const &)
 
Gdk::Color round_robin_palette_color ()
 
Gdk::Color unique_random_color (std::list< Gdk::Color > &)
 
std::string rate_as_string (float r)
 
std::string samples_as_time_string (ARDOUR::samplecnt_t s, float r, bool show_samples=false)
 
std::string midi_channels_as_string (std::bitset< 16 >)
 
bool windows_overlap (Gtk::Window *a, Gtk::Window *b)
 
bool overwrite_file_dialog (Gtk::Window &parent, std::string title, std::string text)
 
bool running_from_source_tree ()
 
void inhibit_screensaver (bool)
 
void copy_patch_changes (std::shared_ptr< ARDOUR::Auditioner >, std::shared_ptr< ARDOUR::Trigger >)
 
bool convert_drop_to_paths (std::vector< std::string > &, const Gtk::SelectionData &)
 
void 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 > > xpm_map
 

Function Documentation

◆ add_item_with_sensitivity()

void ARDOUR_UI_UTILS::add_item_with_sensitivity ( Gtk::Menu_Helpers::MenuList ,
Gtk::Menu_Helpers::MenuElem  ,
bool   
)

◆ ardour_font()

Pango::FontDescription ARDOUR_UI_UTILS::ardour_font ( std::string const &  )

◆ convert_drop_to_paths()

bool ARDOUR_UI_UTILS::convert_drop_to_paths ( std::vector< std::string > &  ,
const Gtk::SelectionData  
)

◆ copy_patch_changes()

void ARDOUR_UI_UTILS::copy_patch_changes ( std::shared_ptr< ARDOUR::Auditioner ,
std::shared_ptr< ARDOUR::Trigger  
)

◆ decorate()

void ARDOUR_UI_UTILS::decorate ( Gtk::Window w,
Gdk::WMDecoration  d 
)

◆ emulate_key_event()

bool ARDOUR_UI_UTILS::emulate_key_event ( unsigned int  )

◆ engine_is_running()

bool ARDOUR_UI_UTILS::engine_is_running ( )

◆ escape_underscores()

std::string ARDOUR_UI_UTILS::escape_underscores ( std::string const &  )

◆ format_position()

void ARDOUR_UI_UTILS::format_position ( ARDOUR::Session ,
Temporal::timepos_t const &  pos,
char *  buf,
size_t  bufsize,
bool  onoff = true 
)

◆ forward_key_press()

bool ARDOUR_UI_UTILS::forward_key_press ( GdkEventKey ev)

◆ get_canvas_points()

ArdourCanvas::Points* ARDOUR_UI_UTILS::get_canvas_points ( std::string  who,
uint32_t  npoints 
)

◆ get_color_themes()

void ARDOUR_UI_UTILS::get_color_themes ( std::map< std::string, std::string > &  )

◆ get_font_for_style()

Pango::FontDescription ARDOUR_UI_UTILS::get_font_for_style ( std::string  widgetname)

◆ get_icon()

Glib::RefPtr<Gdk::Pixbuf> ARDOUR_UI_UTILS::get_icon ( const char *  ,
std::string  icon_set = std::string() 
)

◆ get_icon_path()

std::string ARDOUR_UI_UTILS::get_icon_path ( const char *  ,
std::string  icon_set = std::string(),
bool  is_image = true 
)

◆ get_icon_sets()

std::vector<std::string> ARDOUR_UI_UTILS::get_icon_sets ( )

◆ get_xpm()

Glib::RefPtr<Gdk::Pixbuf> ARDOUR_UI_UTILS::get_xpm ( std::string  )

◆ get_xpm_data()

const char* const* ARDOUR_UI_UTILS::get_xpm_data ( std::string  path)

◆ guess_default_ui_scale()

int ARDOUR_UI_UTILS::guess_default_ui_scale ( )

◆ inhibit_screensaver()

void ARDOUR_UI_UTILS::inhibit_screensaver ( bool  )

◆ just_hide_it()

gint ARDOUR_UI_UTILS::just_hide_it ( GdkEventAny ,
Gtk::Window  
)

◆ key_is_legal_for_numeric_entry()

bool ARDOUR_UI_UTILS::key_is_legal_for_numeric_entry ( guint  keyval)

◆ key_press_focus_accelerator_handler()

bool ARDOUR_UI_UTILS::key_press_focus_accelerator_handler ( Gtk::Window window,
GdkEventKey ev 
)

◆ longest()

std::string ARDOUR_UI_UTILS::longest ( std::vector< std::string > &  )

◆ midi_channels_as_string()

std::string ARDOUR_UI_UTILS::midi_channels_as_string ( std::bitset< 16 >  )

◆ overwrite_file_dialog()

bool ARDOUR_UI_UTILS::overwrite_file_dialog ( Gtk::Window parent,
std::string  title,
std::string  text 
)

◆ rate_as_string()

std::string ARDOUR_UI_UTILS::rate_as_string ( float  r)

◆ relay_key_press()

bool ARDOUR_UI_UTILS::relay_key_press ( GdkEventKey ev,
Gtk::Window win 
)

◆ resize_window_to_proportion_of_monitor()

void ARDOUR_UI_UTILS::resize_window_to_proportion_of_monitor ( Gtk::Window ,
int  ,
int   
)

◆ round_robin_palette_color()

Gdk::Color ARDOUR_UI_UTILS::round_robin_palette_color ( )

◆ running_from_source_tree()

bool ARDOUR_UI_UTILS::running_from_source_tree ( )

◆ samples_as_time_string()

std::string ARDOUR_UI_UTILS::samples_as_time_string ( ARDOUR::samplecnt_t  s,
float  r,
bool  show_samples = false 
)

◆ sanitized_font()

Pango::FontDescription ARDOUR_UI_UTILS::sanitized_font ( std::string const &  )

◆ shared_popup_menu()

Gtk::Menu* ARDOUR_UI_UTILS::shared_popup_menu ( )

◆ unique_random_color()

Gdk::Color ARDOUR_UI_UTILS::unique_random_color ( std::list< Gdk::Color > &  )

◆ windows_overlap()

bool ARDOUR_UI_UTILS::windows_overlap ( Gtk::Window a,
Gtk::Window b 
)

◆ xpm2rgb()

unsigned char* ARDOUR_UI_UTILS::xpm2rgb ( const char **  xpm,
uint32_t &  w,
uint32_t &  h 
)

◆ xpm2rgba()

unsigned char* ARDOUR_UI_UTILS::xpm2rgba ( const char **  xpm,
uint32_t &  w,
uint32_t &  h 
)

Variable Documentation

◆ xpm_map

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

Definition at line 92 of file gtk2_ardour/utils.h.