summaryrefslogtreecommitdiff
path: root/gtk2_ardour/utils.h
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2016-06-05 16:03:08 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2016-06-05 16:33:01 -0400
commit7b2f2a1f6a58c73c64a66dcbaf7cc3765d5379d2 (patch)
tree61ffda253ba16da678255111b187d3164d7e4bfb /gtk2_ardour/utils.h
parent9d3aba30c48e39dd075d1f181bd71538e437fad5 (diff)
new color utility functions to convert between uint32_t and Gdk::Color
Diffstat (limited to 'gtk2_ardour/utils.h')
-rw-r--r--gtk2_ardour/utils.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/gtk2_ardour/utils.h b/gtk2_ardour/utils.h
index bdc05643a5..51b9ca22c3 100644
--- a/gtk2_ardour/utils.h
+++ b/gtk2_ardour/utils.h
@@ -62,9 +62,13 @@ Pango::FontDescription get_font_for_style (std::string widgetname);
void decorate (Gtk::Window& w, Gdk::WMDecoration d);
+Gdk::Color gdk_color_from_rgb (uint32_t);
+Gdk::Color gdk_color_from_rgba (uint32_t);
+uint32_t gdk_color_to_rgba (Gdk::Color const&);
+
void set_color_from_rgb (Gdk::Color&, uint32_t);
void set_color_from_rgba (Gdk::Color&, uint32_t);
-uint32_t gdk_color_to_rgba (Gdk::Color const&);
+
uint32_t contrasting_text_color (uint32_t c);
bool relay_key_press (GdkEventKey* ev, Gtk::Window* win);