mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 14:54:56 +01:00
new color utility functions to convert between uint32_t and Gdk::Color
This commit is contained in:
parent
9d3aba30c4
commit
7b2f2a1f6a
2 changed files with 21 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue