ardour
Namespaces | Classes | Typedefs | Functions | Variables
Gtkmm2ext Namespace Reference

Namespaces

 DEBUG
 

Classes

class  ActionMap
 
class  Activatable
 
class  Application
 
class  AutoSpin
 
class  BarController
 
class  Bindings
 
class  CellRendererColorSelector
 
class  CellRendererPixbufMulti
 
class  CellRendererPixbufToggle
 
class  Choice
 
class  ClickBox
 
class  CursorInfo
 
class  DnDTreeView
 
class  DnDTreeViewBase
 
class  DnDVBox
 
class  DnDVBoxChild
 
class  EmScale
 
class  FastMeter
 
class  FocusEntry
 
class  HSliderController
 
class  IdleAdjustment
 
class  Keyboard
 
class  KeyboardKey
 
class  MotionFeedback
 
class  MouseButton
 
class  PathsDialog
 
class  PersistentTooltip
 
class  PixFader
 
class  PixScroller
 
class  PopUp
 
class  Prompter
 
class  Scroomer
 
class  Selector
 
struct  SerializedObjectPointers
 
class  SliderController
 
class  StateButton
 
class  StatefulButton
 
class  StatefulToggleButton
 
class  TearOff
 
class  TextViewer
 
class  TreeView_Selector
 
class  UI
 
struct  UIRequest
 
class  VisibilityTracker
 
class  VSliderController
 
class  WindowTitle
 

Typedefs

typedef void( SelectorRefillFunction )(Glib::RefPtr< Gtk::ListStore >, void *)
 

Functions

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

Variables

BaseUI::RequestType NullMessage = BaseUI::new_request_type()
 
BaseUI::RequestType ErrorMessage = BaseUI::new_request_type()
 
BaseUI::RequestType CallSlot
 
BaseUI::RequestType TouchDisplay = BaseUI::new_request_type()
 
BaseUI::RequestType StateChange = BaseUI::new_request_type()
 
BaseUI::RequestType SetTip = BaseUI::new_request_type()
 
BaseUI::RequestType AddIdle = BaseUI::new_request_type()
 
BaseUI::RequestType AddTimeout = BaseUI::new_request_type()
 

Typedef Documentation

typedef void( Gtkmm2ext::SelectorRefillFunction)(Glib::RefPtr< Gtk::ListStore >, void *)

Definition at line 45 of file selector.h.

Function Documentation

void Gtkmm2ext::container_clear ( Gtk::Container &  c)

Definition at line 511 of file utils.cc.

bool Gtkmm2ext::contains_value ( Gtk::ComboBoxText &  cr,
const std::string  text 
)

Definition at line 326 of file utils.cc.

void Gtkmm2ext::convert_bgra_to_rgba ( guint8 const *  src,
guint8 *  dst,
int  width,
int  height 
)

Definition at line 207 of file utils.cc.

template<class T >
void Gtkmm2ext::deferred_delete ( void *  ptr)

Definition at line 109 of file utils.h.

void Gtkmm2ext::detach_menu ( Gtk::Menu &  menu)

Definition at line 361 of file utils.cc.

void Gtkmm2ext::disable_tooltips ( )

Definition at line 810 of file utils.cc.

void Gtkmm2ext::enable_tooltips ( )

Definition at line 804 of file utils.cc.

bool Gtkmm2ext::event_inside_widget_window ( Gtk::Widget &  widget,
GdkEvent *  ev 
)

Definition at line 816 of file utils.cc.

const char * Gtkmm2ext::event_type_string ( int  event_type)

Definition at line 843 of file utils.cc.

LIBGTKMM2EXT_API std::string Gtkmm2ext::fit_to_pixels ( const std::string &  ,
int  pixel_width,
Pango::FontDescription &  font,
int &  actual_width,
bool  with_ellipses = false 
)
std::pair< std::string, double > Gtkmm2ext::fit_to_pixels ( cairo_t *  cr,
std::string  name,
double  avail 
)

Try to fit a string into a given horizontal space by ellipsizing it.

Parameters
crCairo context in which the text will be plotted.
nameText.
availAvailable horizontal space.
Returns
(Text, possibly ellipsized) and (horizontal size of text)

Definition at line 750 of file utils.cc.

LIBGTKMM2EXT_API Glib::RefPtr<Gdk::Drawable> Gtkmm2ext::get_bogus_drawable ( )
void Gtkmm2ext::get_ink_pixel_size ( Glib::RefPtr< Pango::Layout >  layout,
int &  width,
int &  height 
)

Definition at line 51 of file utils.cc.

GdkWindow * Gtkmm2ext::get_paned_handle ( Gtk::Paned &  paned)

Definition at line 344 of file utils.cc.

void Gtkmm2ext::get_pixel_size ( Glib::RefPtr< Pango::Layout >  layout,
int &  width,
int &  height 
)

Definition at line 62 of file utils.cc.

void Gtkmm2ext::get_popdown_strings ( Gtk::ComboBoxText &  cr,
std::vector< std::string > &  strings 
)

Definition at line 311 of file utils.cc.

void Gtkmm2ext::init ( const char *  localedir)

Definition at line 42 of file utils.cc.

LIBGTKMM2EXT_API Gtk::Label* Gtkmm2ext::left_aligned_label ( std::string const &  )
int Gtkmm2ext::physical_screen_height ( Glib::RefPtr< Gdk::Window >  win)

Definition at line 481 of file utils.cc.

int Gtkmm2ext::physical_screen_width ( Glib::RefPtr< Gdk::Window >  win)

Definition at line 496 of file utils.cc.

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 int Gtkmm2ext::pixel_width ( const std::string &  str,
Pango::FontDescription &  font 
)
bool Gtkmm2ext::possibly_translate_keyval_to_make_legal_accelerator ( uint32_t &  keyval)

Definition at line 399 of file utils.cc.

uint32_t Gtkmm2ext::possibly_translate_legal_accelerator_to_real_key ( uint32_t  keyval)

Definition at line 446 of file utils.cc.

bool Gtkmm2ext::possibly_translate_mod_to_make_legal_accelerator ( GdkModifierType &  mod)

Definition at line 375 of file utils.cc.

void Gtkmm2ext::rounded_bottom_half_rectangle ( Cairo::RefPtr< Cairo::Context >  context,
double  x,
double  y,
double  w,
double  h,
double  r = 10 
)

Definition at line 545 of file utils.cc.

void Gtkmm2ext::rounded_bottom_half_rectangle ( cairo_t *  cr,
double  x,
double  y,
double  w,
double  h,
double  r = 10 
)

Definition at line 615 of file utils.cc.

void Gtkmm2ext::rounded_left_half_rectangle ( Cairo::RefPtr< Cairo::Context >  context,
double  x,
double  y,
double  w,
double  h,
double  r = 10 
)

Definition at line 551 of file utils.cc.

void Gtkmm2ext::rounded_left_half_rectangle ( cairo_t *  cr,
double  x,
double  y,
double  w,
double  h,
double  r = 10 
)

Definition at line 576 of file utils.cc.

void Gtkmm2ext::rounded_rectangle ( Cairo::RefPtr< Cairo::Context >  context,
double  x,
double  y,
double  w,
double  h,
double  r = 10 
)

Definition at line 520 of file utils.cc.

void Gtkmm2ext::rounded_rectangle ( cairo_t *  cr,
double  x,
double  y,
double  w,
double  h,
double  r = 10 
)

Definition at line 563 of file utils.cc.

void Gtkmm2ext::rounded_right_half_rectangle ( Cairo::RefPtr< Cairo::Context >  context,
double  x,
double  y,
double  w,
double  h,
double  r = 10 
)

Definition at line 557 of file utils.cc.

void Gtkmm2ext::rounded_right_half_rectangle ( cairo_t *  cr,
double  x,
double  y,
double  w,
double  h,
double  r = 10 
)

Definition at line 589 of file utils.cc.

void Gtkmm2ext::rounded_top_half_rectangle ( Cairo::RefPtr< Cairo::Context >  context,
double  x,
double  y,
double  w,
double  h,
double  r = 10 
)

Definition at line 540 of file utils.cc.

void Gtkmm2ext::rounded_top_half_rectangle ( cairo_t *  cr,
double  x,
double  y,
double  w,
double  h,
double  r = 10 
)

Definition at line 602 of file utils.cc.

void Gtkmm2ext::rounded_top_left_rectangle ( Cairo::RefPtr< Cairo::Context >  context,
double  x,
double  y,
double  w,
double  h,
double  r = 10 
)

Definition at line 530 of file utils.cc.

void Gtkmm2ext::rounded_top_left_rectangle ( cairo_t *  cr,
double  x,
double  y,
double  w,
double  h,
double  r = 10 
)

Definition at line 642 of file utils.cc.

void Gtkmm2ext::rounded_top_rectangle ( Cairo::RefPtr< Cairo::Context >  context,
double  x,
double  y,
double  w,
double  h,
double  r = 10 
)

Definition at line 525 of file utils.cc.

void Gtkmm2ext::rounded_top_rectangle ( cairo_t *  cr,
double  x,
double  y,
double  w,
double  h,
double  r = 10 
)

Definition at line 629 of file utils.cc.

void Gtkmm2ext::rounded_top_right_rectangle ( Cairo::RefPtr< Cairo::Context >  context,
double  x,
double  y,
double  w,
double  h,
double  r = 10 
)

Definition at line 535 of file utils.cc.

void Gtkmm2ext::rounded_top_right_rectangle ( cairo_t *  cr,
double  x,
double  y,
double  w,
double  h,
double  r = 10 
)

Definition at line 659 of file utils.cc.

bool Gtkmm2ext::set_active_text_if_present ( Gtk::ComboBoxText &  cr,
const std::string  text 
)

Definition at line 334 of file utils.cc.

void Gtkmm2ext::set_decoration ( Gtk::Window *  win,
Gdk::WMDecoration  decor 
)

Definition at line 350 of file utils.cc.

void Gtkmm2ext::set_height_request_to_display_any_text ( Gtk::Widget &  w,
gint  vpadding 
)

Definition at line 102 of file utils.cc.

void Gtkmm2ext::set_no_tooltip_whatsoever ( Gtk::Widget &  w)

Hackily arrange for the provided widget to have no tooltip, and also to stop any other widget from providing one while the mouse is over w.

Definition at line 797 of file utils.cc.

LIBGTKMM2EXT_API void Gtkmm2ext::set_popdown_strings ( Gtk::ComboBoxText &  ,
const std::vector< std::string > &   
)
void Gtkmm2ext::set_size_request_to_display_given_text ( Gtk::Widget &  w,
const gchar *  text,
gint  hpadding,
gint  vpadding 
)

Definition at line 70 of file utils.cc.

void Gtkmm2ext::set_size_request_to_display_given_text ( Gtk::Widget &  w,
std::string const &  text,
gint  hpadding,
gint  vpadding 
)

Definition at line 115 of file utils.cc.

void Gtkmm2ext::set_size_request_to_display_given_text ( Gtk::Widget &  w,
const std::vector< std::string > &  strings,
gint  hpadding,
gint  vpadding 
)

Definition at line 126 of file utils.cc.

void Gtkmm2ext::set_size_request_to_display_given_text ( Gtk::Widget &  w,
const std::vector< std::string > &  strings,
const std::string &  hpadding,
gint  vpadding 
)

This version specifies horizontal padding in text to avoid assumptions about font size. Should be used anywhere padding is used to avoid text, like combo boxes.

Definition at line 167 of file utils.cc.

void Gtkmm2ext::set_size_request_to_display_given_text_width ( Gtk::Widget &  w,
const gchar *  htext,
gint  hpadding,
gint  vpadding 
)

Set width request to display given text, and height to display anything. This is useful for setting many widgets to the same height for consistency.

Definition at line 83 of file utils.cc.

void Gtkmm2ext::set_treeview_header_as_default_label ( Gtk::TreeViewColumn *  c)

Definition at line 355 of file utils.cc.

LIBGTKMM2EXT_API void Gtkmm2ext::treeview_select_next ( Gtk::TreeView &  view,
Glib::RefPtr< Gtk::TreeModel >  model,
Gtk::TreeViewColumn *  col 
)
LIBGTKMM2EXT_API void Gtkmm2ext::treeview_select_one ( Glib::RefPtr< Gtk::TreeSelection >  selection,
Glib::RefPtr< Gtk::TreeModel >  model,
Gtk::TreeView &  view,
Gtk::TreeIter  iter,
Gtk::TreePath  path,
Gtk::TreeViewColumn *  col 
)
LIBGTKMM2EXT_API void Gtkmm2ext::treeview_select_previous ( Gtk::TreeView &  view,
Glib::RefPtr< Gtk::TreeModel >  model,
Gtk::TreeViewColumn *  col 
)
Glib::RefPtr< Gdk::Window > Gtkmm2ext::window_to_draw_on ( Gtk::Widget &  w,
Gtk::Widget **  parent 
)

Definition at line 676 of file utils.cc.

Variable Documentation

Definition at line 63 of file gtk_ui.cc.

BaseUI::RequestType Gtkmm2ext::AddTimeout = BaseUI::new_request_type()

Definition at line 64 of file gtk_ui.cc.

BaseUI::RequestType Gtkmm2ext::CallSlot
BaseUI::RequestType Gtkmm2ext::ErrorMessage = BaseUI::new_request_type()

Definition at line 59 of file gtk_ui.cc.

BaseUI::RequestType Gtkmm2ext::NullMessage = BaseUI::new_request_type()

Definition at line 58 of file gtk_ui.cc.

Definition at line 62 of file gtk_ui.cc.

BaseUI::RequestType Gtkmm2ext::StateChange = BaseUI::new_request_type()

Definition at line 61 of file gtk_ui.cc.

BaseUI::RequestType Gtkmm2ext::TouchDisplay = BaseUI::new_request_type()

Definition at line 60 of file gtk_ui.cc.